How to Install a Rust Server on Ubuntu 20.04 with LinuxGSM Print

  • rust, ubuntu, rust server, linux, linuxgsm
  • 1

How To Install A Rust Server On Ubuntu 20.04 With LinuxGSM

This installation method utilizes LinuxGSM in order to set up a Rust server from scratch on Ubuntu 20.04


First, we have to install our dependencies- though luckily we can do this with one command.

sudo dpkg --add-architecture i386; sudo apt update; sudo apt install curl wget file tar bzip2 gzip unzip bsdmainutils python3 util-linux ca-certificates binutils bc jq tmux netcat lib32gcc1 lib32stdc++6 libsdl2-2.0-0:i386 steamcmd lib32z1

After this we have to begin setting up requirements for our server, in this case, we will be setting up a user- named rustserver. We can do so by running:

adduser rustserver

Be sure to use a strong password! Security in your server is vital! Following this, we have to access our new user. We can do this with:

su - rustserver

Now we have to install LinuxGSM- we will install it using the following wget command:

wget -O && chmod +x && bash rustserver

Finally- to finish our installation process of LinuxGSM we have to run a command to actually execute the installer- we can do so by simply running:

./rustserver install


Basic Usage

Now that we have successfully installed LinuxGSM we can work with the basic commands for our server.

To list our new Rust server's commands we can run the following: 


To get information such as ports, passwords & config files you can run the following:

./rustserver details

To start our server we can run the following:

./rustserver start

To stop our server we can run:

./rustserver stop

And that's the basics for your new rust server!


To automate LinuxGSM tasks we can use cronjobs- to run any command at a given time. To edit your crontab you can run the following:

crontab -e

Here is a list of some recommended crontabs:

*/5 * * * * /home/rustserver/rustserver monitor > /dev/null 2>&1
*/30 * * * * /home/rustserver/rustserver update > /dev/null 2>&1
0 0 * * 0 /home/rustserver/rustserver update-lgsm > /dev/null 2>&1


For additional information on LinuxGSM commands & configurations- view their documentation page here.

Was this answer helpful?

« Back