In this article, we will have explained the necessary steps to install and configure the Minecraft Server on Ubuntu 20.04 LTS. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.
Minecraft is one of the most famous building games in the world developed by Microsoft Studious. In this game, you are allowed to build anything you need and explore it in a 3D world. In this game, you are allowed to build anything you need and explore it in a 3D world. If you host your own Minecraft server, you decide the rules, and you and your friends can play together in this interactive adventure game.
Install Minecraft Server on Ubuntu 20.04
Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.
sudo apt update sudo apt upgrade
Step 2. Install Java.
Next, install the OpenJDK version 8 of Java, specifically the headless JRE:
sudo apt install openjdk-8-jdk
After installing the java successfully, you can check its version to ensure that it is installed:
sudo java -version
Step 3. Creating Minecraft User.
Add the new “minecraftuser” to the “sudo” group:
sudo usermod -aG sudo minecraftuser su - minecraftuser
Step 4. Install Minecraft on Ubuntu system.
We will create a new directory to keep our Minecraft Server files in it:
sudo mkdir minecraftdir cd minecraftdir
Then, we are going to download the Minecraft Server:
sudo wget -O minecraft_server.jar https://s3.amazonaws.com/Minecraft.Download/versions/1.11.2/minecraft_server.1.11.2.jar
After that, set permissions on the downloaded Minecraft Server to be executable:
sudo chmod +x minecraft_server.jar
As you can see from the output above you’ll need to agree to the Minecraft EULA in order to run the server. Open the eula.txt file and change eula=false to eula=true:
sudo nano eula.txt
#Thu Jun 15 12:46:53 PST 2020 eula=true
Now you can start the Minecraft Server using the following command:
sudo java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
That’s all you need to do to install Minecraft on Ubuntu 20.04 Focal Fossa. I hope you find this quick tip helpful. If you have questions or suggestions, feel free to leave a comment below.