Have a Linux Dedicated Server and want to install the Rust Dedicated Server service on it? You’re in the right place. In this guide, we’ll explain step by step how to install the service on your Linux server using SteamCMD. We use Ubuntu as an example, but the process is similar on other distributions.
First, connect to your Dedicated Server via SSH. If you need help, see our SSH Getting Started guide.
You’ll also need to set up SteamCMD on your Linux server the first time you use it. Follow our SteamCMD Linux Setup guide, and make sure SteamCMD is fully set up before you continue.
Log in as the steam user and switch to the steam home directory to keep everything organized.
sudo -u steam -s
cd ~
Once you’re logged in, you can start the installation. Use the following command to install Rust directly in the steam user’s directory with SteamCMD.
steamcmd +force_install_dir '/home/steam/Rust-Server' +login anonymous +app_update 258550 validate +quit
Be patient—the download may take a while depending on the size of the game. If everything went well, a confirmation message will appear.
You’ve now completed the basic installation of your Rust server. You can make additional settings using configuration files in the server directory.
Switch to your root directory and create a .sh file. This Bash file will be used to start the server and contains various configuration parameters.
nano /home/steam/Rust-Server/start_server.sh
Now add the following content to the Bash file. The command includes some of the most important and commonly used parameters. If you’d like to add more or learn more, we recommend the official Rust Wiki, which lists all available configuration options.
#!/bin/bash
/home/steam/Rust-Server/RustDedicated -batchmode -nographics +server.hostname "dein_servername" +server.port 28015 +server.identity "my_server" +server.maxplayers 50 +server.worldsize 1000 +server.saveinterval 300
Save the file using CTRL+X, then Y and Enter. To make the Bash file executable, run the following command to set the execute permissions.
chmod +x /home/steam/Rust-Server/start_server.sh
You can now start your server. Go to the game’s main directory and run the start_server.sh shell file.
/home/steam/Rust-Server/start_server.sh
You should now see logs in the terminal indicating that the server is starting successfully. Note that the first startup may take a little longer while everything is set up. If all goes well, your server will appear in the server list. Alternatively, you can connect directly by searching for [your_ip_address]:28015.
Congratulations! You’ve successfully installed and configured your Rust server on your Dedicated Server. As a next step, we recommend our Linux Service Setup guide. It explains how to set up your new Dedicated Gameserver as a service. This offers many benefits, such as automatically starting the server at boot, automatic updates, easy management, and access to logs—and much more!
If you have any other questions or run into problems, our support team is available every day and will be happy to help!