Table of Contents
What you will read?
Hosting your own Minecraft Server on Ubuntu 25.04 gives you full control over performance, settings, and who can join your world.
Step 1: Update System
Keep your Ubuntu 25.04 server up to date before installing Minecraft:
sudo apt update && sudo apt upgrade -y
Step 2: Install Java
Minecraft requires Java. Install the latest supported OpenJDK package:
sudo apt install -y openjdk-21-jdk
java -version
Step 3: Create Minecraft Folder and Download Server
Organize the server files inside a dedicated directory, then download the official server file:
Step 4: Accept EULA
Before starting the server, you must accept the license agreement:
echo "eula=true" > eula.txt
Step 5: Start Minecraft Server
Launch the server with Java. You can adjust memory allocation (-Xmx and -Xms) based on your system resources:
java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
U
Loading...
