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":2182,"date":"2019-11-26T06:39:27","date_gmt":"2019-11-26T06:39:27","guid":{"rendered":"https:\/\/support.aklwebhost.com\/?post_type=manual_kb&p=2182"},"modified":"2019-12-05T00:59:21","modified_gmt":"2019-12-05T00:59:21","slug":"how-to-install-counter-strike-global-offensive-on-centos-7","status":"publish","type":"manual_kb","link":"https:\/\/support.aklwebhost.com\/knowledgebase\/how-to-install-counter-strike-global-offensive-on-centos-7\/","title":{"rendered":"How To Install Counter-Strike: Global Offensive on CentOS 7"},"content":{"rendered":"

In this tutorial I’ll explain how to setup a\u00a0Counter-Strike: Global Offensive<\/strong>\u00a0server. The steps in this guide were written for\u00a0CentOS 7<\/strong>.<\/p>\n

Prerequisites<\/strong><\/h3>\n

Let’s make sure the system is fully updated before we start. We will also be creating a new user for the server. Remember to use a strong password.<\/p>\n

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

Open the necessary firewall ports.<\/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

Install the required libs to run SteamCMD.<\/p>\n

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

Now, switch to the user that was just created.<\/p>\n

su csgo\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

Now we have to run SteamCMD and install the server files.<\/p>\n

.\/steamcmd.sh\r\nlogin anonymous\r\nforce_install_dir .\/csgo\r\napp_update 740 validate\r\n<\/code><\/pre>\n

When it says\u00a0Success! App '740' fully installed<\/code>, simply type\u00a0quit<\/code>\u00a0and press\u00a0enter<\/code>.<\/p>\n

Your server is now installed.<\/p>\n

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

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

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

Paste the following into\u00a0server.cfg<\/code>\u00a0and change\u00a0ServerName<\/code>\u00a0and\u00a0RconPassword<\/code>\u00a0to whatever you would like.<\/p>\n

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

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

Need to update due to Steam Updates? Don’t worry! Use the script below to update your server in a single command.<\/p>\n

First, create the file\u00a0update_csgo.txt<\/code>.<\/p>\n

nano \/home\/csgo\/update_csgo.txt\r\n<\/code><\/pre>\n

Then populate it with the following:<\/p>\n

login anonymous\r\nforce_install_dir .\/csgo\r\napp_update 740\r\nquit\r\n<\/code><\/pre>\n

To update your server, all you need to do is run the following command.<\/p>\n

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

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

Navigate to the following folder and run your server.<\/p>\n

cd \/home\/csgo\/csgo\/\r\nscreen -dmS csgo .\/srcds_run -game csgo -console -port 27015 +game_type 0 +game_mode 1 +mapgroup mg_bomb +map de_nuke -autoupdate\r\n<\/code><\/pre>\n

The server is now running in the background. To shut down the server, run the following command:<\/p>\n

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

Enjoy your new\u00a0CS:GO<\/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":[152],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2182"}],"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=2182"}],"version-history":[{"count":1,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2182\/revisions"}],"predecessor-version":[{"id":2183,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2182\/revisions\/2183"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=2182"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=2182"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=2182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}