User Tools

Site Tools


player:tutorials:install_server

This is an old revision of the document!


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

NameNotes Debian (Ubuntu, Mint, WSL, …) Fedora
JavaRequiredapt install openjdk-8-jre-headlessdnf install java-1.8.0-openjdk-headless
CurlOptionalapt install curl dnf install curl
WgetOptionalapt install wget dnf install wget

Instructions

  1. Create and enter a directory to put the server in
  2. 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
  3. Run the installer. java -jar installer.jar server -mcversion <Minecraft version> -downloadMinecraft
  4. There should be a fabric-server-launch.jar file now. You can now delete the installer file
  5. To launch the server, run fabric-server-launch.jar instead of the server.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
player/tutorials/install_server.1615449570.txt.gz · Last modified: 2021/03/11 07:59 by kb1000