GTA: San Andreas allows you to play with your friends through online multiplayer as long as you are able to host your own server as no dedicated servers are available. In this article, we'll walk you through how to set up your own GTA: San Andreas dedicated server on your Ubuntu Shell™ using LinuxGSM.
The first thing that we will want to do is open up a fresh terminal session. Typically when running dedicated servers you don't want to have them running from the root user, so we will create a separate account with:
sudo adduser *account name*
After creating a password and establishing user information, use su to switch to the newly created account
Once you have logged into your dummy account, run the following command to install linuxGSM if you don't have it already as well as the files necessary for your GTA: SA server:
wget -O linuxgsm.sh https://linuxgsm.sh && chmod +x linuxgsm.sh && bash linuxgsm.sh sampserver
Doing so should give you output similar to the following:
You should now have a sampserver script in your working direction. Input the following into the command line:
and follow the onscreen instructions to install the server:
LinuxGSM allows you to start, restart, stop, update, and monitor your server with simple commands.
To start your server, run:
To see the server details, run:
To shut down the server, run:
Lastly, to update your server, run: