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.
Prerequisites
- Update the packages:
sudo apt-get update
- Upgrade the packages:
sudo apt-get upgrade
- Install the required packages:
sudo apt-get install lib32gcc1 libc6-i386
- Create a new user called “steam”:
sudo adduser steam
(this is for security purposes)
Installing SteamCMD
- Login to the newly created user:
su steam
- Get out of the current directory:
cd ..
- Go into the “steam” user directory:
cd steam
- Download SteamCMD:
wget http://media.steampowered.com/installer/steamcmd_linux.tar.gz
- Unzip SteamCMD:
tar -xvzf steamcmd_linux.tar.gz
- Run SteamCMD:
./steamcmd.sh
Installing the Left 4 Dead 2 server
- Login to the Steam servers:
login anonymous
- Set the install directory:
force_install_dir ./l4d2/
- Download the L4D2 server files:
app_update 222860 validate
(the download may take some time)
Running the Left 4 Dead 2 server
- Exit out of SteamCMD:
exit
- Go into the L4D2 server folder:
cd l4d2
- Run the game server:
screen ./srcds_run +ip YOURSERVERIP -port 27015 +map c1m4_atrium -secure
In this step, you can replace the map with any desired map.
Conclusion
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).
Want to contribute?
You could earn up to $300 by adding new articles
Submit your article
Suggest an update
Request an article
Suggest an update
Request an article