# How To Run RedM Server Artifacts on Linux (/docs/redm/linux-artifacts)



import { Step, Steps } from 'fumadocs-ui/components/steps';

FXServer artifacts are the core engine that powers your RedM server. This guide covers downloading, extracting, and running them on Linux.

> 📝 **Note:** If you are using XGamingServer's managed hosting, the artifacts are handled for you. This guide is for self-hosted or VPS deployments.

Prerequisites [#prerequisites]

* A Linux server (Ubuntu 20.04+ or Debian 11+ recommended)
* `wget` installed (comes pre-installed on most distros)
* `screen` or `tmux` for keeping the server running in the background
* A [cfx.re license key](/docs/redm/create-license-key)

Step 1 — Create a Directory for Artifacts [#step-1--create-a-directory-for-artifacts]

```bash
mkdir -p ~/redm/artifacts
cd ~/redm/artifacts
```

Step 2 — Download the Latest Artifacts [#step-2--download-the-latest-artifacts]

Visit the [FXServer Linux artifacts page](https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/) and copy the link to the latest build.

Then download it with `wget`:

```bash
wget https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/LATEST-RECOMMENDED/fx.tar.xz
```

> 💡 **Tip:** Replace the URL with the latest recommended build link from the artifacts page.

Step 3 — Extract the Archive [#step-3--extract-the-archive]

```bash
tar -xf fx.tar.xz
```

Verify the files extracted correctly:

```bash
ls -la
```

You should see files including `run.sh`, `FXServer`, and supporting libraries.

Step 4 — Create a Server Data Folder [#step-4--create-a-server-data-folder]

Your server data (resources, server.cfg, etc.) should be in a separate directory:

```bash
mkdir -p ~/redm/server-data
cd ~/redm/server-data
```

Download the cfx-server-data base resources:

```bash
git clone https://github.com/citizenfx/cfx-server-data.git .
```

Step 5 — Create server.cfg [#step-5--create-servercfg]

Create a basic `server.cfg` in your server-data folder:

```bash
nano server.cfg
```

Paste in a basic configuration:

```
sv_hostname "My RedM Server"
sv_licenseKey "your_license_key_here"
sv_maxclients 32

set onesync on

ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure monitor
```

Save and exit with **CTRL+X**, **Y**, **Enter**.

> 📝 **Note:** Replace `your_license_key_here` with your actual key. See [Create a License Key](/docs/redm/create-license-key).

Step 6 — Start the Server in a Screen Session [#step-6--start-the-server-in-a-screen-session]

Use `screen` to keep the server running after you close your SSH session:

```bash
sudo apt-get install screen -y
screen -S redm
```

Then run the server:

```bash
cd ~/redm/artifacts
bash run.sh +exec /root/redm/server-data/server.cfg
```

To detach from the screen session without stopping the server, press **CTRL+A**, then **D**.

To reattach later:

```bash
screen -r redm
```

Step 7 — Connect to txAdmin [#step-7--connect-to-txadmin]

On first run, the artifacts launch txAdmin — a web-based server management interface. Look for the access URL in the console output:

```
txAdmin is starting on http://localhost:40120/
```

You can access it remotely via `http://your-server-ip:40120`.

Follow the txAdmin setup wizard to finish configuring your server.

Keeping Artifacts Updated [#keeping-artifacts-updated]

To update your artifacts, stop the server, download the new archive, and replace the old files:

```bash
screen -r redm
# Press CTRL+C to stop the server
cd ~/redm/artifacts
wget [new-artifact-url] -O fx.tar.xz
tar -xf fx.tar.xz
bash run.sh +exec /root/redm/server-data/server.cfg
```

> 💡 **Tip:** Need help getting set up? Join our [Discord](https://discord.xgamingserver.com) for support.

Next Steps [#next-steps]

* [Set Up a Database](/docs/redm/setup-database)
* [Install VORP Framework](/docs/redm/install-vorp-framework)
* [Configure Your Server](/docs/redm/configure-your-server)
