Installing Team Fortress 2 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/orange-box
  • $ cd ~/Gameserver
[~]$ mkdir -pv ~/Gameserver/orange-box
mkdir: created directory `/home/user/Gameserver'
mkdir: created directory `/home/user/Gameserver/orange-box'
[~]$ cd ~/Gameserver
[Gameserver]$
  1. Download dedicated server files from Valve content servers.
  • $ steam -command update -game tf -dir orange-box
[Gameserver]$ steam -command update -game tf -dir orange-box
+ steam -command update -game tf -dir /home/user/Gameserver/orange-box
Checking bootstrapper version ...
Updating Installation
No installation record found at /home/user/Gameserver/orange-box/orangebox
No installation record found at /home/user/Gameserver/orange-box
Checking/Installing 'Team Fortress 2 Content' version 163

0.13%       downloading /home/user/Gameserver/orange-box/orangebox/tf/bin/server.dll
0.33%       downloading /home/user/Gameserver/orange-box/orangebox/tf/bin/server.dylib
0.68%       downloading /home/user/Gameserver/orange-box/orangebox/tf/bin/server.so
...
100.00%     downloading /home/user/Gameserver/orange-box/orangebox/hl2/pure_server_whitelist.txt
100.00%     downloading /home/user/Gameserver/orange-box/orangebox/srcds_linux
100.00%     downloading /home/user/Gameserver/orange-box/orangebox/srcds_run

Connection Reset, errno 104 "Connection reset by peer"
+ Retrying command ...
Checking bootstrapper version ...
Updating Installation
Checking/Installing 'Team Fortress 2 Content' version 280


Checking/Installing 'Team Fortress 2 Materials' version 142


Checking/Installing 'Base Source Shared Materials' version 8


Checking/Installing 'Base Source Shared Models' version 4


Checking/Installing 'Base Source Shared Sounds' version 4


Checking/Installing 'OB Linux Dedicated Server' version 130


HLDS installation up to date


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

Tip

Using Steam-Boiler simplifies the command-line to steam update tf orange-box instead of steam -command update -game tf -dir orange-box.

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

  • $ cd ~/Gameserver/orange-box/orangebox
  • $ ./srcds_run -game tf +map tr_dustbowl +ip 0.0.0.0
[Gameserver]$ cd ~/Gameserver/orange-box/orangebox
[orangebox]$ ./srcds_run -game tf +map tr_dustbowl +ip 0.0.0.0
Auto detecting CPU
Using default binary: ./srcds_linux
Server will auto-restart if there is a crash.
Using breakpad minidump system
Using breakpad crash handler

Console initialized.
Game.dll loaded for "Team Fortress"
Setting breakpad minidump AppID = 440
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Installing breakpad exception handler for appid(440)/version(4724)
Particles: Missing 'particles/error.pcf'
maxplayers set to 24
No '-replayserverdir' parameter found - using default replay folder.
Replay: Creating thread pool...succeeded.
Replay: Starting thread pool with 4 threads...succeeded.
Cleaning files from temp dir, "/home/user/Gameserver/orange-box/orangebox/tf/replay/server/tmp/" ...no files removed.
Unknown command "r_decal_cullsize"
Unknown command "startupmenu"
Network: IP 0.0.0.0, mode MP, dedicated Yes, ports 27015 SV / 27005 CL
ConVarRef room_type doesn't point to an existing ConVar
Executing dedicated server config file
Initializing Steam libraries for secure Internet server
Failed to load Steam Service
ServiceStart: failed to start
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
'server.cfg' not present; not executing.
'tr_dustbowl.cfg' not present; not executing.
Connection to Steam servers successful.
   Public IP is nn.nn.nn.nn.
   VAC secure mode is activated.
Fetched 926616 bytes item schema version 076A8922 via HTTP; update is queued.

Use CTRL-C to exit...

Hint

srcds_run also accepts some other, not widely useful, options. Run ./srcds_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)

Table Of Contents

Previous topic

Installing Half-Life 2 DeathMatch Dedicated Server

Next topic

Logging Console Output