Guide

run.sh Missing From Linux Artifacts: What to Do

If run.sh is missing after extracting FXServer, get the Linux artifact, extract fx.tar.xz into an empty folder and start the server with run.sh.

Short answer: download the Linux build from the artifact listing, not another build. The Linux artifacts include run.sh. Extract fx.tar.xz into a folder for the server, then start the server with run.sh. In a cfx.re forum thread with this problem, the user had been using the wrong artifacts, and the fix was to switch to the Linux ones.

Why run.sh is missing

The FiveM docs start a Linux server with run.sh. In the forum thread, a user following the txAdmin guide could not find run.sh in the artifacts. A reply said Linux artifacts ship with that file. The user then wrote that they had been using the wrong artifacts.

Get the Linux artifact

  1. Open the Linux artifact listing at https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/. The forum thread links to the same listing.
  2. Copy the download link for the newest build. The official docs say to use the recommended master build for Linux from the Server Download page.
  3. Download it with wget, replacing <url> with the link you copied:
wget <url>

Extract the build

The docs create a folder for the server binaries and extract the build into it. Unpacking fx.tar.xz needs xz or xz-utils.

mkdir -p ~/FXServer/server
cd ~/FXServer/server && tar xf fx.tar.xz

Place the downloaded fx.tar.xz in ~/FXServer/server before you run the tar command.

Check that run.sh exists

Run this command:

ls ~/FXServer/server/run.sh

If the path is listed, the file is there. If you get No such file or directory, download the Linux artifact again and check the link before you download.

Start the server with run.sh

The official docs run the server from the server-data folder, using the full path to run.sh:

cd ~/FXServer/server-data && bash ~/FXServer/server/run.sh +exec server.cfg

If it still fails

  • Confirm you downloaded the Linux build. The forum fix was the Linux artifact.
  • If your Linux build is for GTA V Enhanced, the docs say the file is named cfx-server-linux_x64 instead of fx.tar.xz.

Frequently asked questions

Should I create run.sh by hand?

No. The forum fix was to use the correct Linux artifact, which includes run.sh. Get that build instead.

Why do the docs use a full path to run.sh?

The docs start the server from server-data, but run.sh is in the server folder. The full path tells the shell where to find it.

Which file do I extract?

Extract fx.tar.xz with tar xf. For GTA V Enhanced, the docs name the file cfx-server-linux_x64.

Sources

FiveM.tools was founded with sponsorship from Nyru.