/RaspberryPiMinecraft

Configuration files and performance testing scripts to setup and optimize a dedicated Minecraft (PC Java version) server

Primary LanguageShell

This script will automatically download and configure the Paper Minecraft 1.12 server on your Raspberry Pi!
For the full article and guide visit https://www.jamesachambers.com/2019/02/raspberry-pi-minecraft-server-script-with-startup-service-1-12/

German (DE) version and article by Marc Tönsing:
Eine deutsche Anleitung für die Konfigration eines Raspberry Pi mit Paper als stabiler Minecraft Server findet ihr hier:
http://marc.tv/stabiler-minecraft-server-raspberry-pi

To get started type:
wget -O SetupMinecraft.sh https://raw.githubusercontent.com/oschlueter/RaspberryPiMinecraft/master/SetupMinecraft.sh
chmod +x SetupMinecraft.sh
./SetupMinecraft.sh

Version History

February 18th 2019
-The SetupMinecraft.sh script will now update all of your scripts to the latest version when ran and reinstall the startup service
-Implemented a workaround for Java 9 installation since the ca-certificates-java package broke in Raspbian on the 16th

February 15th 2019
-Server now starts correctly on Raspbian Full (Raspbian Lite still highly recommended due to more available memory)
-Added network connectivity check before attempting to update server - skips update if no connection available to prevent .jar corruption
-Service now waits up to 20 seconds for network connectivity before starting up to prevent service starting before server gets an IP address
-Fixed typo in stop.sh that was causing server to say it wasn't running when it was
-Removed unnecessary sleep time on stop.sh script so it returns as soon as the minecraft server closes
-Added automatic backups performed when server starts (located in minecraft/backups)

February 9th 2019
-Added check to make sure service isn't already running when started

February 3rd 2019
-Added optional service configuration to start minecraft automatically on boot
-Added optional daily reboot configuration via Cron in setup script
-Added a check in the installer to make sure Java was installed properly before continuing
-Installer script now goes into the started screen window after installation
-Server now checks for updates to the server on startup

February 2nd 2019
-Script now checks to make sure we are running on the ARMv7 CPU architecture with 1024MB of RAM to ensure Java 9 works
-Script helps you overclock SD card and change gpu_mem to 16MB
-Increased memory usage of server from 800MB to 850MB due to gpu_mem tweak
-Improved reliability and validation checks on setup script