Jump to content
Facebook Twitter Youtube

☕ Eid al-Fitr ☕


Days

Hours

Minutes

Seconds

Recommended Posts

Posted

Here you'll learn how to set up a cs 1.6 server on your linux.

This is tested on Linux - Ubuntu 16.04.6 LTS , but it should work on other Linux distributions too.

End Note ( Spoiler of Part #2 ) :
 

Spoiler

In the next tutorial (Part #2 of setting up cs 1.6 server) , i will be showing how to install the following stuffs:

Fun fact that u might not know , theese things down are already installed on all csbd servers , with exception of "ReGameDLL" and "VTC" xd

ReHLDS - same as HLDS but with thousand of bug fixes & improvements and exploit protections
ReGameDLL -uff , too long to explain , i'll explain this one what's for in the next tutorial
Metamod ( "addons/metamod" ) - a plugin that allows other plugins like Reunion , AMX MOD X , ReAuthChecker to run and more...
Reunion/dproto - a metamod plugin ,installing a patch that allows non-steamers and steamers to play on the same server.
ReAuthChecker - a metamod plugin for a protection of xFakePlayers

ReVoice / VTC - a metamod plugin to allow non-steamers and steamers to talk via microphone.
AMX MOD X  ("addons/amxmodx" ) - a metamod plugin that allows you to install plugins like amx_slap , amx_kick , weapon restrictions , zombie plague 6.2...
 

 

 

  1. Open Terminal by pressing CTRL+ALT+T
    The Terminal looks like this :
    image.png.d3c2ec87aaec606046ddc0e2cb01fea1.png
     
  2. Make sure your system is up to date.
    Type the following commands in Terminal ( you'll be asked for the password of the current user you have log in with. )
    sudo apt-get update
    sudo apt-get upgrade

    image.png.13697707d6243cf47734841a5bfca043.png
     

  3. Install SteamCMD + Counter-Strike 1.6 Server
    Create a folder "SteamCMD" somewhere you want , i'll create it inside a folder "My Files - Tutorials" on my Desktop
    image.png.ef6b59aa4ecc1f5c7987e4a5634fd10e.png
     

    mkdir SteamCMD - with this command , you create a folder named "SteamCMD"
    cd SteamCMD - with this command , you change your current directory to the folder you just created.



    image.png.37bfacd22d12039665f9c1bdc2989c7c.png

    Now let's install some libs you need for the SteamCMD to run propertly

    x32 bit (i386) - sudo apt-get install lib32gcc1
    x64 bit (amd64) - sudo apt-get install lib64gcc1

    image.thumb.png.471ec14f93b1c0c2621e4db934c271ad.png

    Allow the ports used by SteamCMD ( Stupid Firewall shits ? )

    sudo iptables -A INPUT -p udp -m udp --sport 27000:27030 --dport 1025:65355 -j ACCEPT
    sudo iptables -A INPUT -p udp -m udp --sport 4380 --dport 1025:65355 -j ACCEPT

    image.thumb.png.f21de29a5bd1a6a2a92e6109b4c8f813.png

    Now let's download and install SteamCMD , type the following commands :

    wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
    tar xvfz steamcmd_linux.tar.gz
    rm steamcmd_linux.tar.gz

    image.thumb.png.4b4ef19c1608fd265328ad18f6f89321.png

    Now run SteamCMD and wait untill it install , after that start installing Counter-Strike 1.6 Server with the following commands

    ./steamcmd.sh
    Steam> login anonymous
    Steam> force_install_dir ../Server
    Steam> app_set_config 90 mod cstrike
    Steam> app_update 90 validate
    Steam> exit

    image.png.adac26ba489acb1258fd706307fe1d89.png

    image.png.98fbeffe0e2c715ccf7ecd5a2cca5c68.png

    image.png.e8c295dc30304823f4266decf263c066.png

    image.png.8e832e82be7d38281c6aa2b7d9b6ce89.png

    IMPORTANT: If "app_update 90 validate" command fail to install app '90' , run it AGAIN , sometimes 1st run doesn't work.

    Last steps of installing the server: ( PS: in my case , in my terminal it says 'File Exists' , because i already have installing all these things )
     

    mkdir ~/.steam
    ln -s ~/SteamCMD/linux32 ~/.steam/sdk32



    image.png.e40d1b18c57c61f7c5a3d981b6edfa2f.png


     

  4. Create a hlds_run script to start up your server.

    Mouse's Right Click on  : New Document => Empty Document
    Save it and rename it to something like "start_server.sh"

    image.png.55fa70dcf804ac7b174c3a4b9a0075b0.png

    Now open the file "start_server.sh" with a text editor ( doesn't matters what kind of text editor you'll use ) , im my case i'll use gedit
    Then put the following lines into the file and click on "Save" - then close it.

    Edited: before "cd Server" command , add line "killall hlds_run"

    killall hlds_run
    cd Server
    ./hlds_run -game cstrike +ip PUT_YOUR_IP_HERE +port 27015 +maxplayers 32 +map de_dust2

    IMPORTANT: Where you see "PUT_YOUR_IP_HERE" , replace it with your ip.

    wHQ1gts0IlBm.png

    IMPORTANT: Before running the script , you need to give it permissions with the following command:

    chmod +x ./start_server.sh


    Now final step , run the script and your server should start.
     

    ./start_server.sh

    Screenshot-from-2020-07-06-11-56-56.png

  • I love it 3
Guest
This topic is now closed to further replies.

WHO WE ARE?

CsBlackDevil Community [www.csblackdevil.com], a virtual world from May 1, 2012, which continues to grow in the gaming world. CSBD has over 70k members in continuous expansion, coming from different parts of the world.

 

 

Important Links