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":2172,"date":"2019-11-26T06:35:48","date_gmt":"2019-11-26T06:35:48","guid":{"rendered":"https:\/\/support.aklwebhost.com\/?post_type=manual_kb&p=2172"},"modified":"2019-12-05T00:57:43","modified_gmt":"2019-12-05T00:57:43","slug":"creating-a-dota-2-server-on-centos-6","status":"publish","type":"manual_kb","link":"https:\/\/support.aklwebhost.com\/knowledgebase\/creating-a-dota-2-server-on-centos-6\/","title":{"rendered":"Creating a Dota 2 Server on CentOS 6"},"content":{"rendered":"

In this article, we will be creating a\u00a0Dota 2<\/strong>\u00a0server.\u00a0Dota<\/strong>\u00a0is a free-to-play multiplayer game released by Valve, the company behind Steam. As a reminder, this article is written for CentOS 6.<\/p>\n

Warning: These instructions will not work on the base level\u00a0AKLWEB Host VPS<\/strong>\u00a0plan, as Dota 2 requires more than 15GB of disk space. The minimum plan size is a 20GB SSD plan.<\/p>\n

Step 1: Prerequisites And Requirements<\/strong><\/h2>\n

As many Steam game servers require\u00a0SteamCMD<\/code>, we will be installing the dependencies of it. For reference, SteamCMD requires the following packages:<\/p>\n

    \n
  • glibc<\/strong><\/li>\n
  • glibc-c++<\/strong><\/li>\n
  • freetype fonts<\/strong><\/li>\n
  • screen<\/strong><\/li>\n<\/ul>\n

    In order to install these packages, please execute the following commands as the root user. If you wish to perform this with a unprivileged account, make sure you add\u00a0sudo<\/code>\u00a0before any commands specified to run as root.<\/p>\n

    yum groupinstall 'Development Tools' -y\r\nyum install libX11-devel freetype freetype-devel zlib-devel libxcb-devel -y\r\n<\/code><\/pre>\n

    For 32 bit users, execute the following as the root user:<\/p>\n

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

    For 64 bit users, you’ll need the 32 bit compatibility libraries for\u00a0glibc<\/code>\u00a0since SteamCMD runs on only 32 bit environments:<\/p>\n

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

    Step 2: Installing SteamCMD<\/strong><\/h2>\n

    First, we’ll create a special user to host the game server. We do this because if someone finds an exploit in the game server software, they will only have limited privileges to your VPS. Feel free to change the username, however this article will be using\u00a0dotags<\/code>\u00a0as the unprivileged user.<\/p>\n

    useradd dotags\r\n<\/code><\/pre>\n

    Enter the user account:<\/p>\n

    su dotags\r\n<\/code><\/pre>\n

    Then, download SteamCMD:<\/p>\n

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

    Now, we need to extract the tar archive:<\/p>\n

    tar -xvf steamcmd_linux.tar.gz\r\n<\/code><\/pre>\n

    Step 3: Configuring SteamCMD For Dota 2<\/strong><\/h2>\n

    Because Dota 2 does not allow the\u00a0anonymous<\/code>\u00a0user to install Dota 2, we need to log in with our own accounts. First, start SteamCMD:<\/p>\n

    .\/steamcmd.sh\r\n<\/code><\/pre>\n

    Then, log into Steam:<\/p>\n

    login mysteamusername\r\n<\/code><\/pre>\n

    Let’s set our installation directory for Dota 2:<\/p>\n

    force_install_dir .\/dota2_gameserver\r\n<\/code><\/pre>\n

    … and begin the installation:<\/p>\n

    app_update 570\r\n<\/code><\/pre>\n

    This will take a while, so please be patient.<\/p>\n

    Now, we need to install MetaMod so that the server runs properly.<\/p>\n

    Go to the Dota 2 game directory:<\/p>\n

    cd ~\/Steam\/steamapps\/common\/dota 2 beta\/game\/dota\r\n<\/code><\/pre>\n

    Download the source and extract it:<\/p>\n

    wget http:\/\/www.metamodsource.net\/mmsdrop\/1.10\/mmsource-1.10.7-git952-linux.tar.gz\r\ntar -xvf mmsource-1.10.7-git952-linux.tar.gz\r\n<\/code><\/pre>\n

    As Dota 2 requires a program called\u00a0srcds<\/code>\u00a0to run properly, we’ll grab that now:<\/p>\n

    wget -O srcds.tar.gz https:\/\/forums.alliedmods.net\/attachment.php?attachmentid=140208&d=1416970992\r\ncd ~\/Steam\/steamapps\/common\/dota 2 beta\/game\/dota\r\ntar -xvf srcds.tar.gz\r\n<\/code><\/pre>\n

    Good job, all that’s left is to start the server.<\/p>\n

    Step 4: Starting Your Dota 2 Server<\/strong><\/h2>\n

    This step is simple; create a\u00a0screen<\/code>\u00a0session and start the server inside of it.<\/p>\n

    screen -dmS dota2server \"\/home\/Steam\/steamapps\/common\/dota 2 beta\/game\/dota\/srcds_run -game dota -console\"\r\n<\/code><\/pre>\n

    You can put that in\u00a0\/etc\/rc.local<\/code>\u00a0to have your Dota 2 server start when your instance boots up. Do that by opening it (\u00a0nano \/etc\/rc.local<\/code>\u00a0), paste the command above and save the file.<\/p>\n

    Conclusion<\/strong><\/h2>\n

    In this article, you created your own Dota 2 server; now you can get in and play!<\/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":[147],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2172"}],"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=2172"}],"version-history":[{"count":1,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2172\/revisions"}],"predecessor-version":[{"id":2173,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2172\/revisions\/2173"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=2172"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=2172"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=2172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}