How to Set up a Minecraft Server on Linux

There are plenty of reasons why you’d want to set up a Minecraft server on your Linux machine. Perhaps you want to play local multiplayer later in the day because your friends are coming over, or maybe you like to have full control of the game. Either way, setting up a Minecraft server on Linux is a piece of cake, and we’ll show you how to do the same.

Prerequisites to Set up a Minecraft Server on Linux

Prerequisites to Set up a Minecraft Server on Linux

Here are the prerequisites for setting up a Minecraft server on Linux:

Note: We’re running the Minecraft server locally in this guide, and it might impact the performance of your machine. Closing the terminal will kill the server, hence we recommend minimizing it as soon as you run it or open another instance if you want to do something else.

Set up a Minecraft Server on Your Linux System

Set up a Minecraft Server on Your Linux System

Step 1: Install Java in Your Linux Distro

Minecraft is made in Java and so is the server file. Hence, you will first need to install the latest Java version to actually be able to run the server. Minecraft currently only supports Java 17 or above. Hence, we’ll be installing the latest version of the same. For starters, Java is an extremely popular programming language that’s used to develop applications. Installing Java on Linux using a terminal is straightforward.

You can install the latest Java version from its official website. Then all you need to do is enter a few commands and Java will be usable on your Linux system. The DEB and RPM installers are available for the mostpopular Linux distros, including Ubuntu/Debian-based distros and Fedora/CentOS. However, if you’re running Arch, Java can still be installed using Pacman.

With all of that out of the way, let’s learn how to install Java to power our Minecraft server on Linux:

  1. Head over to the officialOracle websiteand download the Java Development Kit (JDK) available in .deb or .rpm packages.

  2. Once downloaded, double-click on the package and install it using your distro’s default package installer.

  3. Once installed, open the terminal and type the following command to ensure JDK is packaged and ready to be installed.

  4. Next, type the following command to install Java on your Linux system.

  5. Once done, type the following command to check if Java has been successfully installed. You will get the Java version installed on your system in the output.

Step 2: Download Minecraft Server Jar File

Now that we have Java up and running, the next step involves downloading the Minecraft Server Java file and running it on your Linux PC. To do so, follow these instructions:

  1. Head over the Minecraft’s official website and download theMinecraft Server.jarfile (Download).

Step 3: Run the Minecraft Server File (First Time)

  1. Once done, change the directory into the folder containing the jar file using thecdcommand. For example, if you have saved the jar file on the desktop, execute the following command:

  2. Next, copy and paste the following command and hit enter.

If you’re confused about what this command means, we have explained it below:

  1. Scroll all the way down to the output and you should see the command prompting you to accept the Eula (End user license agreement). For that, go to the location where your sever.jar file exists and find the eula.txt file.

  2. Open it with any text editor and change“eula=false”to“eula=true,“save it, and exit.

Step 4: Start and Use Your Minecraft Server

  1. Once done, run the command mentioned in the third step again, and it should fire things up. Here’s the command you need to paste into the Linux Terminal to run the Minecraft server:

  2. That’s pretty much it. Now you can launch Minecraft and join your new server alongside your friends.

And that’s how you can set up your own Minecraft server on Linux and play with friends. Were you successful in creating a Minecraft server by following the instructions above? If you have any doubts, let us know in the comments section below.

Beebom Staff

Bringing the latest in technology, gaming, and entertainment is our superhero team of staff writers. They have a keen eye for latest stories, happenings, and even memes for tech enthusiasts.

Add new comment

Name

Email ID

Δ

01

02

03

04

05