You are currently viewing How to create a Minecraft server in 2022

How to create a Minecraft server in 2022

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.

logged in to minecraft server cmd
You can connect to your server simply by writing the following:
  • ssh NAME@SERVER_IP
After successfully connecting to your server, make sure to update and upgrade all of the packages to the latest ones!
  • sudo apt-get update && sudo apt-get upgrade
After doing that, create a new user.
  • adduser mcserver
After creating a user, we will log in directly from a root user to this user.
  • su – mcserver
Now we will download a LinuxGSM minecraft server installer.
  • wget -O linuxgsm.sh https://linuxgsm.sh && chmod +x linuxgsm.sh && bash linuxgsm.sh mcserver
Then we will install it (keep in mind, most often it might fail, and we will fix it later!)
  • ./mcserver install
If it failed, please copy missing dependencies and exit from the mcserver user.
  • 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.

Leave a Reply