Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794
{"id":2308,"date":"2019-11-26T07:47:41","date_gmt":"2019-11-26T07:47:41","guid":{"rendered":"https:\/\/support.aklwebhost.com\/?post_type=manual_kb&p=2308"},"modified":"2019-11-26T07:47:41","modified_gmt":"2019-11-26T07:47:41","slug":"setting-up-a-left-4-dead-gameserver-on-debian","status":"publish","type":"manual_kb","link":"https:\/\/support.aklwebhost.com\/knowledgebase\/setting-up-a-left-4-dead-gameserver-on-debian\/","title":{"rendered":"Setting up a Left 4 Dead Gameserver on Debian"},"content":{"rendered":"

In this guide, we will be setting up a\u00a0Left 4 Dead game server on Debian 7<\/strong>. These commands were tested on\u00a0Debian 7<\/strong>\u00a0but they should also work on Ubuntu.<\/p>\n

Before getting the\u00a0L4D files<\/strong>, we need to install a few packages. Log into the server as root and issue the following commands.<\/p>\n

If you’re running x64:<\/strong><\/p>\n

dpkg --add-architecture i386\r\napt-get update\r\napt-get install -y libc6-i386 lib32gcc1 lib32stdc++6 screen\r\n<\/code><\/pre>\n

If you’re running x86:<\/strong><\/p>\n

apt-get update\r\napt-get install -y screen\r\n<\/code><\/pre>\n

If you get errors about\u00a0“setting locales failed”<\/strong>, then execute the following commands:<\/p>\n

export LANGUAGE=en_US.UTF-8\r\nexport LANG=en_US.UTF-8\r\nexport LC_ALL=en_US.UTF-8\r\nlocale-gen en_US.UTF-8\r\ndpkg-reconfigure locales\r\n<\/code><\/pre>\n

(Full credit goes to\u00a0“Werner Fischer”<\/strong>\u00a0for the locale commands)<\/p>\n

When you get to the config screen press\u00a0ENTER<\/strong>, select\u00a0en_US<\/code>\u00a0and press\u00a0ENTER<\/strong>. After that’s done, restart your SSH session.<\/p>\n

The next step is adding a user for the L4D server to run under:<\/p>\n

adduser steam\r\n<\/code><\/pre>\n

Follow the prompts to set a password for your user. Press\u00a0ENTER<\/strong>\u00a0to skip entering user information.<\/p>\n

After you’ve added the user, start a new SSH session to your server and log into “steam” with the password specified during the previous step.<\/p>\n

Our next step is to download\u00a0steamcmd<\/code>\u00a0and extract it:<\/p>\n

mkdir ~\/steamcmd\r\ncd ~\/steamcmd\r\nwget http:\/\/media.steampowered.com\/client\/steamcmd_linux.tar.gz\r\ntar -xf steamcmd_linux.tar.gz\r\nrm steamcmd_linux.tar.gz\r\n<\/code><\/pre>\n

We’re now ready to grab the server files:<\/p>\n

.\/steamcmd.sh +login anonymous +force_install_dir ~\/l4d +app_update 222840 validate +quit\r\n<\/code><\/pre>\n

Note that this will take a while, since there is a lot of content to download. You might want to grab a cup of coffee while you wait.<\/p>\n

If the download fails, just re-execute the command to restart it. You can also re-execute the command to get any available updates. Once the download is finished, we should add a few basic things to our config file:<\/p>\n

nano ~\/l4d\/left4dead\/cfg\/server.cfg\r\n\r\nhostname \"servername\"\r\nlog on\r\nsv_logfile 1\r\nsv_password \"pass\" (if you want a passworded server)\r\n<\/code><\/pre>\n

There are various resources on other websites for documentation on other variables. Once you’re done editing it, you can save the file by pressing\u00a0CTRL + X<\/strong>\u00a0and then\u00a0Y<\/strong>. After that, it’s time to start the server.<\/p>\n

cd ~\/l4d\/\r\nscreen -S l4d .\/srcds_run -game left4dead -console -port 27015 +maxplayers 4\r\n<\/code><\/pre>\n

Congrats! Your L4D server<\/strong>\u00a0is now up and running!<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","manualknowledgebasecat":[105],"manual_kb_tag":[209],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2308"}],"collection":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/comments?post=2308"}],"version-history":[{"count":1,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2308\/revisions"}],"predecessor-version":[{"id":2309,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2308\/revisions\/2309"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=2308"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=2308"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=2308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}