Here you will learn how to easily install and setup your own Minecraft server on a Linux operating system!
To create a minecraft server easily, we will be using a LinuxGSM to setup a minecraft server.
We already assume that you have a Linux server which has installed Ubuntu 20.04 or 18.04 (might be even lower). First of all what we need to do is to connect to your server via SSH.
If you have on Windows operating system, open up your CMD window and connect to your server.

- ssh NAME@SERVER_IP
- sudo apt-get update && sudo apt-get upgrade
- adduser mcserver
- su – mcserver
- wget -O linuxgsm.sh https://linuxgsm.sh && chmod +x linuxgsm.sh && bash linuxgsm.sh mcserver
- ./mcserver install

- exit
- sudo dpkg –add-architecture i386; sudo apt update; sudo apt install unzip binutils jq netcat default-jre
After successfully installing all of the missing dependencies, we will log back in and we will repeat the installation of the Minecraft server.
- su – mcserver
- ./mcserver install
After a successful installation, we can start the server.
- ./mcserver start
And if you want to see all of the console messages, simply write.
- ./mcserver console
Keep in mind, if you will press CTRL+C to exit from the console, your server will be turned off. Make sure to use CTRL+B and then D.
To update or upgrade Minecraft server version, I would simply suggest using WinSCP. Make sure to download alternate minecraft.jar file and replace it via WinSCP.