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
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
Name | Notes | Debian (Ubuntu, Mint, WSL, …) | Fedora |
---|---|---|---|
Java | Required | apt install openjdk-8-jre | yum install java-1.8.0-openjdk |
Curl | Optional | apt install curl | yum install curl |
Wget | Optional | apt install wget | yum install wget |
curl -o installer.jar <paste link here>
wget -o installer.jar <paste link here>
java -jar installer.jar server -mcversion <Minecraft version> -downloadMinecraft
fabric-server-launch.jar
file now. You can now delete the installer filefabric-server-launch.jar
instead of the server.jar
. If this must be changed, see the notes below
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
# Download dependencies sudo apt install openjdk-8-jre 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