Jump to content


[HowTo] Left 4 Dead 1 + 2 Linux Server

  • Please log in to reply
No replies to this topic

#1 Arctic


    Haphost Staff

  • Moderators
  • 341 posts
  • LocationGermany

Posted 14 August 2014 - 03:28 PM

This tutorial describes how to install Left 4 Dead and Left 4 Dead 2 servers running Linux, brings to the run, and keeps in operation. I have written no two individual tutorials, because Left 4 Dead and Left 4 Dead 2 are largely identical in server mode and differ only at very few points.



Preparing the system

First, the server should be brought up to date.
In Debian you do this with:

apt-get update && apt-get upgrade

In order for the server to continue running even if you log out, you need the program screen. Install it so the user root.
The Debian command:

apt-get install screen

If you are the a 64bit system, then you still need the support for 32bit programs, so you can start the Counter-Strike Source server.
For Debian this is to use:

apt-get install ia32-libs

From Debian 7 (Wheezy) then you Have to add the i386 architecture:

dpkg --add-architecture i386
apt-get update
apt-get install ia32-libs

Installing the Server

At best it creates a separate account to the server. This makes her by her as root

adduser left4

inputs and in the following dialog a password for the user. It is an extremely bad idea to run programs with the user root. So the idea reject again.
With the new user you will log you one now and once created the future server directory. The name does not matter, I use an example for l4d and l4d2 Left 4 Dead Left 4 Dead 2:

mkdir l4d

To download the server we need the SteamCMD Update Tool:

wget http://media.steampowered.com/client/steamcmd_linux.tar.gz

tar xfvz steamcmd_linux.tar.gz

Will start next SteamCMD the tool for the first time and update it by:

./steamcmd.sh +quit

In addition to the current SteamCMD download files, additional folders are created. Any errors can be ignored.

With the current tool, we can now Counter-Strike Source, Global Offensive or Team Fortress 2 server download. (This is the same command with their updates installed):


Left 4 Dead:

./steamcmd.sh +login anonymous +app_update 510 +force_install_dir l4d validate +quit

Left 4 Dead 2:

./steamcmd.sh +login anonymous +app_update 222860 +force_install_dir l4d2 validate +quit

Depending on the speed of your connection it may take a while now.


Starting and Configuring the Server

To test whether the server is working, we start the server from the l4d / l4d or l4d2 / left4dead2 directory. We go first thing in the directory:

cd l4d/l4d

or .:

cd l4d2/left4dead2

and enter this start command:


Left 4 Dead

./srcds_run -game left4dead +map l4d_airport01_greenhouse

Left 4 Dead 2


./srcds_run -game left4dead2 +map c2m1_highway

Automatic Updating

The server you can update manually with the same command that you have installed it too. So the following into the server directory:


Left 4 Dead

./steam -command update -game "left4dead" -dir . -verify_all -retry

Left 4 Dead 2

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


  • vyjhala and raffy like this

any support PM's be Ignored please use the Support section for it



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users