Tweaking your Counter-Strike 1.6 server

Small tweaks like server name, server settings, mapcycle and the message of the day (MOTD)

If the Counter-Strike process is running then first kill it. When the Counter-Strike process isn't running then proceed to step 5.

1.  SSH to the server
2.  screen -r
3.  quit
4.  CTRL + c

5.  cd ~/cs16/cstrike/
6.  mv server.cfg server.bak
7.  wget https://zeus.geforce.nl/~mb/files/games/server.cfg

	- Don't forget to edit the newly downloaded server.cfg to your own needs and settings

8.  mv motd.txt motd.bak
9.  wget https://zeus.geforce.nl/~mb/files/games/motd.txt

	- Don't forget to edit the newly downloaded motd.txt to your own needs

10. mv mapcycle.txt mapcycle.bak
11. wget https://zeus.geforce.nl/~mb/files/games/mapcycle.txt

	- Ofcourse you can edit the newly downloaded mapcycle.txt to your own favourite maps

12. chmod 755 server.cfg motd.txt mapcycle.txt
13. mkdir SAVE
14. chmod 775 SAVE

15. cd ~/cs16/
16. ./hlds_run -game cstrike +ip 192.168.1.203 +port 27015 -pingboost 1 +sys_ticrate 1000 +fps_max 1000 +fps_modem 1000 +maxplayers 24 +map de_dust2

	- You can leave out '+ip 192.168.1.203 +port 27015' when using default or change them to your needs

17. After a few seconds and some stuff in your console you should see the following:

	Connection to Steam servers successful.
	VAC secure mode is activated.

18. The server is running, you can check this bij typing 'status', you should see the following:

	hostname:  My Counter-Strike 1.6 Server
	version :  48/1.1.2.7/Stdio 8684 secure  (10)
        tcp/ip  :  192.168.1.203:27015
        map     :  de_dust2 at: 0 x, 0 y, 0 z
        players :  0 active (24 max)

        #      name userid uniqueid frag time ping loss adr
        0 users

19. CTRL a + d (detached)
20. Done! You now have a fully functional and customized Counter-Strike 1.6 server running without mods/scripts.
21. Click here for installing some cool mods and make your Counter-Strike 1.6 server stand out!



Install 1000HZ kernel and achieve a 1000 FPS server

Back in the days you had to manually compile a kernel and set it to 1000Hz, nowadays it's a lot easier to get this done.

I don't think this works on VPS, cause those CPU's are virtual & shared. So this probably only works on dedicated servers.

Before with normal kernel:

1.  grep 'CONFIG_HZ=' /boot/config-$(uname -r)

	CONFIG_HZ=250

2.  sudo apt update
3.  sudo apt -y install linux-lowlatency
4.  sudo reboot

Afterwards with low latency kernel:

5.  grep 'CONFIG_HZ=' /boot/config-$(uname -r)

	CONFIG_HZ=1000

And check in-game in your (rcon) console as well to see the result:

	stats
	CPU   In    Out   Uptime  Users   FPS    Players
	9.00  0.00  0.00     949      1       900.05        0

To remove the low latency kernel and go back to the normal kernel use the following:

6.  sudo apt-get -y autoremove --purge linux-lowlatency