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":2329,"date":"2019-11-26T07:56:56","date_gmt":"2019-11-26T07:56:56","guid":{"rendered":"https:\/\/support.aklwebhost.com\/?post_type=manual_kb&p=2329"},"modified":"2019-12-06T23:42:02","modified_gmt":"2019-12-06T23:42:02","slug":"setup-a-multi-theft-auto-server-on-debian","status":"publish","type":"manual_kb","link":"https:\/\/support.aklwebhost.com\/knowledgebase\/setup-a-multi-theft-auto-server-on-debian\/","title":{"rendered":"Setup a Multi Theft Auto Server on Debian"},"content":{"rendered":"

This is a tutorial explains how to install a Multi Theft Auto server on Debian. It was last updated for Debian 7 and MTA 1.5.4.<\/p>\n

Any\u00a0VPS<\/strong>\u00a0from\u00a0AKLWEB Host<\/strong>\u00a0is great for an\u00a0MTA<\/strong>\u00a0server, whether it’s just a private server for friends or development, to a server that will host lots of people 24\/7.<\/p>\n

For a development server or a server for your friends, I would recommend the lowest-end\u00a0VPS (768 MB ram)<\/strong>. The more people you are hosting, the bigger the server you would get (obviously).<\/p>\n

Lets get started!<\/p>\n

Credit goes to jhxp on the Multi Theft Auto forums for the majority of the steps in this tutorial. I have just added the links for 1.4.0 and changed a few things to make it shorter.<\/strong><\/h6>\n

Installing packages<\/strong><\/h2>\n

These packages must be installed before the MTA server.<\/p>\n

For 32-bit Debian:<\/strong><\/p>\n

apt-get update; \r\napt-get upgrade; \r\napt-get -y install zip unzip libreadline5 screen\r\n<\/code><\/pre>\n

For 64-bit Debian:<\/strong><\/p>\n

apt-get update; \r\napt-get upgrade; \r\ndpkg --add-architecture i386; #add the i386 architecture so the ia32-libs package can be installed\r\napt-get update; #update the list of packages so the ia32-libs package is included in the list\r\napt-get -y install zip unzip ia32-libs lib32ncursesw5 lib32readline5 screen\r\n<\/code><\/pre>\n

Summary:<\/strong><\/p>\n

    \n
  • We have installed the appropriate packages needed.<\/li>\n
  • We have added support for the\u00a0i386<\/strong>\u00a0architecture on\u00a064-bit<\/strong>\u00a0systems.<\/li>\n<\/ul>\n

    Installing Multi Theft Auto<\/strong><\/h2>\n

    Do the steps listed below, one at a time:<\/p>\n

    cd ~; \r\nmkdir mtasa; \r\ncd mtasa; \r\n\r\nwget -O mtasa-linux-server.tar.gz http:\/\/linux.mtasa.com\/dl\/154\/multitheftauto_linux_x64-1.5.4.tar.gz;\r\nwget -O baseconfig.tar.gz http:\/\/linux.mtasa.com\/dl\/154\/baseconfig-1.5.4.tar.gz;\r\nwget -O mtasa-resources.zip https:\/\/mirror.mtasa.com\/mtasa\/resources\/mtasa-resources-latest.zip;\r\n\r\ntar -zxf mtasa-linux-server.tar.gz; \r\nmv multitheftauto_linux_x64-1.5.4 mtasa-server; \r\nunzip -q mtasa-resources.zip -d mtasa-server\/mods\/deathmatch\/resources\/;\r\n\r\ntar -zxf baseconfig.tar.gz; #uncompress default server configuration files\r\nmv baseconfig\/* mtasa-server\/mods\/deathmatch; \r\nrmdir baseconfig; \r\nrm mtasa-linux-server.tar.gz baseconfig.tar.gz mtasa-resources.zip; \r\n<\/code><\/pre>\n

    Summary:<\/p>\n

      \n
    • We have made a directory called\u00a0mtasa<\/code>.<\/li>\n
    • Then, we have downloaded everything that we need.<\/li>\n
    • Then, we have unzipped and uncompressed all of the downloaded files and put them where they needed to go.<\/li>\n
    • And finally, we have deleted the old downloaded files since we don’t need them anymore.<\/li>\n<\/ul>\n

      Configuring the Server<\/strong><\/h2>\n

      Run the following commands:<\/p>\n

      cd ~; \r\ncd mtasa\/mtasa-server\/mods\/deathmatch; \r\nnano mtaserver.conf;\r\n<\/code><\/pre>\n

      Summary:<\/p>\n

        \n
      • We have gone back to the main directory, then gone to the directory where the config file is located.<\/li>\n
      • Then, we have opened up the config file in nano.<\/li>\n<\/ul>\n

        Now, we can configure our server. All that you really need to configure in this step is the server name, the amount of slots the server can have (default is 32), and what resources it will run upon start-up. To configure your server, make any changes to the\u00a0mtaserver.conf<\/code>\u00a0file in\u00a0nano<\/code>\u00a0that you deem necessary. Once you have finished, hold CTRL and press O, then type y to save.<\/p>\n

        Running the Server<\/strong><\/h2>\n

        Run the following commands:<\/p>\n

        cd ~; \r\ncd mtasa\/mtasa-server\/; \r\n.\/mta-server; \r\n<\/code><\/pre>\n

        Summary:<\/p>\n

          \n
        • Basically, go to your main directory, then go to\u00a0mtasa-server<\/code>\u00a0folder.<\/li>\n
        • Then, do\u00a0.\/mta-server<\/code>\u00a0to start your server.<\/li>\n<\/ul>\n

          If everything is working, the MTA console should be displayed. The server will print a message stating that it is ready to accept connections.<\/p>\n

          There you go – you now have a fully working Multi Theft Auto 1.4.0 server that is ready for players!<\/p>\n

          Extras<\/strong><\/h2>\n

          At this point, the server is running. Once you exit the shell though, the server will stop. To keep it running when you have exited the shell, run the following commands:<\/p>\n

          cd ~; \r\ncd mtasa\/mtasa-server\/; \r\nscreen -dmS mtasa .\/mta-server; \r\n<\/code><\/pre>\n

          Summary:<\/p>\n

            \n
          • We have gone to the\u00a0mtasa-server<\/code>\u00a0folder.<\/li>\n
          • This time, we have started the server with screen and called it\u00a0mtasa<\/code>\u00a0(This can be whatever you want).<\/li>\n<\/ul>\n

            To view your server, run screen with the process ID of the server:<\/p>\n

            screen -r PROCESS_ID \r\n<\/code><\/pre>\n

            You can find the process ID of your server by running this command:<\/p>\n

            screen -ls\r\n<\/code><\/pre>\n

            Your server will appear with the ID being the first number next to what you called the screen (Example: 1231.mtasa).<\/p>\n

            To exit the screen, hold down CTRL, then press A and D at the same time to exit. If you are using a shell program, such as PuTTY, then you can just close PuTTY.<\/p>\n

            To stop the server, go into the screen and type\u00a0quit<\/code>\u00a0in the server console.<\/p>\n

            If the server has crashed, then get the screen ID and run:\u00a0kill <id><\/code>\u00a0or\u00a0kill -9 <id><\/code>.<\/p>\n

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