Does FiveM Work on Linux? Client No, Server Yes (2026)

Published on | Updated

Does FiveM work on Linux? The client does not, Steam Deck included. The server runs on x86-64 Linux: Ubuntu and Debian steps, ports, txAdmin and errors.

Two GTA V roleplay characters standing between their cars at night, with the Vinewood sign lit up behind them

"Does FiveM work on Linux?" is really two questions: can you play GTA RP on a Linux PC or a Steam Deck, and can you run a FiveM server on Ubuntu or Debian? The answers are opposite. Here they are side by side, followed by the Linux server steps from Cfx.re's documentation, the ports and the errors you will actually see.

Quick answer: The FiveM client, the part you play with, does not work on Linux. Cfx.re's system requirements name only Windows 10 and Windows 11, and that rules out the Steam Deck too, because it runs SteamOS, which is Linux. The FiveM server (FXServer) does run on Linux, on x86-64 machines only. Cfx.re calls the Linux build "a courtesy port" and says issues are more likely to be fixed on Windows. On Ubuntu or Debian you install git and xz-utils, download fx.tar.xz, unpack it and start run.sh.

Does FiveM Work on Linux?

FiveM client (playing)FXServer (hosting)
Linux support from Cfx.reNo: the requirements list Windows 10 and 11 onlyYes, as a "courtesy port"
Steam Deck on SteamOSNoNot applicable
Wine or ProtonNot supported; forum users report the anti-cheat blocks joining serversNot needed: the Linux build is native
ARM (Oracle Ampere, Raspberry Pi)Not covered by the requirementsNo: the Linux build is x86-64 only
What you downloadThe FiveM installer from fivem.net (Legacy or Enhanced)fx.tar.xz, or cfx-server_linux_x64.tar.xz for GTAV Enhanced
Issues more likely fixed onNot statedWindows, says Cfx.re

Playing FiveM or GTA RP on Linux or Steam Deck

The system requirements on fivem.net name an operating system for both clients: Windows 10 as the minimum and Windows 11 as recommended, for FiveM (Legacy) and for FiveM for GTAV Enhanced alike. Linux, macOS and SteamOS are not on the list. For consoles the FAQ on the same page is direct: offering FiveM there "is not feasible, since FiveM uses advanced interoperability mechanisms only available on the PC platform."

The Steam Deck gets the same answer as any Linux PC. Valve's spec sheet lists its operating system as "SteamOS 3 (Arch-based)", and Arch is a Linux distribution.

What about Proton or Wine? The Cfx.re forum thread "[Request] Client support for Linux" has run since 21 July 2024 and held 81 posts by 14 October 2026, none of them from Cfx.re staff. Posters disagree on whether the client even starts under Proton. Those who got it started describe the same wall: FiveM's anti-cheat does not run there, so servers that use it refuse the connection, and one poster notes that this is "absolutely most of them". That is community testing, not a supported setup, and any client update can change it.

What Linux players actually do today:

  • Windows on a second drive, or dual boot. Several posters in that thread keep a Windows install only for FiveM. It is the only setup that matches Cfx.re's requirements.
  • A Windows virtual machine. Two posters report FiveM running in a Windows guest under VMware Workstation on Linux. One found calm roleplay fine but races and shootouts "a lot dodgier"; VirtualBox and GNOME Boxes did not work for the other. Cfx.re says nothing about virtual machines, so treat this as an experiment.

On a Steam Deck, the only route that matches the requirements is Windows on the Deck. Cfx.re does not mention the Deck, so compare its hardware with our FiveM system requirements guide first.

Can FiveM Run on Linux as a Server?

Yes. Cfx.re's server FAQ recommends "a x86-64 system running Linux or Windows (7/2008 R2+), decent upstream connectivity and preferably a multi-core processor." The vanilla setup guide adds the catch: "the Linux version of FXServer is only provided as a courtesy port due to issues regarding Linux distribution compatibility and availability of diagnostic tools for native C++ code. If you're experiencing any issues, you're more likely to see them fixed if you use the Windows version."

What is inside fx.tar.xz

To see how Cfx.re deals with distribution compatibility, we listed the contents of the Recommended Linux build, 35245, on 4 November 2026. The 70.6 MB archive holds two things: a run.sh script and an alpine folder with the base files of Alpine Linux 3.16.5, FXServer itself and its libraries. run.sh starts FXServer through the bundled musl loader and points it at the libraries in that folder:

exec $SCRIPTPATH/alpine/opt/cfx-server/ld-musl-x86_64.so.1 \
    --library-path "$SCRIPTPATH/alpine/usr/lib/v8/:$SCRIPTPATH/alpine/lib/:$SCRIPTPATH/alpine/usr/lib/" -- \
    $SCRIPTPATH/alpine/opt/cfx-server/FXServer +set citizen_dir $SCRIPTPATH/alpine/opt/cfx-server/citizen/ $*

What that means in practice:

  • FXServer brings its own libraries. It does not load your distribution's C library, which fits the short prerequisites list in Cfx.re's guide: git and xz.
  • It is x86-64 only. The loader is ld-musl-x86_64.so.1. On an ARM machine such as an Oracle Ampere instance or a Raspberry Pi, run.sh stops with an error ending in "Exec format error", the kernel's message (ENOEXEC) when it cannot run a file in that format. Our Oracle Cloud ARM post covers that case.
  • You do not need Wine. This is a native Linux build.
  • Your arguments pass through. The $* at the end hands everything after run.sh to FXServer, so +exec server.cfg arrives as written.

FiveM Server on Ubuntu or Debian: Vanilla Setup

These are the steps from Cfx.re's vanilla guide, with the download address read from Cfx.re's version API so the commands stay current. Run them as a normal user, not as root; our complete setup guide shows how to give FXServer its own system user.

# 1. Prerequisites (on Debian and Ubuntu, xz is in the xz-utils package)
sudo apt update && sudo apt install -y git xz-utils curl wget

# 2. A folder for the server binaries
mkdir -p ~/FXServer/server && cd ~/FXServer/server

# 3. Download the current Recommended Linux build and unpack it
URL=$(curl -s https://changelogs-live.fivem.net/api/changelog/versions/linux/server | grep -o '"recommended_download":"[^"]*"' | cut -d'"' -f4)
echo "$URL"
wget -O fx.tar.xz "$URL"
tar xf fx.tar.xz

# 4. The base server data, in its own folder outside the binaries
git clone https://github.com/citizenfx/cfx-server-data.git ~/FXServer/server-data

As of 4 November 2026 the Linux version API returned build 35245 (txAdmin 8.1.1) as Recommended and 38220 (txAdmin 8.1.2) as Latest, with the files in the build_proot_linux folder on runtime.fivem.net. The Server Download page lists the same builds. For a live server, stay on Recommended.

Next, create ~/FXServer/server-data/server.cfg. Copy the full example from the vanilla guide; these are the lines that matter most on a fresh Linux server:

endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"
set onesync on
sv_maxclients 48
sv_licenseKey changeme

Replace changeme with your key from the Cfx Portal. Then start the server from the server-data folder, exactly as the docs write it:

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

The cd is not optional. Cfx.re's troubleshooting list blames a wrong starting folder when no resources are found.

The txAdmin Route on Linux

txAdmin is part of FXServer, so there is nothing extra to install. Its README says to "run FXServer without any +exec server.cfg launch argument, and FXServer will automatically start txAdmin." On Linux:

cd ~/FXServer/server && bash run.sh

On first boot txAdmin creates a txData folder and prints the panel address and a PIN. On a VPS, reach the panel through the SSH tunnel below and open http://localhost:40120 on your own computer instead of opening port 40120 to the internet, then link your Cfx.re account and let the wizard deploy a recipe; our txAdmin guide covers the wizard. Two Linux details from txAdmin's environment docs:

  • txData sits next to run.sh. On Linux the default is "the folder that contains your run.sh" (on Windows, the folder above the artifact). It holds txAdmin's logs, configs and data, so an update must replace alpine and run.sh, never the whole folder.
  • Settings go in environment variables. The panel listens on TCP 40120 unless you set TXHOST_TXA_PORT. Put export lines in an env.sh and start with source env.sh && ./run.sh; the docs also allow editing run.sh, but an update replaces that file.

Keep it running after you log out

A server started straight from your SSH shell stops when you log out: bash's manual says an interactive shell "resends the SIGHUP to all jobs" when it gets one. Run FXServer inside tmux, which "may be detached from a screen and continue running in the background":

sudo apt install -y tmux
tmux new -s fivem        # start FXServer in this session
# detach with Ctrl+B, then D; come back later with:
tmux attach -t fivem

For a server that starts on boot, a systemd service is the next step.

Ports and Firewall on Linux

PortProtocolUsed byOpen to the internet?
30120TCP and UDPFXServer, from the endpoint_add_tcp and endpoint_add_udp linesYes
40120TCPtxAdmin web panel (default of TXHOST_TXA_PORT)Better not: use an SSH tunnel

With UFW, allow SSH before anything else. The ufw manual warns that enabling the firewall "may drop existing connections (eg ssh)", and it explains that a rule without a protocol, like ufw allow 53, allows TCP and UDP:

sudo ufw allow 22/tcp
sudo ufw allow 30120     # TCP and UDP
sudo ufw enable

To reach txAdmin without opening 40120, forward it over SSH from your own computer (ssh -L) and open http://localhost:40120:

ssh -L 40120:127.0.0.1:40120 you@SERVER-IP

To check that players can reach the game port, Cfx.re's server issues page suggests opening http://SERVER-IP:30120/info.json from outside the server: it should return your server's info as JSON. In the FiveM client, press F8 and type connect SERVER-IP:30120. If the server still does not appear in the list, our server list error guide covers Cfx.re's polling addresses and the other causes.

Linux Error Messages and What They Mean

We reproduced the first two with GNU tar and bash. The third follows from the x86-64 loader in the archive, and the last three are the "Common issues" in Cfx.re's vanilla guide.

What you seeWhat it meansFix
tar (child): xz: Cannot exec: No such file or directoryxz is not installed, so tar cannot unpack fx.tar.xzsudo apt install xz-utils, then run tar xf fx.tar.xz again
bash: .../run.sh: No such file or directoryWrong path, or the archive was unpacked somewhere elsels ~/FXServer/server should show run.sh and alpine
An error ending in Exec format errorThe machine is ARM; the Linux build is x86-64Use an x86-64 server
No "resources found", then "Failed to start resource"You did not cd to the right foldercd ~/FXServer/server-data before you start
No resources start, and players get "timed out" or "connection refused"+exec server.cfg is missingAdd it; without it FXServer starts txAdmin instead
"no license key was specified"Cfx.re: one of the two mistakes above may applyCheck the folder and +exec, then the sv_licenseKey line

Linux or Windows for a FiveM Server?

Both run the same builds: on 4 November 2026 Cfx.re's version API listed 35245 as Recommended and 38220 as Latest for Windows and Linux alike, with the same txAdmin versions. The server.cfg, the ports and the license key are identical too. What differs:

  • Files. Windows uses server.7z with FXServer.exe, Linux fx.tar.xz with run.sh, and txData sits in a different place.
  • Fixes. Cfx.re says issues are more likely to be fixed if you use Windows. If a crash only happens on Linux, try the same build and resources on Windows before you report it.
  • GTAV Enhanced. On 4 November 2026 the Server Download page listed cfx-server_linux_x64.tar.xz, build 170, for Enhanced; Cfx.re's guides spell it cfx-server-linux_x64. Enhanced is in early access and numbers its builds separately, so check the unpacked folder before you reuse the commands above, which are for fx.tar.xz.

If you want to skip the Linux work, our FiveM hosting comes with txAdmin pre-installed and runs from a control panel, so you never touch run.sh. If you want your own Linux box instead, our VPS hosting offers Ubuntu and Debian images with full root access in an EU data center, and for game servers the Premium plans on a Ryzen 9 9950X are the better fit.

Updating FXServer on Linux

Stop the server, move the old alpine and run.sh aside, unpack the new build in their place and start again. txData and your server-data folder stay where they are:

cd ~/FXServer/server
mkdir -p ../rollback-$(date +%F) && mv alpine run.sh ../rollback-$(date +%F)/
URL=$(curl -s https://changelogs-live.fivem.net/api/changelog/versions/linux/server | grep -o '"recommended_download":"[^"]*"' | cut -d'"' -f4)
wget -O fx.tar.xz "$URL" && tar xf fx.tar.xz

Keep -O fx.tar.xz: without it, wget saves the new file as fx.tar.xz.1 and tar unpacks the old build again. Our artifacts guide covers rollbacks and checking your build number.

FAQ

Does FiveM work on Linux?

The client does not: Cfx.re's requirements list only Windows 10 and Windows 11. The server does: FXServer has an official Linux build for x86-64 machines, which Cfx.re calls a courtesy port.

Can I play GTA RP on Steam Deck?

Not on SteamOS. Valve lists the Deck's operating system as "SteamOS 3 (Arch-based)", which is Linux, and FiveM's requirements name only Windows. Forum users report that the anti-cheat blocks joining servers under Proton.

Does FiveM run on Ubuntu?

The server does. Cfx.re's guide names the Debian and Ubuntu package you need (xz-utils, plus git) but no specific Ubuntu releases, and the Linux build ships its own Alpine-based libraries. The FiveM client does not run on Ubuntu.

Can I host FiveM on Oracle ARM or a Raspberry Pi?

No. The Linux build starts through ld-musl-x86_64.so.1, an x86-64 loader, and Cfx.re recommends an x86-64 system. On ARM, run.sh ends in "Exec format error".

Do I need Wine to run a FiveM server on Linux?

No. fx.tar.xz is a native Linux build: run.sh starts FXServer with the musl loader and libraries bundled in the alpine folder.

Is Linux or Windows better for a FiveM server?

Both run the same builds, the same server.cfg and the same txAdmin. Linux is fine if you are at home on the command line; Windows is where Cfx.re says issues are more likely to be fixed, which matters when you hit a crash nobody else reports.

Sources

All opened on 4 November 2026: