Skip to content

Instantly share code, notes, and snippets.

@michalvalasek
Last active April 27, 2020 16:23
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 michalvalasek/2182978e7ff9b0bf28592a98d3790b52 to your computer and use it in GitHub Desktop.
Save michalvalasek/2182978e7ff9b0bf28592a98d3790b52 to your computer and use it in GitHub Desktop.
Minecraft Server setup

The basic ubuntu instance on DO is ok. SSH to the instance and:

  1. sudo apt-get update
  2. java -version # should say "No java"
  3. sudo apt-get install default-jdk
  4. sudo apt-get install screen # keep server running when disconencted
  5. mkdir minecraft
  6. cd minecraft
  7. wget -O minecraft_server.jar https://launcher.mojang.com/v1/objects/4d1826eebac84847c71a77f9349cc22afd0cf0a1/server.jar # replace by the newest version
  8. screen -S "Minecraft server"
  9. create eula.txt file with text eula=true
  10. java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui # or create a script that does this

Press <ctrc-a> d to exit the screen session. Reattach to the session with screen -R

Change server settings by editing minecraft/server.properties

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment