Linux Counter-Strike 1.6 Server

Intro:
This Guide is written for help with installing the new steam linux 1.6 server.It will take you step by step through the installation until you have a basic Counter-Strike server running.

Requirements:

Acces to Linux server with ssh, or your own server with a keybord.
An Internet connection on the linux server.
An homedir where you have write acces.
Enough space on your hard drive, 600Mb At least.
wget or an ftp program.
Gzip unpack program.

Guide:
Ok, Lets get started.Go to your homedir and lets make a new dir for the server, and then go into that dir.Should you already have a installation you want to update, just use the hlds_l dir you using now

mkdir hlds_l

Now lets go in the dir.

cd hlds_l

Now we are going to download the steam install files (file is called steam) I use wget here to get the file.If you are having problems downloading this file from this location there are some mirrors listed at the bottom of this page.if your linux doesnt have wget, use the http/ftp program provided with your distribution to get it.

wget http://www.japje.nl/wp-content/steam/steam.tar.gz

We now have the file we need, now lets unpack it!

tar -zxvf steam.tar.gz

Now make sure it executable.

chmod +x steam

now lets runs steam:

./steam

it will response with:

Checking bootstrapper version …
Getting version X of Steam HLDS Update Tool
Downloading. . . . . . . . . . .
Steam Linux Client updated, please retry the command

So we now have an updated steam client, cool huh now lets get those server files.

./steam -command update -game (game) -dir /path/to/your/hlds_l

As you can see we can choose our game, install dir. The install dir is the path to the hlds_l dir we made in the beginning, ill use /home/jap/hlds_l as an example.

./steam -command update -game cstrike -dir /home/jap/hlds_l

if you typed it correctly it will response with:

No installation record found at /home/jap/hlds_l
Checking/Installing ‘Counter-Strike Base Content’ version XX

It will now start downloading files, go and watch tv, come chat in the irc channel, it will take some time.Dont worry about the no installation record found error, its just an message that it didnt found any installion, since its the first time

If steam is done downloading all those files, you will be back at the prompt, and you basicly now have an ready to use cs serveryou can test the server if it works with:

./hlds_run -game cstrike +map de_dust -autoupdate

This wil run the most basic cs server with the map de_dust.The option -autoupdate will make sure that if there is a Counter-Strike game update that it wil download it Automaticly
Because we made steam remember our password, all we need to do to update next time is run:

./steam -command update -game (game)

Thats all, How to config the server, thats all up to you, that im hoping, i dont need to explain.I wish you best of luck with your new Dedicated Linux Counter-Strike Server!I would like to thank the whole valve team for 2 things, this linux version, and the use of their Readme file while creating this guide!

If you like my work, and want to support me you could donate a little thank you to my paypal on the top left menu! it helps me keep this page available for you guys!

Also if you have any questions or you just want to chat, join us on irc:

for server problems/questions:
#counter-server on Gamesurge

or for chatting:
#steam-hangout on Gamesurge

82 Responses so far...

  1. Pascal says:

    Hallo, vielen dank fuer die tolle HLDS anleitung fuer linux.

    linux r0x

    PS: i thought i’d write in german since it’s so simular to your language.

  2. Hein says:

    Ik ben een newbee als het gaat om linux , maar met de handleiding (zeer gedetaileerd)had ik een cs server lopen binnen een uur . dank je voor de goede Handleiding !!!

  3. BaBoOn says:

    Kreng je vorige url zag er beter uit :P

  4. breen says:

    heb je misschien ook een guide om hltv te laten draaien op een dedicated?

    [Japje]
    Nee ik heb geen guilde voor HLTV, maar die spookt wel ergens rond op de Steampowered forums, of op srcds.com forums :)
    [/Japje]

  5. Reijk says:

    goed werk bedankt

  6. illdan says:

    When i type ./steam all i get is “Checking bootstrapper version …” for endless time >.

  7. Assgrass says:

    Hey !
    I’m trying to install it. And i made it. And a thing was fucked so i removed it and reinstalled it. But
    When i reinstall i get this “Incompatible TGT VersionNum”
    WHY?

    [Japje]

    Try to:

    rm ~/.steam/ -rf

    then your original update ./steam rule

  8. 0p3r4 says:

    I see that you have updated this fine guide of yours, i noticed one flaw though – In the current text you write “As you can see we can choose our game, install dir, with our username and password we just created,and putting -remember_password at the end will make sure it remembers the password.”. The thing is, that in this updated guide you never tell us how to create the mentioned account, (though if i recall correctly this didnt work for me when I followed the earlier guide either which lead to me not performing that step at all). You might want to remove that piece of text in order to not create confusion among new cs-server admins ;)…

    Anyway, thanks again for a great guide :)

    [Japje]
    Done, Tnx for the tip, overlooked it with my last edit :)

  9. Biggie says:

    [temp@server4 hlds_l]$ ./hlds_run -game cstrike +map de_dust -autoupdate
    Auto detecting CPU
    Using Pentium II Optimised binary.
    Auto-restarting the server on crash
    Updating server using Steam.
    Checking bootstrapper version …
    Updating Installation
    Checking/Installing ‘Counter-Strike Base Content’ version 16

    Checking/Installing ‘Linux Server Engine’ version 29

    Checking/Installing ‘Half-Life Base Content’ version 8

    HLDS installation up to date

    Console initialized.
    scandir failed:/home/temp/hlds_l/./valve/SAVE
    scandir failed:/home/temp/hlds_l/./platform/SAVE
    Protocol version 47
    Exe version 1.1.2.5/Stdio (cstrike)
    Exe build: 01:13:17 Dec 3 2005 (3327)
    STEAM Auth Server
    couldn’t exec language.cfg
    Server IP address 127.0.0.1:27015
    scandir failed:/home/temp/hlds_l/./valve/SAVE
    scandir failed:/home/temp/hlds_l/./platform/SAVE

    couldn’t exec listip.cfg
    couldn’t exec banned.cfg
    Adding master server 68.142.72.250:27010
    Adding master server 69.28.151.162:27010
    Connection to Steam servers successful.
    VAC secure mode is activated.

    Invalid CD Key.
    :(

  10. Jarrett says:

    Japje,
    Been looking at this site forever, it is a great hand, I appreciate it.
    Thanks
    Goed Goed work

  11. Red says:

    Great guide dude!
    Is there a fps booster like there is for windows?

    [Japje]

    not a real booster, but the -pingboost option and the sys_ticrate option can do that for you. Check the steampowered forums for such info :)

  12. James Brown says:

    I am trying to install a The Specialists Linux server, but when I do this command: ./steam -command update -game (game) -dir /path/to/your/hlds_l

    it does this:
    Checking bootstrapper version . . .
    Updating Installation
    Logging in as “my login”
    Incompatible TGT VersionNum

    Please help???

    Also, what do I put for this: ./steam -command update -game “what do I put here for it to be a The Specialists game????” -dir /home/jap/hlds_l

    [Japje]

    For Incompatible TGT VersionNum do: rm ~/.steam -rf

    the specialst has a seperatie install package, get it from their website, you cant use the steam util for this.

  13. Rob says:

    Hey,

    Als ik dit draai => /hlds_run -game cstrike +map de_dust -autoupdate -ip xx.xxx.xxx.xxx
    Dan moet hij toch een ip binden? maar als ik dan hieronder kijkt blijft hij localhost aangeven..
    Ook als ik ip in server.config heb staan..

    Auto detecting CPU
    Using AMD Optimised binary.
    Auto-restarting the server on crash
    Updating server using Steam.
    Checking bootstrapper version …
    Updating Installation
    This Linux installation is unsupported. You must have GLIBC 2.3.2 or higher.
    Please update your installation to a more recent version.
    For more information visit http://support.steampowered.com
    Err: /lib/libpthread.so.0: version `GLIBC_2.3.2′ not found (required by ./test1.so)
    Sun Feb 26 17:23:42 CET 2006: Steam Update failed, ignoring.

    Console initialized.
    scandir failed:/home/hlds_l/./platform/SAVE
    Protocol version 47
    Exe version 1.1.2.5/Stdio (cstrike)
    Exe build: 02:38:45 Jul 7 2004 (2738)
    STEAM Auth Server
    couldn’t exec language.cfg
    Server IP address
    Downloading Security Module from Speakeasy.net …
    Completed downloading Security Module from Speakeasy.net
    Server is in Secure Mode.
    scandir failed:/home/hlds_l/./platform/SAVE

    No auth servers parsed
    Disabling Valve Authentication.
    Adding master server 207.173.177.11:27010
    Adding master server 69.28.151.162:27010
    Server logging data to file logs/L0226003.log
    L 02/26/2006 – 17:24:13: Log file started (file “logs/L0226003.log”) (game “cstrike”) (version “47/1.1.2.5/Stdio/2738”)

    [Update]
    nog een keer , heb alles weggegooid maar nu krijg ik nadat ik steam run Incompatible TGT VersionNum

    Heb precies jou tut gedaan

    [Japje]
    Probeer anders:
    rm ~/.steam -rf

    en dan je command nog eens, en het probeer als je achter een router zit te binden aan locale interface +ip 192.168.1.xx oid
    En update je GLIBC, dat zou ook zomaar eens problemen kunnen opleveren:

    This Linux installation is unsupported. You must have GLIBC 2.3.2 or higher.
    Please update your installation to a more recent version.

  14. Rob says:

    waaa ik word gek, nu krijg ik

    Checking bootstrapper version …
    Updating Installation
    This Linux installation is unsupported. You must have GLIBC 2.3.2 or higher.
    Please update your installation to a more recent version.
    For more information visit http://support.steampowered.com
    Err: /lib/libpthread.so.0: version `GLIBC_2.3.2′ not found (required by ./test1.so)

    Bedoelt hij daar mijn bsd versie mee?

    [Japje]

    This is a linux install ;) *BSD is an entire different thing. Try searching for linux emulation or a bsd installation howto, this one wont work on bsd :)

  15. Cobrakiller says:

    I got everything installed but when I shut down my SSH the server doesn’t stay up. What do I need to do?

    Look into screen, or put an & behind the startup to background it.

  16. manyou says:

    hello
    when i type: “./steam -command update -game (game) -dir /path/to/your/hlds_l”
    The server put out: “Checking bootstrapper version …
    Updating Installation
    No username supplied or previously set”

    What can i do
    I dont know whats wrong
    please help

    [Japje]

    Most problems can be fixed with:

    rm ~/.steam -rf

    and then retry the command…. ;)

  17. Grindordie says:

    Dude, great! It works 100%
    Great tut. 10/10
    :-)

  18. RedRat says:

    Great guide there dude!

    It there a way to boost the fps on the linux hlds server 1.6?

    [Japje]
    You could check out the -pingboost options, and the sys_ticrate option.

  19. Jarrett says:

    Hey Japje,
    Nice guide.
    Question, there is no firewall on the server. When I start HLDS, it starts. But when People try to connect it says Timed Out. Any way to fix this?

    -Jarrett

    [Japje]
    Perhaps behind a router that needs the ports forwarded?


    Japje,
    This is a server at SoftLayer, so, I do not think the router/switch is a problem.

    -jarrett

    [Japje]
    Then you should contact them, then they may be blocking something.. i dont know, sorry

  20. Tom says:

    I have finished the hlds download and installation. All i want to do now is to simply play cs on linux (suse10). What commands do i use to launch cs? do i need to download more software (win emulator?) please help. So far i have finished what this page instructed:
    http://www.cstrike-planet.com/tutorial/1/6
    whats next

    thanks

    [Japje]
    This is a server tutorial, not a client. Dont ask me, look into wine or cedega.

  21. Dico says:

    hello…

    when i type ./steam -command update -game cstrike -dir /hlds -username niclus12345@hotmail.com -password niclus -remember_password /path/to/your/hlds_l

    its say

    Checking bootstrapper version …
    Updating Installation
    Logging in as ‘niclus12345@hotmail.com’
    Incompatible TGT VersionNum

    can you help me plz ?

    [Japje]
    Plz read closer next time, or check comments or search!! you do not need user/pass anymore!!

  22. Kenny says:

    hi there
    i run a debian linux 3.1 and when i try to download the files for the server i get this message:

    kenny@arius:~/cs16$ ./steam -command update -game cstrike -dir .
    Checking bootstrapper version …
    Updating Installation
    Illegal instruction
    kenny@arius:~/cs16$

    does anyone have an idea, how to solve this? thx

  23. RomZes13 says:

    Thanks dude!
    It works great!
    But how can i shutdown server correctly?
    Quit – it just reboot.

  24. kill3r says:

    Japje?
    I just want to know:

    1) When i lauch hlds_run, i have this:

    Auto detecting CPU
    —>Using Pentium II Optimised binary.
    Auto-restarting the server on crash

    But i have a Pentium III !!!
    Is it normal? My CPU is i686 of 870 MhZ

    2) When I type Status, I have this:

    hostname: *Private***
    version : 47/1.1.2.5/Stdio 3421 secure
    tcp/ip : xxx.xxx.xxx.xxx:xxxxx
    map : de_rats at: 0 x, 0 y, 0 z
    —>players : 0 active (6 max)

    OMGWTF: 6 max !?!?

    But I want to have 10 players max (i tried it on Windows, and I can have 10 players MAX)….
    How can I configure it for 10 players MAX ?
    Ill have my new comp (AMD Athlon XP 4800+) only in 5 months…
    But now, I want to be able ta take 10 players… lOl

    3) Is this version of “HLDS” is like the REAL version of HLDS? (the one that we download on Steam FTP)

    ———————————–

    THX Japje and very good tutorial!!!

    BYE

  25. kill3r says:

    oh and…
    How can I determine my port, ?
    b/c for teh monet, i have: xx.xx.xxx.xx:27015
    And I want to have: xx.xx.xxx.xx:27020

    THX

  26. aleksi says:

    hi, i know i know, i’m dum…but could you help me any how….

    i installed it rightly, and there was no errors, but how i do run the game after that???

  27. Xen0n says:

    Console initialized.
    i get this error :S

    scandir failed:/root/hlds_l/./platform/SAVE
    Protocol version 47
    Exe version 1.1.2.0/Stdio (valve)
    Exe build: 20:06:30 Mar 7 2006 (3421)
    STEAM Auth Server
    couldn’t exec language.cfg
    WARNING: UDP_OpenSocket: port: 27015 bind: Address already in use
    FATAL ERROR (shutting down): Couldn’t allocate dedicated server IP port 27015.
    Add “-debug” to the ./hlds_run command line to generate a debug.log to help with solving this problem
    Wed Mar 29 00:13:27 CEST 2006: Server restart in 10 seconds

  28. Flip says:

    Beste Japje,

    Ik heb alles geinstalleerd en gedaan,

    Heb net eventjes geprobeerd te spelen.

    In ssh blijft hij hangen op,
    VAC secure mode is activated,

    Kun je mij uitleggen wat ik even kan proberen?

    Alvast bedankt!

  29. aleksi says:

    one queston:
    how to run steam and cs after installing??

  30. Pedro says:

    Great!! Works fine!!

  31. Aslan says:

    hecking bootstrapper version …
    Getting version 18 of Steam HLDS Update Tool
    Downloading. . . . . . . . . . . .
    Cannot open output file ‘LinuxHldsUpdateTool_18.pkg’

    Why this comes`??

  32. Tropix says:

    Auto detecting CPU
    Using AMD Optimised binary.
    Auto-restarting the server on crash
    Updating server using Steam.
    Checking bootstrapper version …
    Updating Installation
    Checking/Installing ‘Counter-Strike Base Content’ version 17

    Checking/Installing ‘Linux Server Engine’ version 35

    Checking/Installing ‘Half-Life Base Content’ version 8

    HLDS installation up to date

    Console initialized.
    Protocol version 47
    Exe version 1.1.2.5/Stdio (cstrike)
    Exe build: 20:06:55 Mar 7 2006 (3421)
    STEAM Auth Server
    couldn’t exec language.cfg
    Server IP address 83.246.121.10:27015
    ./hlds_run: line 424: 18209 Segmentation fault $HL_CMD
    Add “-debug” to the ./hlds_run command line to generate a debug.log to help with
    solving this problem
    Wed Apr 12 12:13:50 CEST 2006: Server restart in 10 seconds

    HELP please

  33. RedRat says:

    Tropix
    Try update the ./steam -command update -game (game) -dir /path/to/your/hlds_l

    or open the hlds_run and read line 424

  34. AuldNic says:

    Japje

    Thanks for this, I use it regularly as I can never remember the commands and having a link to the steam executable is always handy!

    N

  35. Do you know what this error message means?
    cminterface.cpp : Assertion Failed: NULL != m_hConnection

    My server comes up and people can play but after five minutes it drops off the internet server list in steam. People can still get in if they add the IP through favorites. Everything else works fine, but I can’t keep the server on the steam internet server list for long.

  36. how can i open the console again afetr i reconnect with SSH?

    and also for a more complexe startup command would be like

    ./hlds_run -console -game cstrike +port 27085 +hostname “UWC3-40L. SoL-Gaming.net NY” +map de_dust2 +maxplayers 12 -autoupdate

  37. DK says:

    Did everything step by step but get this.

    -bash-3.00$ /home/tekdk/hlds_1/./hlds_run -game cstrike +map de_dust -autoupdate
    Invalid game type ‘cstrike’ sepecified.
    Sat Jun 3 19:52:21 CDT 2006: Server Failed
    Any help Please.

  38. Jens says:

    Hi

    When i write:

    ./steam -command update -game cstrike -dir /home/hlds_l

    I get:

    Checking bootstrapper version …
    Updating Installation
    Failed to create directory /home/hlds_l

    WHY?!?!?!?

  39. Nick says:

    Hello, There, This is somewhat doing my head in!

    cs@grace [~/hlds]# ./hlds_run -game cstrike +maxplayers 10 +map cs_assault
    Auto detecting CPU
    Using Pentium II Optimised binary.
    Auto-restarting the server on crash

    Console initialized.
    scandir failed:/home/cs/hlds/./valve/SAVE
    scandir failed:/home/cs/hlds/./platform/SAVE
    Protocol version 47
    Exe version 1.1.2.5/Stdio (cstrike)
    Exe build: 20:06:30 Mar 7 2006 (3421)
    STEAM Auth Server
    couldn’t exec language.cfg
    Server IP address 64.38.14.2:27015

    Metamod version 1.17.2 Copyright (c) 2001-2004 Will Day
    Metamod comes with ABSOLUTELY NO WARRANTY; for details type `meta gpl’.
    This is free software, and you are welcome to redistribute it
    under certain conditions; type `meta gpl’ for details.

    scandir failed:/home/cs/hlds/./valve/SAVE
    scandir failed:/home/cs/hlds/./platform/SAVE

    couldn’t exec listip.cfg
    couldn’t exec banned.cfg
    Executing Admin Mod config file
    Adding master server 207.173.177.11:27010
    Adding master server 68.142.72.250:27010
    Connection to Steam servers successful.
    VAC secure mode is activated.

    I try and connect to the server but it just times out. There is no firewall. Have I done something wrong or missed anything? I am willing to give you access to try and resolve it?

    Thank you very much for your time and this guide.

  40. DEbian User says:

    Hi!

    ./steam -command create -user (username) -password (xxx)???

    Need ?

  41. Debian User says:

    Hi !
    I Have same error …

    giovani@olho:./steam -command update -game cstrike -dir …
    Checking bootstrapper version …
    Updating Installation
    Illegal instruction
    giovani@olho:~/cs16$

  42. Max-Payne says:

    sorry for my bad eglish xD | i dont aunderstand this

    mkdir hlds_l

    Now lets go in the dir.

    cd hlds_l
    Now make sure it executable.

    chmod +x steam

    now lets runs steam:

    ./steam
    how i run steam ???? i have linux Fedora… how i chek it executable ?????????????????????? Plz Help!!

  43. sebosmani says:

    I have this report”no installation record found at”

  44. Baldnut says:

    everything fine but then whne run command it says “cannot open output file ‘//installrecord.blob?

  45. ManInBlack says:

    Please tell me how to install steam on sparc platform!!!

  46. raul says:

    Added 896 resources.
    Received baseline with 167 entities.
    Error:/home/patyta/Desktop/hlds/cstrike/dlls/director_i386.so: cannot open shared object file: No such file or directory
    Couldn’t open config file director.cfg.
    Director module initialized.

  47. lol says:

    Xen0n .. fool …
    do not use root for server-processes …

  48. waleed says:

    When i type ./steam all i get is “Checking bootstrapper version …”
    this messege comes “Failed to connect to any GeneralDirectoryServer”…

    what I’m supposed to do now

  49. Hat says:

    Hey Japje, nice job, may you can make HLTV guide? In all internet isnt alot info about it.

  50. Co0pin^ says:

    hi im trying to install the steam now (unpacking it)
    and it comes up with this error
    “segmentation fault”

    it says this: –
    ./steam -command update -game cstrike
    checking bootstrapper version …
    Segmentation fault

    help me plz!!

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *