How to create a cs go server on a Linux system

Giteqa

In order to create a cs:go server on this system you will need a good hosting provider (so that your server works all the time). You can use the services of our service as it is very convenient and easy to install a cs go server on our servers. We provide servers based on Linux OS with almost everything you need, namely, you can limit yourself to downloading a couple of plugins and the server itself. You can find out more about this in the video below.

If you don't have time to watch the video, then I will briefly (without screenshots) describe all the necessary actions.

Creating a cs server

Initially, you will need a server on Linux OS, but there are many versions of this OS. I recommend choosing Ubuntu as it is easy to manage and use, ideal for beginners. That's what I used in the video above.
After you have rented the server, you will need to download the Putty program and connect through it to the administrator console. This one provides hosting for connection, or see how it is done in the video. It is important that ssh keys are installed on the server (they are installed by default in our service)
What will be required
1. IP address
2. SSH port (22 is the original port)
3. Login (It is unlikely that it was changed so it will be root)
4. The password of the root user

Go into the program and enter the necessary data

After entering the data, you will be transferred to the console where you need to enter a username and password (It will not be displayed when you enter it).
After you have logged in, you need to check whether the server needs updates using the apt-get update command. You can also update it to a new version using apt-get upgrade if necessary.

In the case of using another hosting service, it is better to go through all possible points. Specified below:

  • apt-get -y install htop
  • apt-get -y install screen
  • apt-get -y install nano
  • apt-get -y install sudo

After you have checked the operability of all these commands, you will need to enter the following command: apt-get install lib32gcc1 this is necessary to configure and operate the server, you will need to confirm the download because some space will be occupied.

Next, we create two folders: Server and SteamCMD. This is necessary in order to place the game server itself in one, and the command part from steam in the second.
Initially, we will go to the main directory using cd / after which we enter

  • mkdir /server
  • mkdir /steamcmd

After all these actions, we have completed the system configuration. Next we need to download steamcmd and unpack it to do this, go to the steamcmd directory
Cd /steamcmd
Download steamcmd using the command

wget http://media.steampowered.com/client/steamcmd_linux.tar.gz

When the download is completed, we will unpack using the command

Tar xvfz steamcmd_linux.tar.gz

After unpacking, run the program and download the game server itself, this is done using the following
command

./steamcmd.sh +login anonymous +force_install_dir /server/ +app_update 740 validate +quit

It is important to run this command from the /steamcmd directory

After you enter this command, the server will start downloading, which may take from 15 to 45 minutes.
While the server is being downloaded, you need to install a program on your computer to configure it FireZilla

Configuring the Server

When the server is downloaded, you need to go to this program

Here you will need to enter the host (IP address of the server), the user name (root), the password to the user and the port number (22 by default).

After that, you will be redirected to the data on your server and will be able to work from there. When you are logged in to your profile in the item (Remote Site) there will be a path in which you are located (/root) change it to /server to access the files of your cs server.

When you have done this, go to the csgo -> cfg folder and create a server.cfg file there. This file will need to be filled in according to the commands below

  • hostname "CS" — The name of the game server
  • rcon_password "???" - Password for managing the game server via konosl, RCON commands
  • sv_password "234156877— - Password to log in to the game server (if you do not need to leave the quotes empty)
  • mapgroup "mg_servers— - A set of maps for standard CS voting:GO server
  • sv_region "255" - The region where the game server is located (255 is access to everyone from the world)
  • sv_setsteamaccount - Link for the game server, created here: http://steamcommunity.com/dev/managegameservers
  • sv_steamgroup - Steam identifier of the group that the game server belongs to (
  • sv_pure 0 - Checking the correspondence of server and client files

After you enter all the necessary data, you will need to open one of the cfg files with the desired game mode. There are several modes in total:

  • gamemode_casual.cfg - Classic Regular
  • gamemode_competitive.cfg - Classic Competitive
  • gamemode_armsrace.cfg - Arms Race
  • gamemode_demolition.cfg - Object destruction
  • gamemode_deathmatch.cfg - Fight to the death

You can choose the one you want and copy everything from it, then move the contents to server.cfg after you do this, you can already start the server and connect to it.

Starting the server

After you have done all of the above, you will need to start the server and check its performance, you can do this using the command (This command is entered into the command line opened in Putty)
Initially, we will enter the server folder
Cd /server
Next, enter the command that starts the server (entered in one line)

screen -A -m -d -S server ./srcds_run -game csgo -console -usercon -maxplayers_override 26 -tickrate 64 +map de_dust2 -port 27015 +game_type 0 +game_mode 0 -secure +sv_lan 0 -nohltv -nobots

Team description (most important points) :

  • maxplayers_override - number of players
  • +map - the map from which the game will start
  • -port - server port
  • +game_type +game_mode - game mode all modes in the screenshot below

 

When you command your server can be considered running, but to check if it works, enter the following commands
screen -ls - allows you to see the running processes. There will be a process ID, remember its
screen -R id - opens the server console where you can see its public IP and status.
To turn off the server, enter kill id or simply close the console (To make the server work after exiting the console, hold ctrl+a+d)

Conclusion

Installing the CS server:go on a linux system is very simple, but the main thing is to understand that you must have a good hosting provider that will promptly respond to problems and provide constant availability to its services. It is also important to understand that for some hosting companies, when renting a server, you will need to perform more actions because they can, for example, provide a linux server without modifications (pre-installed programs) because of this, installation and configuration may be delayed. If you want to create a server quickly, you can use our services, you can get acquainted with all the services here.
Also do not forget that you will need a server that can process a lot of information and will not slow down the game, so it is better to rent a server with a lot of memory (RAM and disk) and also to have multiple cores on the server.