LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

left-4-dead-2

Left 4 Dead 2 dedicated server

TLDR

Start the headless server
$ [path/to]/srcds_run
copy
Start on a map
$ [path/to]/srcds_run +map [map]
copy

SYNOPSIS

srcds_run [options] [+commands]

DESCRIPTION

The Left 4 Dead 2 dedicated server is a headless Source dedicated server. The launcher script in the server install is srcds_run. It starts the Linux server binary, restarts it if it crashes, and forwards console commands from the command line.With no map, the server starts on its default map. +map selects a campaign map. A console command on the same line selects cooperation, versus, survival, and the other modes the game ships. More settings live in server.cfg in the left4dead2 cfg directory.Install or update the server files with SteamCMD into the directory that contains srcds_run.

PARAMETERS

+map map

Map to load. Campaign maps use names such as the opening map of Dead Center, Swamp Fever, or The Parish.
game mode
Set on the command line with the game's mode console command. Common mode names are coop, versus, and survival. The Valve dedicated-server page lists the exact command.

CAVEATS

srcds_run is not on the default PATH. The path is the dedicated-server install. Players outside the machine need the game port reachable (27015 by default). Map and mode names are the game's own tokens; a wrong map name makes the server fail at startup.

SEE ALSO

RESOURCES

Copied to clipboard
Kai