How to create a public Counter-Strike 1.6 server

edited August 2014 in Proposed How-Tos
I saw that many people want to know how to install a cstrike server, so today I'll present you how to do it, using steamcmd functions.
Firstly, you have to login as root, and then to create a directory named "hlds" for example. Then you have to enter the directory, where you'll create a new one for steamcmd components. Below, I'll present all the steps / commands you have to follow.

1) login as root
2) Write: cd /home
3) Write: mkdir hlds
4) Write: cd hlds
5) Write: mkdir steamcmd
6) Write: cd steamcmd
7) Write: wget
8) Write: tar -xvzf steamcmd_linux.tar.gz
9) Write: ./ (and wait for a while ..)
10) Write: login anonymously
11) Write: force_install_dir /home/hlds
12) Write: app_update 90 validate (run this command for three times to complete the operation)
13) then, you have to install amxmodx & metamod components running the commands:
- Write: cd /home/hlds/cstrike
- Write: wget
- Write: wget
- Write: wget Binaries/1.20/metamod-1.20-linux.tar.gz
- Write: tar -pxzf amxmodx-1.8.2-cstrike-linux.tar.gz
- Write: tar -pxzf amxmodx-1.8.2-base-linux.tar.gz
- Write: tar -pxzf metamod-1.20-linux.tar.gz
14) the server installation is done.

Now, you have to start the server; to do it, you have to go in main hlds directory ( cd /home/hlds ), when you will run this command:
- Write: ./hlds_run -game cstrike +ip YOUR_IP +port PORT +maxplayers 32 +map de_dust2 -pingboost 2 +sys_ticrate 500
(replace YOUR_IP and PORT with your specifications)
- also, you can run the hlds server in background; for it, you need screen app, which can be installed running: apt-get install screen (Debian/Ubuntu), or yum install screen (Centos/Fedora). (Write: screen -A -m -L -d -S game ./hlds_run -game cstrike +ip YOUR_IP +port PORT +maxplayers 32 +map de_dust2 -pingboost 2 +sys_ticrate 500 )

For more informations, you can always check the valve site, here:
Sorry for some mistakes of writing ...
Good luck!
Sign In or Register to comment.