How to Create a Minecraft Server: A Comprehensive Tutorial
Minecraft is a very simple 3D game based on pixels. In a short time, this game has created a lot of popularity among Internet users and video game enthusiasts. This is a group game that allows users to play together on a server. Among the features of this game, we can mention the construction of 3D buildings. The whole game is adventurous and time-consuming.
Minecraft is a “SandBox” style video game. Sandbox is a style of game in which the gamer has complete freedom of action and chooses “when“, “where” and “how” to continue the game. This game was designed and built by Swedish game developer Markus Persson, nicknamed Notch. The game was then fully upgraded and marketed by Mojang.
The creative and constructive aspect of Minecraft allows the gamer to create the structures of his choice with 3D cubes and with a wide variety of designs. But the beauty and charm of the game do not end with this trivial option. The game offers “mods” to the user.
Prerequisites Of Creating A Minecraft Server
- A Linux VPS with Ubuntu 16 operating system
- 1024 MB RAM (at least 1024 MB but the recommended amount is 2048 MB. Of course, this depends on the amount of traffic and the number of players)
Well, first of all, if you have not yet provided a virtual server, you should order a Linux VPS. The package suitable for this game is a standard virtual server package like a plan with at least 2GB of RAM. Now suppose you have already installed the Ubuntu operating system, let’s go to the installation of the Minecraft server. (Learn how to connect to the server via SSH)
Steps To Install Minecraft Server On Linux VPS
1- First of all, as always, we update the system. (It is suggested that you always do this before installing a program)
apt-get upgrade -y
2- Install OpenJDK. This is an open-source program to implement java and GNU and create this environment on Ubuntu. Install it with the following command.
apt-get install openjdk-8-jre-headless screen
3- Creating a new user.
4- Change the type of user from the current to the new user we created.
su - minecraft
5- It is time to install Minecraft. Install the latest version via the following command.
Note: You can find the latest versions on the Minecraft page itself.
6- Creating a script that runs Minecraft.
7- Enter the following code in this file and then save.
#! / bin / sh
BINDIR = $ (dirname "$ (readlink -fn" $ 0 ")")
cd "$ BINDIR"
java -Xms2048M -Xmx4096M -jar minecraft_server.1.11.2.jar -o true
Note that the Xms and Xmx values are the minima and maximum amounts of RAM allocated to the Minecraft server. In this article, the minimum is 2048 MB and the maximum is 4096 MB. This value can vary depending on the volume of server usage.
8- Then define that the newly created script is executable with the following command.
chmod + x /home/minecraft/run.sh
9- Run Minecraft.
10- Open the eula.txt file and change the EULA value to true.
11- To ensure that the Minecraft server uses a separate SSH, run the following command.
sudo screen /home/minecraft/run.sh
12- Open the Minecraft client program and click on Multiplayer.
13- Enter the server address, which is the IP of the server, and connect to the server.
Congratulations, you have launched a dedicated and personal Minecraft server. Now you can share the IP address with your friends, all together on one server, and enjoy the game.
To run a Minecraft server you just need a Linux VPS and the way to configure it that we explained in this tutorial.
We hope you’ve enjoyed this post and found it useful.
Please do not hesitate to share your opinions with us.