Thursday, August 22, 2013

How to install a CS 1.6 2013 server with SteamCMD on Linux

This guide will show you how to a install CS 1.6 (Counter-Strike 1.6) 2013 server with SteamCMD on linux, because it's popular and windows is already straight forward. After that you may want to Install Metamod which is a plugin allowing you to run custom modifications for example AMX Mod X on Goldsource based game servers including CS 1.6, Half Life, Day of Defeat and Team Fortress classic.

We assume that you already have the Linux server installed with CentOS and you're in the directory you'd like the SteamCMD folder to be containing your new SteamCMD based server.

  • Make a new directory called SteamCMD
    mkdir SteamCMD
    cd SteamCMD
  • Download the SteamCMD update tool
    wget http://media.steampowered.com/client/steamcmd_linux.tar.gz
  • If you are running 64-bit linux you need to download 32-bit libs. Otherwise skip to step 4.
    yum install glibc.i686 libstdc++.i686
    ITo ensure we don't get a download failed error, let's allow the SteamCMD ports.
  • iptables -A INPUT -p udp -m udp --sport 27000:27030 --dport 1025:65355 -j ACCEPT
    iptables -A INPUT -p udp -m udp --sport 4380 --dport 1025:65355 -j ACCEPT
  • Extract the contents of the SteamCMD .tar.gz archive
    tar xvfz steamcmd_linux.tar.gz
  • Now we're going to launch SteamCMD
    ./steamcmd.sh
    You'll see updates downloading and installing followed by Loading Steam#...OK.
     
  • To download most game servers you can login anonymously.
    login anonymous 
  • Now we set a directory for our first server to install in. We like to name after ports so called it 27020.
    force_install_dir ./27020/
  • Now we need to install the server by doing an app update command with the application ID of the server we want to install. The Counter-Strike 1.6 dedicated server has an application ID of 90.
    app_set_config 90 mod cstrike
    app_update 90 validate
    You'll see the server download. Eventually you'll see Success! App '90' fully installed. Adding the word validate would verify that all files are correct.

    To install the HLDS Beta you must do:
    app_update 90 -beta beta validate
  • You may now exit SteamCMD
    exit
  • The server can be started in the same way as before. 
    cd 27020​
    ./hlds_run -console -game cstrike +port 27015 +de_dust2 +maxplayers 32 -pingboost 1

2 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. 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