How To Set Up A Minecraft Server On Linux

From Scientific Programs
Jump to: navigation, search

Minecraft is popular sandbox indie game originally created by Swedish programmer Markus "Notch" Persson and later developed and published by Mojang. It is a game that involves breaking and placing blocks. At first, people built structures that protected against nocturnal creatures. But as the game developed, players began to work together to create amazing, imaginative things.



Setting up minecraft server on your Linux server is simple and straight forward task. Minecraft server should have at minimum 2GB RAM memory. Once we log in, we need to ensure that our repositories remain up-to-date.



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



If Java is installed, we'll get a message with information about the current Java version. If Java is not installed, we will see an error such as "Command failed to find" or 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 your connection alive even after you close the console. The following command will install the screen:



After we have installed all prerequisites, it is time to install Minecraft server. We start with creating directory that we are going to use to keep the Minecraft files:



Once it is downloaded we will need to 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". You can exit the screen and reattach it at any time. To exit the screen, press CTRL+A simultaneously and then click on the "d" key.



To re-attach the screen to your computer, first list all screens. Then, attach the one with 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? Get our white paper to get started!