Jump to content

Step-By-Step setup guide for MTA:DM server (Linux, Debian)


Recommended Posts

Hello,

i see here is a lot of people asking plain questions about setting up an MTA:DM server, so i decided to make a Step-By-Step guide about setting up an MTA:DM server.

I hope this helps you.

PS. At the bottom of this script, i list few afforable providers.

You can also have your own MTA:DM server for ~10EUR /month!

Ok, here is the guide:

-----------------------------

1. Download Putty

You can download very good SSH client called by Putty from here: http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe (Or from google) This is necessary to set up an server.

2. Open putty

3. Open connection to your server via Putty

When putty is loaded, you will see a screen which contains "Host name (or IP adress)" -text. In this field, type the IP of your server, then make sure your Connection type is SSH & Port 22 (as default) Then click "Open" in the bottom

4. Logging in to the shell

Now your last screen should be gone, and there should be a screen which has a black background. If this is what you have, type your Username to the screen.

When its done, type your password (Note: Your password will be invisible cause of the security reasons, but dont worry, it will be there anyway!)

When this is done, you will see something like this:

Using username "root".

Using keyboard-interactive authentication.

Password:

Last login: Mon May 19 20:34:49 2008 from (YOUR PROVIDER & IP)

root:~#

If so, everything is right, and you can continue.

5. Setting up an server

1. Download the server files with this command:

(ONLY for dp2, when dp3 is out, you need to find another link!)

Tip: Copy the code and press right button of your mouse in the shell client and it should be there!

Then just simply press enter.

2. Your server files are being downloaded, when download is finished, type this command below:

tar -zxvf mtasadm_srv-sarge_v1.0-dp2.tar.gz

To unzip your server files.

3. When this is done, type this command:

cd mtasadm_srv-sarge_v1.0-dp2/
and your server's directory will be opened.

4. Then type this code:

./mta_server

Wait, and your server will be running!

6. Editing the server files

If you want to edit your server's files, skip the fourth step in last chapter, or if you already executed that command, close the server by typing "quit".

Type this command:

cd

Then this:

nano mtasadm_srv-sarge_v1.0-dp2/mods/deathmatch/mtaserver.conf

Now you can edit your server confing with plain linux text editor (Use keyboard arrows to use!)

When done, save your file.

Now type:

cd

and go back to step 5 and chapter 3.

EXTRA: Running the server in background:

Execute this command, when in MTA server's directory:

nohup ./mta_server > /dev/null

Explanation:

http://en.wikipedia.org/wiki/Nohup

So basically nohup does some useless reports all the time to the server's directory, "> /dev/null" is the way to disable it.

You might find its useful, else it will spam something useless shit to the report file.

----------------------

Some good VPS providers:

Germany: https://www.server4you.de/de/vserver/index.php (Recommended solution: RootDS Starter x2 or higher)

Finland: http://tenue.fi/fi/?n=virtuaalipalvelin

Note:

- Your provider should offer unlimited or high limited data traffic (Like 2TB or more, depends about your server's popularity)

- At least 256mb RAM, recommended 512mb or more (Depends about your scripts, if you are running many scripts with IRC tool, pick at least 384mb or more for one server!)

- High processor power recommended for smooth use (at least 1GHz)

- Data storage so much as you need.

If you planned about setting up an server with less than 100mbit internet, see this table:

Typical upload speeds

ADSL:

0.5mbit Upload speed = max. 4-6 players

1mbit Upload speed = max. 8-12 players

ADSL2+ Annex M:

2mbit Upload speed = max. 15-24 players

3mbit Upload speed = max. 15-24 players

Fiber:

10mbit Upload speed = ~100 players

You can test your net speed @ http://www.speedtest.net

PS. Download speed doesnt matter so much, since its usually more than upload.

Please leave your comments & suggestions about this tutorial!

I hope this helps!

-SanZoR

Edited by Guest
Link to comment

Hello,

i see here is a lot of people asking plain questions about setting up an MTA:DM server, so i decided to make a Step-By-Step guide about setting up an MTA:DM server.

I hope this helps you.

PS. At the bottom of this script, i list few afforable providers.

You can also have your own MTA:DM server for ~10EUR /month!

Ok, here is the guide:

-----------------------------

1. Download Putty

You can download very good SSH client called by Putty from here: http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe (Or from google) This is necessary to set up an server.

2. Open putty

3. Open connection to your server via Putty

When putty is loaded, you will see a screen which contains "Host name (or IP adress)" -text. In this field, type the IP of your server, then make sure your Connection type is SSH & Port 22 (as default) Then click "Open" in the bottom

4. Logging in to the shell

Now your last screen should be gone, and there should be a screen which has a black background. If this is what you have, type your Username to the screen.

When its done, type your password (Note: Your password will be invisible cause of the security reasons, but dont worry, it will be there anyway!)

When this is done, you will see something like this:

Using username "root".

Using keyboard-interactive authentication.

Password:

Last login: Mon May 19 20:34:49 2008 from (YOUR PROVIDER & IP)

root:~#

If so, everything is right, and you can continue.

5. Setting up an server

1. Download the server files with this command:

(ONLY for dp2, when dp3 is out, you need to find another link!)

Tip: Copy the code and press right button of your mouse in the shell client and it should be there!

Then just simply press enter.

2. Your server files are being downloaded, when download is finished, type this command below:

tar -zxvf mtasadm_srv-sarge_v1.0-dp2.tar.gz

To unzip your server files.

3. When this is done, type this command:

cd mtasadm_srv-sarge_v1.0-dp2/
and your server's directory will be opened.

4. Then type this code:

./mta_server

Wait, and your server will be running!

6. Editing the server files

If you want to edit your server's files, skip the fourth step in last chapter, or if you already executed that command, close the server by typing "quit".

Type this command:

cd

Then this:

nano mtasadm_srv-sarge_v1.0-dp2/mods/deathmatch/mtaserver.conf

Now you can edit your server confing with plain linux text editor (Use keyboard arrows to use!)

When done, save your file.

Now type:

cd

and go back to step 5 and chapter 3.

EXTRA: Running the server in background:

Execute this command, when in MTA server's directory:

nohup ./mta_server > /dev/null

Explanation:

http://en.wikipedia.org/wiki/Nohup

So basically nohup does some useless reports all the time to the server's directory, "> /dev/null" is the way to disable it.

You might find its useful, else it will spam something useless shit to the report file.

----------------------

Some good VPS providers:

Germany: https://www.server4you.de/de/vserver/index.php (Recommended solution: RootDS Starter x2 or higher)

Finland: http://tenue.fi/fi/?n=virtuaalipalvelin

Note:

- Your provider should offer unlimited or high limited data traffic (Like 2TB or more, depends about your server's popularity)

- At least 256mb RAM, recommended 512mb or more (Depends about your scripts, if you are running many scripts with IRC tool, pick at least 384mb or more for one server!)

- High processor power recommended for smooth use (at least 1GHz)

- Data storage so much as you need.

If you planned about setting up an server with less than 100mbit internet, see this table:

Typical upload speeds

ADSL:

0.5mbit Upload speed = max. 4-6 players

1mbit Upload speed = max. 8-12 players

ADSL2+ Annex M:

2mbit Upload speed = max. 15-24 players

3mbit Upload speed = max. 15-24 players

Fiber:

10mbit Upload speed = ~100 players

You can test your net speed @ http://www.speedtest.net

PS. Download speed doesnt matter so much, since its usually more than upload.

Please leave your comments & suggestions about this tutorial!

I hope this helps!

-SanZoR

Edited by Guest
Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...