Installing Counter-Strike 1.6 Dedicated Server

info:Download steam-boiler to install steam and boiler.
author:Erik Southworth
version:49
revision:July 30, 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/hlds
  • $ cd ~/Gameserver
[~]$ mkdir -pv ~/Gameserver/hlds
mkdir: created directory `/home/user/Gameserver'
mkdir: created directory `/home/user/Gameserver/hlds'
[~]$ cd ~/Gameserver
[Gameserver]$
  1. Download dedicated server files from Valve content servers.
  • $ steam -command update -game cstrike -dir hlds
[Gameserver]$ steam -command update -game cstrike -dir hlds
+ steam -command update -game cstrike -dir /home/user/Gameserver/hlds
Checking bootstrapper version ...
Updating Installation
No installation record found at /home/user/Gameserver/hlds
Checking/Installing 'Counter-Strike Base Content' version 35

0.16%       downloading /home/user/Gameserver/hlds/cstrike/cl_dlls/client.dll
0.16%       downloading /home/user/Gameserver/hlds/cstrike/classes/ak47.res
0.16%       downloading /home/user/Gameserver/hlds/cstrike/classes/arctic.res
...
99.06%      downloading /home/user/Gameserver/hlds/valve/valve.rc
99.06%      downloading /home/user/Gameserver/hlds/valve/valvecomm.lst
100.00%     downloading /home/user/Gameserver/hlds/valve/xeno.wad

Connection Reset, errno 104 "Connection reset by peer"
+ Retrying command ...
Checking bootstrapper version ...
Updating Installation
Checking/Installing 'Counter-Strike Base Content' version 35


Checking/Installing 'Linux Server Engine' version 65


Checking/Installing 'Half-Life Base Content' version 12


HLDS installation up to date


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

Tip

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

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

  • $ cd ~/Gameserver/hlds
  • $ ./hlds_run -game cstrike +map de_dust +ip 0.0.0.0
[Gameserver]$ cd ~/Gameserver/hlds/
[hlds]$ ./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(5408)
Protocol version 49
Exe version 1.1.2.6/Stdio (cstrike)
Exe build: 22:54:50 Aug 15 2011 (5408)
STEAM Auth Server
Server IP address 0.0.0.0:27015
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit

couldn't exec listip.cfg
couldn't exec banned.cfg

Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit

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

Use CTRL-C to exit...

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)