Goal

Run a Minecraft server on the Linux Mint laptop.


Java Installation

Check if Java is installed:

java -version

Install Java 21:

sudo apt update
sudo apt install openjdk-21-jdk

Verify the installation:

java -version

I got a few errors while installing java, but got it fixed. Those errors I deem detrimental to a blog such as this.


Server Setup (Legit Server)

Create a folder for the minecraft server:

mkdir ~/mcserver
cd ~/mcserver

Download the server jar file:

wget https://piston-data.mojang.com/v1/objects/.../server.jar)

Download links of specific versions of the server is linked here.


First Run

Ran the server:

java -Xmx2G -Xms2G -jar server.jar nogui

Got error about EULA.


Accepting EULA

Edited file:

nano eula.txt

Changed:

eula=false → eula=true

Running Server

Started again:

java -Xmx2G -Xms2G -jar server.jar nogui

Server started successfully.


Joining the Server

Found IP:

hostname -I

Used in Minecraft client:

<ip-address>:25565

Worked inside same network.


Modded Server (Fabric)

Follow the instructions given in the site below.

Fabric Server Loader


Observations

  • Server works locally without issues
  • Mods require matching client setup
  • Port 25565 is used by default

Notes

  • No remote access yet
  • Did not configure port forwarding
  • Server only accessible within same WiFi network