Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to install MTA San Andreas Server on Ubuntu
#1
I will tell you here how to make a MTA San Andreas Server. Please login with putty or any other program.

I will use BitWise SSH Client, which is easy to use.

You should have ubuntu 32 bit. It works fine. Versions that are tested: Ubuntu 12.04 and 14.04

When you have logged in, please write this.
Code:
apt-get update
 Press enter and wait for it to be done, if it asks that it will take your space then you have to write Y and press enter.
_______________________________________________________________________________________________

 Press enter and wait for it to be done, if it asks that it will take your space then you have to write Y and press enter.
Code:
apt-get upgrade
_______________________________________________________________________________________________



 
Write this whole and press enter, please wait for it to be done.

Code:
apt-get install build-essential automake libtool libcurl4-openssl-dev libpcre3-dev


 _______________________________________________________________________________________________

Write this and press enter.

Code:
apt-get install libsqlite3-dev libreadline5-dev subversion libncurses5-dev

_______________________________________________________________________________________

Write this and press enter!
 
Code:
apt-get install libncursesw5-dev libsparsehash-dev libmysqlclient-dev

________________________________________________________________________________________________

Write this and press enter.
Code:
apt-get install zip unzip
______________________________________________________________________________________________

Write this so that you can download MTA San Andreas Server.

Code:
wget linux.mtasa.com/dl/15/multitheftauto_linux-1.5.0.tar.gz
________________________________________________________________________________________________
 

Write this so that you can unzip it.

Code:
tar xnvf multitheftauto_linux-1.5.0.tar.gz
______________________________________________________________________________________

Write this so that you can remove this file, as its already unzipped.

Code:
rm multitheftauto_linux-1.5.0.tar.gz
________________________________________________________________________________________________

Write this so that you can go in this folder.
 
Code:
cd multitheftauto_linux-1.5.0/mods/deathmatch
_____________________________________________________________________________________________

Write this so that you can download config files.
 

Code:
wget linux.mtasa.com/dl/15/baseconfig-1.5.0.tar.gz
_______________________________________________________________________________________________

Write this so that you can unzip it.
 
Code:
tar xnvf baseconfig-1.5.0.tar.gz
_______________________________________________________________________________________________

Write this.
 

Code:
mv -f baseconfig/* ./
________________________________________________________________________________________________

   
Code:
rm baseconfig-1.5.0.tar.gz

Write this so that you can remove it, as it is already unzipped.
________________________________________________________________________________________________

   
Code:
mkdir resources
________________________________________________________________________________________________
Write this to create resources folder.

 
   
Code:
cd resources

Write this so that you can enter the folder.
________________________________________________________________________________________________

  
Code:
wget mirror.mtasa.com/mtasa/resources/mtasa-resources-latest.zip

Write this so that you can download resources.
________________________________________________________________________________________________

   
Code:
unzip mtasa-resources-latest.zip

Write this so that you can unzip it.
________________________________________________________________________________________________
 
 
Code:
rm mtasa-resources-latest.zip

Write this so that you can remove it, as it is already unzipped.
________________________________________________________________________________________________

   
Code:
cd ../../..

Write this so that you can go to your MTA San Andreas Folder.
________________________________________________________________________________________________

   
Code:
./mta-server -d

Write this so that you can start your server.  If you close Putty or any other program you are using, your server will be running.
________________________________________________________________________________________________

To close server, you can write.
 
   
Code:
killall -9 mta-server

________________________________________________________________________________________________

Open your server by closing your putty or any other program and start it again. You should login and write this.
________________________________________________________________________________________________

Write this so that you can enter the folder of MTA San Andreas

Code:
cd multitheftauto_linux-1.5.0

________________________________________________________________________________________________

Code:
./mta-server -d

Write this so that server will start running.
Reply
#2
A lot of unnecessary whitespace there. can you either use [code] tags or delete the extra newlines?
Questions, Comments, or Suggestions? PM me
These are the rules Please read them.
My tip jar: 1FqukbmrZf2EnnKYf3BkioWTYysqnynFWy
[Ex-Mod]
Reply
#3
I fixed the topic, i used code for it. Thanks for telling me.
Reply
#4
thanks, your post looks significantly clearer and cleaner now.
Questions, Comments, or Suggestions? PM me
These are the rules Please read them.
My tip jar: 1FqukbmrZf2EnnKYf3BkioWTYysqnynFWy
[Ex-Mod]
Reply
#5
Remove the [GUIDE] tag for the title. It's unnecessary. Also, remove the question mark at the end.
Happy to help. PM me or use the Shoutbox to get my attention!
[ Retired Staff. ]
Reply
#6
Done, i added some new things in this post, now you have to first install packages. Thanks for telling me.
Reply
#7
Maybe add a section for adding a startup script to init.d? then people can do something like
Code:
sudo service mta-server stop|start|restart
Happy to help. PM me or use the Shoutbox to get my attention!
[ Retired Staff. ]
Reply
#8
Hey lampard thanks for telling how to install mta sa

i want to know how i host 2 mta sa server in 1 host?

i want to install mta every time when i need to host 1 more server?

and how many host i can host on this VPS? unlimited or limited

hope you understand guys

THANK'S
Reply
#9
(07-22-2015, 08:19 AM)ishands Wrote: Maybe add a section for adding a startup script to init.d? then people can do something like
Code:
sudo service mta-server stop|start|restart

How i can install this service? stop/start/restart? please help me
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)