How to install Minecraft server on Ubuntu 16.04?

Minecraft is a  sandbox video game developed by Mojang. It ranked highest on games streamed on Twitch. While the player can play the game himself, having a multiplayer mode has created a huge online community.

To play Minecraft multiplayer mode, players need to create their own server, or use a hosting provider. In this tutorial, we will show you how to install Minecraft server on Ubuntu 16.04. Players of any version of Linux can refer to this tutorial, no difference.

What do you need?

Before you start, you need to make sure your VPS meets:

  • At least 1 GB of RAM
  • 5 GB of storage
  • Access SSH root privileges

Step 1 – Install Java and Screen

Before you start, you need to connect to the server via SSH. To log on to the server, open the termina (or use the Putty SSH Terminal if you are using Windows) and type the following command:

Once logged in, you will be able to start installing your own Minecraft server.

To install Minecraft server, you need Java installed on the system first. To do this, perform the following steps:

  1. You may already have Java installed on your machine. To test, execute the following command:
  2. Run the following command in the terminal to load the latest installation package for your machine, including Java:
  3. Now install Java. We will install Java 17 in this tutorial:
  4. In case you want to install the latest version of Java, you can run the following command instead of the above command:
  5. Also, to install the screen, make sure that the server is still running even if you lose the connection. Type the following command to execute:

Now you have Java and Screen installed on your computer.

Step 2 – Install Minecraft Server on Ubuntu

With the necessary preparation steps, you can now install Minecraft server on Ubuntu VPS. To do this, just repeat these steps:

  1. It would be nice to keep everything clean and tidy. To avoid confusing the system, create a folder containing all the MineCraft files inside a folder. This step is optional, you can do or not, but we recommend the same. To create a new directory, run the command:
  2. Once created, access this directory with the command:
  3. Next, you need to have wget on your machine. If not, run the following command to install wget:
  4. Now download and install from MineCraft Server:
  5. At the time of writing this article, the latest version is 1.2.6.2. You can change this number to any other number to install the latest version. Take a look at the versions here: visit this link.
  6. Minecraft Terms of Use:

    Set screen operation and run, so server can run in background:

    We put the current session ‘Minecraft server 1’, but you can use any other name.

And that’s it, you’ve successfully installed Minecraft server on Ubuntu.

Step 3 – Run the Minecraft server

Now just run the installer. To do this, run the following command in the terminal:

And that’s it: Minecraft server will be installed in a few minutes. Server is running in the background for each screen use. To exit screen, type CTRL + A and then D. You can go back to this step and re-open the screen by typing screen -r in the terminal. Finally, you can further adjust in the server’s installation file:

Conclusion

In these steps, we showed you how to install the Minecraft server on Ubuntu. We also provide a lot of information such as installing Java on Ubuntu, installing screens so the server can run in the background.

As an introduction, players have the option of playing on the server hosted. But with this tutorial, you can have full control over security and control on the server.

Leave a Reply

Your email address will not be published. Required fields are marked *