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)
tar -xvzf steamcmd_linux.tar.gz
app_update 222860 validate(the download may take some time)
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 126.96.36.199 (replace
188.8.131.52 with the IP address of your server).