How To Set Up A Minecraft Server On Linux

From Valentino Fans
Jump to: navigation, search

Minecraft is a popular sandbox-indie game. It was created by Markus Persson, a Swedish programmer. Mojang later developed it and published it. It is a game about breaking and placing blocks. The original purpose of the game was to build structures to protect against nocturnal animals. minecraft However, over time, people began to collaborate to create imaginative and beautiful things.



Setting up minecraft server on your Linux server is simple and straight forward task. Minecraft server should have at minimum 2GB RAM memory. Chakribakri's blog After logging in, we must ensure that our repositories are up-to-date.



Minecraft server requires java installed on the server. To verify if Java is already installed, you can execute the following command.



If Java has been installed, we will receive a message containing information about the current Java version. If Java isn't installed, we will receive an error message such as "Command Not Found" or something similar. The following command will be executed if Java is needed to be installed:



We will also need screen to be installed on our server. We will be using it later in order to start the minecraft server. It will keep the connection open even after you close your console. The following command will install the screen:



After we have installed all prerequisites, it is time to install Minecraft server. We create a directory to keep Minecraft files.



Once it has been downloaded, we must run it. We will run it inside screen, so it will keep running in background all the time. To create the screen and then start the Minecraft server we need to execute:



We will receive some output and status updates as well the message that it has been "done". We can easily exit the screen, and re-attach it anytime. To exit the screen press CTRL+A at once and then click on your "d", key.



To reattach the screen we first list all screens, then reattach to the one that has the specific ID.



You can edit the main configuration file which will be located in ~/minecraft/server.properties and change all the settings from there. You're now all set and the Minecraft server is installed. Invite your friends to join you in the fun and have fun!



Would you like to know about Zuul, a CI/CD project gating tool? minecraft Get our white paper to get started!