This guide will use Debian 10 Buster as an OS for the server.
- A PC with Debian 10 Buster installed (Or any variant)
- A user with sudo permission but not root !
- A little bit of technical knowledge of the command line on linux
To do that you can simply type those two commands
sudo add-apt-repository non-free
OR, You can edit the file in /etc/apt/sources/list and add "contrib non-free" behind every uncommented line, this should looks like this:
deb http://security.debian.org/debian-security buster/updates main contrib non-free
deb http://ftp.fr.debian.org/debian buster main contrib non-free
You will also need to enable the 32-bits architecture:
Then, you can simply install SteamCMD and its dependencies by running (screen is not necessary but we will use it to run the start script)
Once installed you can run it:
You will be greated by SteamCMD, you will need to login using anonymous credentials
Once logged in we will select the Install folder of the server (I recommend the home directory of the user or the Desktop/Documents directories) I will use a Rust folder on the Desktop as the install directory:
The we can install Rust using this command
And you can now exit steamcmd by running
Now we will create a startup script,
You have two options:
(don’t forget to edit the install directory and anything that can be changed (Rcon Password, Seed, Port, etc..))
steamcmd +login anonymous +force_install_dir /home/[user]/Desktop/Rust +app_update 258550 +exit
screen -dmS rust ./RustDedicated -batchmode -server.port 28015 -rcon.port 28016 -server.worldsize 4000 -rcon.password "pass" -server.seed 123456 +server.security "0" +server.secure "0" +server.eac 0 +server.encryption "0"
screen -dmS rust ./RustDedicated -batchmode -server.port 28015 -rcon.port 28016 -server.worldsize 4000 -rcon.password "pass" -server.seed 123456 +server.security "0" +server.secure "0" +server.eac 0 +server.encryption "0"
Save the file and now you’ll have to make it executable with this command
Then you can just run the script with:
To see the console and what’s going on you can type
Note:
You can detach the screen by pressing CTRL + A + D
You can kill the screen (and the server) by pressing CTRL + C
https://steamcommunity.com/sharedfiles/filedetails/?id=2082308869