Take the 2-minute tour ×
Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

I have been searching for a guide on how to set up a Left 4 Dead 2 Steam dedicated server on a clean debian install.

But I haven't found one that worked.

So if anyone have successfully set up a server on debian could you please make a simple guide or link to an existing guide.

share|improve this question
    
You may find it easier to look up "Left 4 dead server Linux" –  Simon Sheehan Aug 8 '11 at 23:54
add comment

1 Answer

up vote 6 down vote accepted

First of all install steam, or the Half Life Dedicated Server (a.k.a. hldsupdatetool, see This site)

wget http://www.steampowered.com/download/hldsupdatetool.bin

Install it ./hldsupdatetool.bin after chmod +x if necessary. It will put steam in the current directory.

Check the tool is at the last version with ./steam (multiple times if necessary, until it displays the help message).

Then the install a game just do well with

./steam -command update -game "left4dead2" -dir .

(It will install l4d2 in the current directory, creating left4dead2/ subdir.)

Hint: the game names can be changed to another game. See the list with ./steam -command list

Bonus: run your server in screen (within the good directory)

#!/bin/bash
screen -d -m -S l4d2-server ./srcds_run -console -game left4dead2 -log on -hostip 88.xxx.x.x -hostport 27016 -clientport 27006 -nohltv +exec server.cfg +map c5m1_waterfront -autoupdate
share|improve this answer
    
No need to say you need to login as root, and chmod +x on the executables (steam, hldsupdatetool.bin) to perform these steps. You might also need to install/update your 32bit gcc libraries, since the installer is 32 bit and it is dynamically linked to 32 bit libraries. aptitude (or apt-get) install lib32gcc1 should solve this problem. –  Bora Aug 9 '11 at 10:04
1  
@Bora I do not recall using root privileges to install steam, but I did it in a user directory. –  M'vy Aug 9 '11 at 10:10
    
Also, if you encounter any missing libraries problem, you can pinpoint them by running ldd –  Bora Aug 9 '11 at 10:13
    
That's the best way, imho, too. Just make sure the user has enough privileges to read files from the shared library folders. –  Bora Aug 9 '11 at 10:14
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.