Multi Theft Auto server on Debian/Ubuntu

Installation 64 bit

Main binary

Download the latest stable 64 bit Linux binaries:

rm -f multitheftauto_linux_x64-1.5.3.tar.gz wget http://linux.mtasa.com/dl/153/multitheftauto_linux_x64-1.5.3.tar.gz 

Unpack into a directory:

tar -xf multitheftauto_linux_x64-1.5.3.tar.gz 

Default config

Download the default config files:

rm -f baseconfig-1.5.3.tar.gz wget http://linux.mtasa.com/dl/153/baseconfig-1.5.3.tar.gz 

Unpack and move into the deathmatch directory:
(Note: Only do this for new installations as it will overwrite any existing config files.)

tar -xf baseconfig-1.5.3.tar.gz mv baseconfig/* multitheftauto_linux_x64-1.5.3/mods/deathmatch 

Change to the MTA server install directory:

cd multitheftauto_linux_x64-1.5.3 

Test

You can now test if the server will start correctly:

./mta-server64 

Default resources

If you need the default resources: Download the latest default resources zip from http://mirror.mtasa.com/mtasa/resources/ and unzip into mods/deathmatch/resources
Make sure you are in the MTA server install directory when following this example:

apt-get install unzip mkdir mods/deathmatch/resources cd mods/deathmatch/resources rm -f mtasa-resources-latest.zip wget http://mirror.mtasa.com/mtasa/resources/mtasa-resources-latest.zip unzip mtasa-resources-latest.zip rm -f mtasa-resources-latest.zip cd ../../.. 

Installation 32 bit

Main binary

Download the latest stable 32 bit Linux binaries:

rm -f multitheftauto_linux-1.5.3.tar.gz wget http://linux.mtasa.com/dl/153/multitheftauto_linux-1.5.3.tar.gz 

Unpack into a directory:

tar -xf multitheftauto_linux-1.5.3.tar.gz 

Default config

Download the default config files:

rm -f baseconfig-1.5.3.tar.gz wget http://linux.mtasa.com/dl/153/baseconfig-1.5.3.tar.gz 

Unpack and move into the deathmatch directory:
(Note: Only do this for new installations as it will overwrite any existing config files.)

tar -xf baseconfig-1.5.3.tar.gz mv baseconfig/* multitheftauto_linux-1.5.3/mods/deathmatch 

Change to the MTA server install directory:

cd multitheftauto_linux-1.5.3 

Test

You can now test if the server will start correctly:

./mta-server 

Default resources

If you need the default resources: Download the latest default resources zip from http://mirror.mtasa.com/mtasa/resources/ and unzip into mods/deathmatch/resources
Make sure you are in the MTA server install directory when following this example:

apt-get install unzip mkdir mods/deathmatch/resources cd mods/deathmatch/resources rm -f mtasa-resources-latest.zip wget http://mirror.mtasa.com/mtasa/resources/mtasa-resources-latest.zip unzip mtasa-resources-latest.zip rm -f mtasa-resources-latest.zip cd ../../.. 

Running with 32 or 64 bit Linux

Make sure your server libraries and stuff are up to date

On Debian/Ubuntu this is done with:

apt-get update apt-get upgrade 

Troubleshooting

  • If you get a problem with such as "libreadline.so.5: cannot open shared object file: No such file or directory.", it can be solved on 32 bit Debian/Ubuntu by doing this:
apt-get install libreadline5 
  • If you get a problem with such as "libncursesw.so.5 cannot open shared object file: No such file or directory", it can be solved on 32 bit Debian/Ubuntu by doing this:
apt-get install libncursesw5 

Note: If you experience this issue on a 64-bit machine while trying to run the 32-bit MTA server, then you should install the following package on a 64-bit Debian/Ubuntu machine (as root):

apt-get install lib32ncursesw5 

You can find more 32-bit library alternatives on this page: www.debian.org/distrib/packages#search_contents.

MySQL Troubleshooting

  • If you are using the inbuilt MySQL functions such as dbConnect and dbQuery, you will need to have libmysqlclient.so.16 installed.
  • If you get a problem with such as "libmysqlclient.so.16: cannot open shared object file: No such file or directory", it can be solved on Debian/Ubuntu by doing this:
apt-get install libmysqlclient16 

If that fails:

Still need help? Contact Us Contact Us