Wednesday, 1 January 2014

Use Screen to keep Minecraft Live

in my last post I installed a Minecraft server on my linux box.   Problem is that this is created from a ssh login from the laptop, which then dies when I disconnect.  Solution : use Screen

Reference I used is https://www.digitalocean.com/community/articles/how-to-install-and-use-screen-on-an-ubuntu-cloud-server

ssh into the minecraft server (as in previous post).  Then install screen
sudo apt-get update
sudo apt-get install screen
to start a new screen session
screen
then run minecraft in it
screen -S "Minecraft server"

java -Xmx1024M -Xms1024M -jar minecraft_server.1.7.4.jar nogui
to detach from this session
ctrl-a d
then you can continue to do other things in terminal.  When you want to reconnect, ssh back in and type
screen -r
brilliant!

No comments:

Post a Comment