How to Make a CS:GO Server On Linux VPS

How to Make a CS:GO Server On Linux VPS

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 command:

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:

wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz

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:

force_install_dir ./cs_go/

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.

Downloading lines for 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.

Steam Create Game Server Account

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.

Classic Casual:

     ./srcds_run -game csgo -console -usercon +game_type 0 +game_mode 0 +mapgroup mg_active +map de_dust2 +sv_setsteamaccount THISGSLTHERE -net_port_try

Classic Competitive:

./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.

About the author

Edgaras G.

Edgaras is a veteran server administrator at Hostinger. He makes sure that every server runs at full throttle and has all the latest technological advancements. When he's not working, Edgaras enjoys skiing and exploring the world.

1 Comment

Click here to post a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  • 2GB of space? You mean like 30GB! I first tried with a 20GB VM and it gave me an error that it was full! The cs:go server files are 16GB by themselves, and that’s without extras.

Get Exclusive Content

Join thousands of webmasters who get our free newsletter with tips on how to drive more traffic and revenue to their websites!

Please wait...

Thank you for sign up!

More in VPS
How to Install MySQL on CentOS 7
How to Install MySQL on CentOS 7