Skip to content

Instantly share code, notes, and snippets.

@slashtechno
Last active October 17, 2021 22:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slashtechno/9368f2fbb8c74a705252f57f55bf924c to your computer and use it in GitHub Desktop.
Save slashtechno/9368f2fbb8c74a705252f57f55bf924c to your computer and use it in GitHub Desktop.
Minecraft Server install script (tested on Pi 4, 4gb ram)
#!/bin/bash
mkdir minecraft
cd minecraft
wget https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
# java -Xmx1024M -jar BuildTools.jar for the latest version
java -Xmx2024M -jar BuildTools.jar --rev 1.16.5 #java -Xmx1024M -jar BuildTools.jar --rev 1.16.5
java -Xms512M -Xmx2024M -jar minecraft/spigot* nogui #java -Xms512M -Xmx2016M -jar minecraft/spigot* nogui
rm eula.txt
wget https://gist.githubusercontent.com/slashtechno/7fc6225d3b0023a7b1be7da49e0ca4ce/raw/1ec68a713c7ff8a336d1cc5ad683e80a3ca20b9b/eula.txt
echo run "java -Xms512M -Xmx20242M -jar spigot* nogui" inside the directory "minecraft" to run the server # java -Xms512M -Xmx2016M -jar spigot* nogui
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment