Overclock.net › Forums › Video Games › PC Gaming › [GUIDE] Minecraft Dedicated Linux setup guide
New Posts  All Forums:Forum Nav:

[GUIDE] Minecraft Dedicated Linux setup guide

post #1 of 16
Thread Starter 
Minecraft dedicated linux server guide (Ubuntu)

This guide will detail how to install a dedicated minecraft server with the ability to run headless as well as with remote management capabilities. This will be achived using the Cryengine 3 (nah, I kid).

Actually, we'll be using McMyAdmin (available freely from the author's website,
link below), an open source implementation of the the .NET framework for running windows applications in Linux (its not all that scary actually), and the remote management capabilities of "McMyAdmin" which is free for personal use.

Once set up, this server will be able to do basically anything you could imagine, including painless management of mods and such.


1. Prerequisites/materials
a. Comfort with using the command line. (don't worry, you'll be given all the commands you would use, and there is almost no chance of breaking anything)
b. Compiled version of "mono" - see below on how to set that up
c.SSH on the linux computer (optional, but required if you want to make this a dedicated headless server)
d. VNC (also optional, but required for dedicated headless server)
e. Thought this was implied, but I'll say it anway - Ubuntu desktop. As of this writing, the latest version is 11.04.
f. McmyAdmin - free for personal use. http://www.phonicuk.com/Software/McMyAdmin.aspx

All (most) of the commands that I use below can be used with either the terminal or via SSH

Luckily for you Ubuntu users, mono comes pre-installed, so you don't have to compile it yourself!

However, if you are not running Ubuntu, you should check to see if mono is already installed. If not, its not too hard to install.

PART B: Getting the minecraft server to start.


Make a new folder called minecraft server (its up to you, just remember it).
Download MCmyAdmin and extract the contents of the zip file to that folder. Do NOT rename anything.

At this point that folder should look a little like this:

mcsetup0.png

Then, open up a terminal window and type this in:
Code:
sudo apt-get install libmono-system-web2.0-cil libmono-i18n2.0-cil

At this point, you should be prompted for the root password. Type it in and press enter. Confirm the installation of the packages and let it finish installing.

Then, type these commands in:
Code:
cd Documents/<minecraft folder>
mono McMyadmin.exe

BTW, this HAS to be done locally on the machine until the initial setup is complete. After that, you can manage it remotely.

Let it run through its initialization sequence, you'll probably see a bunch of errors, but that normal. Once that is complete, open up your browser, and navigate to "localhost:8080". While the initialization sequence is running, your screen should look like this:
firststart.png

What should happen is that a screen similar to the one below should appear.
A login prompt should appear, at which point, you should provide the username "admin" and password "admin".

mcsetup1.png

Click "continue" and follow the steps as outlined - set a server name, max players, set if it should be publicly available, etc.

mcsetup2.png

Once you're done setting those up, click "Start from new Template". Pick a world you would like and let the server do its thing. About 30 seconds later, your screen should change from this: mcsetup3.png
to this

mcsetup4.png

PART C: Setting up the server for optimal settings.

Now that you've got the preliminary settings complete, you can go ahead and play on your own server for a bit. Or, you could finish setting everything up completely.

First things first - change the password. Click the "Preferences" tab, and click the "Change Password" option on the left. Enter in the old password ("admin" without the quotes) and set a new password. Then, close this browser tab/window, and navigate to that page again.

At this point, you can use a remote computer. Just type in the IP address of the server and add ":8080" at the end of it. You might have to port forward the port if this computer is not based inside your own network. If its inside your network, use the internal IP address.

Then, log back in using your new settings. After that, go back into the "Preferences" tab and play around with the settings. See what suites you best.
After you finish setting up your Preferences, click the "About section". Then, click the "Updates" section on the left. You should see a chart type graphic that shows your minecraft version as well as the latest verison. If there is any disparity between the two columns, click "update minecraft".

Then, click the second button "Update/Install Bukkit". This is the plugin system for adding and managing various different plugins - basically like extensions for firefox, but plugins for minecraft. These plugins greatly increase the capabilities and functionality of your minecraft server. After bukkit finishes installing, Go back to the main tab "Server Status", restart your server (or start it if its not running).

Now, you should really be completely done. You should be able to remote manage your minecraft server as well as have the backbone for adding plugins later on.

Now, a few caveats: Everytime you restart your computer, you have to open up terminal, navigate to the minecraft folder and run "mono McMyAdmin.exe". Secondly, you cannot close that terminal window - it is what is running that process behind the scenes. I still haven't figured out how to make it invisible.

The steps that follow are OPTIONAL

I will explain how to add plugins later on.

PART D: Setting the server to autostart on login.

If you want to run this server completely headless, then its normally a good idea to set it up to start on login. This is quite easily achieved. Make sure you ubuntu installation is set to autologin, or else your server won't start. It will only start once you're at the desktop.

On your Ubuntu desktop, click the "System" subheading, got to "Preferences" and then to "Startup Programs".

Click "Add", then fill out the fields like such:
Code:
Name: <anything you want, reccomended Minecraft
Command: gnome-terminal -x sh -c "cd Documents/minecraft && ./start.sh"
Comment: Whatever you want.

mcsetup5.png

Make sure, that the directory for the "cd" command is the one where the minecraft server is.

Then click "Save" and you close the "Startup Programs" Window.

Now, the server will start automatically on system startup.

PART E: Installing Plugins

This is again a quite easy step. Go to this site: http://plugins.bukkit.org/#ti=&ta=all&au=

Find a plugin that you would like, download it, then make a new folder "plugins" in the root directory of your server installation. Then, drop that downloaded file into that folder, go back to your web administration console and click "restart server". After the server restarts, your plugin should be working. (Make sure your don't put those plugins in the "Addons" folder, it wont work)

You can keep adding plugins (sometimes there will be compatibility issues, your best bet is just to wait it out) into that folder. Just remember to restart the server every time you add a new plugin.

NOW, YOUR SERVER IS COMPLETELY AUTOMATED, HAS A WORKING PLUGINS SYSTEM, AND CAN BE REMOTELY MANAGED.

This is my first Guide/Tutorial, but I will keep updating this as newer and better methods arise. Also note that this is not fully complete, (especially the plugins part), but I will update them over the next couple days.
Edited by shinigamibob - 5/10/11 at 7:44pm
Icarus
(19 items)
 
   
CPUMotherboardRAMRAM
i5 3570k Asrock H77-m Pro4 Corsair Vengeance Patriot 
RAMHard DriveHard DriveHard Drive
Kingston HyperX Blu Western Digital Red 3x 3TB Intel 310 160GB Western Digital Green 2x 2TB 
OSMonitorPowerCase
Server 2008 R2 Sony KDL55HX750 Corsair Builder Series 400W Silverstone Grandia GD06B 
  hide details  
Reply
Icarus
(19 items)
 
   
CPUMotherboardRAMRAM
i5 3570k Asrock H77-m Pro4 Corsair Vengeance Patriot 
RAMHard DriveHard DriveHard Drive
Kingston HyperX Blu Western Digital Red 3x 3TB Intel 310 160GB Western Digital Green 2x 2TB 
OSMonitorPowerCase
Server 2008 R2 Sony KDL55HX750 Corsair Builder Series 400W Silverstone Grandia GD06B 
  hide details  
Reply
post #2 of 16
There is no way this guide should be buried and lost. It is awesome, I will recommend it get sticked into the Official MC thread, and added elsewhere.

Post 1800 biggrin.gif

Edit: Just fyi mcmyadmin isn't free anymore, that I know of. Single server starts at around $15.
Edited by Faster_is_better - 5/11/11 at 9:56am
post #3 of 16
Thread Starter 
Quote:
Originally Posted by Faster_is_better;13466439 
There is no way this guide should be buried and lost. It is awesome, I will recommend it get sticked into the Official MC thread, and added elsewhere.

Post 1800 biggrin.gif

Edit: Just fyi mcmyadmin isn't free anymore, that I know of. Single server starts at around $15.

Thanks! I was worried that no one would be interested in this...

Also, McMyAdmin is... The personal version is free, the professional version is.
Quote:
Use the form below to purchace McMyAdmin professional. A Professional Edition licence includes the current version, and all future updates for life at no extra cost.
Please be sure to try out the personal version before buying a professional licence!

Taken from the official McMyAdmin website
Icarus
(19 items)
 
   
CPUMotherboardRAMRAM
i5 3570k Asrock H77-m Pro4 Corsair Vengeance Patriot 
RAMHard DriveHard DriveHard Drive
Kingston HyperX Blu Western Digital Red 3x 3TB Intel 310 160GB Western Digital Green 2x 2TB 
OSMonitorPowerCase
Server 2008 R2 Sony KDL55HX750 Corsair Builder Series 400W Silverstone Grandia GD06B 
  hide details  
Reply
Icarus
(19 items)
 
   
CPUMotherboardRAMRAM
i5 3570k Asrock H77-m Pro4 Corsair Vengeance Patriot 
RAMHard DriveHard DriveHard Drive
Kingston HyperX Blu Western Digital Red 3x 3TB Intel 310 160GB Western Digital Green 2x 2TB 
OSMonitorPowerCase
Server 2008 R2 Sony KDL55HX750 Corsair Builder Series 400W Silverstone Grandia GD06B 
  hide details  
Reply
post #4 of 16
Ah I see, I wonder what there TOS says about running the personal version on a public server, or one that has subscriptions to play.
post #5 of 16
Thread Starter 
Quote:
Originally Posted by Faster_is_better;13480367 
Ah I see, I wonder what there TOS says about running the personal version on a public server, or one that has subscriptions to play.

I would assume that the personal is. I've if you run it at home for semi private games and does not charge to play. Here is what their wiki says though:
Quote:
McMyAdmin personal edition is to be free of charge for servers of up to 8 users. It also 'ticks' every 30 minutes to tell users that the server is running McMyAdmin.
The personal edition is aimed at small, locally-hosted servers or small VPS installations. It is also intended to allow users to evaluate McMyAdmin before purchasing a Professional or Enterprise licence.

Edited by shinigamibob - 6/27/11 at 11:26pm
Icarus
(19 items)
 
   
CPUMotherboardRAMRAM
i5 3570k Asrock H77-m Pro4 Corsair Vengeance Patriot 
RAMHard DriveHard DriveHard Drive
Kingston HyperX Blu Western Digital Red 3x 3TB Intel 310 160GB Western Digital Green 2x 2TB 
OSMonitorPowerCase
Server 2008 R2 Sony KDL55HX750 Corsair Builder Series 400W Silverstone Grandia GD06B 
  hide details  
Reply
Icarus
(19 items)
 
   
CPUMotherboardRAMRAM
i5 3570k Asrock H77-m Pro4 Corsair Vengeance Patriot 
RAMHard DriveHard DriveHard Drive
Kingston HyperX Blu Western Digital Red 3x 3TB Intel 310 160GB Western Digital Green 2x 2TB 
OSMonitorPowerCase
Server 2008 R2 Sony KDL55HX750 Corsair Builder Series 400W Silverstone Grandia GD06B 
  hide details  
Reply
post #6 of 16
Bonk!

Added to General Minecraft Discussion's link section smile.gif

Consider this a bump!
The Iron Giant
(19 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7 950 X58A-UD3R Sapphire Radeon HD5870 Vapor-X Mushkin Silverline 3x4GB 1333MHz 
Hard DriveHard DriveHard DriveHard Drive
Samsung F3 Samsung F3 Western Digital Raptor Crucial M4 128GB 
Optical DriveCoolingOSMonitor
Sony DRU-87S Corsair H70 Windows 7 Ultimate x64 Acer X243HQBD 
KeyboardPowerCaseMouse
Ducky Shine III Seasonic X650 Lian Li Lancool K62 Zowie AM MS 
Mouse PadAudioAudio
Razer Goliathus Edirol MA-7A speakers. Sennheiser HD598 
  hide details  
Reply
The Iron Giant
(19 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i7 950 X58A-UD3R Sapphire Radeon HD5870 Vapor-X Mushkin Silverline 3x4GB 1333MHz 
Hard DriveHard DriveHard DriveHard Drive
Samsung F3 Samsung F3 Western Digital Raptor Crucial M4 128GB 
Optical DriveCoolingOSMonitor
Sony DRU-87S Corsair H70 Windows 7 Ultimate x64 Acer X243HQBD 
KeyboardPowerCaseMouse
Ducky Shine III Seasonic X650 Lian Li Lancool K62 Zowie AM MS 
Mouse PadAudioAudio
Razer Goliathus Edirol MA-7A speakers. Sennheiser HD598 
  hide details  
Reply
post #7 of 16
Hi im stuck on were you do
mono McMyadmin.exe

i keep getting this error

The assembly mscorlib.dll was not found or could not be loaded.
It should have been installed in the `/usr/lib/mono/1.0/mscorlib.dll' directory.

I was wondering do any of you know how to fix it im dead stuck tongue.gif
post #8 of 16
Thread Starter 
Quote:
Originally Posted by ImMatthew;14083606 
Hi im stuck on were you do
mono McMyadmin.exe

i keep getting this error

The assembly mscorlib.dll was not found or could not be loaded.
It should have been installed in the `/usr/lib/mono/1.0/mscorlib.dll' directory.

I was wondering do any of you know how to fix it im dead stuck tongue.gif

Thats a weird error. What version of Ubuntu are you running? Are you even running ubuntu?
Icarus
(19 items)
 
   
CPUMotherboardRAMRAM
i5 3570k Asrock H77-m Pro4 Corsair Vengeance Patriot 
RAMHard DriveHard DriveHard Drive
Kingston HyperX Blu Western Digital Red 3x 3TB Intel 310 160GB Western Digital Green 2x 2TB 
OSMonitorPowerCase
Server 2008 R2 Sony KDL55HX750 Corsair Builder Series 400W Silverstone Grandia GD06B 
  hide details  
Reply
Icarus
(19 items)
 
   
CPUMotherboardRAMRAM
i5 3570k Asrock H77-m Pro4 Corsair Vengeance Patriot 
RAMHard DriveHard DriveHard Drive
Kingston HyperX Blu Western Digital Red 3x 3TB Intel 310 160GB Western Digital Green 2x 2TB 
OSMonitorPowerCase
Server 2008 R2 Sony KDL55HX750 Corsair Builder Series 400W Silverstone Grandia GD06B 
  hide details  
Reply
post #9 of 16
Quote:
Originally Posted by shinigamibob;14085312 
Thats a weird error. What version of Ubuntu are you running? Are you even running ubuntu?

Im running 11.04 but im think about switching to 10.04 to see if that fixes it.

i wish i could just get rid of the stupid error tongue.gif
post #10 of 16
Thread Starter 
You could try reinstalling mono. Remove it using
Code:
sudo apt-get remove mono
. then purge the unused packages by doing
Code:
sudo apt-get autoclean
.

Then try re-installing mono by:
Code:
"sudo apt-get install mono"
Icarus
(19 items)
 
   
CPUMotherboardRAMRAM
i5 3570k Asrock H77-m Pro4 Corsair Vengeance Patriot 
RAMHard DriveHard DriveHard Drive
Kingston HyperX Blu Western Digital Red 3x 3TB Intel 310 160GB Western Digital Green 2x 2TB 
OSMonitorPowerCase
Server 2008 R2 Sony KDL55HX750 Corsair Builder Series 400W Silverstone Grandia GD06B 
  hide details  
Reply
Icarus
(19 items)
 
   
CPUMotherboardRAMRAM
i5 3570k Asrock H77-m Pro4 Corsair Vengeance Patriot 
RAMHard DriveHard DriveHard Drive
Kingston HyperX Blu Western Digital Red 3x 3TB Intel 310 160GB Western Digital Green 2x 2TB 
OSMonitorPowerCase
Server 2008 R2 Sony KDL55HX750 Corsair Builder Series 400W Silverstone Grandia GD06B 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: PC Gaming
Overclock.net › Forums › Video Games › PC Gaming › [GUIDE] Minecraft Dedicated Linux setup guide