Image

Knowledge base → Creating your own CS:Go server on VDS Linux Debian 12

[Virtual servers]
Date of publication: 15.03.2024

In this guide we will tell you how to create your own cs:go game server on a virtual server running the Linux Debian 12 operating system.

Recommended VDS resource requirements:

Installation is carried out on a VDS server with KVM virtualization.

Please note the required VDS resources when placing your order. The recommended requirement for disk space is at least 50 GB, since the steam installation takes up a significant percentage of this space.

Depending on the number of players, consider the amount of RAM and the number of CPU cores.

After activating the server, you will receive a letter with the server’s IP address, using the specified password when ordering to the root user, log in to the server using the ssh client.

1. Installing the necessary components

apt install sudo htop screen
apt install lib32gcc-s1

1.1 Preparing to install steam

cd/
mkdir/steamcmd
cd /steamcmd
wget http://media.steampowered.com/client/steamcmd_linux.tar.gz
tar xvfz steamcmd_linux.tar.gz

1.2 Steam installation

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

This process will take some time and upon completion you will see a message:

Update state (0x81) verifying update, progress: 99.12 (34400643291 / 34705746562)
Success! App '740' fully installed.
root@csgo:/steamcmd#

2. Server configuration

Let's create a configuration file:

touch /server/csgo/cfg/server.cfg
nano /server/csgo/cfg/server.cfg

The following content:

hostname "CSGo" — Game server name
rcon_password "Passw0rds123" — Password for controlling the game server via console, RCON commands
sv_password "PAsSw0rDzz1" — Password for logging into the game server (if you do not need to leave the quotes empty)
mapgroup "mg_servers" — A set of maps for the standard voting of the CS:GO server
sv_region "255" — Region where the game server is located (leave 255 for access from all countries)
sv_setsteamaccount - Game server link, created in the steam account: http://steamcommunity.com/dev/managegameservers
sv_steamgroup — ID of the Steam group to which the game server belongs
sv_pure "0" — Checks whether server and client files match

Please note that your account must meet the requirements, which can be found in your steam account.

After filling in all the data, open one of the cfg files listed below to select the game mode:

  • gamemode_casual.cfg - Classic casual
  • gamemode_competitive.cfg - Classic competitive
  • gamemode_armsrace.cfg - Arms race
  • gamemode_demolition.cfg - Destruction of an object
  • gamemode_deathmatch.cfg - Death match

Copy all content selected in one of the listed files to the server.cfg file

3. Starting the server

cd /server
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

In this case, we start the service through the screen command so that when the console is closed, the service will not be interrupted.

3.1 To connect and disconnect from the screen virtual console, use the commands

Disconnecting from the virtual console

screen -d

Connecting to the virtual console

screen -r <id>

3.2 Description of launch timing

maxplayers_override – number of players
+map – the map from which the game will start
-port – server port
+game_type +game_mode – game mode

To check the functionality of the running command and find the process, use

screen –ls – allows you to see running processes. There will be a process ID, use it when connecting to the virtual console as we described above.

To stop the service, enter:

kill <id>

To disconnect from the console, leaving the process running, use the keyboard shortcut Ctrl+a+d

[detached from 150087.pts-0.csgo]

In order to connect

screen -r 150087

To fully exit screen:

exit

Done, the cs:go game server is installed and configured.





No Comments Yet