Counter Strike 1.6 Server. Full installation and 100% working Counter Strike 1.6 server.
Please read and do everything carefully! Following this guide i’ve installed many working servers.
As we know CS 1.6 is very old game, already 15 years. Nowadays it is very difficult to find a really good and working tutorial how to install 100% working Counter Strike 1.6 server.
In this post I will guide you through all the steps on how to install a hybrid Counter Strike 1.6 server on a Linux powered server (CenOS 7.2 x64 server in my case). A hybrid Counter Strike 1.6 server is a Counter Strike 1.6 game server that allows Steam clients (legit Steam accounts) and non Steam clients (non Steam game clients) as well as owners of old game clients with the game protocol version 47 to enter your server and play.
You will need access as root or super user to a GNU/Linux Machine, or have the system admin install screen and wget for you. I recommend fresh VPS or Dedicated Server (CentOS 6.X or CentOS 7.X). If you like Debian (Ubuntu) distribution, feel free and use it.
I’m not Counter Strike server installation guru, so, if you think that i’m wrong in an step below, please let me know.
These are the steps needed to install a Counter Strike 1.6 Server:
1. Server Configuration
1.1 The necessary packages:
yum -y update
yum install wget
yum install unzip
yum install vim
yum install screen
1.2 If you running 64 bit server you need to instal 32-bit libraries, if not, please lave this step:
yum -y install glibc.i686
yum install libgcc_s.so.1
2. Create an user for your game server
2.1 Create user:
2.2 Set password for your new created user “csserver”:
2.3 When it’s done, login as your new created user “csserver”:
su - csserver
2.4 Next you navigate to your home folder using the cd command:
3. Counter Strike installation
3.1 Now you need to create a directory in which to download steamdcmd and one to install the server in (folder server will be where your server will be installed and the folder steamcmd will hold the installers):
mkdir server ; mkdir steamcmd ; cd steamcmd
3.2 Download and extract the steamcmd Valve tool:
tar -xvzf steamcmd_linux.tar.gz
3.3 Updating, downloading and installation:
3.4 Now you wait until it downloads and installs the updates for SteamCMD and you will be able to see a command line starting with “Steam>”. Once you see this you have to login to the steam server anonymously:
3.5 Once logged in let’s tell the installer where you want the folder to be installed:
3.6 Now it’s time to sit back and relax (or maybe coffee) until the installer (steamcmd) downloads all the server files. To download server files, please enter:
app_update 90 validate
3.7 SteamCMD has a bug related to HLDS games. Make sure you run this command multiple times until you see progress 100.00 and Success! App ’90’ fully installed. If you see Error! App ’90’ state is 0x6 after update job. please enter app_update 90 validate command again. If you see Success! App ’90’ fully installed. then installation is almost done. Congrats! Press CTRL+C to go out from “Steam>”.
4. Install Metamod
4.1 Let’s start with metamod. Metamod is a plugin interface for Half-Life modifications that is located between the Half-Life game engine and a Half-Life mod, providing the dynamic loading and unloading of DLL plugins to add or remove extra functions to or from the game server.
mkdir addons ; cd addons ; mkdir metamod ; cd metamod ; mkdir dlls ; cd dlls
4.2 Make sure than you are in the /home/csserver/server/cstrike/addons/metamod/dlls/. Download and extract metamod-p-1.21p37-linux_i686.tar.gz:
tar -zxvf metamod-p-1.21p37-linux_i686.tar.gz
4.3 Create plugins.ini:
4.4 If it done go back to “cstrike” folder:
4.5 Edit liblist.gam:
*** “vi” command allow to edit files via terminal SSH. You can use “nano” editor if you don’t like “vi” editor. If you have no idea what is “vi” and what is “nano” or don’t know how to use them, please edit files via your favorite FTP client, it will be much easier for you. If you editing files via FTP please ALWAYS connect from your new created user “csserver” NOT root.
4.6 Replace gamedll_linux “dlls/cs.so” line to: (and remove gamedll_osx and gamedll lines)
5. Install AMMmodx
5.1 Download and extract amxmodx:
tar xzvf amxmodx-1.8.2-base-linux.tar.gz
tar xzvf amxmodx-1.8.2-cstrike-linux.tar.gz
5.2 Tell metamod about amxmodx which is easily done by editing the plugins.ini file:
5.3 Add the following line:
6. Install dProto
dProto is a plugin for metamod that allows protocol 47 and 48 no-steam clients to join the server. Remember, this is illegal plugin. If you want to see only official Steam clients to your server, please leave this six point step.
6.1 Go to addons directory and create dproto folder:
mkdir dproto ; cd dproto
6.2 Download dproto:
6.3 Download config file for dproto in the cstrike folder:
6.4 Tell metamod about dproto which is easily done by editing the plugins.ini file:
6.5 Add the following line (after amxmodx):
7. Start Counter Strike server.
7.1 Go to server directory and create new file startserver and chmod it 755:
chmod 755 startserver
7.2 Open “startserver” file:
7.3 Put the following line:
***change ip 126.96.36.199 to your server ip address. IMPORTANT!
screen -A -m -d -S csserver ./hlds_run -console -game cstrike -ip 188.8.131.52 -port 27015 +maxplayers 32 +map de_dust > /dev/null >&1 &
7.4 Allow dev to run script:
7.5 Finally start your server online:
7.6 Now open the screen:
screen -r csserver
Now you see whats happens – server is running or not.
Sometimes server is not starting at the first start .. maybe it’s normal because i got the server start error every time when i install new CS 1.6 server. Just press CTRL+C to close screen and then again start server with command “./startserver”. After that enter again “screen -r csserver” and look whats happening. If you see: Connection to Steam servers successful. VAC secure mode is activated. then your server is online and you can try to connect. To close screen press CTRL+A and then CTRL+D.
8. Start CS server on server boot
8.1 Log in as root (su – root) and enter the following:
8.2 Put this line in to rc.local:
cd /home/csserver/server && ./startserver
8.3 Chmod rc.local:
chmod +x /etc/rc.d/rc.local
Congratulation your server is almost done!
If you need any help about CS 1.6 installation or configuration, just lave your comment below and i will try to help you.