CS:S GameServer
Ever wanted to create and run your own server? This is the guide for you! You will need your game server. These commands are all run through SSH.
First off, you will want to make a directory to store all the steam files and HLDS in unless you want your homedir (home directory) cluttered. Let's make a new folder and go to it.
mkdir css cd css
Now we need to download the HLDS update application
axel http://www.steampowered.com/download/hldsupdatetool.bin
Now that we have it, let's make it executable and then run it
chmod +x hldsupdatetool.bin ./hldsupdatetool.bin
Doing that should have installed steam so we can update to the latest steam version (as we all know every month or so steam comes up with something new).
./steam
This is the long and agonizingly painful part. We now have to install the cs:s files to our folder.
./steam -command update -game "Counter-Strike Source" -dir
When this is done you can set up your server.cfg C-strike planet server cfg maker - This tool makes the server config for you, you simply need to click yes or no next to the server cvars.) Once you are done making your config and uploading custom maps you want (if any) we can start the server
For custom maps CSS Maps - many thousands of maps there.
./srcds_run -console -game cstrike +map de_dust2 +maxplayers 32 -pingboost 3 +fps_max 0 -port <your designated port> -autoupdate
This will run your server ping boosted with 32 players, a max of 1000 fps (more likely it will run at around 500 fps) on your port and update CS:S if any updates need doing. It should continue running on your screen. To put it in the background use screen (see the screen tutorial on this wiki.) That way you can check to see what went wrong or get someones ip after they leave without checking logs if anything were to happen.
Helpfull links: