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. erikson says:

    cs/hlds_l: Not found in archive
    tar: Error exit delayed from previous errors
    update failed, please run “tar xzUf LinuxHldsUpdateTool_18.pkg” to install the latest steam binary
    tar xzUf LinuxHldsUpdateTool_18.pkg

    after,

    ./steam

    same thing

    please help me

  2. Pawan says:

    Dear Sir,

    I have installed but cant able to admin login http://216.132.159.8/psychostats/statsroot/login.php

    ./psadmin.pl
    You must provide the identity of the player with a steamid, username,
    player name or IP Address.

    USAGE:
    psadmin.pl [accesslevel]
    psadmin.pl -steamid [-accesslevel ]
    psadmin.pl -username [-accesslevel ]
    psadmin.pl -name [-accesslevel ]
    psadmin.pl -ip [-accesslevel ]
    psadmin.pl -c [accesslevel]

    If no accesslevel is given ADMIN is the default.
    Valid access levels are:
    1 = Normal User.
    5 = Clan Admin.
    10 = ADMIN.

  3. babyb says:

    Working URL?

    # wget http://users.lichtsnel.nl/~jap/steam/steam.tar.gz
    –17:29:00– http://users.lichtsnel.nl/~jap/steam/steam.tar.gz
    => `steam.tar.gz’
    Resolving users.lichtsnel.nl… 83.137.151.2
    Connecting to users.lichtsnel.nl|83.137.151.2|:80… failed: No route to host.

  4. r3xx3r says:

    When i type ./steam i get bash: ./steam: No such file or directory.

    y?

  5. sgtbenc says:

    Hey, the link to download the tarball isn’t working. Could you let me know if you get it fixed?

  6. Bir says:

    Love your guide. Easy to understand and it helped me a lot starting up my servers.
    Keep up the god work.

  7. Orzo says:

    Hello, i installed my counter Strike Server on linux dedicated and work

    But now i changed my server config cause i can use the Rcon password but how i can restart the server
    from telnet linux? i dont know the command for this!
    and how i can stop the server ?
    Thanks!

  8. Syke says:

    Guys, the -dir structure must be like /home/perse/hlds without trailing slash.

  9. Potato says:

    very nice tutorial, well done! :D

  10. Nightfire says:

    Hello,

    I have an big Problem with my Ded. Linux Server App.
    I’m trying to run an Opposing Force Server on it.

    I downloaded with the hldsupdate Tool all Files, now if i try to start with:

    ./hlds_run -game gearbox

    this error comes up:

    jwm@hotel718:~/hlds$ ./hlds_run -game gearbox
    Auto detecting CPU
    Using AMD Optimised binary.
    Auto-restarting the server on crash

    Console initialized.
    scandir failed:/home/jwm/hlds/./platform/SAVE
    Protocol version 47
    Exe version 1.1.2.0/Stdio (valve)
    Exe build: 20:02:44 Oct 24 2006 (3651)
    STEAM Auth Server
    couldn’t exec language.cfg
    Server IP address 85.25.148.160:27015
    Host_Error: Couldn’t get DLL API from °·Ø·P,À·!
    FATAL ERROR (shutting down): Host_Error: Couldn’t get DLL API from °·Ø·P,À·!

    I’m also running an CSTRIKE Server with the same STEAM App, and this works just fine, so what can happens?

    I also tryd it with the -debug Command, but no debug.log comes up :(

    PLEASE HELP!

    Thanks alot

  11. elduro01 says:

    hello my server is running well and everything but theres a problem when i close my SSH Access the server is down, i want to know how to leave it working all day even when i close ssh access thanks

  12. Igor says:

    Hello,i am Igor from Serbia,and i need help!
    I get:
    Checking bootstrapper version …
    Failed to create directory /srv/www/vhosts/myhost.com/.steam

  13. Cindy says:

    I needed this. thanks for sharing. Worked well.

  14. farhan says:

    when i open counter strike it automatically close after 5 mints ?

  15. billos says:

    I’d like to know how to uninstall it

  16. HLDS says:

    I’m having a problem with server auto start when/if crash .. i have 10 cs1.6 cw server running from one folder with different server.cfg’s “server1.cfg server2.cfg etc etc.”

    Normally i would put “-autoupdate” in the screen launch BUT when i do it takes the standard server.cfg and yes i use “+exec server1.cfg” in launch as well.

    Any way to fix this??

    Best regards!

  17. Filip says:

    Hi
    Please help me
    I want to make counter strike 1.6 server on linux…but my clients using protocol 47…and my server is 48…and canot join in my server…
    I you have the code for old counter strike protocol 47 …please send me to download and make server…
    Thank You

  18. DD says:

    why it’s doesn’t connect to steam servers i have all ports open and firewall open , I have just installed linux. when i had windows xp my servers worked but now on linux =/

  19. DD says:

    haverdaden@haverdaden-desktop ~/hlds_l $ ./hlds_run -game cstrike +map de_dust -autoupdate
    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 25

    Checking/Installing ‘Linux Server Engine’ version 42

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

    HLDS installation up to date

    Console initialized.
    scandir failed:/home/haverdaden/hlds_l/./valve/SAVE
    scandir failed:/home/haverdaden/hlds_l/./platform/SAVE
    Protocol version 48
    Exe version 1.1.2.6/Stdio (cstrike)
    Exe build: 18:01:18 Oct 24 2008 (4352)
    STEAM Auth Server
    couldn’t exec language.cfg
    Server IP address 127.0.1.1:27015
    scandir failed:/home/haverdaden/hlds_l/./valve/SAVE
    scandir failed:/home/haverdaden/hlds_l/./platform/SAVE
    [S_API FAIL] SteamAPI_Init() failed; unable to update local steamclient. Continuing with current version anyway.
    Adding master server 69.28.151.162:27010
    Adding master server 68.142.72.250:27010

    couldn’t exec listip.cfg
    couldn’t exec banned.cfg
    Could not establish connection to Steam servers.

  20. Atul says:

    After ./steam this error is comming

    Checking bootstrapper version …
    Failed to connect to any GeneralDirectoryServer

  21. C. says:

    Same problem as above..
    —————————-
    Hetzelfde probleem als hierboven..

  22. Crunk says:

    I am considering running a few dedicated CS 1.6 servers at home….I would like them all to be on the same linux server. So I am running 2 CPU’s with 4 cores each for a total of 8 cores, I would like to run a dedicated server off of each core. I would think this is possile using a boot emulator? Here are the current server specs, I built it just for being a CS server:
    ASUS Z8NA-D6C Dual LGA 1366 Intel 5500 ATX Server Motherboard
    Intel Xeon E5520 Nehalem 2.26GHz 4 x 256KB L2 Cache 8MB L3 Cache LGA 1366 80W Quad-Core Server Processor x2 = 8 cores
    Crucial 6GB (3 x 2GB) 240-Pin DDR3 SDRAM ECC Unbuffered DDR3 1333 (PC3 10600) x2 = 12GB
    Western Digital Raptor WD740ADFD 74GB 10000 RPM 16MB Cache SATA 1.5Gb/s 3.5″ Hard Drive x4 = raid 1
    Thermaltake WSPR0020 24Pin 750W Redundant 4U Server Power Supply

    Operating System: OpenSUSE 11.1

  23. GameHunter says:

    Hi Japje,

    Ik heb je hele tutorial doorlopen en alles tot op de letter nauwkeurig ingevoerd.
    Echter als ik de server dan eindelijk op start krijg ik dit:

    ————————————————————————————————————————-
    pascal@srv1:~/hlds_l$ pico cstrike/server.cfg
    pascal@srv1:~/hlds_l$ ./hlds_run -game cstrike +ip 95.211.3.37 +port 27015 +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 28

    Checking/Installing ‘Linux Server Engine’ version 47

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

    HLDS installation up to date

    Console initialized.
    scandir failed:/home/pascal/hlds_l/./valve/SAVE
    scandir failed:/home/pascal/hlds_l/./platform/SAVE
    Protocol version 48
    Exe version 1.1.2.6/Stdio (cstrike)
    Exe build: 18:05:13 Oct 24 2008 (4383)
    STEAM Auth Server
    couldn’t exec language.cfg
    Server IP address 95.211.3.37:27015
    scandir failed:/home/pascal/hlds_l/./valve/SAVE
    scandir failed:/home/pascal/hlds_l/./platform/SAVE
    [S_API FAIL] SteamAPI_Init() failed; unable to update local steamclient. Continuing with current version anyway.

    Adding master server 68.142.72.250:27010
    Adding master server 69.28.151.162:27010
    couldn’t exec listip.cfg
    couldn’t exec banned.cfg
    scandir failed:/home/pascal/hlds_l/./valve/SAVE
    scandir failed:/home/pascal/hlds_l/./platform/SAVE
    [S_API FAIL] SteamAPI_Init() failed; unable to update local steamclient. Continuing with current version anyway.

    Adding master server 69.28.151.162:27010
    Adding master server 68.142.72.250:27010
    Could not establish connection to Steam servers.
    cminterface.cpp (599) : Assertion Failed: NULL != m_hConnection
    ————————————————————————————————————————-

    Ik heb ook al veel op het net gezocht maar nergens een oplossing voor dit probleem gevonden.
    Weet jij misschien wat hier aan de hand is!?

    Greetz GameHunter

  24. GameHunter says:

    Ow. P.S.

    Volgens mij hoort dit:
    Checking/Installing ‘Counter-Strike Base Content’ version 28

    Dit te zijn:
    Checking/Installing ‘Counter-Strike Base Content’ version 34

    En dit:
    Checking/Installing ‘Linux Server Engine’ version 47

    Dit te zijn:
    Checking/Installing ‘Linux Server Engine’ version 48

    Klopt dat?!

  25. GameHunter says:

    Nou ik ben er deels uit.

    Het bleek dat mijn hoster alle poorten standaard dicht had gezet!
    Goede zaak natuurlijk maar ik moest het wel eerst ffuh weten:)
    De server start nu dus wel op en ook secure dus ikkuh is helemaal blij.

    De melding:
    [S_API FAIL] SteamAPI_Init() failed; unable to update local steamclient. Continuing with current version anyway.

    Is echter blijven bestaan dus ik hoop dat je eventueel weet wat dit inhoud.

    Greetz GameHunter

  26. Max says:

    Same problem as Atul. what should i do, i tried to do snth like this http://hl-vip.ru/showthread.php?s=471577861518159f1bb159e7ac36bcf7&t=622 but the error is the same.

  27. Hasch says:

    Hello, whats wrong if i get error like this:
    Auto-restarting the server on crash
    Updating server using Steam.
    Checking bootstrapper version …
    Updating Installation
    Checking/Installing ‘Counter-Strike Base Content’ version 35

    Checking/Installing ‘Linux Server Engine’ version 53

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

    HLDS installation up to date

    Console initialized.
    ./hlds_run: line 321: 30470 Segmentation fault $HL_CMD

  28. […] Fabi]Aber irgendwie steht am ende immer nur Steam Linux Client updated, please retry the command anstatt es den Server installiert Nun ja, du gibst ja auch unter -command "update" an !! was sagt denn die Manpage von Steam ? Hab mal eine kleine Anleitung dazu gefunden. linux-counter-strike-server […]

  29. MR.Pyro says:

    De tutorial is helemaal juist de mensen die een fout melding krijgen zullen deze uitleg niet helemaal volgen. ik heb deze uitleg gevolgt en heb hem na 10 minuten geinstaleerd.
    mischien moet je meer tutorials maken voor meerdere mods ofzo
    dit is wel wat werk maar wil u zeker helpen

    gr MR .Pyro

  30. pangee says:

    Hi
    Please help me
    I want to make counter strike 1.6 server on linux…but my clients using protocol 47…and my server is 48…and canot join in my server… , my friends ,too
    If you have the code for old counter strike protocol 47 …please send me to download and make server…
    Thank You

  31. X9NOPHNS says:

    watafak ?! help me!

    [root@vpsadv-1000594-534 hlds]# ./steam -command update -game cstrike -dir .
    Checking bootstrapper version …
    Getting version 46 of Steam HLDS Update Tool
    Bad uSizeOfSignature
    CAsyncIOManager: 0 threads terminating. 0 reads, 0 writes, 0 deferrals.
    CAsyncIOManager: 10 single object sleeps, 0 multi object sleeps
    CAsyncIOManager: 0 single object alertable sleeps, 0 multi object alertable sleeps

  32. allan says:

    ayan@ayan-Aspire-5738 ~/hlds_1 $ ./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 …
    removing stale semaphore last operated on by process 4715 with name 0eBlobRegistryMutex_04D82FB541898DA00F46064F8F062D8F
    removing stale semaphore last operated on by process 4715 with name 0eBlobRegistrySignal_04D82FB541898DA00F46064F8F062D8F
    Updating Installation
    Determining which depot(s) to install/update…
    3 depot(s) will be installed/updated
    0:02 Checking local files and building download list for depot 11 ‘Counter-Strike’ version 35
    0:02 Connecting content server session for version 35
    0:03 [81.171.115.11:27030] Connecting…
    0:04 [81.171.115.11:27030] Connection established; handshaking…
    0:04 [81.171.115.11:27030] Sending login message…
    0:04 Fetching version 35 manifest
    0:06 Reading version 35 checksum table
    0:07 Fetching exclude list
    0:07 Calculating download size
    0:07 No files will be downloaded
    0:07 Checking local files and building download list for depot 4 ‘Linux Server Engine’ version 74
    0:07 Connecting content server session for version 74
    0:08 [81.171.115.11:27030] Reusing connection
    0:08 [81.171.115.11:27030] Sending login message…
    0:08 Fetching version 74 manifest
    0:09 Reading version 74 checksum table
    0:10 Calculating download size
    0:10 No files will be downloaded
    0:10 Checking local files and building download list for depot 1 ‘Half-Life’ version 12
    0:10 Connecting content server session for version 12
    0:11 [81.171.115.11:27030] Reusing connection
    0:11 [81.171.115.11:27030] Sending login message…
    0:12 Fetching version 12 manifest
    0:14 Reading version 12 checksum table
    0:15 Fetching exclude list
    0:15 Calculating download size
    0:16 No files will be downloaded
    0:16 [81.171.115.11:27030] Disconnecting
    HLDS installation up to date

    Console initialized.
    Using breakpad crash handler
    Setting breakpad minidump AppID = 10
    Forcing breakpad minidump interfaces to load
    Looking up breakpad interfaces from steamclient
    Calling BreakpadMiniDumpSystemInit
    Installing breakpad exception handler for appid(10)/version(5787)
    scandir failed:/home/ayan/hlds_1/SAVE
    scandir failed:/home/ayan/hlds_1/./valve/SAVE
    scandir failed:/home/ayan/hlds_1/./platform/SAVE
    Protocol version 48
    Exe version 1.1.2.6/Stdio (cstrike)
    Exe build: 11:30:00 Aug 28 2012 (5787)
    STEAM Auth Server
    Server IP address 127.0.1.1:27015
    scandir failed:/home/ayan/hlds_1/SAVE
    scandir failed:/home/ayan/hlds_1/./valve/SAVE
    scandir failed:/home/ayan/hlds_1/./platform/SAVE
    Looking up breakpad interfaces from steamclient
    Calling BreakpadMiniDumpSystemInit

    couldn’t exec listip.cfg
    couldn’t exec banned.cfg
    scandir failed:/home/ayan/hlds_1/SAVE
    scandir failed:/home/ayan/hlds_1/./valve/SAVE
    scandir failed:/home/ayan/hlds_1/./platform/SAVE
    Forcing breakpad minidump interfaces to load
    Looking up breakpad interfaces from steamclient
    Calling BreakpadMiniDumpSystemInit
    Looking up breakpad interfaces from steamclient
    Calling BreakpadMiniDumpSystemInit

    Could not establish connection to Steam servers.
    Reconnected to Steam servers.
    VAC secure mode is activated.

    —– i have followed your instruction and installed cs1.6 but this is what i got…what’s wrong?…thanks…

Comments

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>