How To Set Up A Minecraft Server On Linux

From Camera Database
Jump to: navigation, search

Apart from being addictive, one of the problems with Minecraft is that you can't "click-and–play" online with friends. In Counter-Strike, for example, you can host a server while you play using only two mouse-clicks - but how do you do you host a Minecraft Server?



Read on to get the full walkthrough of how to set up a Minecraft Server.



The first step for setting up a Minecraft Server is getting the software (or binaries, if you'd like), which can be found here. The file you need will depend on the system you're using, but the JARfile will always work (which is the one we use). If you don't feel comfortable using the command-line and are using Windows, you can download the easy-to-use EXE.



Next is to create the environment for our Minecraft Server. I use Ubuntu on my netbook so I can't guarantee that it will work on other devices. Top minecraft servers But, I'm pretty certain, so keep that thought in mind. Open a terminal window. Type sudo apt–get install openssh–server. This will install an SSH Server and give you remote access to the Minecraft Server via SSH. You can also use PuTTy to connect with Windows.



If you love remote management and are like me, you will also need an FTP Server to transfer minecraft_server.jar. Also, to retrieve the installation later, for backup purposes. Bring up the terminal and go "sudo apt-get install vsftpd". This will require some configuration. Run "sudo nano.conf /etc/vsftpd.conf" after the installation and set "anonymous_enable=NO", "#local_enable=YES", "#write_enable=YES" to remove the "#". What this does is that it only allows users on your machine to connect (you login with your usual name and password) and allow them to write files.



Java is required to run Minecraft Server and Minecraft Server. "sudo-apt-get installer sun-java6–jre" should do the trick. As I said, I am not certain what works for everyone so please leave a comment.



We're done. Open PuTTy, enter the adress and log in. To create a folder called minecraft, type "mkdir minecraft". This is where we will put the Minecraft Server. Open FileZilla (or any other FTP client) and log in. Then, transfer the minecraft_server.jar from /minecraft. If you have a world that you want to import, place it inside /minecraft. To start the server, bring up the SSH once more and type "java.xmx1024M.xms1024M.java minecraft_server.jar.jar nogui". -Xmx defines the maximum RAM java (minecraft servers) can use. –Xms defines the minimum amount. Top minecraft servers However, it doesn't seem that it allocates all of it at startup. If you haven't imported one, Minecraft Server will create a new world. It's possible to test it by joining it.



A few more things to add, but we are almost there. Type "stop" on the Minecraft Server to stop it. This is crucial as it will save everything to the server. You could also run "save/all" to exit the server however I don't recommend it. To edit the config run "nanoserver.properties". Usually you don't have to do this but it might be useful to see what is available. Since I don't feel the need for authentication, I changed "online mode" to false. This is mainly due to the fact that I have some friends who use a hacked version. Some of them purchased Minecraft after having tried it out. It's win-win for us and win-win for the developers.



Note that Minecraft Server is running on port 25565 by default, changing the port is okay, but then users will have to enter the port when connecting - i.e. "192.168.0.111 :xxxx" - use ":" and then the port.



I think that's it! Have fun crafting and mining!