Featured Post

HOW TO: Install VPN server on Ubuntu when server is behind firewall

The whole point in this post is to run your own VPN service, and allow you to connect remote devices to your home network. To start off yo...

Oct 8, 2017

HOWTO: Setup Minecraft Server on Raspberry Pi 3



Download the Rasbian Lite IMG:

https://www.raspberrypi.org/downloads/

Use Etcher to write the image to your microSD card.

https://etcher.io

Once written boot up Raspbian in your Pi and carry out the following:

Configure your wireless connection if needed:

wpa_passphrase "ESSID" "Password" | sudo tee -a /etc/wpa_supplicant/wpa_supplicant.conf > /dev/null

Where ESSID and Password are wireless network name and connection password respectively.

Upgrade your system:

sudo apt-get update
sudo apt-get upgrade

Install Java:

sudo apt-get install oracle-java8-jdk

Enable SSH via Interface Options

sudo raspi-config

Finish and Reboot

Install Nukkit (the git clone link by default would be https://github.com/Nukkit/, but it didn't support the latest Minecraft version so I found another fork and specific branch)

sudo apt-get install -y git
sudo apt-get install -y maven
git clone -b GT1.2 https://github.com/Creeperface01/Nukkit.git
cd Nukkit
git submodule update --init
mvn clean
mvn package

Now run for the first time and setup the appropriate language:

/usr/bin/java -jar /home/pi/Nukkit/target/nukkit-1.0-SNAPSHOT.jar

Now run the server at boot by adding a command to crontab:

crontab -e

Paste the following into crontab:

@reboot sudo /usr/bin/java -jar /home/pi/Nukkit/target/nukkit-1.0-SNAPSHOT.jar

If you want to access this from anywhere in the world, and not just your local network then your should have your own domain name, then you can forward all connections to your specific machine. Go into your router, forward the specific port (for me it was 19678) to the IP of the machine running Nukkit.
Post a Comment