Page 3 of 3

Re: Help: Setting up, running, and maintaining a server

Posted: Sat Jan 02, 2021 18:46
by Minix
If it works inside a LAN then your server is ok. Now if you want it to work over the internet you have to forward the port that your minetest server listens to (by default is 30000), to your server (your computer). Look up the name of your router + port forwarding on the internet.

Then you have to give your friends your internet IP address, which you can see on your router or on an IP address detection website.

Re: Help: Setting up, running, and maintaining a server

Posted: Sat Feb 06, 2021 13:33
by r1bnc
This may be not related but i still don't know where to ask. In the server list it shows player names, is there an official way to scrape those details? im trying to make a histograph of players that play at specific time of day on a particuler server.

Re: Help: Setting up, running, and maintaining a server

Posted: Sun Feb 07, 2021 01:40
by Festus1965
r1bnc wrote:
Sat Feb 06, 2021 13:33
This may be not related but i still don't know where to ask. In the server list it shows player names, is there an official way to scrape those details? im trying to make a histograph of players that play at specific time of day on a particuler server.
You mean a gamer named "Thomas" follow over different servers, playing during a day ?
If that, so imagine as me cant play with Thomas every-way ... special Thomas has 5 people at MT and so I use 3 different names already.
But anyway, interesting - good luck.

Re: Help: Setting up, running, and maintaining a server

Posted: Sun Feb 07, 2021 17:06
by Minix
There is a way to access the information on servers.minetest.net in a json format so you can parse what you need, however I don't know how that goes, maybe someone else here knows how to do that. Also remember that the server list doesn't get updated information about a server quickly if said server has a slow connection, so you might lose some data, if you have access to the server you want to get data from it's better to use the logs.

Re: Help: Setting up, running, and maintaining a server

Posted: Sat Feb 20, 2021 03:53
by FrostRanger
T6C wrote:
Sat Nov 28, 2020 17:06
I'm already running into an issue. For starters, if anyone's trying to install the most up-to-date, stable minetest-server onto an Ubuntu 20.04 machine, you must do these steps first (make sure you're fully updated before you begin).
  1. In a terminal add the buster-backports repository to the sources list. You can create a new file under /etc/apt/sources.list.d or add it to /etc/apt/sources.list. The new entry in the file should look like this.

    Code: Select all

    deb http://deb.debian.org/debian buster-backports main
  2. Add the public keys for buster-backports to the apt catalogue.

    Code: Select all

    user@host:~$sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 04EE7237B7D453EC
    user@host:~$sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138
  3. Run sudo apt update, and perform an upgrade, if required (it will tell you if upgrades are available).
  4. Add the buster-backports version of minetest to your apt preferences. Go to /etc/apt/preferences.d, and create a new file. I used the filename 99debian-backports. Enter these as the entries in the file.

    Code: Select all

    Package: minetest
    Pin: release a=buster-backports
    Pin-Priority: 900
    
    Package: minetest-data
    Pin: release a=buster-backports
    Pin-Priority: 900
    
    Package: minetest-server
    Pin: release a=buster-backports
    Pin-Priority: 900
This is the point where I'm running into problems. I tried to install minetest-server, and I got this error.

Code: Select all

The following packages have unmet dependencies:
 minetest-server : Depends: libspatialindex5 (>= 1.8.5) but it is not installable
That dependency is not in the buster-backports repository, or any Ubuntu repository that is installed with 20.04, and it's not one of the dependencies that were required when I installed the Minetest client on my laptop several months ago. How do I get this dependency? Do I need to add the buster repository, too, or is there an Ubuntu repository I should use, instead? I found a package called libspatialindex-dev, but I don't think apt will accept that as a substitute for libspatialindex5.

Do I need to install the minetest and minetest-data packages with minetest-server? I won't be actually playing the game on the server; users will log in from their own remote clients. How do I create and set up a world on the server if it has no GUI and no minetest client; is that done through minetest.conf, too (e.g., mg type, seed, etc.)?

Ik this post is old, but I just wanted to clear this up for anyone who is trying to install the latest version of Minetest on Ubuntu, Do not use the buster backports, use the minetest ppa's instead
https://launchpad.net/~minetestdevs/+ar ... ntu/stable
https://launchpad.net/~minetestdevs/+ar ... ily-builds

Those are the links to the stable and unstable ppa's respectively. There are instructions on how to add them to your system on the site. I have no idea if using the buster backports will break anything, but it's probably easier to just use the official ppa in any case
I would also like to point out that installing the minetest server package is mostly redundant anyways as you can start the regular client in server mode my doing
systemctl start minetest.service
The advantage of just using the regular client in server mode is that you can run a server using the latest version of minetest where if you use the minetest server package you will be stuck at 5.0. This site does a pretty good job of explaining how to properly set up a server on ubuntu for anyone interested https://www.vultr.com/docs/how-to-setup ... untu-17-04 Again, this post is more directed at random forum goers rather than T6C as I am aware that this post is several months old.

Re: Help: Setting up, running, and maintaining a server

Posted: Thu Mar 04, 2021 23:53
by T6C
FrostRanger wrote:
Sat Feb 20, 2021 03:53
Ik this post is old, but I just wanted to clear this up for anyone who is trying to install the latest version of Minetest on Ubuntu, Do not use the buster backports, use the minetest ppa's instead
https://launchpad.net/~minetestdevs/+ar ... ntu/stable
https://launchpad.net/~minetestdevs/+ar ... ily-builds
Thanks for posting this. The reason I went with the buster backports repository was because I couldn't find minetest-server in the ubuntu PPAs, and I couldn't find the dependencies, either. Now I know better.
FrostRanger wrote:
Sat Feb 20, 2021 03:53
I would also like to point out that installing the minetest server package is mostly redundant anyways as you can start the regular client in server mode my doing
systemctl start minetest.service

The advantage of just using the regular client in server mode is that you can run a server using the latest version of minetest where if you use the minetest server package you will be stuck at 5.0.
I have questions about this. I was under the impression that it's better to run minetest-server, rather than minetest client, when the machine was a dedicated Minetest server. I'm running my Minetest server on AWS, so I don't have access to a GUI, only the terminal. You mention a terminal command for running the client in server mode, but does this use more system resources than running minetest-server? How would I log in as the server admin to do things like grant privileges, give items, etc., if the server is running in the client, and I don't have access to the server's GUI (it might not even have a GUI)?

My post several months ago was from the standpoint of a complete beginner to servers (I'm still a complete beginner, imho), and I was trying to help other newbies avoid the issues I was having. If I have an Ubuntu server in AWS Lightsail, and I want to use it to host a Minetest game, what's the best way to go about that? Using the client in server mode, or using minetest-server? The server instructions I followed only mentioned the client in passing, which is why I went with minetest-server.