

You can later synchronize this directory to your remote backup server.

We will create a new system userĪnd group with home directory /opt/minecraft that will run the Minecraft server: sudo useradd -r -m -U -d /opt/minecraft -s /bin/bash minecraft OpenJDK 64-Bit Server VM (build 25.212-b03, mixed mode)įor security purposes, Minecraft should not be run under the root user.

: java -version openjdk version "1.8.0_212" Verify the installation by printing the Java version Install the headless OpenJRE 8 package by running: sudo apt install openjdk-8-jre-headless This version is more suitable for server applications since it has fewer dependencies and uses less system resources. Because the Minecraft Server doesn’t need a graphical user interface, we’ll install the headless version of the JRE. Install the packages required to build the mcrcon tool: sudo apt update sudo apt install git build-essential Installing Java Runtime Environment # The user you are logged in as must have sudo privileges The same instructions apply for Ubuntu 16.04 and any Ubuntu-based distribution, including Linux Mint and Elementary OS. We’ll also show you how to create a cronjob that performs regular server backups. We’ll use Systemd to run the Minecraft server and the mcrcon utility for connecting to the running instance. This tutorial covers the installation and configuration of the Minecraft Server on Ubuntu 18.04. It is a sandbox video game, which allows its players to explore infinite worlds and build everything from simple houses to large skyscrapers. Minecraft is one of the most popular games of all time.
