Minecraft is a popular independent sandbox game. It was first created by Swedish programmer Markus "Notch" Perssion and later developed and released by Mojang. This is a game about breaking and placing bricks. First, people build buildings to resist night monsters. As the game develops, players create interesting and imaginative things together.
Creating a minecraft server on Linux is very simple and straightforward. The Minecraft hosting server should have at least 2 gb ram memory. Once we log in, we should ensure that our package is up-to-date:
# Sudo apt-get update
The Minecraft server requires java support. To check whether Java has been installed, run the following command:
# Java-version
If Java has been installed, we will get the information of the current Java version. If Java is not installed, we will get an error message, such as "Command not found" or similar information. To install Java, run the following command:
# Sudo apt-get install default-jdk
We also need to install screen on the server. We will use it later to start the minecraft server. It will maintain the connection and can run even after the terminal is closed. To install screen, run the following command:
# Sudo apt-get install screen
After installing all dependencies, it is time to install the Minecraft server. Create a folder to save the Minecraft files:
# Mkdir minecraft
# Cd minecraft
# Wget-O minecraft_server.jar https://s3.amazonaws.com/Minecraft.Download/versions/1.7.4/minecraft_server.1.7.4.jar
Once the download is complete, we need to run it. We run it in screen, so that it will always run in the background. To create a screen and start the Minecraft server, we need to execute:
# Screen-S "Minecraft server"
# Java-Xmx1024M-Xms1024M-jar minecraft_server.jar nogui
We will get some output and status information, including the completion information. We can launch screen at will and call it at any time. To exit screen, press CTRL + A, and then click "d.
To re-call the screen, we first list all the screens and then call it with its specific ID:
# Screen-ls
# Screen-r <screen_id>
You can edit the main configuration file, which is located in ~ /Minecraft/server. properties, where you can modify all the settings. Now you have all set and installed Minecraft. Invite your friends to have fun!