Skip to content

RedsOrb/Minecraft-server-installation-guide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 

Repository files navigation

Minecraft-server-installation-guide

Steps to install Minecraft server

Minecraft Paper Server Setup (Linux)

This guide helps you set up a Paper Minecraft server on Linux step by step.

πŸ“Œ Step 1: Install Java (Required)

Paper requires Java 17+. To install it, run:

sudo apt update
sudo apt install openjdk-17-jdk -y

Verify the installation:

java -version

You should see output similar to:

openjdk version "17.0.1" ...

πŸ“Œ Step 2: Create a Server Directory

Navigate to your preferred location and create a server folder:

mkdir ~/minecraft-paper
cd ~/minecraft-paper

πŸ“Œ Step 3: Download the Paper Server

1. Visit PaperMC Downloads.

2. Select your Minecraft version and copy the latest download link.

3. Run the following command.

wget https://papermc.io/api/v2/projects/paper/versions/your-paper-version/builds/latest/downloads/paper-your-paper-version-latest.jar -O paper.jar

4. Verify the file is downloaded:

ls -l

πŸ“Œ Step 4: Run the Server for the First Time

Start the server to generate required files:

java -Xms2G -Xmx4G -jar paper.jar --nogui

-Xms2G β†’ Minimum RAM (2GB)

-Xmx4G β†’ Maximum RAM (4GB)

⚠️ The server will fail with an EULA message.

πŸ“Œ Step 5: Accept the EULA

Edit the eula.txt file:

nano eula.txt

Change this line:

eula=false

To:

eula=true

Save and exit: CTRL + X β†’ Y β†’ Enter.

πŸ“Œ Step 6: Start the Server

Run the server again:

java -Xms2G -Xmx4G -jar paper.jar --nogui

βœ… The server will now start generating necessary files.

πŸ“Œ Step 7: Configure the Server (Optional)

To modify server settings:

nano server.properties

Change settings as needed.

πŸ“Œ Step 8: Create a Startup Script (Optional)

To make starting the server easier, create a script:

nano start.sh

Add the following:

#!/bin/bash
java -Xms2G -Xmx4G -jar paper.jar --nogui

Save and exit, then make it executable:

chmod +x start.sh

Now, you can start the server with:

./start.sh

πŸ“Œ Step 9: Allow Firewall (If Needed)

If you’re hosting for others, allow port 25565:

sudo ufw allow 25565/tcp

πŸŽ‰ Done! Your Paper server is now running.

Enjoy playing Minecraft with PaperMC! πŸš€

About

steps to install minecraft server

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published