Installing the Minecraft server on the Debian system 10

The following guide describes how to install Minecraft server on a Debian System 10.
We will do the whole thing through the console by entering a few simple commands.

First, we update the system and packages:

The next step is to install Java

We can check the java version by issuing the command:

We add a System User named Minercrat:

We add sudo group to him:

We install Screen so that our server can run in the background:

We create the game server folder and go to it:

We download the minecraft server

We create a script so that our minecrat server starts by itself in the event of a server restart.
For this purpose, we create the start.sh file:

We paste into it:

We give permission:

We are updating packages again:

We can now start the Minecraft server with the command:

At the first run, we should accept the license. The script will guide us what to do.

The next step is to open eula.txt and set eula = true. This will allow your server to connect to the Minecraft client software. Open this file in your preferred editor and make sure, that sounds: eula=true.

We add our game server to run in the background:

The last step is to add the port to the firewall

How useful this post was?

Click on the star, to evaluate it!

Average grade / 5. number of votes:

So far, no votes! Be the first to rate this post.