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":2188,"date":"2019-11-26T06:40:27","date_gmt":"2019-11-26T06:40:27","guid":{"rendered":"https:\/\/support.aklwebhost.com\/?post_type=manual_kb&p=2188"},"modified":"2019-12-05T23:55:52","modified_gmt":"2019-12-05T23:55:52","slug":"how-to-install-left-4-dead-server-on-centos-7","status":"publish","type":"manual_kb","link":"https:\/\/support.aklwebhost.com\/knowledgebase\/how-to-install-left-4-dead-server-on-centos-7\/","title":{"rendered":"How To Install Left 4 Dead Server On CentOS 7"},"content":{"rendered":"

In this guide, I’ll explain how to install and configure a\u00a0L4D server on CentOS 7<\/strong>.<\/p>\n

Installing Left 4 Dead<\/strong><\/h3>\n

Before we get started, we have to make sure that the system is up-to-date and secure. We’ll also need to create a new user for the server. When prompted, specify a strong, secure password for this user.<\/p>\n

yum update\r\nyum upgrade -y\r\nadduser l4d\r\npasswd l4d\r\n<\/code><\/pre>\n

The necessary firewall ports required by\u00a0Left 4 Dead<\/strong>\u00a0have to be opened, so let us do that before we move on.<\/p>\n

firewall-cmd --zone=public --add-port=27015\/tcp --permanent\r\nfirewall-cmd --zone=public --add-port=27015\/udp --permanent\r\nfirewall-cmd --reload\r\n<\/code><\/pre>\n

The required system libraries needed to run SteamCMD have to be installed.<\/p>\n

yum install glibc.i686 libstdc++.i686 -y\r\n<\/code><\/pre>\n

Switch to the user account that we created earlier.<\/p>\n

su l4d\r\ncd ~\r\n<\/code><\/pre>\n

Download the SteamCMD software.<\/p>\n

wget https:\/\/steamcdn-a.akamaihd.net\/client\/installer\/steamcmd_linux.tar.gz\r\ntar xf steamcmd_linux.tar.gz\r\n<\/code><\/pre>\n

Up next, we have to use SteamCMD to install the game server files.<\/p>\n

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

When the screen reads\u00a0Success! App '222840' fully installed.<\/code>, the server has been installed.<\/p>\n

Customizing the server<\/strong><\/h3>\n

Server customization is done by editing the\u00a0server.cfg<\/code>\u00a0file.<\/p>\n

nano ~\/l4d\/left4dead\/cfg\/server.cfg\r\n<\/code><\/pre>\n

Populate\u00a0server.cfg<\/code>\u00a0with the following text. Be sure to change\u00a0ServerName<\/code>\u00a0and\u00a0RconPassword<\/code>\u00a0to your desired server name and rcon password (server admin).<\/p>\n

hostname \"ServerName\"\r\nrcon_password RconPassword\r\n<\/code><\/pre>\n

Updating your server<\/strong><\/h3>\n

Create the file\u00a0update_l4d.txt<\/code>\u00a0in the users home directory.<\/p>\n

nano \/home\/l4d\/update_l4d.txt\r\n<\/code><\/pre>\n

Populate that file with the following contents.<\/p>\n

login anonymous\r\nforce_install_dir .\/l4d\r\napp_update 222840\r\nquit\r\n<\/code><\/pre>\n

Update your server any time by running the following command.<\/p>\n

cd ~ && .\/steamcmd.sh +runscript update_l4d.txt\r\n<\/code><\/pre>\n

Running your server<\/strong><\/h3>\n

To start your server, run the following commands.<\/p>\n

cd \/home\/l4d\/l4d\/\r\nscreen -dmS l4d .\/srcds_run -console -game left4dead -port 27015 +map l4d_farm04_barn +maxplayers 4 +exec server.cfg \r\n<\/code><\/pre>\n

The server is now running in a background\u00a0screen<\/code>\u00a0session.<\/p>\n

To shut down the server, run the following command.<\/p>\n

screen -S l4d -X quit\r\n<\/code><\/pre>\n

Enjoy your new\u00a0Left 4 Dead<\/strong>\u00a0server!<\/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,231,242],"manual_kb_tag":[155],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2188"}],"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=2188"}],"version-history":[{"count":1,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2188\/revisions"}],"predecessor-version":[{"id":2189,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2188\/revisions\/2189"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=2188"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=2188"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=2188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}