Goal
Run a Minecraft server on the Linux Mint laptop.
Java Installation
Check if Java is installed:
java -versionInstall Java 21:
sudo apt update
sudo apt install openjdk-21-jdkVerify the installation:
java -versionI 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 ~/mcserverDownload 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 noguiGot error about EULA.
Accepting EULA
Edited file:
nano eula.txtChanged:
eula=false → eula=trueRunning Server
Started again:
java -Xmx2G -Xms2G -jar server.jar noguiServer started successfully.
Joining the Server
Found IP:
hostname -IUsed in Minecraft client:
<ip-address>:25565Worked inside same network.
Modded Server (Fabric)
Follow the instructions given in the site below.
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