In this tutorial, you will learn how to setup a Left 4 Dead 2 server on Ubuntu. This guide was tested on Ubuntu server 15.10.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install lib32gcc1 libc6-i386
sudo adduser steam
(this is for security purposes)su steam
cd ..
cd steam
wget http://media.steampowered.com/installer/steamcmd_linux.tar.gz
tar -xvzf steamcmd_linux.tar.gz
./steamcmd.sh
login anonymous
force_install_dir ./l4d2/
app_update 222860 validate
(the download may take some time)exit
cd l4d2
screen ./srcds_run +ip YOURSERVERIP -port 27015 +map c1m4_atrium -secure
In this step, you can replace the map with any desired map.
Congratulations! You now have a working instance of L4D2 running! To connect to your server, launch the L4D2 game client, open up the developer console and type connect 1.2.3.4
(replace 1.2.3.4
with the IP address of your server).