Minecraft Server Notes

I'm messing with Minecraft to see if I can setup a server for my Daughter. These are a few notes about the setup.

Installing the Java Runtime Environment (JRE)

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

Install Directory

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.

512M of RAM

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!

Conference Setup

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.

Subdomain

Connections can be made to the following URL.

x.joeldare.com
comments powered by Disqus
minecraft_server_notes.txt · Last modified: 2020/06/01 22:53 (external edit)