How to Set Up a Rust Server on a VPS
Introduction
Hosting your own Rust server on a VPS lets you control your gaming experience and play with friends. This guide explains how to set up a Rust server on your VPS.
Step-by-step Guide
- Update your package list
- sudo apt update
- Install required dependencies
- sudo apt install -y lib32gcc-s1 wget screen
- Create a new user for the server
- sudo adduser --disabled-login rustserver
- Switch to the new user
- sudo su - rustserver
- Download and install SteamCMD
- wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
- tar -xvzf steamcmd_linux.tar.gz
- Install Rust server using SteamCMD
- ./steamcmd.sh
- login anonymous
- force_install_dir ~/rustserver/
- app_update 258550 validate
- quit
- Start the Rust server
- cd ~/rustserver
- screen -S rust ./RustDedicated -batchmode -nographics +server.port 28015 +server.level "Procedural Map" +server.seed 12345 +server.worldsize 4000 +server.maxplayers 10 +server.hostname "My Rust Server"
- (Optional) Open firewall ports
- sudo ufw allow 28015/udp
Recommendations
- Use a strong password for your VPS.
- Regularly update your server and Rust files.
- Backup your server data frequently.
Call To Action
Want reliable hosting for your Rust server? Check out our VPS plans: https://xernode.com/#pricing