How to setup Counter-Strike 1.6 Server on Linux

Counter Strike 1.6 Linux ServerImage result for cs 1.6 linux server

How To Setup Counter Strike 1.6 Server on Linux?
Most people stay away from Linux because it is much more complicated as compared to Windows.


I myself prefer Linux Operating System because of its security and stability and that’s the reason I am writing this tutorial today.

Note:
CentOS

  • You can setup Counter-Strike 1.6 Server on your home computer or on a VPS (Virtual Private Server).
  • If Linux is not your primary OS, you can install Linux on a VM (Virtual Machine).
  • Simply download and install VirtualBox and CentOS ISO files and your VM will be ready.
  • However in this tutorial I assume you already have CentOS Server ready with root privileges.
  • You can skip the next steps of requirements if you want to setup on VPS.
Installation Steps:
Putty:
Image result for putty

  • If you are using Windows, you will need an SSH Client like PuTTY that lets you connect with your VPS.
  • Download PuTTY from here PuTTY.exe
Login to VPS
Once you have downloaded PuTTY, open it and you will see the screen below:
PuTTY SSH Client Console Window
  • Enter your VPS IP address in Host Name field and press enter.
  • A black console window will open asking for the username.
  • Enter your username (which should be root) and press enter.
Now it will ask for your password like below:
PuTTY SSH Client Console Window
Enter your password and press enter.
Note that your password will not be shown as you type it so don’t get confused.

Once you have logged in, you will see something like below:
PuTTY SSH Client Console Window

Server Installation:
Write the following commands in PuTTY console one-by-one:
  • mkdir /var/www/html/servers/cs16server
  • cd /home/cs16server
  • wget http://89.45.248.136/servers/hlds_skgamingsv.tgz
  • tar -zxvf hlds_skgamingsv.tgz
  • cd classic_new
  • ./hlds_run -game cstrike +ip 0.0.0.0 +port 27015 +maxplayers 32 +map de_dust2 +sys_ticrate 1000
  • screen -A -m -d -S cs16server ./hlds_run -game cstrike +ip 0.0.0.0 -port 27015 +maxplayers 32 +map de_dust2 -pingboost 1 +sys_ticrate 1000
After you have executed all the commands without getting any errors, the Counter Strike 1.6 Server should be started successfully in background.

Start Counter Strike 1.6 Server on Startup
Counter Strike 1.6 Server does not automatically starts when your VPS is restarted.

To start the server automatically on startup, execute the following commands:

  • echo cd /home/cs16server >> /etc/rc.local
  • screen -A -m -d -S cs16server ./hlds_run -game cstrike +ip 0.0.0.0 -port 27015 +maxplayers 32 +map de_dust2 -pingboost 1 +sys_ticrate 1000
Testing

This step is just to make sure that you have properly configured the server.
Open your game and click on Add Server.
Enter your Private IP with Port and click Add.
If you can see your server running, you can proceed to the next step.


0 comments:

Post a Comment

For More Information Contact Us : www.facebook.com/skgamingsv