Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Left4Dead2 Dedicated Server on Ubuntu

  1. #1
    Join Date
    Jan 2010
    Beans
    6

    Left4Dead2 Dedicated Server on Ubuntu

    Due to the difficulty in finding any reliable or detailed explanation on how to set up a steam server AND configure it / administer it. I've decided to start this thread (hopefully in the right place).

    I share with you my meager learnings in hope that others will pick up where I left off and share their abundant knowledge .

    I'm an utter noob so this is probably not best practice and I will update this accordingly as other users share their input . I have also tried to explain everything to the best of my knowledge so that other users can learn as I have.


    LET'S START!!
    -------------------------

    download this utility from valve: http://storefront.steampowered.com/d...updatetool.bin

    located under: http://store.steampowered.com/about/

    Make sure you are already in your chosen directory before using this!
    I created a new directory under my home directory and dropped the utility into it. It seems other sources online have ranged in their recommendations... anywhere from dropping it under /var/steam to creating user accounts for each server. For simplicity's sake, I'm just putting it under my home dir.

    -

    Open up a terminal window and navigate to whichever directory you dropped hldsupdatetool.bin

    $chmod -x hldsupdatetool.bin
    Allows you to execute hldsupdatetool.bin

    $./hldsupdatetool.bin

    Runs hldsupdatetool.bin and installs steam


    $./steam
    Runs and updates steam

    Run steam and install Left 4 Dead 2

    $./steam -command update -game left4dead2 -dir ./

    Steam will update/install left4dead2 within your current directory.


    (if you are trying to install a different game, just type './steam -command update' and it should give you a list of arguments and games)


    This may take a while depending on your Internet connection...



    To verify everything downloaded properly...
    $./steam -command update -game left4dead2 -verify_all
    You can create a server cfg file by going under <steam_dir>/left4dead2/left4dead2/cfg/ and creating a server.cfg file. I don't believe the cfg/ dir is created by default so go ahead and

    mkdir <steam_dir>/left4dead2/left4dead2/cfg
    This is what my server.cfg looks like.

    NOTE: I don't have a rcon_password set because I wouldn't know what to do with it... Where do I even go to connect?


    // Server Name
    hostname "<hostname>"

    // Lan
    sv_lan 1

    // Disable Autokick
    mp_disable_autokick 1

    // Disallow cheats
    sv_cheats 0

    // Server Hint History??
    //sv_clearhinthistory 0

    // Enforce File Consistency
    sv_consistency 1

    // Allow Pause
    sv_pausable 0

    // Allow Voice
    sv_voiceenable 1

    // All-talk
    sv_alltalk 0

    // Region (0- east 1- west) (i think 3 is europe and 4 is australia?)
    sv_region 1

    //Set Difficulty
    z_difficulty normal

    //I believe this sets it to 4 player coop mode...
    sv_gametypes "coop"
    Okay, now that we have the server configured, let's go ahead and start it!

    Start the server using srcds_run

    ./srcds_run -port 27015 -game left4dead2 -maxplayers 4 -ip 129.210.131.56
    Sources:


    If anyone knows how to actually administer the server while it's running PLEASE LET ME KNOW and I'll add the information!

    -----------------

    valve developer wiki (very useful)

    http://www.arsgeek.com/2008/08/18/ho...estrike-style/

    http://jamespo.org.uk/wp/archives/862

    http://forums.steampowered.com/forum...d.php?t=292495

  2. #2
    Join Date
    May 2008
    Location
    Ontario, Canada
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Left4Dead2 Dedicated Server on Ubuntu

    What are the minimum hardware requirements for hosting a server without too much lag?
    Can it be done on a P3 with 256 MB RAM?

    internet connection is fine, since it will just go on the local lan only.

    I would do this in linux ofcourse.
    NO GUI, and nothing else running.
    Last edited by vandorjw; April 22nd, 2010 at 12:14 AM.

  3. #3
    Join Date
    Jan 2006
    Beans
    2,031

    Re: Left4Dead2 Dedicated Server on Ubuntu

    Just skimmed through your list, looks correct. I've set up and administrated a couple CS:S servers and started a L4D server before (although was fairly dissappointed with the utter lack of control over the L4D server).

    You'll want to disable RCON competely rather than just not setting a password, BTW. RCON lets you change maps, kick/ban players, respawn, basically allows you to control the server. You can do this simply from the server itself if you have it handy, but RCON let's you do this remotely while in game.

    Since I haven't ran a L4D server since the Demo/first month or so, and never ran a L4D2 server, I don't know if there is any mod's that you can install that will help administrate the server. CS:S had some good ones like Mani's Admin Mod and SourceMod. These let you administrate through an in-game GUI rather than having to pull up console everytime.

    Minimum hardware requirements? It's hard to say, generally RAM and Network speed are the major factors. IIRC, I was using around 200-300 MB's of RAM running a GUI-less Debian install with 3 CS:S servers running concurrently (mostly empty though not sure how much RAM will jump up with players). You should be alright for just one game server, maybe google can help find some official statement somewhere (my 10 sec search showed up nothing).

  4. #4
    Join Date
    Apr 2007
    Beans
    2

    Re: Left4Dead2 Dedicated Server on Ubuntu

    I think there is a mistake.
    Last edited by OldSchoolSoldier; August 14th, 2010 at 07:19 PM.

  5. #5
    Join Date
    Jun 2005
    Beans
    49
    Distro
    Kubuntu 12.10 Quantal Quetzal

    Re: Left4Dead2 Dedicated Server on Ubuntu

    When I'm executing "./steam -command update -game left4dead2 -dir ./" I get
    "Checking bootstrapper version ...
    Getting version 39 of Steam HLDS Update Tool
    Connection Reset"
    Anyone have any ideas what might be wrong?

    Edit: Nevermind: when I tried again today it worked like a charm - guess the steamservers just went down for a little while...
    Last edited by wonko; July 8th, 2010 at 09:53 AM. Reason: solved

  6. #6
    Join Date
    May 2008
    Location
    Ontario, Canada
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Left4Dead2 Dedicated Server on Ubuntu

    Does the Addon-support work under linux also.
    I would like to be able to play the custom maps.

    Can someone tell me how to add the maps to the server if it possible.

  7. #7
    Join Date
    Jan 2006
    Beans
    2,031

    Re: Left4Dead2 Dedicated Server on Ubuntu

    It works, just a question of how. If it's the same as counterstrike, there will be a maps folder you can place custom maps in. Then just go up a folder and update the maplist.txt file with the map names, so the server will know they are there.

  8. #8
    Join Date
    Oct 2007
    Beans
    5
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Left4Dead2 Dedicated Server on Ubuntu

    Quote Originally Posted by taofd View Post
    For simplicity's sake, I'm just putting it under my home dir.
    Personally, you should put it in ~/srcds, a Source server usually has 5-7 files and folders it adds to its install directory. I like to keep things clean.

    Quote Originally Posted by taofd View Post
    To verify everything downloaded properly...
    $./steam -command update -game left4dead2 -verify_all
    This is completely unnecessary. Unless you have a really unreliable connection, the odds of files being corrupted during a download is tiny. Verifying them just after you've downloaded them is a waste of time.

    Quote Originally Posted by taofd View Post
    NOTE: I don't have a rcon_password set because I wouldn't know what to do with it... Where do I even go to connect?
    Controlling your server via the console can be achieved in several ways.
    1. Connect to the server with L4D2 and use the rcon_password CVar to specify the password, and the rcon command to pass commands to the server.
    2. To use the client without connecting, set the rcon_address CVar to your server's IP and use the commands above.
    3. Run HLSW under wine. HLSW is a great tool for server administration, though if might not be worth the effort unless you want to monitor your server 24/7.
    4. Just type commands directly into the server window.
    5. Add -netconport 23 -netconpassword foo to your server's startup command and telnet into port 23. (This wont work for pre-L4D srcds servers. Also, I've never tried this.)

    Quote Originally Posted by taofd View Post
    If anyone knows how to actually administer the server while it's running PLEASE LET ME KNOW and I'll add the information!
    Well, let's start you off with a few commands now that you know how to use rcon.

    status - Shows a list of clients connected to your server, their IPs, pings, SteamIDs, and some other stuff.
    kick - Kick a player by name.
    banid - Bans a player by their SteamID.
    banip - Bans a player by their IP. Usually better to ban via SteamIDs though.
    removeid
    removeip - Counterparts to the above.
    help - Provides help for a specific command.
    say - Chats using the name 'Console'.


    Quote Originally Posted by cc7gir View Post
    Can someone tell me how to add the maps to the server if it possible.
    If the addon comes as a .vpk file, put it in left4dead2/left4dead2/addons. If that folder doesn't exist, create it.

    If it's not in .vpk format, ask whoever made the map to do that for you. If you made the map, or can't get in touch with the map maker, go here.





    Phew. Anything I missed?

  9. #9
    Join Date
    Dec 2010
    Beans
    1

    Re: Left4Dead2 Dedicated Server on Ubuntu

    i already have the package for left 4 dead 2, and dont want to download the entire game from the internet, how can i get the game to work??

  10. #10
    Join Date
    Dec 2005
    Location
    Boston, MA, USA
    Beans
    384
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Left4Dead2 Dedicated Server on Ubuntu

    Hey,

    I'm trying to install a Counter-Strike Source server, but getting the following odd "permission denied" error. I ahve tried everything I can think of.

    Does anyone have any ideas? Even if I try to execute as root I get a Permission Denied error.

    Code:
    css@Suppository:~/srcds$ wget http://storefront.steampowered.com/download/hldsupdatetool.bin
    --2011-01-07 21:42:03--  http://storefront.steampowered.com/download/hldsupdatetool.bin
    Resolving storefront.steampowered.com... 208.111.129.60, 68.142.91.151
    Connecting to storefront.steampowered.com|208.111.129.60|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 3513408 (3.4M) [application/octet-stream]
    Saving to: `hldsupdatetool.bin'
    
    100%[======================================>] 3,513,408   1.05M/s   in 3.2s    
    
    2011-01-07 21:42:06 (1.05 MB/s) - `hldsupdatetool.bin' saved [3513408/3513408]
    css@Suppository:~/srcds$ chmod +x hldsupdatetool.bin 
    css@Suppository:~/srcds$ ./hldsupdatetool.bin
    bash: ./hldsupdatetool.bin: Permission denied
    Thanks,
    Matt
    Last edited by mattlach; January 8th, 2011 at 04:07 AM.
    Desktop: Intel Core i7-3930K@4.8Ghz, Asus P9X79 WS, 64GB DDR3-1866, 400GB Intel 750 SSD, Sound Blaster X-Fi Titanium HD, Nvidia Titan X (Pascal)
    Laptop: HP 9470m, Core i5-3427u, 8GB
    Proxmox (NAS, Mythbuntu, etc.): Dual Xeon L5640, 192GB RAM, 48TB

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •