Skip to content

Commit

Permalink
[Update] How to Set Up a Minecraft Server on Ubuntu or Debian (linode…
Browse files Browse the repository at this point in the history
…#2094)

* Update for Minecraft 1.13

* copy
  • Loading branch information
andystevensname authored and Guaris committed Nov 20, 2018
1 parent 9f50fcd commit c40148b
Showing 1 changed file with 9 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ keywords: ["minecraft", "ubuntu", "debian"]
description: 'This tutorial will teach you basic installation and configuration of a Minecraft server on Ubuntu and Debian'
aliases: ['applications/game-servers/minecraft-on-debian-and-ubuntu/','game-servers/minecraft-on-debian-and-ubuntu/']
license: '[CC BY-ND 4.0](https://creativecommons.org/licenses/by-nd/4.0)'
modified: 2017-07-30
modified: 2018-10-22
modified_by:
name: Linode
published: 2015-01-28
Expand All @@ -20,9 +20,9 @@ external_resources:

![Set Up a Minecraft Server](How_to_Set_Up_a_Minecraft_Server_smg.jpg)

Minecraft is one of the most popular games in the world, with over 100 million users. In Minecraft you and other players are free to build and explore anything you want in a 3D generated world. If you host your own Minecraft server, you decide the rules, and you and your friends can play together in this interactive adventure game.
Minecraft is one of the most popular games in the world. In Minecraft you and other players are free to build and explore anything you want in a 3D generated world. If you host your own Minecraft server, you decide the rules, and you and your friends can play together in this interactive adventure game.

This guide shows you how to set up a personal [Minecraft](https://minecraft.net/game) server on a Linode running Debian 8 or Ubuntu 16.04 LTS. We have updated this guide to be compatible with the major release of 1.12: The World of Color Update.
This guide shows you how to set up a personal [Minecraft](https://minecraft.net/game) server on a Linode running Debian 8 or Ubuntu 16.04 LTS. We have updated this guide to be compatible with the major release of 1.13: Update Aquatic.

## Prerequisites

Expand All @@ -34,7 +34,7 @@ This guide shows you how to set up a personal [Minecraft](https://minecraft.net/

sudo apt update && sudo apt upgrade

3. Install *OpenJDK*, an open-source implementation of Java, and the GNU Screen package.
4. Install *OpenJDK*, an open-source implementation of Java, and the GNU Screen package.

{{< note >}}
Minecraft version 1.12 is only compatible with OpenJDK 8. If you are using OpenJDK 7 you must remove it using this command
Expand All @@ -43,11 +43,11 @@ Minecraft version 1.12 is only compatible with OpenJDK 8. If you are using OpenJ

- In Ubuntu 16.04:

sudo apt install openjdk-8-jre-headless screen
sudo apt install openjdk-8-jre-headless screen

- In Debian 8:

sudo apt install openjdk-8-jre-headless screen
sudo apt install openjdk-8-jre-headless screen

4. Create a new user for Minecraft to run as:

Expand All @@ -67,19 +67,16 @@ If you have a firewall configured according to our [Securing Your Server](/docs/

2. Download the latest version of the Minecraft Multiplayer Server from [Minecraft.net](https://minecraft.net/). Replace the URL in this example to match the current version:

wget https://s3.amazonaws.com/Minecraft.Download/versions/1.12/minecraft_server.1.12.jar
wget https://launcher.mojang.com/v1/objects/3737db93722a9e39eeada7c27e7aca28b144ffa7/server.jar -O minecraft_server.1.13.jar

Refer to the [Minecraft server page](https://minecraft.net/en/download/server) to check for the latest release.

3. Create a script to run the Minecraft server:

{{< file "/home/minecraft/run.sh" sh >}}
#!/bin/sh
BINDIR=$(dirname "$(readlink -fn "$0")")
cd "$BINDIR"

java -Xms1024M -Xmx1536M -jar minecraft_server.1.12.jar -o true

java -Xms1024M -Xmx1536M -jar minecraft_server.1.13.jar -o true
{{< /file >}}


Expand All @@ -96,7 +93,7 @@ The `Xms` and `Xmx` flags define the minimum and maximum amount of RAM the Minec
1. The first time you run the Minecraft server it will create an EULA file and then exit:

$ ./run.sh
[21:39:43] [Server thread/INFO]: Starting minecraft server version 1.12
[21:39:43] [Server thread/INFO]: Starting minecraft server version 1.13
[21:39:43] [Server thread/INFO]: Loading properties
[21:39:43] [Server thread/WARN]: server.properties does not exist
[21:39:43] [Server thread/INFO]: Generating new properties file
Expand Down

0 comments on commit c40148b

Please sign in to comment.