Home » Home Server » Guide: How to install your own Linux Minecraft Server?

Guide: How to install your own Linux Minecraft Server?

Debian Minecraft Server install

written by Jens November 26, 2016

There are many interesting things you can achieve with a Linux server at home. In fact, we have a guide we published before about the 5 most common uses for a home server. However, we will tell you about an use you probably didn’t think of: you can use your home server to run a game server. In this guide, we tell you how to run your own Linux Minecraft server, for hours of entertainment, alone or with good friends. [Read: A budget HTPC-NAS Combo with an old PC and OpenELEC]

Debian Minecraft Server install

With this tutorial you will be running your own Linux Minecraft server in no time!

How to install your own Linux Minecraft Server

Do you want to run your own Linux Minecraft server, so you can manage it for you and your friends? You will be able to decide which mods you want, in order to enhance your playing experience as well. If you have a spare computer laying around, depending on its specs, you can use it as the server. You can then install a flavor of Linux such as Ubuntu 16.04 Xenial Xerus or another one you prefer, in order to start working on your Minecraft Server.

Recommended HTPC / Home Server Builds 2017:

Things you will need:

Once you have booted the system, open a terminal and type:

sudo apt-get update
sudo apt-get install openjdk-7-jdk
update apt package manager
Linux Minecraft Server Java

Installing Java on your Linux server is one of the first steps you will have to take.

Install Java and press Y. After that, we need to install the Minecraft server. Type the following on your terminal:

wget minecraft_server.jar
https://s3.amazonaws.com/Minecraft.Download/versions/1.11/minecraft_server.1.11jar

Download the software. Check minecraft.net in order to know the newest version available.

Ubuntu Minecraft Server

Install Minecraft server with the commands provided.

After downloading the Minecraft server

After you’re done downloading use the following commands:

sudo apt-get install screen

Lets you install the screen utility. After that, type:

screen -S "Minecraft server"
java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui

In order to start the server. In the above configuration, we use 1GB of RAM. If you want to tweak these values, you can do it editing the -Xmx(value)M -Xms(value)M line on the above commands, substituting (value) for the memory size (in megabytes). The nogui argument simply means you will launch it in the terminal with no GUI to save memory. Without the nogui argument, you would be launching the graphical interface, which uses more RAM.

Ubuntu Minecraft Server configuration EULA

You will get an error message. You need to agree with the service agreement before using this software. Edit the eula.txt file.

Improve your visibility by clearing the previous commands with clear, and then type in the terminal nano eula.txt (or use any other text editor you have installed in your Linux distro). In this file, you need to change the eula=false line to eula=true.

Minecraft make your own server eula

Edit the eula.txt file to indicate you agree with the End User License Agreement for this software.

If you used the nano text editor, press Ctrl+X and then Y to save. If you used vi, escape the edition mode with ESC and then write :wq! in order to save the changes to your file. Now you can start the server. Type:

screen -S "Minecraft server"
java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
Linux Minecraft Configure Server start

You should see a screen similar to this one when you start the Linux Minecraft Server.

What to do after you install Linux Minecraft Server?

You now have to keep the machine running for as long as you require in order to play. When you want to close the server down, press Ctrl+C. If the ports are not properly configured on your router you might need to perform some port forwarding on it. [Read: How to setup port forwarding on a router?]

Congratulations! Your Minecraft server is up and running. All you need to do now is tell your friends your external IP address in order for them to be able to connect to your server. You can find out your External IP Address on Linux with this guide. Have fun with your new Linux Minecraft Server!

IPVanish VPN Exclusive Offer - only $3.25/month:
VPN Guides
Windows, Android, Ubuntu
Kodi OpenVPN
OSMC on RPi
♦ Hide your browsing (no logs), Anonymize Streaming and Downloads
♦ Circumvent Geo/Country Restrictions and access worldwide content
♦ Works on Windows, Mac, Linux, Android, iOS, Router, and more
♦ Money back guarantee - Sign Up Now

Related Articles