VPS access_time September 27, 2019 hourglass_empty 3min Read person_outline Edgaras G.

How to Make a CS:GO Server On Linux VPS

Have you been playing Counter-Strike: Global Offensive and decided it is time to set up your own server? In this article, you will learn how to make a CS:GO server on Linux VPS.

Why Should I Have My Own CS:GO Server?

Most modern games nowadays rely on a constant internet connection to be fully functional or at least, to offer unique gameplay and better updates.

Counter-Strike: Global Offensive is no exception. While offline gameplay is possible, the online version delivers more competitive and exciting action.

However, you can’t do much when a public server is having network problems. Not to mention the persistent cheaters and trash talk that could harm your gaming experience.

That’s why you should consider creating your own virtual private server. It allows you to have better control over your connection and you can personally choose the best hosting service. If you are looking for a reliable server, check out our VPS hosting plan that offers great uptime for an affordable price, and provides great customer support.

Second of all, it enables you to play the game by your own rules. You’re free at setting up the most enjoyable gaming experience for both you and your friends.

Furthermore, as the server admin, you have the power to kick or ban anyone that you find to be offensive or cheating.

However, before we show you how to make a CS:GO server, keep in mind that we’ll be using Linux VPS in this tutorial. Therefore, you need to log in to your server through SSH using your root details. At Hostinger, the login info is available in the Server tab of your hPanel.

We recommend using default Linux or macOS terminals or Putty for Windows. If this is your first time using a terminal, you can read our article to learn how to connect to a server via SSH.

How to Make a CS:GO Server

We’ll divide this guide into four steps — installing pre-depends, downloading and installing SteamCMD, using CMD to download server files, and starting your CS:GO server.

1. Installing Pre-Depends

First, we have to install lib32gcc1 runtime library to make sure that every following process is working properly. To get the package, proceed with the following command:

apt-get install lib32gcc1

2. Downloading and Installing SteamCMD

Downloading and using SteamCMD as root users is a bad idea, as the program might mess with your system if there’s ever an issue. In order to prevent this, we must create a user for our software first.

To do this you have to use the useradd command: useradd -m steam Once the account is created, you have to log in as 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 using: wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz After that, run a tar command to unzip the file: tar xf steamcmd_linux.tar.gz Lastly, enter this line to run the program: ./steamcmd.sh

3. Using SteamCMD to Download Server Files

If the installation was successful, you should see Steam prompt:

Steam>

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:

app_update 740 validate

In this case, 740 is the ID for Counter-Strike: Global Offensive dedicated server.

This whole process will take a couple of minutes.

Open the Steam server management page to create a game server account.

App ID of the base game – type 730 for CS:GO here. Note that 740 is used specifically for a dedicated server.

– type for CS:GO here. Note that is used specifically for a dedicated server. Memo – you can leave a reminder for yourself for your eyes only.

4. Starting Your CS:GO Server

Depending on the game mode, you can start your server in many ways. First, go to the cs_go directory in order to use the 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

Deathmatch:

./srcds_run -game csgo -console -usercon +game_type 1 +game_mode 2 +mapgroup mg_allclassic +map de_dust +sv_setsteamaccount THISGSLTHERE -net_port_try

Conclusion

You have learned how to make a CS:GO server on Linux VPS. You can read more useful tips on Valve’s official page for dedicated servers.