With no fuss with specific desktop enviroments and stuff, Installing a Minecraft Server is an easy task on the command line. The hard part is what you will build.
Make sure you have a powerful server machine above 3.7Ghz and 8G of RAM.
For this Tutorial, We will be using openjdk and a command line window seperator called screen
To install OpenJDK: Do
sudo yum install java-1.8.0-openjdk screen
First, update your apt repo package list, then get openjdk8.
sudo apt-get update sudo apt-get install openjdk-7-jre screen
pacman -S jre8-openjdk screen
Now let’s make a directory, because it’s about to get messy.
mkdir minecraft && cd minecraft
Now let’s get’s get the latest version. You can update your server by stopping it, downloading the new server, and restarting it. You can download the latest version at mcversions.net There are two types of servers, snapshot and stable.
wget -O THE_URL.RANSOM.jar
Now we make a bash startup script. If it crashes, it auto restarts. Let’s name it
while : java -Xmx1024M -Xms1024M -jar THE_URL.RANSOM.jar nogui done
We can start the server with
screen -S start.sh and exit the window with
CTRL + A then push
D Directly after. This causes it to run in the background. We can resume it using
screen -r to view the avaliable screens, then
screen -r PID to get back in.
The server will crash on the first run, so first change the eula.txt text from
eula.true and save.
Then, Re-start by stopping the server and restarting.
We can also configure the world and other settings in
For more info, see the Minecraft Wiki on this issue..
This article was contributed by kylerschin.