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-
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.
Under host name, add the Pi's IP you found earlier. Make sure SSH is selected and the port is 22.
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:
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:
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:
Now that you are in the file you need to download the .jar file for the server:
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-
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!
We have a be nice policy.
Please be positive and constructive.