How to Set Up a Rust Dedicated Server on Linux
Rust is one of the most popular multiplayer survival games. Hosting your own dedicated server gives you complete control over map size, seed, wipe schedules, and plugins. This guide explains how to install Rust Dedicated Server on Ubuntu 22.04 / 24.04.
1. System Requirements
Rust requires substantial CPU single-core performance and memory:
- CPU: 4+ modern vCPU cores (AMD Ryzen or Intel Xeon Gold recommended)
- RAM: Minimum 12 GB RAM, 16 GB+ recommended for large maps (3500+ size)
- Storage: 40 GB+ NVMe SSD
Install prerequisites:
sudo apt update && sudo apt upgrade -y
sudo apt install -y curl wget file tar bzip2 gzip unzip lib32gcc-s1 lib32stdc++6 libsqlite3-dev2. Create User & Install SteamCMD
sudo useradd -m -s /bin/bash steam
sudo su - steam
mkdir ~/steamcmd && cd ~/steamcmd
curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -3. Download Rust Server Files
Install the Rust Dedicated Server (App ID 258550):
~/steamcmd/steamcmd.sh +force_install_dir /home/steam/rust +login anonymous +app_update 258550 validate +quit4. Create Startup Script
Create a launch script /home/steam/rust/start.sh:
nano /home/steam/rust/start.shAdd the following launch parameters:
#!/bin/bash
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/steam/rust/RustDedicated_Data/Plugins/x86_64
./RustDedicated -batchmode +server.ip 0.0.0.0 +server.port 28015 +server.tickrate 30 +server.hostname "My Ryzehosting Rust Server" +server.identity "rust_server_01" +server.seed 12345 +server.worldsize 3500 +server.maxplayers 50 +server.description "Welcome to our Rust Server! Hosted on high-performance infrastructure." +rcon.ip 0.0.0.0 +rcon.port 28016 +rcon.password "ChangeThisSecureRconPassword!" +rcon.web 1 -logfile /home/steam/rust/server.logMake the script executable:
chmod +x /home/steam/rust/start.sh5. Systemd Service (Auto-Start)
Exit back to root (exit) and create the service file:
sudo nano /etc/systemd/system/rust.servicePaste:
[Unit]
Description=Rust Dedicated Server
After=network.target
[Service]
Type=simple
User=steam
WorkingDirectory=/home/steam/rust
ExecStart=/home/steam/rust/start.sh
Restart=on-failure
RestartSec=15
[Install]
WantedBy=multi-user.targetEnable and start the service:
sudo systemctl daemon-reload
sudo systemctl enable rust
sudo systemctl start rust6. Firewall Configuration
Open the game and RCON ports in UFW:
sudo ufw allow 28015/tcp
sudo ufw allow 28015/udp
sudo ufw allow 28016/tcpConnect in Rust by opening the F1 in-game console and typing: client.connect <YOUR-SERVER-IP>:28015.
Ready for your own game server?
Launch your own gaming project on our high-performance KVM VPS with maximum AMD Ryzen single-core power, ultra-fast NVMe storage, and real Layer 3/4/7 DDoS protection (PletX & SmartNet). 100% prepaid with no contract lock-in.