- java
- wget
- jq
- git (Spigot only)
- tar (Optional)
-
Install JVM Runtime of your choice
-
Make sure it is available via
PATH
environment variable.
Verify it viawhereis java
. (*NIX systems only) -
On Windows, You can install it via Chocolatey
choco install -y zulu17
-
-
Install Dependencies
The following scripts does not install Java Runtime. Install JRE if you don't have one installed beforehand.
- Ubuntu/Debian:
sudo apt install jq git wget tar
- Fedora/CentOS/RHEL-based Linux:
sudo yum install jq git wget tar
- Arch Linux (Manjaro, SteamOS, etc.):
sudo pacman -Sy jq git wget tar
- macOS (with Homebrew)
Considering other dependencies are installed via XCode Developer Tools (
xcode-select --install
)brew install jq wget
- Windows (with Chocolatey)
choco install -y wget jq
- Ubuntu/Debian:
-
Run script
-
Automatic install
-
(Optional) Configure your server by setting your environment variables (Refer to settings.env)
-
wget
wget https://raw.githubusercontent.com/underbari7zunderbar/minecraft-server-launcher/master/settings.env set -a; source settings.env; set +a
-
curl
curl -o settings.env https://raw.githubusercontent.com/underbari7zunderbar/minecraft-server-launcher/master/settings.env set -a; source settings.env; set +a
-
-
Run following one-liner script to install
-
wget
bash <(wget -O - https://raw.githubusercontent.com/underbari7zunderbar/minecraft-server-launcher/master/run)
-
curl
bash <(curl -L https://raw.githubusercontent.com/underbari7zunderbar/minecraft-server-launcher/master/run)
After the automatic install,
./run
will be generated automatically on your server directory. You can use./run
to start your server after installation. (Don't forget to set environment variables before you run ( e.g. load from file:set -a; source settings.env; set +a
)) -
-
Manual install
- Download run script to your server directory
- Give executable permissions with
chmod +x ./run
. - (Optional) Configure your server by modifying
./run
or your environment variables (Refer to settings.env) - Run script by
./run
-
- Server jar files are in
~/.mcservers/
- Spigot builds using ** BuildTools**. It may take a few minutes.