srcds

An introduction to setting up a srcds server.

wget http://www.steampowered.com/download/hldsupdatetool.bin
chmod +x hldsupdatetool.bin
./hldsupdatetool.bin
./steam

the above will:

  • get downloader
  • make downloader executable
  • exec downloader (download “steam”)
  • exec steam (will update it if necessary, otherwise display info)

Download/Update game

./steam -command update -game "tf" -dir tf2_pub

Launch server / open command in background:

screen -A -m -d -S ''tf2_pub'' ./srcds_run -console -game ''tf'' +map ''cp_well'' +maxplayers ''16'' -autoupdate

where tf2_pub is the name you want to give the screen session (/instance) where tf is the game name (folder name) of the game you want to start

Open the background session:

screen -x ''tf2_pub''

Detach again (push it to background again):

CTRL + a + d

External References