<< posts

Counter-Strike 1.6 Server on the RPi3

Before you get started:

Either install the Exagear trial, instructions found here:

  • install trial

  • Or buy a license and activate Exagear on your device:

  • activate and install

  • Preparing the enviroment

    To get started, enter the 32-bit env and install required packages:

    sudo apt-get update
    sudo apt-get install libgcc1 curl

    Downloading and install SteamCMD

    Once you have all the packages needed, move to a new directory and install scmd:

    mkdir steamcmd
    cd steamcmd
    curl -sqL "$host$package" | tar zxvf -
    Then create an update script for cs 1.6:
    change /home/pi/cs16 to where you want to install the server
    echo "login anonymous
    force_install_dir /home/pi/cs16
    app_set_config 90 mod cstrike
    app_update 90 validate
    app_update 70 validate
    app_update 10 validate
    app_update 90 validate
    quit" > update_cs16.txt
    Now when updating your server just run:
    ./steamcmd.sh +runscript update_cs16.txt

    Running the server

    Move to the directory and create a new script:
    change args as you wish

    cd /home/pi/cs16
    args="-port 27016 +maxplayers 24 +map de_dust2"
    hlds="-game cstrike -autoupdate -pingboost 2"
    echo "./hlds_run $hlds $args" > start.sh
    chmod +x start.sh
    Then you can run your server like so: