Minecraft Server on Raspberry Pi 1.8.9





Introduction: Minecraft Server on Raspberry Pi 1.8.9

Minecraft 1.8 Server on Raspberry Pi!

Here are the things you are going to need to download before we begin-

Win32DiskImager and Putty

In this tutorial I will explain how to create and run a full 1.8 Minecraft server on the Raspberry Pi, completely headless! I will be using the Raspberry Pi B+ model for this project,(This should work with newer versions as well) and a 16gb microsd card. However, 4gb is plenty for the server. This will be a very in-depth guide, as I hope to make this possible for the people who are not as familiar with the Raspberry Pi. Enjoy!

Step 1: Installing Raspbian

You can download Rasbian Jessie here. Create a new folder on your desktop (or wherever), and once Rasbian is done downloading, extract the .zip file into the folder.

Then, insert your MicroSD card and open Win32Disk Imager.

Click on the blue folder and navigate to the file you put the Raspian image in. Click on the Image.

On the device tab, make sure you have the correct card selected, the click write.

Now, insert your car into the slot on the Raspberry Pi, then connect Ethernet and power.

Step 2: Finding the Pi's IP, Headless

Once your Pi is powered up and connected to the internet, get back on your computer and open cmd.

Do this by going to Start - type "cmd" -Enter

Now in command prompt, type: ipconfig

Write down or copy your default gateway, then put it in your browsers URL box.

This should take you to your router, every service provider is different, but there should be a section for devices.

Find the device named raspberrypi and the Pi's IP should be right there.

Step 3: Using Putty SSH

In order to access your Pi' headless, you need to use Putty.

Open Putty

Under host name, add the Pi's IP you found earlier. Make sure SSH is selected and the port is 22.

Click open

And you're in! It may give you a warning, this is normal, just click Ok.

The username is pi and the password is raspberry

Step 4: Updates, Java, and Settings

Before you can begin with the server setup, there is a few things you need to do.

First check for updates:

sudo apt-get update

Then, install the updates:

sudo apt-get upgrade

This may take a while.

Java: The most recent version of Raspbian comes with Java pre-installed, so just check the version to make sure we have the correct version of Java:

java -version

Settings: We are going to need to re-size the SD card in order to make sure we have enough room to install the .jar file to run the server:

sudo raspi-config

This will open up the config menu. Find Expand Filesystem. Hit enter. Finish. Then reboot.

Step 5: Server Setup

Now we can move on the setup. First you need to create a file to house the server:

sudo mkdir Server

Now you can move to it using:

cd Server

Now that you are in the file you need to download the .jar file for the server:

sudo wget https://s3.amazonaws.com/Minecraft.Download/versio...

Now run it using:

sudo java -jar minecraft_server.1.8.9.jar

Let it run for a while. Once it's done running. You should get and error that says eula.txt is set to false. To fix this:

sudo pico eula.txt

Change the setting from false to true.

Now, once all of this is completed go to the config panel and set overclock to high. (This is to prevent lag, and I highly recommend getting a case with a fan for your Pi, such as this.) Finish and reboot.

Step 6: Start Up the Server an Connect!

For the final step, lets actually run the server! First navigate to the server file again-

cd Server

Now you can run it!

sudo java -Xms32M -Xmx512M -jar minecraft_server.1.8.9.jar

(NOTE: -Xms and -Xmx may be different depending on your Pi. Ex) B+ Model has 512mb of RAM but the Pi 2 has 1gb)

Now you can connect on your local network using your Pi's IP address, but anyone outside your network must use this.

You are done! I hope this tutorial was helpful!



    • Epilog Challenge 9

      Epilog Challenge 9
    • Paper Contest 2018

      Paper Contest 2018
    • Science of Cooking

      Science of Cooking

    We have a be nice policy.
    Please be positive and constructive.




    Thanks for the instructable! I finally got around to doing it. But the lag is so bad it is unplayable. During the holiday break I tired it again but with different server software. It works great now! I used spigot, which is made for performance.

    My RPi 3 is saying it can't be overclocked. Is that a new problem or just my Pi?

    Is there any way to install plugins (just a few) on this server?

    Hey there, great guide! The only problem I have is when it happens to be running, I am getting errors saying that it can't keep up, and then saying it is skipping ticks. Is the only way to fix this by overclocking it to high? I currently have it overclocked to medium, because I don't have an easy way of keeping the RPi cool.

    I'm having the same problem with mine overclocked to high. It helped when i turned down the render distance but I still get that message.

    I am not sure what you mean with

    "Now you can connect on your local network using your Pi's IP address, but anyone outside your network must use this."

    Do I use ipchicken on my pi or on any computer in my network?

    Anyone on the same network as the server uses the pi's ip. Anyone outside the network uses the ip in ipchicken(You must port forward first). Hope this clears it up.

    Hi I don't get which value we have to use on the last command ... SInce I have a Pi 2 what should I type for the Xms and Xmx value ?

    sudo java -Xms32M -Xmx1008M -jar minecraft_server.1.8.9.jar (or 1.9.jar, I have that)