Rust Dedicated Server installs via SteamCMD. You need solid RAM/CPU and open UDP ports for players.
Steps
Install deps and SteamCMD (Ubuntu 64-bit example):
sudo apt updatesudo apt install -y lib32gcc-s1 curlsudo useradd -m -r -s /bin/bash rustserversudo mkdir -p /opt/steamcmd /opt/rust && sudo chown -R rustserver:rustserver /opt/steamcmd /opt/rustDownload SteamCMD and the dedicated server (app 258550):
sudo -u rustserver bash -c 'cd /opt/steamcmd && curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -'sudo -u rustserver /opt/steamcmd/steamcmd.sh +force_install_dir /opt/rust +login anonymous +app_update 258550 validate +quitStart with a basic command (tune identity, port and rcon):
sudo -u rustserver bash -c 'cd /opt/rust && ./RustDedicated -batchmode +server.port 28015 +server.identity myrust +rcon.port 28016 +rcon.password CHANGE_ME'Open the usual UDP/TCP ports in UFW:
sudo ufw allow 28015/udpsudo ufw allow 28016/tcp
Tips
- Rust is RAM-hungry — start with headroom and watch htop.
- Keep the rcon password out of shell history.
ext step
VPS sized for Rust: Browse game servers.