Minecraft is one of the most played games worldwide. Minecraft is a very popular game with more than 100 million users from all over the world. In a 3D generated place, the players explore & build anything that they want. You can play as a single player or your friends can join your server in multiplayer mode.
To setup Minecraft server on Debian or Ubuntu, follow the tutorial below. This tutorial is compatible with The World of Color release 1.12.
Prerequisites:
Minimum Requirements for these settings:
Before you begin:
Before you begin installation of Minecraft on your server, you will have to follow steps below:
# sudo apt update && sudo apt upgrade
Select “install the package maintainer’s version” option and then select OK.
3. Now you have to setup Java JDK environment & GNU Screen. For this, install OpenJDK & GNU Screen Package. OpenJDK is an open source available implementation of Java.
Install GNU Screen Packages:
To install GNU Screen Packages in Debian or Ubuntu, use the following commands:
# sudo apt-get update
Now execute the following command to upgrade packages.
# sudo apt-get upgrade
2. Now install screen using the following command:
# sudo apt-get install screen
Install OpenJDK:
In Debian 8:
Use the following command for installing OpenJDK with GNU Screen Package in Debian 8.
# sudo apt install openjdk-8-jre-headless screen
In Ubuntu 16.04:
Use the following command for installing OpenJDK with GNU Screen Package in Ubuntu 16.04.
# sudo apt install openjdk-8-jre-headless screen
4. Now you have to create a user with root privileges:
In Debian:
In Debian, sudo is not enabled by default. You have to install sudo first. Use the following command:
# apt install sudo
Now add user using the following command:
# adduser minecraft
Now give root privileges to the added user:
# adduser minecraft sudo
In Ubuntu:
In Ubuntu, you don’t need to install sudo manually. Just add the user using the following command:
# adduser Minecraft
Now give root privileges to added user:
# adduser minecraft sudo
Installation of Minecraft:
# wget https://s3.amazonaws.com/Minecraft.Download/versions/1.12/minecraft_server.1.12.jar
Now you have to create a script to run your Minecraft Server. You can do this as below:
# sudo nano /home/minecraft/run.sh
#!/bin/sh
BINDER=$(dirname “$(readlink -fn “$0”)”)
cd “$BINDIR”
java -Xms1024M -Xmx1536M -jar minecraft_server.1.12.jar -o true
# sudo chmod +x /home/minecraft/run.sh
Note: Xmx & Xms are the flags that are used to define maximum and minimum RAM respectively that will be used by your Minecraft server. Above settings are recommended VPS with 2GB RAM. If you have more available RAM, you can modify flag settings according to your desire.
Now Run Minecraft:
# ./run.sh
# sudo nano /home/minecraft/eula.txt
# screen /home/minecraft/run.sh
Minecraft Server will create the required configurations files & generate Minecraft World.
# screen -r
Now Connect to your Minecraft Server:
If you are living in a digital world you must know how to protect your…
Software Development Life Cycle Model, also known as SDLC or Software Development Process, is base…
Go, often referred to as golang is a modern open-source programming language created by Google…
Torque published an article on October 18, 2016, about WordPress statistics. According to this article,…
PostgreSQL, often known simply as Postgres, is an open-source general-purpose object-relational database management system. In…
SEO is free as well as paid. To achieve SE ranking, money is not enough.…