Source Dedicated Server Guide
In this guide I will show you how to install and run a Source Dedicated Server.
Installation
Firstly you want to download and install the server itself. I suggest you download everything into its own folder to prevent clutter.
mkdir FOLDERNAMEHERE cd FOLDERNAMEHERE wget http://www.steampowered.com/download/hldsupdatetool.bin chmod +x hldsupdatetool.bin ./hldsupdatetool.bin ./steam
Replace FOLDERNAMEHERE with whatever you want, just make it memorable.
Next you want to download the files specific to the game you want to run:
./steam -command update -game "GAMENAMEHERE" -dir .
Replace GAMENAMEHERE with the game of your choice and wait for everything to download. I'll update this guide with a list of games soon.
The final thing you need to do is create the server.cfg file. This is a good server.cfg generator, save the file to your game's cfg folder (if you installed Counterstrike Source, the directory would be cstrike/cfg). Your server is now ready to go!
Running
Starting up the server is easy:
./srcds_run -console -game GAMENAMEHERE +map MAPHERE -maxplayers PLAYERSHERE -autoupdate
GAMENAMEHERE is the game, MAPHERE is the name of the map and PLAYERSHERE is the maximum number of players. Once the server has started you will be presented with a console - this is similar to the regular Valve game console but with some additional commands.