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 😉
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.
Installation is simple :
- Updating the raspberryapt-get update && apt-get upgrade
- 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
- 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
- Install ittar zxvf jdk-8-ea-b36e-linux-arm-hflt-29_nov_2012.tar.gz
- Go to the home directory (/root home) and create a minecraft directoryCD/rootmkdir minecraftCD minecraft
- 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
- We have to start the server
- For the 256 MB/opt/JDK1.8.0/bin/Java - Xms175M - jar craftbukkit.jar
- For the 512 MB/opt/JDK1.8.0/bin/Java - Xms300M - jar craftbukkit.jar
- 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.
- Create the plugins directorymkdir/root/minecraft/plugins && CD/root/minecraft/plugins
- We will install the plugin NoSpawnChunk to improve performancewget http://dev.bukkit.org/media/files/586/974/NoSpawnChunks.jar
- 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 …
- 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.
The installation is very simple :
- Updating the raspberry
apt-get update && apt-get upgrade
- 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 😉 )
- Install the packages needed to compileapt - get install libncurses-dev libnoise-dev libevent-dev libssl-dev git-core make gcc g cmake
- Cloning project in the root directoryCD/rootgit clone git://github.com/fador/mineserver.git
- Compile the serverCD mineservercmake .make
- Once finished compiling, You can change the configuration in the bin/config.cfg file
- 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 !
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 ! 🙂 )