Have you been playing Counter-Strike: Global Offensive and decided it is time to setup your own server? If your answer is yes, this tutorial is for you. In the next couple of minutes you will learn how to make CS:GO server on Linux VPS.
What you’ll need
Before you begin this guide, you’ll need the following:
Step 1 — Installing Pre-Depends
Before we begin the process, we have to install some extra software in order to get things working. Login to your server through SSH with your root details. We recommend using Terminal for Linux and Putty.
Now install the lib32gcc1 runtime library with the following command:
apt-get install lib32gcc1
Step 2 — Downloading and Installing SteamCMD
Downloading and Using SteamCMD with root permissions is not a very good idea, if you want to make a secure game server. In order to prevent such case, we must create a user for our software. To do this you have to use the
useradd -m steam
After creating the user, you have to login to this user to start the installation of the SteamCMD. Use the following command to login:
su - steam
In order to make a directory structured, it is recommended to create and enter the Steam directory with:
mkdir ~/Steam && cd ~/Steam
Now we have to download the latest version of SteamCMD from Valve server. It can be done with:
Extract SteamCMD and run it using:
tar xf steamcmd_linux.tar.gz
And run the SH file with:
Step 3 — Using SteamCMD to Download Server Files
If the installation was successful, you should see Steam prompt:
Now you need to login to your Steam account. For security reasons, it is recommended to login with the following command:
login <username> <password>
Using the command below, choose a folder name for your installation folder:
Now it’s time to finally install and validate Counter-Strike: Global Offensive Server files. We can install and validate it with:
app_update 740 validate
- 740 – Game ID, in this case Counter-Strike Global Offensive.
Now, simply sit back and relax, this will take a couple of minutes.
Now open Steam Page and create a game server account.
- App ID of the base game – Type 730 as CSGO here.
- Memo – Something that you will remember later.
Step 4 – Starting your Counter-Strike Global Offensive Server
Depending on the game mode, you can start your server in many ways. First, enter the cs_go directory in order to use srcds_run application.
Important: Do not forget to replace your GSLT after +sv_setsteamaccount, when you are starting your server.
./srcds_run -game csgo -console -usercon +game_type 0 +game_mode 0 +mapgroup mg_active +map de_dust2 +sv_setsteamaccount THISGSLTHERE -net_port_try
./srcds_run -game csgo -console -usercon +game_type 0 +game_mode 1 +mapgroup mg_active +map de_dust2 +sv_setsteamaccount THISGSLTHERE -net_port_try
./srcds_run -game csgo -console -usercon +game_type 1 +game_mode 2 +mapgroup mg_allclassic +map de_dust +sv_setsteamaccount THISGSLTHERE -net_port_try
By finishing this tutorial, you have learned how to make CS: GO Server on Linux VPS. You can read more useful tips on official Valve page.