HOW TO INSTALL COUNTER-STRIKE 1.6 SERVER ON AWS






  • This guide will show you how to set up a Counter-Strike: 1.6 servers on AWS. The steps here will work for most Linux distros that support Steam CMD.

  1. mkdir ~/SteamCMD 
  2. cd ~/SteamCMD
  3. wget http://media.steampowered.com/client/steamcmd_linux.tar.gz
  • Unpack the downloaded archive, delete it and make the installation script executable:
  1. tar xfz steamcmd_linux.tar.gz
  2. rm steamcmd_linux.tar.gz
  3. chmod +x steamcmd.sh
  •  Install the necessary libraries so that you can run 32-bit applications:
  1. sudo dpkg --add-architecture i386
  2. sudo apt-get update
  3. sudo apt-get install lib32gcc1 
  •  Run the installation script:
  1. ./steamcmd.sh

  •  Log in anonymously on the official server:

  1. login anonymous

  • You may have to log in using your Steam account username and password:

  1. login USERNAME 

  • After entering the command, you must enter the password, wait, and you may also need to enter the Steam Guard code that will come by email.

Specify the directory for the downloaded files:

  1. force_install_dir ../hlds 

  • We execute the command to start downloading files
  1. app_update 90 validate

  • At the end we will see the message:

 Success! App ’90’ fully installed.

  • Exit the command line installation script:

  1. quit 

  • Create the necessary directories and files: 

  1. mkdir ~/.steam
  2. ln -s ~/SteamCMD/linux32 ~/.steam/sdk32
  3. touch ~/hlds/cstrike/listip.cfg
  4. touch ~/hlds/cstrike/banned.cfg

  • Go to the directory with the downloaded files and try to run the Counter-Strike 1.6 server for the test:

  1. cd ~/hlds
  2. ./hlds_run -game cstrike +ip 0.0.0.0 +maxplayers 12 +map de_dust2 
  • If everything is ok, interrupt the server by typing quit or pressing CTRL+C.
  • Install Screen so that you can start the server in the background and exit : 

  1. sudo apt-get install sudo screen

  • Run a new Screen session and start the server (where 192.168.1.50 is your dedicated IP that is visible from the Internet):

  1. screen -a
  2. cd ~/hlds
  3. ./hlds_run -game cstrike -console +ip 192.168.1.50 +maxplayers 32 +map de_dust2 -secure -sv_lan 0 -autoupdate -port 27015 
  • Press Ctrl+a and immediately z to disconnect from the session and leave it running as a background process.
  • In the future, to return, let’s see the list of running sessions and connect to the desired one:
  1. screen -ls
  2. screen -r NAME 

 Thank You for reading this I hope it might be help full!!

Post a Comment

0 Comments