Sciphors SRCDS Linux Easy Install
!!It is not recommended that you run your server as root!!
First, I suggest creating a directory to install your game folder into. Personally, I like to use /srcds.
To do this, use this command:
mkdir srcds
Now, cd, or change directory to the folder you just created, using this command:
cd srcds
Next, you need to download the half-life dedicated server update tool using wget, which is used to download a file from a link. To do this, you need to use this command:
wget http://www.steampowered.com/download/hldsupdatetool.bin
You will now be able to view the file you just downloaded, using the list command. Type ls, and something like this should show up on your terminal screen:
USERNAME@SERVERNAME:~$ ls
hldsupdatetool.bin
Next you have to make hldsupdatetool.bin into an executable file. This is done by using the below command.
chmod +x hldsupdatetool.bin
Now, you have to run hldsupdatetool.bin. Running a file in Linux isnt as easy as double clicking, but its pretty simple. Use the command below:
./hldsupdatetool.bin
You may have to run that command multiple times.
If this command does not work for you, you may need this first, run this command:
apt-get install lib32gcc1
Next, use the following commands:
./steam
./steam -command update -game (game name here ex: tf, counter-strike source, garrysmod, without the parentheses) -dir . (remember to add the . !)(you may run this multiple times to ensure all files are downloaded and up to date)
Now the final step, to start your server, type:
orangebox/srcds_run -console -game (game name here too!) +maxplayers (how many slots for the server) +map (map name) -autoupdate.
So an example of how to fully install a Counter-Strike: Source server would be:
mkdir srcds
cd srcds
wget http://www.steampowered.com/download/hldsupdatetool.bin
chmod +x hldsupdatetool.bin
./hldsupdatetool.bin
./steam
./steam -command update -game Counter-Strike Source -dir .
./orangebox/srcds_run -console -game Counter-Strike Source +maxplayers 32 +map cs_office -autoupdate
To close down your server for whatever reason, use this command:
killserver
And thats all there is to it!
I will soon work on a script to do all this for you, and put the link here for you to download.
!!It is not recommended that you run your server as root!!
First, I suggest creating a directory to install your game folder into. Personally, I like to use /srcds.
To do this, use this command:
mkdir srcds
Now, cd, or change directory to the folder you just created, using this command:
cd srcds
Next, you need to download the half-life dedicated server update tool using wget, which is used to download a file from a link. To do this, you need to use this command:
wget http://www.steampowered.com/download/hldsupdatetool.bin
You will now be able to view the file you just downloaded, using the list command. Type ls, and something like this should show up on your terminal screen:
USERNAME@SERVERNAME:~$ ls
hldsupdatetool.bin
Next you have to make hldsupdatetool.bin into an executable file. This is done by using the below command.
chmod +x hldsupdatetool.bin
Now, you have to run hldsupdatetool.bin. Running a file in Linux isnt as easy as double clicking, but its pretty simple. Use the command below:
./hldsupdatetool.bin
You may have to run that command multiple times.
If this command does not work for you, you may need this first, run this command:
apt-get install lib32gcc1
Next, use the following commands:
./steam
./steam -command update -game (game name here ex: tf, counter-strike source, garrysmod, without the parentheses) -dir . (remember to add the . !)(you may run this multiple times to ensure all files are downloaded and up to date)
Now the final step, to start your server, type:
orangebox/srcds_run -console -game (game name here too!) +maxplayers (how many slots for the server) +map (map name) -autoupdate.
So an example of how to fully install a Counter-Strike: Source server would be:
mkdir srcds
cd srcds
wget http://www.steampowered.com/download/hldsupdatetool.bin
chmod +x hldsupdatetool.bin
./hldsupdatetool.bin
./steam
./steam -command update -game Counter-Strike Source -dir .
./orangebox/srcds_run -console -game Counter-Strike Source +maxplayers 32 +map cs_office -autoupdate
To close down your server for whatever reason, use this command:
killserver
And thats all there is to it!
I will soon work on a script to do all this for you, and put the link here for you to download.