Gaming Servers

RedM

Install and configure a RedM dedicated server for Red Dead Redemption 2 multiplayer on Linux

RedM is the Red Dead Redemption 2 multiplayer framework by the same team as FiveM (Cfx.re). It lets you run custom RDR2 multiplayer servers with scripts, mods, and game modes.

Requirements

  • Ubuntu 22.04 / Debian 12 (64-bit)
  • 4 GB RAM minimum (8 GB recommended)
  • 20 GB disk space
  • A Cfx.re account and server license key
  • Ports: 30120 TCP+UDP (game), 30110 TCP (optional HTTP)
  • Red Dead Redemption 2 is not required on the server

Get a license key

  1. Go to keymaster.fivem.net (same keymaster as FiveM)
  2. Log in with your Cfx.re account
  3. Register a new server → select RedM
  4. Copy the license key

Create a dedicated user

sudo useradd -m -s /bin/bash redm
sudo su - redm
mkdir -p /home/redm/server
cd /home/redm/server

Download RedM server artifacts

# Download the latest recommended artifact
wget https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/LATEST-RECOMMENDED.tar.xz \
  -O fx.tar.xz
tar -xf fx.tar.xz
rm fx.tar.xz

Download the base resources

mkdir -p /home/redm/server/resources
cd /home/redm/server

wget https://github.com/citizenfx/cfx-server-data/archive/refs/heads/master.tar.gz \
  -O cfx-data.tar.gz
tar -xf cfx-data.tar.gz
cp -r cfx-server-data-master/resources/* resources/
rm -rf cfx-data.tar.gz cfx-server-data-master

Create the server configuration

nano /home/redm/server/server.cfg
# Basic server info
sv_hostname "My RedM Server"
sv_maxclients 48
sv_licenseKey "YOUR_LICENSE_KEY_HERE"

# Endpoints
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"

# Game mode
set gametype "Roleplay"
set mapname "New Austin"

# Resources to start
ensure mapmanager
ensure chat
ensure spawnmanager
ensure sessionmanager
ensure basic-gamemode

# Enable OneSync (required for 32+ players)
set onesync on

# RCON password (change this!)
rcon_password "ChangeThisPassword123!"

# Server description
sets tags "roleplay, rdr2, redm"

# Steam API key (optional, for Steam integration)
# set steam_webApiKey "YOUR_STEAM_KEY"

Create the start script

nano /home/redm/start.sh
#!/bin/bash
cd /home/redm/server
exec ./run.sh +exec server.cfg
chmod +x /home/redm/start.sh

Run as systemd service

Exit back to root:

exit
sudo nano /etc/systemd/system/redm.service
[Unit]
Description=RedM Server
After=network.target

[Service]
Type=simple
User=redm
WorkingDirectory=/home/redm/server
ExecStart=/home/redm/start.sh
Restart=on-failure
RestartSec=15s
KillSignal=SIGTERM
TimeoutStopSec=30

[Install]
WantedBy=multi-user.target

Enable and start:

sudo systemctl daemon-reload
sudo systemctl enable redm
sudo systemctl start redm
sudo systemctl status redm

Firewall rules

sudo ufw allow 30120/tcp
sudo ufw allow 30120/udp

Install resources (scripts/mods)

Resources go in /home/redm/server/resources/:

# Example: install a resource from GitHub
cd /home/redm/server/resources
git clone https://github.com/example/my-redm-resource [my-resource]

Add to server.cfg:

ensure my-resource

Restart the server:

sudo systemctl restart redm

Server console and RCON

Access the server console via RCON:

# Install rcon client
sudo apt install rcon -y

# Connect (use password from server.cfg)
rcon -H 127.0.0.1 -P 30120 -p "ChangeThisPassword123!"

Useful RCON commands:

CommandDescription
statusList connected players
clientkick <id> <reason>Kick a player
ban <id> <reason>Ban a player
restart <resource>Restart a resource
refreshReload resource list from disk
start <resource>Start a resource
stop <resource>Stop a resource

Server updates

sudo systemctl stop redm
sudo -u redm bash -c 'cd /home/redm/server && \
  wget https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/LATEST-RECOMMENDED.tar.xz \
  -O fx.tar.xz && tar -xf fx.tar.xz && rm fx.tar.xz'
sudo systemctl start redm

Logs

# Service logs
journalctl -u redm -f

# Server output (if logging to file)
tail -f /home/redm/server/server.log

OneSync

OneSync is required for servers with more than 31 players. Enable it in server.cfg:

set onesync on

For very large servers (100+ players):

set onesync_population true

RedM and FiveM share the same Cfx.re infrastructure, keymaster, and artifact system. Many FiveM resources can be adapted for RedM with minor modifications.

On this page