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

Counter-Strike: Source is a combination of realistic and fast arcade shooter pace – one of the key elements that made the game so popular. The counter-terrorists fighting against terrorists. Teams rescue / hold hostages and neutralize / set the bomb.

This is a quick deployment and ready-to-run image.
Simple and rapid installation. Easy to maintain.

How to create and connect to Counter-Strike: Source Ubuntu

  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 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 configure the server, you should to change the user to steamuser and go to the server directory:

> sudo su

> su steamuser

> cd /home/steamuser

The list of commands can be found at the following link (section “Basic usage”):

https://linuxgsm.com/lgsm/cssserver/

  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. 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 to 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

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 steamuser (If you haven’t run this command before)

> /home/steamuser

> ./cssserver update

WordPress.com.

Up ↑

%d bloggers like this: