Install your own Minecraft Server (including the 256Mb version)

Today I present to you a tutorial that you've already certainly all seen, read and reviewed ! Je viens un peu après la guerre mais ça pourra peut être servir à certains 😉

Minecraft

You've certainly all seen that Raspberry Pi has a version of Minecraft who is clean and who is free. This version is based on the same functioning than iOS and Android devices. My daughter has become crazy (Although addicted would be a better term !)

Le Raspberry de 512Mo étant utilisé comme serveur domestique, I only had one 256 MB available to my tests. So I tried the servers

  • mineserver (available here). Server to compile itself, in C , announced as being very efficient.
  • craftbukkit (available here). In Java, ready to use with a multitude of plugins and a large number of features.

In both cases I left a Moebius distribution (see this article to install it) to be with the bare minimum.

Server craftbukkit

minecraft-3

Installation is simple :

  1. Updating the raspberryapt-get update && apt-get upgrade
  2. Give the maximum memory to the system via raspi-config. At home I have 4 MB GPU. A priori can be put even 1 MB but I have not tested
  3. Download the JDK 8 for ARMCD/opt wget http://www.Java.NET/ download/JavaFXarm/jdk-8-ea-b36e-linux-arm-hflt-29_nov_2012.tar.gz
  4. Install ittar zxvf jdk-8-ea-b36e-linux-arm-hflt-29_nov_2012.tar.gz
  5. Go to the home directory (/root home) and create a minecraft directoryCD/rootmkdir minecraftCD minecraft
  6. Download the latest version of the server. I got the beta version of development to be compatible with the client 1.5.1 officialwget http://DL.bukkit.org/downloads/craftbukkit/get/02084_1.5.1-r0.2/craftbukkit-beta.jar o craftbukkit.jar
  7. We have to start the server
    1. For the 256 MB/opt/JDK1.8.0/bin/Java - Xms175M - jar craftbukkit.jar
    2. For the 512 MB/opt/JDK1.8.0/bin/Java - Xms300M - jar craftbukkit.jar
  8. The server will generate the world. It will last a good 10 minutes. Once the created world, is not log on because it's going to be extremely slow.
  9. Create the plugins directorymkdir/root/minecraft/plugins && CD/root/minecraft/plugins
  10. We will install the plugin NoSpawnChunk to improve performancewget http://dev.bukkit.org/media/files/586/974/NoSpawnChunks.jar
  11. Side configuration happens in the file minecraft/server.properties. If you do not account Minecraft, you need to change the option ' online-mode’ by putting false to skip the control. However if the server is open to the outside, anyone can log on and partying …
  12. Here you can start your server. Go to http://plugins.bukkit.org for a large selection of plugins

I find the possibilities of this server really very nice. The party is performance really very limited and regular crashes on a Raspberry Pi with 256 MB following a lack of memory.

Server Mineserver

minecraft-2

The installation is very simple :

  1. Updating the raspberry
    apt-get update && apt-get upgrade
  2. Donner le maximum de mémoire au système via raspi-config. At home I have 4 MB GPU. A priori can be put even 1 MB but I have not tested (et hop copier-coller 😉 )
  3. Install the packages needed to compileapt - get install libncurses-dev libnoise-dev libevent-dev libssl-dev git-core make gcc g cmake
  4. Cloning project in the root directoryCD/rootgit clone git://github.com/fador/mineserver.git
  5. Compile the serverCD mineservercmake .make
  6. Once finished compiling, You can change the configuration in the bin/config.cfg file
  7. It remains to launch the server waiting first for the generation of world/root/mineserver/bin/mineserver

Voilà ! Simple, fast and efficient. However many options in less than craftbukkit and few plugins. But on a 256 MB it argues very well !

Conclusion

Two servers that do what they are asked but with really different performance. If you have a 512 MB I recommend CraftBukkit which allows a nice customization. If you have a 256 MB or if you want to host many crafteurs then mineserver is what need you.

Left to wait with the Pocket Edition version compatibility ! And there will be the top (especially for the Lady at home ! 🙂 )

 

You may also like...

  • GilDev (@GilDev)

    Namely that PocketMine to make servers for Minecraft Pocket Edition, and that it works on Raspberry Pi : http://www.pocketmine.net/ =)

    • Thank you thank you thank you !!! Must I tested it more quickly, genus now ! 🙂

      • vincentime2000

        Hello !

        If you manage to master PocketMine, could you do a top tutorial please ? because I have a little trouble with him with regard to backups of the map ! Merci 🙂

        • Il est ajouté à la liste des prochains articles 😉

  • PiR

    Hello,

    I managed using your tutorial and others to create a Minecraft on my Pi Server.

    After several tries, I turned to Spigot, an optimized variant of Bukkit which retains compatibility with plugins. I don't know if it runs better, but I no longer have the “Can't Keep Up !” that posted me Bukkit initially.

    I am trying to automate the launching of the server at the start of the Pi, but the scripts I found on the Internet is not working, and I can't understand how they are trained.

    I should mention the specifics of my server over your and to those piece scripts to automate : the server was created in a dossier spigot where also the executable spigot.jar and plugin folder. So everything is in/root/spigot.

    I start the server with the following commands :

    “CD spigot

    /opt/JDK1.8.0/bin/Java - Xms300M - Xmx450M - jar /root/spigot/spigot.jar nogui”

    How procederiez - you for that Pi makes these commands at startup ?

    Thanks in advance.

    PiR

    • Hello,

      Thanks for the name of spigot. But on my side it crashed very often on a 256 MB so I left fell.
      For the startup script, There is one here : http://wp.me/p2W3Jj-3o
      It must replace the launching of Inadyn in the block start by your command. I do not think that the ' cd spigot’ is useful because the full paths to java and the jar are in the command line
      Bon jeu 🙂

  • Thanks again for this tutorial !
    I have however a few performance issues (animals argue with strong lags, I nep them not the tuers, ..), translated by this message on the server that is used frequently :
    [WARNING] Can't keep up! Did the system time changes, Gold is the server overloaded?

    And more, in Zhao-config > Memory Setup, I was unable to allocate memory like you, I did that 3 choice :
    ARM / VideoCore
    224 MiB / 32 MiB (selected)
    192 MiB / 64 MiB
    128 MiB / 128 MiB

    I do not know if you know if there is another way to configure more precisely this allowance ?
    I did a ps to see just what it consumes : I'm certainly enjoying not any performance of my Raspberry ?
    %CPU 69.8
    %MEM 50.1
    VSZ 422304
    RSS 249340 PTS/0
    COMMAND /root/jdk1.8.0/bin/java - Xms300M - jar craftbukkit.jar

    Thanks again for this tutorial and your help, I'm not still most comfortable with Linux !

    • You can change the allocation in the file /boot/config.txt with a different value in gpu_mem. It can go up to 1 for 1 MB if you don't ever use the GPU

    • As you updated raspi-config ? It allows to set the ready MB the GPU/System Division (Option 8 then A3)

      • Thank you, I just update, in fact I had not all menus !
        I also put - Xms300M to 500, it lags slightly less but still a little too much to be able to play. Toi, It's really fluid ? If this is the case it gives me hope, I'll have to be able to find a trick !

        • It is fluid but ca bug at launch. Is the - Xmx also to change I believe

          • VAC. I'll persevere.
            Thanks again, je garderai ton site sous le coude 🙂

Handpicked links

disk Page Caching using disk: enhanced Database Caching 207/489 queries in 0.546 seconds using disk Served from: pihomeserver.fr @ 2017-06-22 17:21:00 by W3 Total Cache -->