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.