Guide – How To Start – Counter-Strike: Source Game Server on Ubuntu 20.04

Configuring and connecting to Counter-Strike: Source Game Server on Ubuntu 20.04

  1. Start your VM

To start the server, run the VM through Azure Portal.

  1. For the connection to the server, you should know the IP address of the VM. You can find it in the personal account of Azure. (You need to select the virtual machine from the list. By clicking the item “Overview”, your IP is displayed in the line “Public IP Address”).
  1. Ports 27015 TCP and 27015 UDP must be open in network properties in Azure Firewall. To check, go to the Networking tab
  1. Get Token
  2. To display the server in the browser list inside the game, you should add GSLT Token to the config file. To create a token, go to the next page under your Steam account: https://steamcommunity.com/dev/managegameservers
  1. Enter 240 in the app ID field, enter the text to further identify the token in the Memo field, Then click “Create”.

Copy the received token.

  1. Configure the server

Connect to your VM:

  1. With OpenSSH

In the Windows 10 operating system (starting with version 1809), an OpenSSH client is available, with which you can connect to Linux servers via SSH. If Windows 10 is suitable and the OpenSSH client is installed, you can start connecting via SSH. To do this, launch a normal Windows command prompt and enter the command “ssh user@*vm_ip*” (1), where “user” is the username that was specified while creating the virtual machine and “*vm_ip*” is the VM IP address.

Then type “Yes” (2) and enter a password (3) that was specified while creating the virtual machine.

  1. With the PuTTy application 

To do this, you need the PuTTy application to connect via ssh. You can download it at the following link – Download

Run Putty, enter the VM address in the “Host” field (1), and click “Open” (2) to connect.

In the opened console, you will need to enter a username (1) and password (2) that were specified while the VM was being created (you’ll not see the password in the console while entering it). 

Enter the following commands:

> sudo su (1)

> su gameserver (2)

> cd /home/gameserver (3)

> ./cssserver stop (4)


Open configuration file

> nano /home/gameserver/lgsm/config-lgsm/cssserver/cssserver.cfg

Add parameter to the end of file gslt=”Token” and paste the generated token from section 2 in quotes. To go to the desired line, use the arrows on the keyboard. To paste the copied text, use the right mouse button.

Press Ctrl + X on the keyboard to exit the file. Then, you will be asked to save the changes to the file—press Y on the keyboard to confirm and Enter to overwrite the same file.

Now you should start the server using the following commands:

> ./cssserver start

To manage the server, you can use the commands described in the primary usage tab on the page Deploy Counter-Strike: Source Game Servers  

  1. Connect to your server

To connect to the server, start the “Counter-Strike: Source” game on your PC and click Find server->Add a Server

Enter your VP’s IP and add this server to Favorites

Connect to the server

Let’s go! Hold your positions. 

Website Built with WordPress.com.

Up ↑