Minecraft Server Installation on Ubuntu

28 Aug

A friend of mine introduced me into minecraft and it’s really cool. Though from a developer perspective, a java based game and server let me get pickles all over the butt…

Well, because of the whole JAVA background, minecraft is not very ressource saving, so plan to get a “good” enough server. If you are hosting it at home, don’t even think about ATOM or stuff, just go for a small AMD Dual Core or Intel Sandy Bridge system. It consumes some more power, but it’s worth it. If you are using a old system and want to host some more players, take a dualcore with minimum of 2 GHZ and 2-4GB of Ram to get it quite fluently. HDD is between 20-80GB, depending on the size and players of your world.

Well, I setup a new Ubuntu 10.04 server from scratch and updated the basics to their latest packages. So that it’s ready to get to the minecraft part.
As a quick start get those packages:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install openssh-server vim

To get the needed Java binaries/packages, you will need to add a repository to your apt. Do this by

vim /etc/apt/sources.list

and add the following two lines to it:
deb http://archive.canonical.com/ubuntu lucid partner
deb-src http://archive.canonical.com/ubuntu lucid partner

If you are running any other version of ubuntu than 10.04 than take a look at the different pathes

Now you need to update your package lists again and download the packages:

sudo apt-get update
apt-get install sun-java6-bin sun-java6-jdk sun-java6-jre

The packages are around ~70MB huge, so dependent of your internet connection you may take a coffee break…

Check that java is correctly install with

 gr3yh0und@ubuntu:~# java -version

and should see something like this:
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
J ava HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)

Now download the minecraft server with

wget http://www.minecraft.net/download/minecraft_server.jar?v=1314533852047

and start the server with

 java -Xmx1024m -Xms1024m -jar minecraft_server.jar nogui

Now all the config files, scripts and the start world will be generated. Now your basic server should be available. Just open your Minecraft client, connect to the server ip and after joining the world, enter “op” into the server console, so that you are allowed to build.

That’s it. Maybe more tutorials about configs are coming soon.

Thanks to firestorm for his older blog post, which I mostly adopted to my case.


Leave a Reply

Your email address will not be published. Required fields are marked *