Installing Counter-Strike 1.6 Dedicated Server

info:Download steam-boiler to install steam and boiler.
author:Erik Southworth
version:49.1
revision:September 08, 2012
description:Linux Reference Manual

Typical Installation in 3 Easy Steps

Assuming you have installed Steam-Boiler and have logged in to a normal user account. The following shell session demonstrates how a typical installation is accomplished. Open a shell terminal and follow these steps.

1. Make directory (if required) and change directory to where user gameserver downloads are to be stored. Here we call it ‘Gameserver’.

  • $ mkdir -pv ~/Gameserver/cstrike-ds
  • $ cd ~/Gameserver/cstrike-ds
[~]$ mkdir -pv ~/Gameserver/cstrike-ds
mkdir: created directory `/home/user/Gameserver'
mkdir: created directory `/home/user/Gameserver/cstrike-ds'
[~]$ cd ~/Gameserver/cstrike-ds
[Gameserver]$
  1. Download dedicated server files from Valve content servers.
  • $ steam -command update -game cstrike -dir ~/Gameserver/cstrike-ds
[Gameserver]$ steam -command update -game cstrike -dir ~/Gameserver/cstrike-ds
+ ionice -c 3 steam -command update -game cstrike -dir /home/user/Gameserver/cstrike-ds/
Checking bootstrapper version ...
Updating Installation
Determining which depot(s) to install/update...
3 depot(s) will be installed/updated
  0:01 Checking local files and building download list for depot 11 'Counter-Strike' version 35
  0:01     Connecting content server session for version 35
  0:02     [68.142.73.210:27030] Connecting...
  0:02     [68.142.73.210:27030] Connection established; handshaking...
  0:02     [68.142.73.210:27030] Sending login message...
  0:02     Fetching version 35 manifest
  0:02     Reading version 35 checksum table
  0:02     Fetching exclude list
  0:02     Calculating download size
  0:02     No files will be downloaded
  0:02 Checking local files and building download list for depot 4 'Linux Server Engine' version 74
  0:02     Connecting content server session for version 74
  0:03     [68.142.73.210:27030] Reusing connection
  0:03     [68.142.73.210:27030] Sending login message...
  0:03     Fetching version 74 manifest
  0:03     Reading version 74 checksum table
  0:03     Calculating download size
  0:03     No files will be downloaded
  0:03 Checking local files and building download list for depot 1 'Half-Life' version 12
  0:03     Connecting content server session for version 12
  0:03     [68.142.73.210:27030] Reusing connection
  0:03     [68.142.73.210:27030] Sending login message...
  0:03     Fetching version 12 manifest
  0:03     Reading version 12 checksum table
  0:04     Fetching exclude list
  0:04     Calculating download size and verifying checksums

  2:10    97.54%  downloading /home/user/Gameserver/cstrike-ds//valve/titles.txt
  2:10    97.54%  downloading /home/user/Gameserver/cstrike-ds//valve/user.scr
  2:10    97.54%  downloading /home/user/Gameserver/cstrike-ds//valve/valve.rc
  2:10    97.54%  downloading /home/user/Gameserver/cstrike-ds//valve/valvecomm.lst
  2:13    100.00%  downloading /home/user/Gameserver/cstrike-ds//valve/xeno.wad
  2:13 [68.142.73.210:27030] Disconnecting
HLDS installation up to date


+ Checking steam symlink in /home/user/Gameserver/cstrike-ds ...    missing
+ Creating symlink /home/user/Gameserver/cstrike-ds/steam -> `/usr/local/bin/steam'

Tip

Using Steam-Boiler simplifies the command-line to steam update cstrike cstrike-ds instead of steam -command update -game cstrike -dir cstrike-ds.

3. Change directory to where the run-script is located and test the dedicated server.

  • $ cd ~/Gameserver/cstrike-ds
  • $ ./hlds_run -game cstrike +map de_dust +ip 0.0.0.0
[Gameserver]$ cd ~/Gameserver/cstrike-ds/
[cstrike-ds]$ ./hlds_run -game cstrike +map de_dust +ip 0.0.0.0
Auto detecting CPU
Using AMD Optimised binary.
Auto-restarting the server on crash

Console initialized.
Using breakpad crash handler
Setting breakpad minidump AppID = 10
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Installing breakpad exception handler for appid(10)/version(5787)
scandir failed:/home/user/Gameserver/cstrike-ds/SAVE
scandir failed:/home/user/Gameserver/cstrike-ds/./valve/SAVE
scandir failed:/home/user/Gameserver/cstrike-ds/./platform/SAVE
Protocol version 48
Exe version 1.1.2.6/Stdio (cstrike)
Exe build: 11:30:01 Aug 28 2012 (5787)
STEAM Auth Server
Server IP address 0.0.0.0:27015
scandir failed:/home/user/Gameserver/cstrike-ds/SAVE
scandir failed:/home/user/Gameserver/cstrike-ds/./valve/SAVE
scandir failed:/home/user/Gameserver/cstrike-ds/./platform/SAVE
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit

couldn't exec listip.cfg
couldn't exec banned.cfg
scandir failed:/home/user/Gameserver/cstrike-ds/SAVE
scandir failed:/home/user/Gameserver/cstrike-ds/./valve/SAVE
scandir failed:/home/user/Gameserver/cstrike-ds/./platform/SAVE
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSyssstemInit

Connection to Steam servers successful.
   VAC secure mode is activated.

Use CTRL-C to exit...

Sat Sep  8 13:16:59 EDT 2012: Server Quit

Hint

hlds_run also accepts some other, not widely useful, options. Run ./hlds_run -help for more details. All command-line options are passed through to the gameserver binary. Server cvars are specified on the command-line using the notation +CVAR VALUE. (i.e. +map de_dust)

Important

The +IP specified is normally within the local network range 192.168.xxx.xxx for underground (cable/DSL) hosted servers or wildcard 0.0.0.0 for all available interfaces. (i.e. +ip 192.168.1.15)