Instructions for Setting Up Your Own paper Minecraft Server on Alma Linux

In this guide, we explain how to set up your own Minecraft server using the KDE Plasma graphical interface.

Guide for Remote Desktop Management if You Haven’t Installed It on Your VPS Yet

Install Java

A Minecraft server requires Java to function. The latest Minecraft version is incompatible with the Java version included in Ubuntu 22.04, so you’ll need a newer one. Open the Firefox browser and go to:
https://www.oracle.com/java/technologies/downloads/

Click the link and download the "x64 RPM Package".

Next, click the folder icon for the downloaded file.

Double-click the file.

Click "Install".

 

 

Configure Firewall Settings

Open firewall settings:

 

From public Ports, click "+ Add".

 

Put 25565 as your port, then click "OK".

 

 

Download the Server Software

First, reopen your browser and navigate to:https://papermc.io/downloads/paper Click "Paper" on the page.

Download the server software by clicking the button shown in the image.

Go to the Downloads folder by clicking the folder icon in your browser’s downloads.

Create a Shortcut to Run the Server

Right-click on the downloaded file, select "Create new", and choose "Empty file".

Name the file, e.g., "run" (ensure the file extension is ".sh"), then click "OK".

If you want to move the server to a separate folder (RECOMMENDED):

Right-click and select "Create new""Folder" Name the folder

Move the run.sh and the downloaded .jar file into it by dragging them.

Click "Move here"

After moving, open the folder by double-clicking it.

Right-click the run.sh file and open it with a text editor.

Copy the following text into the file:

(NOTE: Replace "paper-1.21.4-144.jar" with the name of the file you downloaded. Make sure it matches your file’s name!)

#!/bin/bash
java -Xmx1024M -Xms1024M -jar paper-1.21.4-114.jar nogui

4.6 Save the file: Move your cursor to the top left, click "File", then "Save"

Right-click the file again and select "Properties".

Go to the "Permissions" tab and check the option "Is executable" (THIS STEP IS MANDATORY!). Finally, click "OK".

Once more, right-click the file and choose "Run in Konsole".

Accept the EULA

A new console window will open, and files will begin to appear in the folder. However, the server startup will fail because you need to accept the EULA.
Close the console, find and open the file named "eula.txt".

Edit the text so that the third line reads "eula=true" instead of "eula=false". Save and close the file following the earlier instructions.

(Optional) Modify server settings in the "server.properties" file.

 

Start the server again: Right-click run.sh and select "Run in Konsole".

If the server runs successfully, the console window will look like this:

Joining the Game

First, open Minecraft and click on "Multiplayer."

 

 

Click "Add Server."

 

 

Enter your VPS Server's IP address in the "Server Address" field. (This is the same address you use every time you connect to the remote desktop.) and after it comes (:) and server port which can be found in the console windows on the server as shown below.

 

Select the server you just added and click "Join Server."

 


Summary

Congratulations! You’ve now set up your own Minecraft server on Almalinux 9.5.

Was this answer helpful? 4 Users Found This Useful (9 Votes)