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":2304,"date":"2019-11-26T07:47:05","date_gmt":"2019-11-26T07:47:05","guid":{"rendered":"https:\/\/support.aklwebhost.com\/?post_type=manual_kb&p=2304"},"modified":"2019-12-05T00:51:01","modified_gmt":"2019-12-05T00:51:01","slug":"setting-up-counter-strike-source-on-debian","status":"publish","type":"manual_kb","link":"https:\/\/support.aklwebhost.com\/knowledgebase\/setting-up-counter-strike-source-on-debian\/","title":{"rendered":"Setting up Counter Strike: Source on Debian"},"content":{"rendered":"In this guide, we will be setting up a\u00a0Counter Strike: Source game server on Debian 7<\/strong>. These commands were tested on Debian 7 but they should also work on Ubuntu.<\/p>\nBefore we get the CS:S files, 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>\ndpkg --add-architecture i386\r\napt-get update\r\napt-get install -y libc6-i386 lib32gcc1 lib32stdc++6 screen\r\n<\/code><\/pre>\nIf you’re running x86:<\/strong><\/p>\napt-get update\r\napt-get install -y screen\r\n<\/code><\/pre>\nIf you get errors about\u00a0“setting locales failed”<\/strong>, then execute the following commands:<\/p>\nexport 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>\nWhen 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>\nThe next step is adding a user for CS:S to run under:<\/p>\n
adduser steam\r\n<\/code><\/pre>\nFollow the prompts to set a password for your user. Press\u00a0ENTER<\/strong>\u00a0to skip entering user information.<\/p>\nNow 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>\nmkdir ~\/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>\nWe’re finally ready to download the CS:S files! Execute the following command and wait for the files to be downloaded:<\/p>\n
.\/steamcmd.sh +login anonymous +force_install_dir ~\/css +app_update 232330 validate +quit\r\n<\/code><\/pre>\nIf 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
cd ~\/css\/cstrike\/cfg\r\nnano server.cfg\r\n<\/code><\/pre>\nThis file is your configuration file. I recommend adding:<\/p>\n
hostname \"Some server name here\"\r\nlog on\r\nsv_logfile 1\r\n<\/code><\/pre>\nIf you want your server to be private, add the following:<\/p>\n
sv_password \"passwordHere\"\r\n<\/code><\/pre>\nThere 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>\ncd ~\/css\r\nscreen -S css .\/srcds_run -game cstrike -console -port 27015 +maxplayers 24 +map cs_office\r\n<\/code><\/pre>\nCongrats! Your CS:S<\/strong>\u00a0server is 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,233,242,247],"manual_kb_tag":[207],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2304"}],"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=2304"}],"version-history":[{"count":1,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2304\/revisions"}],"predecessor-version":[{"id":2305,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2304\/revisions\/2305"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=2304"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=2304"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=2304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}