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":2184,"date":"2019-11-26T06:39:50","date_gmt":"2019-11-26T06:39:50","guid":{"rendered":"https:\/\/support.aklwebhost.com\/?post_type=manual_kb&p=2184"},"modified":"2019-12-05T23:55:08","modified_gmt":"2019-12-05T23:55:08","slug":"how-to-install-garrys-mod-server-on-centos-7","status":"publish","type":"manual_kb","link":"https:\/\/support.aklwebhost.com\/knowledgebase\/how-to-install-garrys-mod-server-on-centos-7\/","title":{"rendered":"How To Install Garry’s Mod Server on CentOS 7"},"content":{"rendered":"In this tutorial, I will explain how to setup a\u00a0Garry’s Mod server<\/strong>. This tutorial was written for\u00a0CentOS 7<\/strong>.<\/p>\nPrerequisites<\/strong><\/h3>\nLet’s make sure that the system is fully updated. Create a new user for this server, and be sure to use a strong password.<\/p>\n
yum update\r\nyum upgrade -y\r\nadduser gmod\r\npasswd gmod\r\n<\/code><\/pre>\nOpen the required firewall ports with\u00a0firewall-cmd<\/code>.<\/p>\nfirewall-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>\nInstall the required system libraries to run SteamCMD.<\/p>\n
yum install glibc.i686 libstdc++.i686 -y\r\n<\/code><\/pre>\nNow, switch to the user that was just created.<\/p>\n
su gmod\r\ncd ~\r\n<\/code><\/pre>\nDownload\u00a0SteamCMD<\/strong>\u00a0by using wget.<\/p>\nwget https:\/\/steamcdn-a.akamaihd.net\/client\/installer\/steamcmd_linux.tar.gz\r\ntar xf steamcmd_linux.tar.gz\r\n<\/code><\/pre>\nInstall the game server files with\u00a0SteamCMD<\/strong>.<\/p>\n.\/steamcmd.sh +login anonymous +force_install_dir .\/gmod +app_update 4020 validate +quit\r\n<\/code><\/pre>\nWhen it says\u00a0Success! App '4020' fully installed.<\/code>, simply type\u00a0quit<\/code>\u00a0and press\u00a0enter<\/code>.<\/p>\nThe game server is now installed.<\/p>\n
Customizing The Server<\/strong><\/h3>\nTo change the name of your server, edit the\u00a0server.cfg<\/code>\u00a0file.<\/p>\nnano ~\/gmod\/garrysmod\/cfg\/server.cfg\r\n<\/code><\/pre>\nPaste the following into\u00a0server.cfg<\/code>\u00a0and change\u00a0ServerName<\/code>\u00a0and\u00a0RconPassword<\/code>\u00a0to anything you would like.<\/p>\nhostname \"ServerName\"\r\nrcon_password RconPassword\r\n<\/code><\/pre>\nUpdating Your Server<\/strong><\/h3>\nWe will create a script so that you can update your server with a single command. First, create the file\u00a0update_gmod.txt<\/code>.<\/p>\nnano \/home\/gmod\/update_gmod.txt\r\n<\/code><\/pre>\nPaste in the following:<\/p>\n
login anonymous\r\nforce_install_dir .\/gmod\r\napp_update 4020\r\nquit\r\n<\/code><\/pre>\nTo update your server, you just need to run the following command:<\/p>\n
cd ~\r\n.\/steamcmd.sh +runscript update_gmod.txt\r\n<\/code><\/pre>\nRunning your server<\/strong><\/h3>\nNavigate to the\u00a0gmod<\/code>\u00a0folder and run your server.<\/p>\ncd \/home\/gmod\/gmod\/\r\nscreen -dmS gmod .\/srcds_run -game garrysmod -console -port 27015 +maxplayers 18 -tickrate 66 +map gm_flatgrass\r\n<\/code><\/pre>\nAt this point, your server is now running in the background. You may shut it down at anytime with the following command.<\/p>\n
screen -S gmod -X quit\r\n<\/code><\/pre>\nEnjoy your new\u00a0Garry’s Mod<\/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":[153],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2184"}],"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=2184"}],"version-history":[{"count":1,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2184\/revisions"}],"predecessor-version":[{"id":2185,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2184\/revisions\/2185"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=2184"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=2184"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=2184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}