How VPS - How to use/setup VPS
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
How VPS - How to use/setup VPS
No Result
View All Result
Home Operating System Debian

Setup a Multi Theft Auto Server on Debian

How VPS by How VPS
November 1, 2019
in Debian
0
0
SHARES
21
VIEWS
Share on FacebookShare on Twitter

Contents

  1. 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.
  2. Installing packages
  3. Installing Multi Theft Auto
  4. Configuring the Server
  5. Running the Server
  6. Extras
  7. Want to contribute?


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.

Any VPS from Vultr is great for an MTA server, whether it’s just a private server for friends or development, to a server that will host lots of people 24/7.

For a development server or a server for your friends, I would recommend the lowest-end VPS (768 MB ram). The more people you are hosting, the bigger the server you would get (obviously).

Lets get started!

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.

Installing packages

These packages must be installed before the MTA server.

For 32-bit Debian:

apt-get update; 
apt-get upgrade; 
apt-get -y install zip unzip libreadline5 screen

For 64-bit Debian:

apt-get update; 
apt-get upgrade; 
dpkg --add-architecture i386; #add the i386 architecture so the ia32-libs package can be installed
apt-get update; #update the list of packages so the ia32-libs package is included in the list
apt-get -y install zip unzip ia32-libs lib32ncursesw5 lib32readline5 screen

Summary:

  • We have installed the appropriate packages needed.
  • We have added support for the i386 architecture on 64-bit systems.

Installing Multi Theft Auto

Do the steps listed below, one at a time:

cd ~; 
mkdir mtasa; 
cd mtasa; 

wget -O mtasa-linux-server.tar.gz http://linux.mtasa.com/dl/154/multitheftauto_linux_x64-1.5.4.tar.gz;
wget -O baseconfig.tar.gz http://linux.mtasa.com/dl/154/baseconfig-1.5.4.tar.gz;
wget -O mtasa-resources.zip https://mirror.mtasa.com/mtasa/resources/mtasa-resources-latest.zip;

tar -zxf mtasa-linux-server.tar.gz; 
mv multitheftauto_linux_x64-1.5.4 mtasa-server; 
unzip -q mtasa-resources.zip -d mtasa-server/mods/deathmatch/resources/;

tar -zxf baseconfig.tar.gz; #uncompress default server configuration files
mv baseconfig/* mtasa-server/mods/deathmatch; 
rmdir baseconfig; 
rm mtasa-linux-server.tar.gz baseconfig.tar.gz mtasa-resources.zip; 

Summary:

  • We have made a directory called mtasa.
  • Then, we have downloaded everything that we need.
  • Then, we have unzipped and uncompressed all of the downloaded files and put them where they needed to go.
  • And finally, we have deleted the old downloaded files since we don’t need them anymore.

Configuring the Server

Run the following commands:

cd ~; 
cd mtasa/mtasa-server/mods/deathmatch; 
nano mtaserver.conf;

Summary:

  • We have gone back to the main directory, then gone to the directory where the config file is located.
  • Then, we have opened up the config file in nano.

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 mtaserver.conf file in nano that you deem necessary. Once you have finished, hold CTRL and press O, then type y to save.

Running the Server

Run the following commands:

cd ~; 
cd mtasa/mtasa-server/; 
./mta-server; 

Summary:

  • Basically, go to your main directory, then go to mtasa-server folder.
  • Then, do ./mta-server to start your server.

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

There you go – you now have a fully working Multi Theft Auto 1.4.0 server that is ready for players!

Extras

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:

cd ~; 
cd mtasa/mtasa-server/; 
screen -dmS mtasa ./mta-server; 

Summary:

  • We have gone to the mtasa-server folder.
  • This time, we have started the server with screen and called it mtasa (This can be whatever you want).

To view your server, run screen with the process ID of the server:

screen -r PROCESS_ID 

You can find the process ID of your server by running this command:

screen -ls

Your server will appear with the ID being the first number next to what you called the screen (Example: 1231.mtasa).

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.

To stop the server, go into the screen and type quit in the server console.

If the server has crashed, then get the screen ID and run: kill <id> or kill -9 <id>.

Enjoy your new MTA server!

Want to contribute?

You could earn up to $300 by adding new articles

Submit your article
Suggest an update
Request an article
How VPS

How VPS

Related Posts

Debian

How to Install WonderCMS on Debian 9

November 1, 2019
Debian

Using MySQL Views on Debian 7

November 1, 2019
Debian

How to Install and Configure TaskBoard on Debian 9

November 1, 2019
Next Post

How to Install Neos CMS on Debian 9

Installing Prosody on Debian 7

How to Install Gitea on Debian 9

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Follow Us

  • 121 Followers
  • 87.2k Followers

Recommended

8 Useful Commands to Monitor Swap Space Usage in Linux

How to Enable TLS 1.3 in Apache on Debian 10

3 years ago

How To Install a Mumble Server on CentOS 7

3 years ago
ISPConfig Reviews

ISPConfig Reviews

3 years ago
Fatcow Review

Fatcow Review

4 years ago

Instagram

    Please install/update and activate JNews Instagram plugin.

Categories

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel

Topics

Apache Web Server Bluehost Review 2019 Bluehost Review 2020 Bluehost Review 2021 Centmin Mod CentminMod centos install htop fsck htop install HTTP DoS attack Install Snort on an Ubuntu install Zabbix on CentOS install Zabbix on CentOS 7 Linux Commands linux guide linux install htop linux vps setup guide MariaDB MariaDB Error Mysql mysqld error optimize MariaDB optimize Mysql snort Ubuntu
No Result
View All Result

Highlights

Top Free Web Hosting Control Panels To Manage VPS/Dedicated Servers

Webmin Reviews

Virtualmin Reviews

CentOS Web Panel Reviews

Ajenti Reviews

ISPConfig Reviews

Trending

Failed to download metadata for repo 'appstream' on Centos 8
CentOS

How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

by How VPS
February 25, 2022
0

I tried to update some extensions by use yum on centOs which I specified in Dockerfile. After...

How to Fix MySQL Error "Plugin 'InnoDB' registration as a STORAGE ENGINE failed"?

How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”?

November 17, 2020
How to optimize Mysql or MariaDB

How to optimize Mysql or MariaDB

November 3, 2020
Top Free Web Hosting Control Panels To Manage VPS/Dedicated Servers

Top Free Web Hosting Control Panels To Manage VPS/Dedicated Servers

February 17, 2020
Webmin Reviews

Webmin Reviews

February 17, 2020
How VPS – How to use/setup VPS

We bring you the best Premium WordPress Themes that perfect for news, magazine, personal blog, etc. Visit our landing page to see all features & demos.
LEARN MORE »

Recent News

  • How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8 February 25, 2022
  • How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”? November 17, 2020
  • How to optimize Mysql or MariaDB November 3, 2020

Categories

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel

[mc4wp_form]

© 2018 JNews - City News Magazine WordPress theme. All rights belong to their respective owners.
JNews is a top selling 2018 WordPress News, Blog, Newspaper & Magazine Theme.

No Result
View All Result
  • Home

© 2023 JNews - Premium WordPress news & magazine theme by Jegtheme.