Raspberry Pi as minecraft server

Minecraft┬áis a very innovative game. It has big game worlds, lovely graphics and nearly infinite blocks to set. So you can be very creative. I also wanted to create my own world. So I created my own minecraft server…on my raspberry pi.

Preparation

Minecraft was created with Java, so you really need a virtual machine to run the game. Java is normally not installed on a raspberry pi, so the first step is to install a java vm. First we check which Java vm version we have:

If Java is not installed, then you will get an error message. We want to install the Java SDK. Currently version 7 is available, but this version is not a good one. So if you do not want to run into problems, you should install version 6 of Java 1.6:

Installation

You can find the minecraft server on the homepage. There we copy the link and use it to get it from console mode. At your raspberry pi you can download the server on command line with this command:

Thats it!

Configuration

You can do configuration in the server.properties file. You can find this file after your first server start in the same directory as the server JAR file. For this we have to start our minecraft server. You can do it from command line with this command:

Here we set some params. First we do not want a gui, so we set a nogui to run it on command line. We also have to set some settings for your RAM memory. Your raspberry is very limited to memory. You may only have 512 MB RAM, so we have to inform our vm, that it should use 32 MB and a maximum value of 256 MB. If you don’t limit the memory size, you will fall into serious problems. If the raspberry starts to swap memory to your SD card the game would get really really slow.

After the start up you should find your server in local LAN. If you also want to play over internet, you can also set up your router to do that. Look at my article about the FreeCiv Server. There you find the solution. You only have to change the port to 25565.

(Visited 285 times, 1 visits today)

8 Responses

  1. jocuri cu mario 2011 says:

    Hi would you mind sharing which blog platform you’re working with? I’m looking to
    start my own blog soon but I’m having a hard time making a decision between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your design seems different then most blogs and I’m looking for something completely unique.

    P.S Sorry for being off-topic but I had to ask!

  2. rome ii total war keygen says:

    Hi, everything is going nicely here and ofcourse every one is sharing facts, that’s actually excellent, keep up writing.

  3. splinter cell blacklist setssplintercell6freetier1links.txt%# says:

    Greetings from Ohio! I’m bored at work so I decided to check out your blog on my iphone during lunch break. I really like the info you provide here and can’t wait to take a
    look when I get home. I’m amazed at how fast your blog loaded on my phone .. I’m not even using
    WIFI, just 3G .. Anyhow, very good blog!

  4. Phileas Hog says:

    Hi there, just became alert to your blog through Google, and found that it’s
    really informative. I’m going to watch out for brussels.
    I’ll appreciate if you continue this in future. A lot of people will be benefited
    from your writing. Cheers!

  5. online business finance says:

    Good post. I learn something new and challenging on sites I stumbleupon on a daily basis.
    It will always bee helpful to read through articles from oter
    authors and use a little something from other sites.

  6. human being says:

    it crashed my pi when I was prepareing the spawn area

  7. John says:

    Hi
    Does anyone know how I can use my own world files instead of having the server generate a new world?

    Thanks

  8. Rhambo Tern says:

    It works, but the Raspi is very slow, it has already problems with 1 player…

Leave a Reply

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