How-to Setup a Minecraft Server on a VPS

Minecraft is an addictive game played by millions worldwide. You have a character in a virtual world that slowly starts out gathering basic resources (mining) and crafting everything from wooden boards to computers. The possibilities are endless and you can create your world to suit anything your imagination desires.

Over the years there have been many Mods developed for Mincraft. We will be using some of these mods in this tutorial, mainly Feed the Beast, FTB. More on that later.

Another great aspect of the game is its multiplayer, so it can be enjoyed by a group of friends. For group play most groups setup their own Minecraft server to host their groups virtual world.

In this Post we will detail how you can setup your VPS to become a Minecraft Game Server. You will need a copy of Minecraft, which you can get from https://minecraft.net.

The first thing you need to do is get a VPS. Any linux VPS will do, we prefer CentOS. If you need more information on setting up a VPS take a look at our previous post How-to Setup a Virtual Private Server.

Once you have your VPS Setup you will need to SSH to it.

[code]
ssh root@IPADDRESS
[/code]

You will need to install Java JRE from java.com

[code]
rpm -Uvh FilenameOfJavaDownload.rpm
[/code]

Next up you need a Minecraft server, but your also going to need an easy way to mange it. I highly recommend an awesome program called McMyAdmin.

McMyAdmin is a web interface and administration utility for Minecraft Survival Multiplayer (SMP) servers. It lets you monitor the servers status, chat with users, manage groups and permissions, schedule events, perform updates and more. Its really easy to get up and running here is how.

First download the Minecraft 2 Supplemental files as root

[code]
<pre>cd /usr/local
wget http://mcmyadmin.com/Downloads/etc.zip
unzip etc.zip
rm etc.zip
[/code]

Next as a non-root user do this:

[code]
mkdir ~/McMyAdmin
cd ~/McMyAdmin
wget http://mcmyadmin.com/Downloads/MCMA2_glibc25.zip
unzip MCMA2_glibc25.zip
rm MCMA2_glibc25.zip
[/code]

Next to run the server enter the following command

[code]
./MCMA2_Linux_x86_64 -configonly -setpass NEWADMINPASSWORD
[/code]

If you would like to run your server in the background so it does not die when you exit your SSH session, you can use screen to accomplish this

[code]
screen ./MCMA2_Linux_x86_64
[/code]

By Default, McMyAdmin only listens on the localhost or loopback address of the server, 127.0.0.1:8080. So in order to connect to it you will need to forward a port over ssh to the server from your local machine.

[code]
ssh -f user@IPADDRESSOFSERVER -L 8080:IPADDRESSOFSERVER:8080 -N
[/code]

If everything worked as expected you should now be able to access the administrative interface. You can login using the default user and password admin/admin by opening a web browser and opening this URL http://127.0.0.1:8080. You should see a screen like this.
Screen Shot 2013-04-18 at 7.01.18 PM

Once you are logged on you can configure your server to your hearts content. When you start your local Minecraft application when you play, select multiplayer and add the IP address of your VPS and Connect

Of course if you are not that technical, or don’t want to go through all this trouble you can also order a VPS preloaded with Minecraft, and McMyAdmin easily with Zoomcloud.net.

They have an easy to use ordering process for Minecraft Game Servers. If you can use a slider, you can order a Minecraft VPS server and be up and running in minutes.

Happy Minecrafting!


Posted

in

, ,

by

Tags:

Comments

7 responses to “How-to Setup a Minecraft Server on a VPS”

  1. Budget VPS Hosting Avatar

    Well, great tutorial :)

  2. Dale Bruce Avatar
    Dale Bruce

    Hey..Great tutorial. Everything worked perfectly up until the very last part:

    ssh -f user@IPADDRESSOFSERVER -L 8080:IPADDRESSOFSERVER:8080 -n

    When I do this, I get the error: Cannot for to background without a command to execute.

    I’ve tried to google this..but to no avail..any ideas?

    1. tutor Avatar

      Just take the -n off of your command. Instead of forking, you will get a prompt on the system but your port will still be forwarded.

      So like this:
      [code]
      ssh -f user@host -L 8080:host:8080
      [/code]

      Cheers,

      Joe

    2. VPS Tutor Avatar

      Actually I had a typo i the blog post. Should have been an uppercase -N, not -n. I have updated the post above to reflect the correction.

      So you would run something like this:

      [code]
      ssh -f user@host -L 8080:host:8080 -N
      [/code]

      Happy Crafting!

      Tutor

  3. […] requests from our readers for a how-to on setting up a Minecraft PE server. We already covered How-to Setup a Minecraft Server in our previous tutorial. Minecraft PE is very similar but can be played from your iPhone or […]

  4. […] How-to Setup a Minecraft Server on a VPS – VPSTutorial.comvpstutorial.com/how-to-setup-a-minecraft-server-on-a-vpsHow-to Setup PowerDNS on CentOS 6; Setup OpenVPN on CentOS 6; VPS Tutorial – Setup Webmin on a VPS, securely. How-to Setup a Minecraft PE Server on Linux […]

  5. Mike Avatar
    Mike

    Is this the method you would recommend for setting up a minecraft server today, in 2016? Just wondering if this is still your up-to-date recommendation.

Leave a Reply to Budget VPS Hosting Cancel reply

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