Introduction: The Ultimate Guide to Create a Headless Minecraft Server

Picture of The Ultimate Guide to Create a Headless Minecraft Server

So you want to build a Minecraft server?

What your going to need:

  • A Server (A 'dedicated' computer that you want to run the minecraft server on: Dedicated server wiki)
  • A computer monitor
  • A separate computer (your normal computer)
  • An internet connection (For updates, and downloading McMyAdmin)
  • Ubuntu linux Server on a Disc or Flash drive (Preferred 64-bit but your machine might only run 32-bit)(Download Here)
  • A keyboard (No Mouse Required)
  • A few hours
  • A Can Do attitude

F.A.Q

Whats a 'Headless' Server?

A headless Minecraft server is a server that when finished does not have a Monitor attached to it. You control it using external means like: a SSH (secure shell host) connection for install programs etc, A FTP (File transfer protocol) connection for transferring files and finally we will be using a website to control the actual minecraft server. We will be using a website service called 'Minecraft My Admin' referred to as McMyAdmin to control the server. Its paid software but you can just use the free version until you want to increase the slot limit past 10. There are other ways of running minecraft servers on a dedicated computer, but this I find is the simplest and most modern way.

Can I put this on my normal computer?

NO, The method detailed here uses a completely standalone computer and will DELETE ANY OTHER FILES ON THE HARDDRIVE. There are plenty of guides on the internet showing how to install a minecraft server on your everyday computer. You also cannot use this computer once ubuntu server has been installed to browse the web and check emails etc. The Interface is TEXT-BASED because using a Graphical interface chews up unnecessary resources.

Disclaimer:

I Accept no responsibility for your actions and you do this at your own risk. You agree that you have read the above FAQ and you understand what this will do to your computer.

Step 1: Preparing the Computer

Picture of Preparing the Computer

Take your computer and attach a monitor to it, make sure it has a working harddrive and dvd/cd drive. Make sure any date on the hard drive is backed up if it means anything to you, Remember this will remove ALL DATA from the hard drive. Check that your machine meats both the ubuntu minimum specs:

300 MHz x86 processor
192 MiB of system memory (RAM)
1 GB of disk space
Graphics card and monitor capable of 640x480
CD drive

And the Minecraft server minimum specs:

Intel Pentium 3 1.2 GHz or AMD K6-Based CPUs and better
512 MB of Ram
2 GB empty space+
Should allow about up to 10 players at a time on vanilla minecraft

Note that this is for a low player, vanilla server. To have more plugins / player capacity upgrade to better hardware and more ram!

All the recommended Specs for different types of OS'S and amounts of players are on the respective websites

Ubuntu Minimum Specs

Minecraft Server minimum requirements

Step 2: Installing Ubuntu Server

Picture of Installing Ubuntu Server

This is quite a big section as there is quite a few options. So bare with me and follow the instructions provided. Remember: Use Enter to select and use the arrow keys to change options

------------------------------

Starting Out

Firstly, insert the CD or Flash Drive and boot onto it. Usually done by hitting a key and going into a menu where you can select a boot device. Wait for the ubuntu language screen to load then follow the below instructions.

On the first screen you can choose you language for the first screen, choose english

Select Install Ubuntu Server.

Select the language used for the installation process, again choose english.

Select your geographical location.

Configure your keyboard. In most cases you can just click yes.

At this point the system will detect the hardware to find a CD-ROM drive.

------------------------------

Customising

The installation will detect and load any additional component.

The installation will detect the network hardware.

Type in the host name you want to configure your server as, I recommend setting this to "minecraft".

Type in the username, I recommend that you call it either "mcmyadmin" or "admin"

Type in a password for the username, anything you like, but preferably something secure. You will use it a lot later.

Choose whether to encrypt your home directory or not. I recommend selecting No as its not really needed.

Configure clock, and time zone.

------------------------------

Configuring the Hard Drive

At this point, the installation is detecting disks, and other hardware.

At this stage is were you partition your disk(s). Select Guided with LVM as it is the default method.

Select the Drive of your choice

Select Yes to start writing the changes to disks, and configure LVM.

Answer Yes to actually write the changes to disk.

------------------------------

Installing

The installation will copy data and configure Apt Sources at this stage.

This is were you can configure a Proxy. If you need a proxy you'll know what to do here, otherwise just click continue.

The installation will select the software being installed.

This is where you configure how to install updates, Just choose automatic.

This next screen is where you will select what servers packages to install, USE SPACE TO SELECT THE FOLLOWING 2 PACKAGES THEN CLICK ENTER:

OpenSSH Server
Samba File Server

Select Yes to install grub to the Master Boot Record

Finish the installation. Select continue and remove the disk or USB. (Image)

You're done for the system, now onto McMyAdmin!

Step 3: Secure Shell Access

Picture of Secure Shell Access

Firstly start up your computer if it is not already started up, and login. Note the IP address, or collection of numbers separated by dots. Then move to another and:

----------------------

If your on a Windows, Download Putty and run it

Other Putty Downloads: Putty Downloads

----------------------

If Your on a Mac, go to Applications ---> Utilities and open 'Terminal'

----------------------

If you on a Linux Based Machine navigate to terminal.

----------------------

Putty Tutorial:

  1. Where it says Host Name, enter the IP address you noted earlier on the Minecraft server computer.
  2. Set the Port to 22
  3. Set the Protocol to SSH
  4. Press Open to open a connection
  5. Type in the username you set when installing ubuntu
  6. Type in the password you set when installing ubuntu
  7. You should be prompted with an ubuntu command prompt.

Terminal Mac/Linux Tutorial:

  1. Type the following:
ssh username@ipaddress
  1. Replace the username with the username you set when installing ubuntu
  2. Replace the ipaddress with the one you noted earlier
  3. You will be asked to enter your password, enter the one you made when installing.
  4. You should be prompted with an ubuntu command prompt.

Now to Install McMyAdmin...

Step 4: Install McMyAdmin

Picture of Install McMyAdmin

To install McMyAdmin you must first check whether you are running a 32-bit or a 64-bit Operating System.

Enter the following into your terminal:

uname -a

If The system is 32-bit the response should look something like this: Specifically i386 or i686 at the end

Linux discworld 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 i686 i386GNU/Linux

If The system is 64-bit the response should look something like this: Specifically X86 at the end

Linux discworld 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

---------------------------

32-bit Instructions

Copy and paste the following line by line:

sudo apt-get update && sudo apt-get upgrade

sudo apt-get install openjdk-7-jre

sudo apt-get install mono-complete

Mono Installed :P

mkdir ~\McMyAdmincd

~\McMyAdmin

wget http://mcmyadmin.com/Downloads/MCMA2-Latest.zip

unzip MCMA2-Latest.zip

rm MCMA2-Latest.zip

mono McMyAdmin.exe -setpass (password) -configonly

Change (password) to a password of your choice

Finally run the following:

cd ~\McMyAdmin; mono McMyAdmin.exe

Then proceed to the next step

---------------------------

64-bit Instructions

Copy and paste the following line by line:

sudo apt-get update && sudo apt-get upgrade
sudo apt-get install openjdk-7-jre
sudo su

iptables -A INPUT -p tcp --dport 8080 -j ACCEPT

cd /usr/local

wget http://mcmyadmin.com/Downloads/etc.zip

unzip etc.zip; rm etc.zip

login (username)

replace "(username)" with your normal user than enter your password when prompted

mkdir ~/McMyAdmin
cd ~/McMyAdmin
wget  http://mcmyadmin.com/Downloads/MCMA2_glibc26_2.zi...
unzip MCMA2_glibc26_2.zip
rm MCMA2_glibc26_2.zip
./MCMA2_Linux_x86_64 -setpass (password) -configonly

Change (password) to a password of your choice

Finally run the following:

cd ~/McMyAdmin; ./MCMA2_Linux_x86_64

Then proceed to the next step

Step 5: Configure McMyAdmin

Picture of Configure McMyAdmin

Now open up a web browser such as Firefox or Chrome and type in the IP address of the server followed by :8080

For instance:

192.168.2.69:8080

Once you have done that you will be prompted with the McMyAdmin Login screen. Use the username: 'Admin' and the password is whatever you set on the last step. If you are not sure it will most likely be (password) .

Now you will be in the McMyAdmin control panel, feel free to change any settings and setup your actual server software in the configuration. When you are ready, go to the status page and press 'start server'. Then open up Minecraft and enter the ip address of the server, followed by 25565.

For Instance:

192.168.2.69:25565

Connect to the server, and pat yourself on the back, you just created a headless minecraft server and lived to tell the tail.

Step 6: Congratulations!

Picture of Congratulations!

You now have a server, but if you want other people to play your going to need to port forward. if you want your computer to start the minecraft server automatically if you start it up then you will need to edit the crontabs. If you want to access the files on your server you will have to use a FTP client such as Filezilla. There are so many other things you can do to enhance your server experience. So many things I couldn't possibly put them all in this tutorial! Google is your friend!

Good Luck!

And Have Fun

Comments

EvolvedAwesome (author)2015-01-24

Thankyou Everyone for 1001 views and 23 Favourites in less than 1 day! You guys are amazing! I was not expecting such a positive response! :) Thankyou everyone for officially Making my day :)

thomasgamer4000 made it! (author)2017-10-03

cool, but here is a better idea, that saves you money:

before doing it, put all your files in a different drive, disconnect the drive, do it, then put the drive back in.

Or indeed, just leave the drive in a be a little careful in regards to what you format and install ubuntu on :). In fact, you could even use the same drive and just setup partitions. Personally, I would just purchase a small SSD of some sort (maybe a m.2 60 or 120gb model) and run it off that if I were to do this again (this was a long time ago now!).

Engineermanx2 (author)2016-02-07

Thanks for the instructions, I had been trying to host my own server for a while with little success. Do you know how you would increase the amount of ram the server is allowed the access?

bravoechonovember1 (author)2015-05-20

could i use these steps to host a website instead of a minecraft server?

About This Instructable

17,886views

62favorites

License:

Bio: I'm a tech guy at heart, I probably won't be making a skyscraper in my next ible, but I specialise in doing the ... More »
More by EvolvedAwesome:Get Started with PythonGet 1 Million Views - By CheatingAchieve the 3 elusive Achievements
Add instructable to: