Kategorie: Linux

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:

sudo apt update
sudo apt upgrade 

The next step is to install Java

sudo apt install default-jre

We can check the java version by issuing the command:

java -version

We add a System User named Minercrat:

sudo adduser minecraft

We add sudo group to him:

sudo usermod -aG sudo minecraft

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

sudo apt install screen -y

We create the game server folder and go to it:

mkdir minecraft
cd minecraft

We download the minecraft server

wget https://launcher.mojang.com/v1/objects/a16d67e5807f57fc4e550299cf20226194497dc2/server.jar

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:

sudo nano start.sh

We paste into it:

java -Xms1024M -Xmx2560M -jar server.jar nogui

We give permission:

sudo chmod +x start.sh

We are updating packages again:

sudo apt update

We can now start the Minecraft server with the command:

./start.sh

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.

sudo nano eula.txt
eula=true

We add our game server to run in the background:

screen /home/minecraft/run.sh

The last step is to add the port to the firewall

sudo ufw allow 25565

Linux

Zobacz komentarze

  • THX for this tutorial!!!
    Note: en Debian 11 currently default-jre installs a version of java that is too low for minecraft_server.1.18.2.jar
    install openjdk-17-jdk instead

Udostępnij
Opublikowane przez
Linux

Recent posts

KeePass2 2.52 w Ubuntu 22.04

The guide below describes how to install KeePass on Ubuntu. Całość wykonamy za pomocą kilku poleceń

2 years temu

Installing Master PDF editor in Ubuntu 22.04

Master PDF Editor is a comprehensive PDF program, which includes many features. Oprócz tworzenia i edycji

2 years temu

iotop - memory monitoring

Iotop jest prostym narzędziem dla systemów Uniksowych umożliwiającym monitorowanie użycia dowolnego nośnika pamięci flash/hdd/ssd w

2 years temu

Run multiple commands in one cron job

You can separate two or more commands with semicolons (;), Semicolon (;): służy do oddzielania

2 years temu

Changing the exif data of a photo in the Linux terminal

Poniższy poradnik opisuje w jaki sposób za pomocą konsoli możemy dokonać edycji danych zdjęcia exif.

2 years temu

Installing Rocket.Chat Server on Rocky Linux 8

The following guide describes how to install Rocket.Chat on Rocky Linux 8 Całość bardzo prosto zainstalujemy

2 years temu