Header Ads

Install Counter-Strike: 1.6 server on Linux

This guide will show you how to install a Counter-Strike: 1.6 server on Linux. This method will work for most of the linux distributions.

  1. Create and open the folder where you want to install your server.
     mkdir SteamCMD
     cd SteamCMD
  2. Download SteamCMD and extract the contents of the zip to the folder.
    wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
    tar xvfz steamcmd_linux.tar.gz
  3. Before you begin, you must first install the dependencies required to run SteamCMD. If your system uses yum, you can run the following command.
    For 32 Bit
    yum install glibc libstdc++
    For 64 Bit
    yum install glibc.i686 libstdc++.i686
    Or
    sudo apt-get install lib32gcc1
  4. Open steamcmd.sh and wait until steamcmd install required files in that folder.
    ./steamcmd.sh
  5. Once steamcmd is installed you need to login in to steam via steamcmd. You can also login using anonymous id.
    login anonymous
    Or
    login <username>
  6. After you log in, you can setup download/install directory for the server.
    force_install_dir ./cs16server/
  7. Install or update the server using app_update command. app_update  command requires the application id of the game server you want to install. We are going to install Counter strike 1.6 so we will use 90. You can find other application ids here.
    app_update 90 validate
  8. Run app_update 90 validate comamnd multiple times until no more updates take place.
  9. Here you have installed your Counter-Strike: 1.6 server successfully.
  10. You can now exit SteamCMD
    exit
  11. To start the server open server installed directory and execute the following command.
    cd cs16server​
    ./hlds_run -console -game cstrike +port 27015 +de_dust2 +maxplayers 32 -pingboost 1

If we put all together
mkdir SteamCMD
cd SteamCMD
wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
tar xvfz steamcmd_linux.tar.gz
sudo apt-get install lib32gcc1
./steamcmd.sh
login anonymous
force_install_dir ./cs16server/
app_update 90 validate
exit
cd cs16server​
./hlds_run -console -game cstrike +port 27015 +de_dust2 +maxplayers 32 -pingboost 1

11 comments:

  1. Doesn't work. :(

    ./hlds_run -console -game cstrike +port 27015 +de_dust2 +maxplayers 32 -pingboost 1
    Invalid game type 'cstrike' sepecified.
    Sun Jun 25 21:44:05 CEST 2017: Server Failed

    ReplyDelete
  2. Yes bcz valve have some problem, you need to wait for fix

    ReplyDelete
  3. It doesn't wokr. I think they will never fix this...

    ReplyDelete
    Replies
    1. we need to wait for a fix from valve
      that valve issue.

      Delete
  4. Someone has just made this post for SEO purposes, clearly doesnt work everyone getting the same error. Dont bother reading and doing this

    ReplyDelete
  5. cd cs16server​
    -bash: cd: cs16server​: No such file or directory

    ReplyDelete
    Replies
    1. Man if you have this studio question i have one good help to you, stop using linux, computer, internet, electry and evethink please :)

      Delete
  6. Please change the startup command from "+de_dust2" to "+map de_dust2", otherwise it will result in a segmentation fault error and crash when first player connect.
    Took me too long to figure that out.

    Otherwise, thank you for the tutorial, very useful!

    ReplyDelete
  7. Released Romania îți pune la dispoziție:
    CS.RELEASED.RO # CS 1.6 PUBLIC SERVER

    De ce să alegi cs.released.ro? Ai toate detaliile aici: https://forum.released.ro/topic/19/descriere-server-puncte-forte

    Împreună la un alt nivel.
    www.released.ro

    ReplyDelete

Powered by Blogger.