Posted By

stevedecoded on 07/20/12


Tagged

Bash server ubuntu minecraft 64bit x64


Versions (?)

Run Minecraft server on Ubuntu x64


 / Published in: Bash
 

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

  1. #!/bin/bash
  2.  
  3. wget http://www.minecraft.net/download/minecraft_server.jar
  4. wget http://download.oracle.com/otn-pub/java/jdk/7u5-b06/jre-7u5-linux-x64.tar.gz
  5.  
  6. tar zxvf jre-7u5-linux-x64.tar.gz
  7.  
  8. mkdir -p -v /opt/java/64
  9.  
  10. mv jre1.7.0_05 /opt/java/64
  11.  
  12. chown -R root.root /opt/java/64/jre1.7.0_05
  13.  
  14. update-alternatives --install /usr/bin/java java /opt/java/64/jre1.7.0_05/bin/java 1
  15.  
  16. rm jre-7u5-linux-x64.tar.gz
  17.  
  18. java -Xincgc -Xmx2G -jar minecraft_server.jar nogui

Report this snippet  

You need to login to post a comment.