This is an old revision of the document!
Table of Contents
Installing a Fabric Server without a GUI
Let’s say that you want to install a Fabric server on a machine which does not have GUI support. For example, if you have rented a VPS, and you want to run your own Fabric server on that
Requirements
You will require a version of Java of minimum version 8
You will also need a way to download files to the server. This can be done using a file transfer, curl or wget
Installing dependencies
Name | Notes | Debian (Ubuntu, Mint, WSL, …) | Fedora |
---|---|---|---|
Java | Required | apt install openjdk-8-jre-headless | dnf install java-1.8.0-openjdk-headless |
Curl | Optional | apt install curl | dnf install curl |
Wget | Optional | apt install wget | dnf install wget |
Instructions
- Create and enter a directory to put the server in
- Transfer the latest version of the Fabric Installer
- Curl: Find the download url of the installer jar from this page (right click the button and copy the download link). Then, inside the server directory, run
curl -o installer.jar <paste link here>
- Wget: Find the download url of the installer jar from this page (right click the button and copy the download link). Then, inside the server directory, run
wget -o installer.jar <paste link here>
- File transfer: Download the installer jar from this page and transfer it into the server directory
- Run the installer.
java -jar installer.jar server -mcversion <Minecraft version> -downloadMinecraft
- There should be a
fabric-server-launch.jar
file now. You can now delete the installer file - To launch the server, run
fabric-server-launch.jar
instead of theserver.jar
. If this must be changed, see the notes below
Notes
If you are required to name the main jar server.jar
, first rename the original server.jar
to vanilla.jar
and update the name in fabric-server-launcher.properties
to serverJar=vanilla.jar
. Then, the fabric-server-launch.jar
file can be named anything
If you are unable to run any commands on the server, you can perform all these steps on your own computer and transfer both files in your server directory
Debian example
# Download dependencies sudo apt install openjdk-8-jre-headless curl # Create the server folder and enter it mkdir fabric cd fabric # Download the installer curl -o installer.jar <installer jar url> # Run the installer java -jar installer.jar server -mcversion 1.16.5 -downloadMinecraft # Delete installer file rm installer.jar # Rename jars mv server.jar vanilla.jar mv fabric-server-launch.jar server.jar echo "serverJar=vanilla.jar" > fabric-server-launcher.properties # Start the server java -jar server.jar