The Ultimate guide to create a headless Minecraft server
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

    The Ultimate guide to create a headless Minecraft server

    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 processor192 MiB of system memory (RAM)1 GB of disk spaceGraphics card and monitor capable of 640x480CD drive

    And the Minecraft server minimum specs:

    Intel Pentium 3 1.2 GHz or AMD K6-Based CPUs and better512 MB of Ram2 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

    The Ultimate guide to create a headless Minecraft 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

    The Ultimate guide to create a headless Minecraft server
    The Ultimate guide to create a headless Minecraft server

    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:

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

    Terminal Mac/Linux Tutorial:

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

    Now to Install McMyAdmin...

    Step 4: Install McMyAdmin

    The Ultimate guide to create a headless Minecraft server

    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-jresudo 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 ~/McMyAdmincd ~/McMyAdminwget http://mcmyadmin.com/Downloads/MCMA2_glibc26_2.zi...unzip MCMA2_glibc26_2.ziprm 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

    The Ultimate guide to create a headless Minecraft server
    The Ultimate guide to create a headless Minecraft server

    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!

    The Ultimate guide to create a headless Minecraft server

    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

  •  
     

    Tag cloud

    make build easy simple arduino making homemade solar laser printed portable cheap mini building custom cardboard wooden create super lego turn paracord chocolate your paper light intel