install minecraft server on ubuntu code example

Example: install minecraft server on ubuntu

Step 1: Install the required packages:

sudo apt update
sudo apt install openjdk-8-jre-headless
sudo apt install screen
sudo ufw allow 25565

Step 2: Download the latest version of Mindcraft:

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

Step 3: Configure and run the Mindcraft server:

screen
java -Xms1024M -Xmx1024M -jar minecraft_server_1.15.2.jar nogui  

Step 4: Configure the Server:

nano server.properties

Step 5: Enjoy :)

Tags:

Misc Example