Create Dedicated Minecraft / Spigot Server – PC Linux

This guide was created on CentOS 7 and Debian 9

It is assumed that you have git and java installed already.

Firstly create a new user and group to run the killing floor server

sudo useradd -m minecraft -p PASSWORD

Now, let’s create the group

sudo groupadd minecraft

And, let’s add our new minecraft user to the new minecraft group

sudo usermod -a -G minecraft minecraft

Now we can log in as the user and do all of the work in their home directory.

You will need to install Java on your system before you proceed.

mkdir buildtools
mkdir minecraft
cd buildtools
wget https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
git config --global --unset core.autocrlf
java -jar BuildTools.jar
cp spigot-*.jar ../minecraft/minecraft.jar
cd ../minecraft

Now, let’s run the server to generate the config files

java -Xms1G -Xmx1G -jar minecraft_server.jar nogui

Press CTRL+C to quit the server and now we can edit the server.properties to our liking

vi server.properties

You will also have to edit the eula.txt to agree to the license.

vi eula.txt

Change false to true!
Launch your server again when you are ready!

java -Xms1G -Xmx1G -jar minecraft_server.jar nogui

Don’t forget to open port 25565 & 25566 in your firewall and router!

Print Friendly, PDF & Email

More Like This


Categories


Game Servers

Tags


  • Post a comment