TheRemote / RaspberryPiMinecraft

Configuration files and performance testing scripts to setup and optimize a dedicated Minecraft (PC Java version) server
https://jamesachambers.com/raspberry-pi-minecraft-server-script-with-startup-service/
MIT License
201 stars 52 forks source link
dedicated-game-server dedicated-server java minecraft minecraft-server papermc raspberry-pi

This script will automatically download and configure the Paper Minecraft server!
For the full article and guide visit https://jamesachambers.com/raspberry-pi-minecraft-server-script-with-startup-service/

Installation Instructions

To get started / install the server type:

curl https://raw.githubusercontent.com/TheRemote/RaspberryPiMinecraft/master/SetupMinecraft.sh | bash

Getting Help

To get help you may open an issue here or visit my web site at https://jamesachambers.com/raspberry-pi-minecraft-server-script-with-startup-service/ which contains lots of comments from myself and users helping each other out!

Changing Minecraft Server Versions

If a new version of Minecraft is out and the script hasn't been updated yet you can change it in the SetupMinecraft.sh script. If you use the command nano SetupMinecraft.sh it will be the first line in the file like this:

Version="1.18.1"
AllowLocalCopy="1"

Make sure to change AllowLocalCopy="1" to tell the script you want to actually run the local copy instead of the latest version.
Note that for this to work the Paper Minecraft server must also have released the latest version or the download will fail. You can check here: https://papermc.io/downloads

Tested Distributions

Troubleshooting Note - Oracle Virtual Machines

A very common problem people have with the Oracle Virtual Machine tutorials out there that typically show you how to use a free VM is that the VM is much more difficult to configure than just about any other product / offering out there.
The symptom you will have is that nobody will be able to connect.
It is because there are several steps you need to take to open the ports on the Oracle VM. You need to both:

Both of these settings are typically required before you will be able to connect to your VM instance. This is purely configuration related and has nothing to do with the script or the Minecraft server itself.

I do not recommend this platform due to the configuration difficulty but the people who have gone through the pain of configuring an Oracle VM have had good experiences with it after that point. Just keep in mind it's going to be a rough ride through the configuration for most people.

Here are some additional links:

Troubleshooting Note - Hyper-V

There is a weird bug in Hyper-V that breaks UDP connections on the Minecraft server. The fix for this is that you have to use a Generation 1 VM with the Legacy LAN network driver.
See the following links:

Buy A Coffee / Donate

People have expressed some interest in this (you are all saints, thank you, truly)

Update History

May 19th 2024

April 27th 2024

January 4th 2024

October 1st 2023

March 16th 2023

January 14th 2023

December 9th 2022

September 20th 2022

September 11th 2022

September 4th 2022

September 2nd 2022

August 26th 2022

August 10th 2022

August 6th 2022

August 4th 2022

August 2nd 2022

July 31st 2022

July 27th 2022

June 15th 2022

June 11th 2022

May 22nd 2022

May 21st 2022

May 16th 2022

May 15th 2022

May 11th 2022

May 10th 2022

May 8th 2022

May 4th 2022

April 24th 2022

April 16th 2022

April 6th 2022

March 24th 2022

March 23rd 2022

March 23rd 2022

March 5th 2022

December 12th 2021

Update_Sudoers

November 30th 2021

September 15th 2021

September 2nd 2021

August 1st 2021

July 27th 2021

July 21st 2021

July 19th 2021

July 17th 2021

July 15th 2021

July 14th 2021

July 8th 2021

July 5th 2021

July 3rd 2021

June 24th 2021

June 19th 2021

June 16th 2021

June 12th 2021

June 10th 2021

March 22nd 2021

March 16th 2021

January 31st 2021

December 5th 2020

September 25th 2020

August 28th 2020

July 4th 2020

January 25th 2020

December 28th 2019

December 20th 2019

August 26th 2019

August 25th 2019

August 24th 2019

July 19th 2019

July 2nd 2019

June 30th 2019

June 1st 2019

May 31st 2019

May 30th 2019

May 19th 2019

April 18th 2019

March 31st 2019

March 9th 2019

March 7th 2019

March 4th 2019

March 2nd 2019

February 18th 2019

February 15th 2019

February 9th 2019

February 3rd 2019

February 2nd 2019