Guide: How to install your own Linux Minecraft Server?

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:

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!

Be the 1 in 200,000. Help us sustain what we do.
25 / 150 by Dec 31, 2024
Join Us (starting from just $1.67/month)

Jens

Hey i like to tinker with Linux and other projects involving computers.