September 27, 2019
September 27, 2019
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.
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’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.
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
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.
useradd -m steam
su - steam
In order to make a directory structured, it is recommended to create and enter the Steam directory with:
mkdir ~/Steam && cd ~/Steam
After that, run a tar command to unzip the file:
tar xf steamcmd_linux.tar.gz
Lastly, enter this line to run the program:
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:
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.
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.
./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
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.
December 07 2017
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.
April 16 2020
Got the resolution: lib32stdc++6 is needed, install it with: apt-get install lib32stdc++6