Installing Counter-Strike 1.6 (HLDS)
First, lets create a directory where we will run the hldsupdatetool, run the following command: Code:
Now we switch to the hlds we just created and download the hldsupdatetool.bin Code:
If all goes well you should now have the hldsupdatetool.bin in the srcds directory. Now we change the permission of hldsupdatetool.bin so we can execute it and extract the contents from hldsupdatetool.bin Code:
chmod +x hldsupdatetool.bin
Note: after you run ./hldsupdatetool.bin you will get a prompt to agree with the terms and conditions, simply type yes and hit enter.
If all goes well, you should not have two files in the srcds directory, the hldsupdatetool.bin which we downloaded earlier, and a steam file the updatetool generated, this is the file we will use to install Counter-Strike: Source.
Note: if you receive a 'uncompress: command not found' message it means your server does not have uncompress installed. You have two options to easily work around this, try the following while logged-in as root:
ln -s /bin/gunzip /bin/uncompress
Then try to run ./hldsupdatetool.bin again. If that does not work, or you do not have root privileges you can download the binary file we have available:
Now that you have the steam binary file, Type the following command to begin installing CS 1.6
chmod +x steam
./steam -command update -game cstrike -dir .
Note the period after -dir
By now, the Counter-Strike 1.6 install should have started:
HLDS Install has started
Install times will vary anywhere between 15-30 minutes (~300MB) depending on your server connection speed and how congested the Steam network is. Once setup has finished it will display a "HLDS installation up to date" message. Now we are ready to start the server.
Counter-Strike command line options
Below is a list of options you can use when starting up the server.
Initializes console mode
Automatically update the server when Steam updates are released
The HLDS mod you want to run
Amount of players to allow