

Next, type the following: connect 12.34.56.78:27020 where 12.34.56.78 is your Linode’s ip, and 27020 is your port.Ī slightly easier method is to install the following add-on before launching the game: On the main menu, press the tilde ( ~) key to open the console. You can connect to the server in any one of three easy methods:Įnsure that the developer console is enabled. To stop the server, bring back the console and type exit. To bring the console back, type the following command: screen -r To detach from the screen session which runs the server console, press these two key combinations in succession: To start the server, simply input and run. Make the script executable: chmod +x ~/Steam/L4D2-server/start_L4D2.sh This script, when run, will execute the L4D2 server in a You can change the map to whichever one you prefer.

The port number may be changed to whichever one you prefer, so long as it is not a privileged port. The +port 27020 parameter is not required but is recommended so that your server always starts on the same port. Next, it is a good idea to write a custom startup script that will execute your custom config files. When you are finished, exit nano and save your changes. Simply follow the instructions: nano server.cfg Most server options are explained in the configuration file. Open the configuration file with nano to edit the configuration. Make sure to rename the file to server.cfg before launching the server: Once the download is complete, you should see this output: Success! App '222860' fully installed.īefore you configure the server, you should download an example config file: cd ~/Steam/L4D2-server/left4dead2/cfgĬhoose one of the following example files: wget If the download looks like it has frozen, be patient.

Install Left 4 Dead 2 from the SteamCMD prompt: login anonymous The Steam> prompt is similar to the Linux command prompt - with the exception of not being able to execute normal Linux commands.

Steam Console Client (c) Valve Corporation Redirecting stderr to '/home/steam/Steam/logs/stderr.txt' This command will display output similar to this: Redirecting stderr to '/home/steam/Steam/logs/stderr.txt' If you have already followed our SteamCMD installation guide, you can skip to step 4.įrom your user’s home folder, download SteamCMD into its own directory: mkdir SteamĮxtract the package and remove the archive file: tar -xvzf steamcmd_ This guide includes standalone configuration instructions for SteamCMD. This guide requires additional libraries which are not included in our standard
