![]() : Failed to load properties from file: server.properties When you start the server for the first time it executes some operations and creates the server.properties and eula.txt files and stops. To the ~/server directory and start the Minecraft server: cd ~/server java -Xmx1024M -Xms512M -jar server.jar nogui Before continuing with the next step you should check the download page for a new version.Ĭommand to download the Minecraft jar file in the ~/server directory: wget -P ~/server Configuring Minecraft Server # The latest Minecraft server’s Java archive file (JAR) is available for download from the Minecraft download pageĪt the time of writing, the latest version is 1.14.1. In this guide, we will install the latest Mojang’s official vanilla Minecraft server. That allows you to add features (plugins) on your server and further customize and tweak the server settings. There are several Minecraft server mods such as Craftbukkit Report bugs to tiiffi_at_gmail_dot_com or Mcrcon -H my.rver -p password "say Server is restarting!" save-all stop Rcon commands with arguments must be enclosed in quotes. Server address, port and password can be set using following environment variables:Ĭommand-line options will override environment variables. r Output raw packets (debugging and custom handling) s Silent mode (do not print received packets) The output will look something like this: Once completed, you can test it by typing. Start the compilation of the mcrcon utility by typing: gcc -std=gnu11 -pedantic -Wall -Wextra -O2 -s -o mcrcon mcrcon.c When the cloning is finished, switch to the repository directory: cd ~/tools/mcrcon Start by navigating to the ~/tools directory and clone the Tiiffi/mcrcon repository from GitHub using the following command: cd ~/tools & git clone We’ll download the source code from GitHub and build the mcrcon binary. RCON is a protocol that allows you to connect to the Minecraft servers and execute commands. The server directory will contain the actual Minecraft server and its data.The tools directory will store the mcrcon client and the backup script.You can later synchronize this directory to your remote backup server. The backups directory will store your server backup.Run the following command to create three new directories inside the user home directory: mkdir -p ~/ Installing Minecraft on Ubuntu #īefore starting with the installation process, make sure you switch to minecraft user. To change to the minecraft user you’ll need to be logged in to the server as root or user with sudo privileges. This is good security practice because this user will not be able to login via SSH. We are not going to set a password for this user. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |