Return to Snippet

Revision: 58547
at July 21, 2012 02:26 by stevedecoded


Updated Code
#!/bin/bash

wget http://www.minecraft.net/download/minecraft_server.jar
wget http://download.oracle.com/otn-pub/java/jdk/7u5-b06/jre-7u5-linux-x64.tar.gz

tar zxvf jre-7u5-linux-x64.tar.gz

mkdir -p -v /opt/java/64

mv jre1.7.0_05 /opt/java/64

chown -R root.root /opt/java/64/jre1.7.0_05

update-alternatives --install /usr/bin/java java /opt/java/64/jre1.7.0_05/bin/java 1

rm jre-7u5-linux-x64.tar.gz

java -Xincgc -Xmx2G -jar minecraft_server.jar nogui

Revision: 58546
at July 20, 2012 08:27 by stevedecoded


Initial Code
#!/bin/bash

wget http://www.minecraft.net/download/minecraft_server.jar

apt-get install openjdk-6-jre

java -Xincgc -Xmx2G -jar minecraft_server.jar nogui

Initial URL

                                

Initial Description
Boot Minecraft on an Ubuntu 64-bit instance with 2GB of RAM

Initial Title
Run Minecraft server on Ubuntu x64

Initial Tags
Bash, server, ubuntu

Initial Language
Bash