Minecraft PaperMC
Server Setup Guide
Deploy a high-performance PaperMC Minecraft server on Linux using an automated script or step-by-step manual configuration.
1. Automated Installer Script
Download and run the installer script via SSH:
wget https://ezgclan.eu/guides/gameserver/minecraft/minecraft-installer.sh
chmod +x minecraft-installer.sh
sudo ./minecraft-installer.sh
The script installs Java JRE, creates the dedicated minecraft user, downloads the latest PaperMC jar, and sets up startup scripts.
2. Manual Installation Walkthrough
Step 1: Install Dependencies
sudo apt update && sudo apt install -y default-jre screen curl jq
Step 2: Create Dedicated System User
sudo adduser minecraft
sudo su - minecraft
Step 3: Fetch Latest PaperMC Build
API_BASE_URL="https://api.papermc.io/v2/projects/paper"
LATEST_VERSION=$(curl -s $API_BASE_URL | jq -r '.versions[-1]')
LATEST_BUILD=$(curl -s $API_BASE_URL/versions/$LATEST_VERSION/builds | jq -r '.builds[-1].build')
JAR_NAME="paper-${LATEST_VERSION}-${LATEST_BUILD}.jar"
DOWNLOAD_URL="${API_BASE_URL}/versions/${LATEST_VERSION}/builds/${LATEST_BUILD}/downloads/${JAR_NAME}"
curl -o "paper-${LATEST_VERSION}.jar" "$DOWNLOAD_URL"
Step 4: Accept EULA and Launch Server in Screen Session
java -jar paper-*.jar --initSettings
sed -i 's/eula=false/eula=true/g' eula.txt
screen -mS Minecraft java -Xms512M -Xmx6G -jar paper-*.jar --nogui
To reattach to the server console session, run:
screen -r Minecraft. Press CTRL + A then D to detach.