Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Setup MTA SA Server on VPS
#1
Hello fDC. today i'm gonna teach you MTA:SA tutorial
How to install/setup MTA:SA Server on VPS



Requirement:
virtual private server  
Operating System - Centos 7
SSH Access such as Putty/BitVise etc.



Installation 64 bit
Main binary
Download the latest stable 64 bit Linux binaries:

Code:
rm -f multitheftauto_linux_x64-1.5.2.tar.gz

wget http://linux.mtasa.com/dl/152/multitheftauto_linux_x64-1.5.2.tar.gz

Unpack into a directory:

Code:
tar -xf multitheftauto_linux_x64-1.5.2.tar.gz

Default config

Download the default config files:


Code:
rm -f baseconfig-1.5.2.tar.gz
wget http://linux.mtasa.com/dl/152/baseconfig-1.5.2.tar.gz



Unpack and move into the deathmatch directory:

(Note: Only do this for new installations as it will overwrite any existing config files.)



Code:
tar -xf baseconfig-1.5.2.tar.gz
mv baseconfig/* multitheftauto_linux_x64-1.5.2/mods/deathmatch


Change to the MTA server install directory:

Code:
cd multitheftauto_linux_x64-1.5.2
Default resources



Code:
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 ../../..



Congratulations you've installed your MTA:SA server on your VPS.



Let's Test (Notice this code just for test. if you want your server 24/7 active install screen)


Code:
./mta-server64



if you've a problem. post here i can help you.
Don't forgot to give me the Reputations.


Best Regards,
KoMaL
Reply
#2
All I need right now is my vps to work with the internet...
Good luck with your server! Smile
Reply
#3
(10-05-2016, 07:58 PM)IEpicDestroyer Wrote: All I need right now is my vps to work with the internet...
Good luck with your server! Smile

./mta-server64 only make a screen of MTA sa cmd window same like local server do but it can't host server 24/7 when u close that MTA cmd window server go offline add more code to get online server
Reply
#4
(05-14-2017, 09:49 PM)Khadeer143 Wrote: ./mta-server64 only make a screen of MTA sa cmd window same like local server do but it can't host server 24/7 when u close that MTA cmd window server go offline add more code to get online server

Well, you are probably supposed to run the server within a session of "screen" or "tmux" so that the server can run 24x7 in the background even when you log off the server. Unfortunately OP of this tutorial didn't mention this quite critical part.

A very basic way of how it generally works. You launch a session of screen or tmux. Then within this session you start your game server. After that you detach (NOT CLOSE) from the screen/tmux session. Then you can log off SSH. The game server will run in the background.

1. Install screen.
CentOS/Fedora/Scientific Linux:
Code:
yum install screen

Debian/Ubuntu:
Code:
apt-get install screen

It most likely is already preinstalled though but if not you have the commands for the installation above.


2. Start a new session of screen:
Code:
screen -S sessionname

Replace "sessionname" with a desired name for your session... Eh like screen -S mtaserver or so.


3. Now start your game server.


4. Detach from the session with CTRL+A and then D.


5. If you later sign into your server again you can attach to your screen session with:
Code:
screen -d -R sessionname

Replace sessionname with the name you used before in step 2. You will see your game server console again.
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)