How To Make Minecraft Server On Linux Distributions


Minecraft is a well-known game series that is available on Windows, Mac, and Linux. Because it uses Linux''s sandbox technology, it can be played with no buffering or CPU load. If you''re a true fan of this game, you can use the Minecraft server to play this game with another player. Now, there are options that allow you to get the Minecraft server on your Linux system without doing anything but paying a number of dollars to a 3rd party software authority. Or, you can install and run your own Minecraft server on your Linux system to enjoy the freedom of gaming.



Minecraft Server on Linux System



Java is required to run Minecraft on Linux. After the server is installed on your Linux machine, you can start building the Minecraft game. In this post, we will see how to install the Minecraft server on Debian/Ubuntu and Fedora/Red Hat Linux.



1. Install Minecraft on Ubuntu/Debian



Installing a Minecraft server on a Ubuntu server/desktop requires root access and an active internet connection. Here, we will see how to install java and run the Minecraft server through it on a Debian Linux system.



Step 1: Create a New User For Minecraft



If you''re using a Ubuntu server or a Desktop, it will be wise to create a new user for the Minecraft server. To create a Minecraft account, use the below command.



As we will be building the server using Java, we may also need to grant root access to the new user. So, finally, switch to the newly created Minecraft user account to start installing the Minecraft server on your machine.



Step 2: Install Java on Ubuntu/Debian



Before you install Java, make sure your system is up to date. To update the system, use the following commands from the terminal shell.



Now, open the terminal shell and run this command to install Java version 8.



Once Java installation is completed, you can run a version test command to check if Java has been installed.



Step 3: Install the Screen for Minecraft



The screen is an application that allows you to run the Minecraft server on the system''s background as a daemon. To install Screen, run the following command in your shell.



Step 4: Download Minecraft on Ubuntu/Debian



Minecraft server is available on their official website. We will use a wget command to download it on our system. First, create a directory in Minecraft. Next, you can browse it. To create the directory, you can use either manual or terminal commands.



Now, before running the following wget command, make sure it is installed on your system.



Run the following wget command on your terminal shell to download the java file of the Minecraft server for Linux.



2. Install Minecraft Server on Fedora Linux



Installing the Minecraft server on the Fedora workstation is almost similar to the method of installing it on Ubuntu, but there are a few changes in commands and steps. If you''re a Fedora or Red Hat Linux user, this method will help you to install the Minecraft server on your machine.



Step 1: Create a New User



First, you need to add a user to your existing setup to make a mess with your current server or desktop. Then we will also need to grant the root access to that account for installing java.



Run the following command lines given below on your terminal shell to add a user and permit the sudo permission.



Run the following commands to grant root access to the Minecraft account. Fedora usually manages root access permissions.



Step 2: Install Java in Fedora Workstation



Now, as you''re using the Minecraft user account, run the following DNF command on your terminal shell to install Java on the system.



After the installation is complete, run the version check command to verify that it has been installed correctly.



Step 3: Install the screen and set up the firewall



Before running the Minecraft server on a Linux machine, we should install the screen application to run it on the system''s background. To install the Screen application on your Linux machine, run the DNF command.



In optional, you can also run the S flag command to name the current Screen application as a Minecraft server.



To load a Minecraft server on a machine it is wise that we allow the TCP ports from Minecraft on our network. As the Minecraft server uses port 25565, the following firewall daemon commands will allow the Minecraft server on our Fedora network.



Step 4: Download Minecraft Server on Fedora Workstation



We''ve seen how to create a Minecraft user account, and how to install Java on your system. rock it like a hurricane After that, it is time to download and execute the Minecraft server on our Fedora Linux.



First, run the following command to make a new dedicated directory for downloading the Minecraft server file.



Next, browse the directory and run wget to download the server file.



3. Execute Minecraft Server on Linux



When the download of the Minecraft server finishes, browse the directory and locate the file. This procedure is applicable to Fedora as well as Debina Linux distributions. First, run the following chmod command to grant the execution permission to the Minecraft server file.



To agree to the license file, we must edit the End-user licensing agreement (Eula). To accomplish this task, you can use your favorite editor with root permission.



Write the following line in the script to save and close the script file after it opens.



Finally, run the following command on your terminal shell to start the Minecraft server on your Ubuntu Linux. As you can see the command is a NoGUI command. It will continue loading server in CLI mode.



To load the server, we have allocated 1024M of total memory. If you have changed the memory amount, the Xmx can be modified.



Minecraft server is helpful and essential to load the Minecraft game series on a Linux-based system. In this post, we have seen how to install the Minecraft server on Debian and Fedora workstations. If you find this post useful, please share it with friends and the Linux community. You can also share your opinions about this post in our comment section.