I'm messing with Minecraft to see if I can setup a server for my Daughter. These are a few notes about the setup.
My VPS is running Debian. Here's the command to install Java from the nonfree repository (which was already in my /etc/apt/sources.list file).
sudo apt-get install sun-java6-jre
I've installed minecraft in the following directory.
/opt/minecraft
I believe that's the correct place to put it, based on the Filesystem Hierarchy standard.
My VPS only has 512M of RAM. This is well below the recommended amount (2GB) for Minecraft. The following command starts the Minecraft server with 32M of RAM and allows up to 448M total (leaving 64M for other things).
java -Xms32M -Xmx448M -jar /opt/minecraft/minecraft_server.jar nogui
You can also run it through nohup with the following command.
nohup java -Xms32M -Xmx448M -jar /opt/minecraft/minecraft_server.jar nogui
Or through screen with the following.
screen -dmS minecraft java -Xms32M -Xmx448M -jar /opt/minecraft/minecraft_server.jar nogui
If you have run it through screen you can see (reconnect to) the minecraft server's command prompt with the following command.
screen -r minecraft
The server gives the following error on startup. For now, I'm ignoring the error because I don't want to pay for a server with 2G of RAM.
[WARNING] **** NOT ENOUGH RAM!
Although it's not specific to Minecraft, I would also like to setup a way for players to chat with headsets. Mumble might be the option.
Connections can be made to the following URL.
x.joeldare.com