Minecraft is a game about placing blocks to build anything you can imagine. At night monsters come out, make sure to build a shelter before that happens. The MinecraftServer module implements the Minecraft server to play in multiplayer mode. Until the MinecraftServer module becomes available, this page shows how to run Minecraft server on your NAS. RequirementsTo run Minecraft you will need
Compatible NAS modelsYou should be able to run the Minecraft server on the following models. Please note that the numbers of parallel players possible much depends on the memory available and the speed of your network connection. To get an idea what should be possible with your NAS model please check out canihostaminecraftserver.com. Port ForwardingTo play over the WAN you need to forward port 25565 (tcp) on your router (providing you use the default port). To use a host name instead of the WAN IP of your router you may want to use one of the dynamic DNS provider. Installing Minecraft ServerThe first thing to do is to install and enable the OracleJRE6 module. Instructions can be found on the modules home page. The next thing to do is to either enable the built in SSH daemon or to install one of the SSH server modules (see Requirements). If you aready have shell access you can skip this step. Now, that we have shell access, we can log on to the NAS. Here we first create a folder to hold the application files and data. You can choose what ever folder you like and even a sub folder on a share will do (just make sure that write access to the share is well restricted). In my example I will use /raid/data/minecraft. (just do not use /raid/data/module/MinecraftServer since this will become the home of the module later on). mkdir /raid/data/minecraft Now we download the server application into the newly created directory (if your NAS does not have access to the web you will have to download the application file from a PC and manually copy it to the NAS: wget -O /raid/data/minecraft/minecraft_server.jar \ Now, lets create a small start/stop script to make live a bit easier: cat >/raid/data/minecraft/minecraft <<END Next we create a server configuration file to override some default values (see here for more details): cat >/raid/data/minecraft/server.properties <<END Restrict accessTo restrict access to the server
OperatorsTo have some users act as operators create a file called ops.txt containing all their user names (one per line). Starting and Stopping the ServerTo start or stop the Minecraft server all you need to do is to execute: /raid/data/minecraft/minecraft start or /raid/data/minecraft/minecraft stop Please note that if you start the server for the first time for a specific world it may take some seconds for it to become ready. |
|||
Attachments
Attachment | Size |
---|---|
![]() Minecraft server start script | 526 bytes |
![]() Minecraft server settings | 1.37 KB |