Skip to content

Instantly share code, notes, and snippets.

@originalhat
Last active October 8, 2015 03:30
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 originalhat/b0811e9385ffb5230b22 to your computer and use it in GitHub Desktop.
Save originalhat/b0811e9385ffb5230b22 to your computer and use it in GitHub Desktop.
EC2 Minecraft Server

EC2 Minecraft Configuration

Initial Setup

yum install java-1.8.0-openjdk.x86_64

yum erase java-1.7.0-openjdk

wget https://s3.amazonaws.com/Minecraft.Download/launcher/Minecraft.jar

yum install xorg-x11-server-Xvfb

Xvfb :1 -ac &

export DISPLAY=:1.0

screen -dmS minecraft java -Xms512M -Xmx512M -jar minecraft_server.1.8.8.jar nogui

Backups

Using: https://github.com/andreafabrizi/Dropbox-Uploader

#!/bin/sh

echo "backup process starting"

ts="backups/$(date +%Y%m%d%H%M%S)/"
sh ./dropbox_uploader.sh -f /home/ec2-user/.dropbox_uploader upload /home/ec2-user/world $ts 

echo "backup process complete"

Daemonizing

TBD...

Docker Image

TBD...

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