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 These packages must be installed before the MTA server.<\/p>\n For 32-bit Debian:<\/strong><\/p>\n For 64-bit Debian:<\/strong><\/p>\n Summary:<\/strong><\/p>\n Do the steps listed below, one at a time:<\/p>\n Summary:<\/p>\n Run the following commands:<\/p>\n Summary:<\/p>\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\u00a0 Run the following commands:<\/p>\n Summary:<\/p>\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 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 Summary:<\/p>\n To view your server, run screen with the process ID of the server:<\/p>\n You can find the process ID of your server by running this command:<\/p>\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\u00a0 If the server has crashed, then get the screen ID and run:\u00a0 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}]}}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
apt-get update; \r\napt-get upgrade; \r\napt-get -y install zip unzip libreadline5 screen\r\n<\/code><\/pre>\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
\n
Installing Multi Theft Auto<\/strong><\/h2>\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
\n
mtasa<\/code>.<\/li>\n
Configuring the Server<\/strong><\/h2>\n
cd ~; \r\ncd mtasa\/mtasa-server\/mods\/deathmatch; \r\nnano mtaserver.conf;\r\n<\/code><\/pre>\n
\n
mtaserver.conf<\/code>\u00a0file in\u00a0
nano<\/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
cd ~; \r\ncd mtasa\/mtasa-server\/; \r\n.\/mta-server; \r\n<\/code><\/pre>\n
\n
mtasa-server<\/code>\u00a0folder.<\/li>\n
.\/mta-server<\/code>\u00a0to start your server.<\/li>\n<\/ul>\n
Extras<\/strong><\/h2>\n
cd ~; \r\ncd mtasa\/mtasa-server\/; \r\nscreen -dmS mtasa .\/mta-server; \r\n<\/code><\/pre>\n
\n
mtasa-server<\/code>\u00a0folder.<\/li>\n
mtasa<\/code>\u00a0(This can be whatever you want).<\/li>\n<\/ul>\n
screen -r PROCESS_ID \r\n<\/code><\/pre>\n
screen -ls\r\n<\/code><\/pre>\n
quit<\/code>\u00a0in the server console.<\/p>\n
kill <id><\/code>\u00a0or\u00a0
kill -9 <id><\/code>.<\/p>\n