View source for Left 4 Dead Install
Jump to:
navigation
,
search
[[Category:Linux]] [[Category:Source_Based_Servers]] [[File:Left4Dead.png|thumb|350px]] '''Copy the commands within the code boxes and paste/run them in Putty''' First you will need to connect to your server using Putty (SSH) in order to do this install See - [[connecting_to_your_server|Connecting to your server]] == Making a folder for the server == You will need to make a folder somewhere that the server files will be installed (If you have done this, skip this part) The most common or best place to put most of your files on a server is in the /home folder Change Directory to /home <pre>cd /home</pre> Now make a folder e.g. Left 4 Dead_Server Note to change the "Left 4 Dead_Server" to the servers name or folder name <pre>mkdir Left 4 Dead_Server</pre> Now go into that folder <pre>cd Left 4 Dead_Server</pre> Now you have a new / clean folder you can being to download & install the files for the server. == Installing HLDS + Steam + SRCDS == First you will need to download HLDS (Half Life Dedicated Server) in order to download Steam & then SRCDS (Source Dedicated Server) <pre>wget http://www.steampowered.com/download/hldsupdatetool.bin</pre> After downloading you will need to change the file into an executable file, so you can run it <pre>chmod +x hldsupdatetool.bin && ./hldsupdatetool.bin</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) 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>ln -s /bin/gunzip /bin/uncompress && ./hldsupdatetool.bin</pre> Again you may have to agree with some T's & C's with answer "yes" Now you can run hlds again, you may have to agree again with answer "yes" <pre>./hldsupdatetool.bin</pre> Now you can run Linux Steam Client <pre>./steam</pre> Again you may have to agree with some T's & C's with answer "yes" 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 == 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 <pre>./steam -command update -game "left4dead" -dir .</pre> This will check the current folder & download any / all missing files for a Team Fortress 2 Server (you can use this command to redownload files that you may have deleted Team Fortress 2 Will now download (Should go very fast with our network speeds on our servers) == Running Left 4 Dead via Screen == 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 <pre>screen -S Left 4 Dead_Server</pre> Now you will notice you are on a new session with a clean view of Putty Now you can run your Left 4 Dead Server Note to change the values in this line e.g. max players, port etc... Max Players - up to 32, Port (Best to use unused ones e.g. 25XXX-27XXX <pre>./srcds_run -console -game left4dead +map l4d_hospital01_apartment +maxplayers 8 -autoupdate -port 27000 +exec server.cfg</pre> If all done right your server should start up fine & the last thing it should say is "VAC Secure" or something very simular, If not try downloading the files again, just incase it missed a few (highly unlikly) Now you can Disconnect from the session Using Keys "Ctrl + A + D" at the same time === Using Fork === You can use the Fork function to run multiple servers running from the same files (Saves having to start up / manage multiple servers if they are going to be the same) 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> == Reconnecting to the process / session == Once you have a session running you may want to recconnect to it as the server may crash, or you may want to turn it off or restart etc... First you will need to find what sessions are running & their process id <pre>screen -ls</pre> [[File:puttyscreen.png|350px]] As you see in my screenshot, i have 2 Screen Sessions running, if i want to connect to 2047Servers session i would use the numbers on the left <pre>screen -r 7354</pre> Note Change the ID numbers to what your ones are
Return to
Left 4 Dead Install
.
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
Actions
Search
Navigation
Main page
Recent changes
Random page
Help
Categories
Linux
Windows
Source Based Servers
HLDS Based Servers
Minecraft
2047Servers Control Panel