Left 4 Dead 2 Install

From 2047Servers Support
Jump to: navigation, search
(Created page with " Category:Linux Category:Source_Based_Servers 350px '''Copy the commands within the code boxes and paste/run them in Putty''' First y...")
 
 
Line 20: Line 20:
 
<pre>cd /home</pre>
 
<pre>cd /home</pre>
  
Now make a folder e.g. Left 4 Dead_Server Note to change the "L4D2_Server" to the servers name or folder name
+
Now make a folder e.g. L4D2_Server Note to change the "L4D2_Server" to the servers name or folder name
  
 
<pre>mkdir L4D2_Server</pre>
 
<pre>mkdir L4D2_Server</pre>
Line 31: Line 31:
  
  
== Installing HLDS + Steam + SRCDS ==
+
== Installing SteamCMD + SRCDS / L4D2 ==
  
First you will need to download HLDS (Half Life Dedicated Server) in order to download Steam & then SRCDS (Source Dedicated Server)
+
First you will need to download SteamCMD (The new Server tool from Valve) in order to download Steam & then SRCDS (Source Dedicated Server) for L4D2 use
  
<pre>wget http://www.steampowered.com/download/hldsupdatetool.bin</pre>
+
<pre>wget http://media.steampowered.com/client/steamcmd_linux.tar.gz</pre>
  
After downloading you will need to change the file into an executable file, so you can run it
+
After downloading you will need to extract the contents of the compressed file
  
<pre>chmod +x hldsupdatetool.bin && ./hldsupdatetool.bin</pre>
+
<pre>tar xvfz steamcmd_linux.tar.gz</pre>
  
When you run the file you will have to also type "yes" to agree with Terms & Conditions (You will have to do this a few times during this install)
+
Then you will need to run SteamCMD for the first time
  
You may not have to unzip or uncompress the files you just downloaded (Not always needed, but do this anyways as most of the time you do need it
+
<pre>./steamcmd.sh</pre>
  
<pre>ln -s /bin/gunzip /bin/uncompress && ./hldsupdatetool.bin</pre>
+
Running this command will check for SteamCMD updates to the updater, when it is done it will allow you to input commands
  
Again you may have to agree with some T's & C's with answer "yes"
+
At the point where you see "Steam>" This is where you can either login as your steam account or login as anonymous (Benefits for linking your server to a Steam account is that steam will add it to their trusted 3rd party servers list in some of their games, so it will appear on the server browser better)
  
Now you can run hlds again, you may have to agree again with answer "yes"
+
Logging in anonymously
  
<pre>./hldsupdatetool.bin</pre>
+
<pre>login anonymous</pre>
  
Now you can run Linux Steam Client
+
Logging in as your account (Note it is best to create a separate account for this, or you will have to logout of Steam while you are using these commands)
  
<pre>./steam</pre>
+
<pre>login <username></pre>
  
Again you may have to agree with some T's & C's with answer "yes"
+
It should then ask for your password & you may have to enter your Steam Guard Password once it emails you one (if you have Steam Guard enabled on your account)
  
Thats it, You have installed HLDS & Steam (It may ask you to run ./steam again just to check its downloaded the latest files
 
  
== Downloading Left 4 Dead 2==
+
== Downloading L4D2 ==
  
Once you have done the tasks above you can now install a Steam Game Server, To install Left 4 Dead to the current folder you command
+
Once you have done the tasks above you can now install a Steam Game Server, To install L4D2 to the current folder you command
  
<pre>./steam -command update -game "left4dead2" -dir .</pre>
+
<pre>force_install_dir ./l4d2/</pre>
  
This will check the current folder & download any / all missing files for a Left 4 Dead 2 Server (you can use this command to redownload files that you may have deleted
+
<pre>app_update 222860 validate</pre>
  
Team Fortress 2 Will now download (Should go very fast with our network speeds on our servers)
+
222860 is the app id for L4D2
 +
 
 +
This will check the current folder & download any / all missing files for a L4D2 Server (you can use this command to redownload files that you may have deleted
 +
 
 +
L4D2 Will now download (Should go very fast with our network speeds on our servers)
  
 
== Running Left 4 Dead 2 via Screen ==
 
== Running Left 4 Dead 2 via Screen ==
Line 75: Line 78:
 
When you go to run the game server you want it to run in the background even when you disconnect from Putty, you will find if you just leave it running & close Putty you will kill the server (kills any processes you left running)
 
When you go to run the game server you want it to run in the background even when you disconnect from Putty, you will find if you just leave it running & close Putty you will kill the server (kills any processes you left running)
  
The way you keep a process running while you disconnect, is by making a session (using screen) Note to change the "Left 4 Dead_Server" to the servers name or folder name
+
The way you keep a process running while you disconnect, is by making a session (using screen) Note to change the "L4D2_Server" to the servers name or folder name
  
 
<pre>screen -S L4D2_Server</pre>
 
<pre>screen -S L4D2_Server</pre>
Line 99: Line 102:
 
See the example command above, this will create extra instances of the servers
 
See the example command above, this will create extra instances of the servers
  
<pre>./srcds_run -console -game left4dead +map l4d_hospital01_apartment +maxplayers 8 -autoupdate -port 27300 +exec server.cfg -fork 5</pre>
+
<pre>./srcds_run -console -game left4dead2 +map c5m1_waterfront +maxplayers 8 -autoupdate -port 27300 +exec server.cfg -fork 5</pre>
  
  

Latest revision as of 16:19, 11 October 2013

Personal tools
Namespaces

Variants
Actions
Navigation
Categories