Setting up a MC server on Ubuntu Server 19.04
Solution 1:
Therefore, I'd like to ask what dependencies I NEED to install, and why?
You only need the JRE (preferably Java 8). This is the openjdk-8-jre-headless package on Ubuntu. You can download the server file on minecraft.net.
Then you run it like this:
$ java -Xmx1024M -Xms1024M -jar server.jar nogui
Where
-
-Xmx1024M
says that the server can use no more than 1024MB. -
-Xms1024M
says that the server initially starts with 1024MB. -
server.jar
is your Minecraft Server jar that you dowloaded -
nogui
specifies that the gui is not opened. This is needed for headless since it can't open if there is no window manager.