Usage Guidelines – Ubuntu 20.04 LTS with CS: Source Game Server

How to create and connect to Ubuntu 20.04 LTS with CS: Source Game Server
  1. To start the server, you just need to start the VM through Azure Portal. 
  2. To configure the server, you should connect to the VM and call the game console. To connect, you need the PuTTy application to connect via ssh. You can download it at the following link – Download.
  3. Run Putty, enter the VM address in the “Host” field, and click “Open” to connect. 
  1. In the opened console, it is necessary to enter a username and password that were specified while creating the virtual machine.
  1. To display the server in the browser list inside the game, you should add GSLT Token to the config file. In order to create it, 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”.
  2. Copy the received token, then go to PuTTy and do the following:

> sudo su (if the current user is steamuser, then just enter the command exit)

> systemctl stop cssource

> su steamuser
> nano /home/steamuser/lgsm/config-lgsm/cssserver/cssserver.cfg

  1. The file editor will open. Find the line gslt = ”” and insert the generated token in quotes. In order to go to the desired line, use the arrows on the keyboard. To paste the copied text, use the right mouse button.
  2. 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.
  3. Now you should restart the server using the following commands:

> exit

> systemctl start cssource

  1. To connect to the server, start the “Counter Strike: Source” game on your PC, open the console with the “~” key on your keyboard, write connect %vm_adress%, and press “Enter” to connect. For example: connect 127.0.0.1

Now you can use Ubuntu 20.04 LTS with CS adapted for Azure. 

Server update

If you were unable to connect to the server, you should update the server. To do this, connect to the VM through PuTTY and do the following:

> sudo su

> su сssserver

> cd /home/сssserver

> ./сssserver update

> ./сssserver dt