Quick guide to create and run your own Minecraft PE server using NukkitX
The guide was created on a Debian 9 server but most distro’s should be very similar.
It is also assumed that you have at least “Java 8” installed along with “screen”
I’d recommend creating a user just for running nuxxitx or for minecraft in general, it’s not a necessary step but just good practice with security in mind!
sudo adduser nuxxitx
Then set the password for the new nukkitx user account
Now, log back in as user nuxxitx or sudo to that user
Create a directory called nuxxitx in the users home directory
mkdir nuxxitx
Download the latest version of nuxxitx from here https://ci.nukkitx.com/job/NukkitX/job/Nukkit/job/master/
or wget if you know the url
cd nukkitx wget https://ci.nukkitx.com/job/NukkitX/job/Nukkit/job/master/lastSuccessfulBuild/artifact/target/nukkit-1.0-SNAPSHOT.jar
We now need to run the file once to create the server.properties file that we will need to edit.
java -Xms1G -Xmx1G -jar nukkit-1.0-SNAPSHOT.jar
Press CTRL + C to quit the server
Make any changes that you require to the server.properties file such as port, server name etc.
Now let’s create a script to start and stop the server in a screen session
Using any editor create a file called start.sh
#!/bin/sh screen -d -m -S nuxxitx java -Xms1G -Xmx1G -jar nukkit-1.0-SNAPSHOT.jar
Change Xms1G and Xmx1G if you need more RAM (Xms is minimum and Xmx the maximum allocated)
Make the script executable
chmod +x start.sh
Now launch the server!
./start.sh
To stop your server just use:
screen -S nuxxitx -X kill