From 0aa55a2bfd602d246eb404556e3242a75ddf369e Mon Sep 17 00:00:00 2001 From: zleyyij Date: Sun, 23 Jul 2023 08:37:03 -0600 Subject: [PATCH] vault backup: 2023-07-23 08:37:03 --- Setting up a Minecraft server.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Setting up a Minecraft server.md b/Setting up a Minecraft server.md index 7706fdc..debacb5 100644 --- a/Setting up a Minecraft server.md +++ b/Setting up a Minecraft server.md @@ -9,12 +9,18 @@ As of 2023-07, Minecraft requires Java 17 to run version 1.20.1. You may need to - Prior to installation, be sure to remove a java installation if it exists on your system. You can see if java is present on your distro with `java --version`. The format of the install command will change depending on the Java version, distro repositories and package manager, but this is what you'd run to install Java 17 on Debian 12: -``` +```sh sudo apt install openjdk-17-jre-headless ``` # Setting up a location for the server -I like to have the minecraft server jar in `/opt/minecraft` (`/opt` is for non-user specific programs that don't go in any of the `/bin` folders), accessible by an `opt` +I like to have the minecraft server jar in `/opt/minecraft` (`/opt` is for non-user specific programs that don't go in any of the `/bin` folders), accessible by a `minecraft` group. + +```sh +# Make a new folder named `minecraft` in `/opt` +sudo mkdir /opt/minecraft + +``` This enables minecraft to run in the background, restart if it crashes, etc etc.