Skip to content

Instantly share code, notes, and snippets.

@4lun
Created August 29, 2017 06:48
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 4lun/4d2848400ac5be6ed99c699b6d9a8065 to your computer and use it in GitHub Desktop.
Save 4lun/4d2848400ac5be6ed99c699b6d9a8065 to your computer and use it in GitHub Desktop.
Install and run a vanilla Minecraft server (1.7.4) on a new install of Ubuntu 16.04
fallocate -l 1G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
apt update
apt install -y screen default-jdk
wget https://s3.amazonaws.com/Minecraft.Download/versions/1.7.4/minecraft_server.1.7.4.jar
ln -s minecraft_server.1.7.4.jar minecraft_server.jar
screen -S minecraft
java -Xmx1024M -jar minecraft_server.jar nogui
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment