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:
30120TCP+UDP (game),30110TCP (optional HTTP) - Red Dead Redemption 2 is not required on the server
Get a license key
- Go to keymaster.fivem.net (same keymaster as FiveM)
- Log in with your Cfx.re account
- Register a new server → select RedM
- 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/serverDownload 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.xzDownload 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-masterCreate 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.cfgchmod +x /home/redm/start.shRun 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.targetEnable and start:
sudo systemctl daemon-reload
sudo systemctl enable redm
sudo systemctl start redm
sudo systemctl status redmFirewall rules
sudo ufw allow 30120/tcp
sudo ufw allow 30120/udpInstall 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-resourceRestart the server:
sudo systemctl restart redmServer 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:
| Command | Description |
|---|---|
status | List connected players |
clientkick <id> <reason> | Kick a player |
ban <id> <reason> | Ban a player |
restart <resource> | Restart a resource |
refresh | Reload 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 redmLogs
# Service logs
journalctl -u redm -f
# Server output (if logging to file)
tail -f /home/redm/server/server.logOneSync
OneSync is required for servers with more than 31 players. Enable it in server.cfg:
set onesync onFor very large servers (100+ players):
set onesync_population trueRedM and FiveM share the same Cfx.re infrastructure, keymaster, and artifact system. Many FiveM resources can be adapted for RedM with minor modifications.