Download as pdf or txt
Download as pdf or txt
You are on page 1of 16

New Posts Private Messages FAQ Calendar Community

Forum Actions

Quick Links

Advanced Search

Forum

Help & Support

Installation, Configuration & Upgrades

[GUIDE] Ubuntu/Debian/CentOS/RHEL Install Guide


Results 1 to 25 of 219

Page 1 of 9

2 3 ...

Last

Thread: [GUIDE] Ubuntu/Debian /CentOS/RHEL Install Guide

phelpsben
Donator

[GUIDE] Ubuntu/Debian/CentOS/RHEL Install Guide


Before we start This is written with the following assumptions: 1) You are build a revision within 50 of 8797. 2) Your using Ubuntu Server 8.04/8.10/9.10 - Debian 5 - CentOS 5 / RHEL 3) You have the required map and data files. 4) You have at least minimal knowledge of the Linux command line. 5) You have direct or ssh access to the machine. 6) You have some good music to listen to. 7) You have 2 hours to waste. Step 1a - Install the software - Ubuntu/Debian This will install the packages required by MaNGOS on Debian/Ubuntu based system. Your going to get a MySQL root password prompt if you havn't setup MySQL before, pick a secure password, make sure you remember this. Code :

Join Date: Jul 2008 Location: Earth Posts: 91 Thanks: 0 Thanked 0 Times in 0 Posts

Step 1b - Install the software - CentOS/RHEL This will install the packages required by MaNGOS on RHEL/CentOS based system. Install RPMForge Code :

Select the proper architecture code below. If you are unsure, "uname -m" in the command line will tell you. 32bit - i386/i686 Code :

64bit - x86_64 Code :

Install dependencies Code :

Step 2 - Get the source We get the current mangos version and SD2 version. Code :

Step 3 - Patch MaNGOS w/ SD2 Where going to apply the SD2 patch Code :

Step 4 - Compile MaNGOS Now where going to compile, this takes anywhere from 30 minutes up to a few hours. This is going to get everything ready, you can copy/paste this, I just placed all the commands on a single like, so there is a minimal chance to mess something up. Code :

This will configure MaNGOS. You can change "/opt/mangos" to the directory where you want to install MaNGOS. Code :

The last step is to start the compiler, this part takes the longest. Code :

All-In-One This is an All-In-One for steps 1-4, if this fails then actually do steps 1-4 so you can find the error Code :

http://ftp.de.debian.org/debian/pool/main/o/openssl /openssl_0.9.8k-5_i386.deb;dpkg --install libssl0.9.8_0.9.8k-5_i386.deb;dpkg --install openssl_0.9.8k-5_i386.deb;git clone git://github.com /mangos/mangos.git;cd mangos;svn co https://scriptdev2.svn.sourceforge.net/svnroot /scriptdev2/ src/bindings/ScriptDev2/;git am src/bindings/ScriptDev2/patches/MaNGOS-*;autoreconf --install --force;mkdir objdir;cd objdir;../configure --prefix=/opt/mangos --sysconfdir=/opt/mangos/etc --enable-cli --enable-ra --datadir=/opt/mangos;make;make install;

Step 5 - Setup MaNGOS We need to enter the MaNGOS install directory. If you changed the install directory, this will be different, change to w/e directory you picked. Code :

First we copy the config files the compiler made, we don't rename them because you might mess one up, this way, you have a backup. Code :

Now we edit them. This will start the Nano editor, this is VERY simple to use, "^" = "ctrl" in windows, so "^X" would be "ctrl+x". You move around with your numpad (you know, the smaller words, under the numbers, you get to use those now). Code :

I''m going to assume you know how to change the files respectively.

Step 6 - Setup the Database There is a magic little command we use during the setup process, this makes things so much simpler. Code :

We will use this in place of a Windows/Mac MySQL application. Create the MaNGOS database Code :

Populate the database Code :

~# mysql -p'YOUR PASSWORD HERE' ScriptDev2 < ScriptDev2/sql/ScriptDev2_script_full.sql

World Database Download Database This is strictly copy/paste for current, this will break in the future, i will try to keep this updated Code :

Install Database Code :

Now apply MySQL updates. There is a list right after this post, you can follow it to update.

Step 7 - Realmlist Where going to update the realm name and IP so it can be accessed from other computers. Code :

mysql> exit

Step 8 - Datafiles Download the datatools, I got these from the contrib folder in the MaNGOS source. Place these files in your w*w folder and run "ad.exe" and "makevmaps_SIMPLE.bat". This will take a LONG time, when its done you will have 4 new folders. Your going to upload, "maps", "dbc", and "vmaps", place these in the "bin" folder You can do this with Filezilla, it supports SFTP, you can upload the files without the need to install an FTP server.

Step 9 - Starting the Server There are a few ways you can start your server, I'm going to show you my preferred method. Where going to use a linux cmd line app that simulates different screen or windows. Here is a video tutorial to show you how it works: http://impactwow.com/mangos/screen/ - Will re-upload soon. In your first screen, change to your MaNGOS bin. This could be different if you changed it in step 4. Code :

Now switch to your second screen, and change to the same directory. Code :

You can now switch between the two.

You should now have a working Mangos - UDB - SD2 - Acid Server setup and running, if you have a public/static IP then the server should be public as well. Thanks go to artanis for the SD2 patch snippet. Thanks to the awesome mod who made this a sticky.
Reply Reply With Quote

phelpsben
Donator

Mangos SQL Updates Since there are SO many sql changes made, I will try my best to explain how to apply the mysql updates. You will need the current revision of the SD2 World DB you installed, from there, you will run ALL updates from that revision and up. The updates are in the /mangos/sql/updates folder. If you update the core, you will need to check for any SQL changes and apply those with each new core.
Reply Reply With Quote

Join Date: Jul 2008 Location: Earth Posts: 91 Thanks: 0 Thanked 0 Times in 0 Posts

Shin Darth
Cereals incoming

ok thanks for the guide, but what files should I open to run mangos?

Join Date: Nov 2008 Location: Italy Posts: 258 Thanks: 3 Thanked 18 Times in 11 Posts

-- UDB Fixer Italian MaNGOS Community Italian Linux MaNGOS Guide Italian Windows MaNGOS Guide Italian MaNGOS Updating Guide Italian MaNGOS FAQ [PATCH] Ally & Horde in the same group (Updated)
Reply Reply With Quote

phelpsben
Donator

Ill write an extra section to the guide, give me a few minutes.

Join Date: Jul 2008 Location: Earth Posts: 91 Thanks: 0 Thanked 0 Times in 0 Posts

Reply

Reply With Quote

shade00
Seed Join Date: Aug 2008 Posts: 7 Thanks: 0 Thanked 0 Times in 0 Posts

I see your using Ubuntu. Are you using Server or Desktop? Are you using a 32 or 64 bit system?

Reply

Reply With Quote

phelpsben
Donator

That doesn't matter with this guide, it will install and build for the right architecture. Remember, this isn't windows, when you install dependencies, your always going to get the right architecture.

Join Date: Jul 2008 Location: Earth Posts: 91 Thanks: 0 Thanked 0 Times in 0 Posts

Reply

Reply With Quote

artanis
Seed Join Date: Jun 2008 Posts: 2 Thanks: 0 Thanked 0 Times in 0 Posts

Regarding the ScriptDev2 patch numbers, this code will just apply the patch in the directory. Code :

Also, when I compile, I not getting mangos-worldd. Only mangosrealmd and genrevision appear in mangos/bin.
Reply Reply With Quote

phelpsben
Donator

There is an error with SD2, if you look at the make exits, you will see it does so with errors. This isn't due to the tutorial, this is the same method I have used many times over.

Join Date: Jul 2008 Location: Earth Posts: 91 Thanks: 0 Thanked 0 Times in 0 Posts

EDIT: just ran the code, and it installed, looks like they fixed it.

Reply

Reply With Quote

freghar
Git keeper Join Date: Apr 2008 Posts: 795 Thanks: 0 Thanked 5 Times in 4 Posts

Hello, just a few suggestions: apt-get is obsolete in Debian, I don't know how that's in *buntu, I would use aptitude or such more advanced tool, but whatever, apt-get is the most error-prone solution here .. Use one command per line, no semicolons! If an error occur, the command list continues executing and thus you're probably unable to find out where the error occured. If you absolutelly _must_ use several commands per line, because you feel it's somewhat cool, use `&&' instead of semicolon. This will most likely stop other commands from executing if an error occur (due to return value). I'm really surprised you used git-am. Almost noone realizes that I made SD2 patch usable for git-am. You should however include a git-apply version (or at least mention) for people who don't want any custom commits, because they git-stash all their custom stuff befure update (to make it fast-forward) .. just btw .. you can use wildcards even like "git-am src/bindings/ScriptDev2/patches/MaNGOS-*.patch" to get only the .patch file (no gzip) ... or use gzipped one together with zcat. Delete everything in the autoreconf line except "autoreconf --install --force", everything else is already done by this one command. I don't know why most guides use "--enable-ra" even if 95% of the people using this guide won't ever use RA. Again, separate make from make install with an error check, your current solution is really, really bad as make can likely fail (which isn't true for mkdir for example). Using mysql passwords on command line is rather dangerous, better solution would be to use "source" from mysql client or doing something like "cat file1 file2 file3 file4 | mysql mydatabase -p" and typing the pass once. But that is, of course, not so nice, because you won't know which file caused a possible error. edit: win-SCP would be perhaps easier than filezilla, I don't know if filezilla runs without instalation .. and if remote server doesn't support sftp, but it does have scp, you are able to use that.

Reply

Reply With Quote

phelpsben
Donator

I think you should remember this is a guide, if they have a problem, I seriously doubt they can fix it, even with our help.

Join Date: Jul 2008 Location: Earth Posts: 91 Thanks: 0 Thanked 0 Times in 0 Posts

# apt-get is obsolete in Debian, I don't know how that's in *buntu, I would use aptitude or such more advanced tool, but whatever, apt-get is the most error-prone solution here .. Aptitude would need to be installed, I have never used a Ubuntu Server that has come with aptitude. Apt installs these just fine, its never messed up on me.

# Use one command per line, no semicolons! If an error occur, the command list continues executing and thus you're probably unable to find out where the error occured. If you absolutelly _must_ use several commands per line, because you feel it's somewhat cool, use `&&' instead of semicolon. This will most likely stop other commands from executing if an error occur (due to return value). I don't feel the semicolon is "cool" in any way, I'm writing this expecting people who have no idea what there doing to try and follow it. This keeps people from copying/pasting over alot of commands and missing one. Most of the multi-command lines have a small chance of messing up anyways.

# I'm really surprised you used git-am. Almost noone realizes that I made SD2 patch usable for git-am. You should however include a git-apply version (or at least mention) for people who don't want any custom commits, because they git-stash all their custom stuff befure update (to make it fast-forward) .. I seen the email headers at the beginning of the patch, that's how I knew. If someone is going to be adding there own patches, do you think there going to be following a guide?

# just btw .. you can use wildcards even like "git-am src/bindings /ScriptDev2/patches/MaNGOS-*.patch" to get only the .patch file (no gzip) ... or use gzipped one together with zcat. You can't use wild cards in this example, I have tried. Try it yourself.

# I don't know why most guides use "--enable-ra" even if 95% of the people using this guide won't ever use RA. If you leave RA off in the config file, does it really hurt anything ? We won't have 5% of people saying "OMG, i followed the guide, and my super cool make server awesome public script doesnt work!!! HALP!!!"... I would much rather just skip all that.

# Again, separate make from make install with an error check, your current solution is really, really bad as make can likely fail (which isn't true for mkdir for example). What if I dumped the make and make install to a log file? Then the "new" people could maybe get some help.

# Using mysql passwords on command line is rather dangerous, better solution would be to use "source" from mysql client or doing something like "cat file1 file2 file3 file4 | mysql mydatabase -p" and typing the pass once. But that is, of course, not so nice, because you won't know which file caused a possible error. If using the password on the CMD line is dangerous, maybe you should worry about who has access to your server root to look at the history where you used them. I do the MySQL commands separate because if there going to have a problem, its going to be here.

If they can't get Filezilla working, then they can ask for help, trying to keep this simple.
Reply Reply With Quote

Shin Darth
Cereals incoming

~# mysql -p'YOUR PASSWORD HERE' mangos < UDB_0.11.5_Core_7681_SD2_1012.sql ~# mysql -p'YOUR PASSWORD HERE' mangos < 009_acid.sql ~# mysql -p'YOUR PASSWORD HERE' mangos < scriptdev2/sql /mangos_scriptname_full.sql
Do the "UDB_0.11.5_Core_7681_SD2_1012.sql" already include the "009_acid.sql" and "mangos_scriptname_full.sql"?

Join Date: Nov 2008 Location: Italy Posts: 258 Thanks: 3 Thanked 18 Times in 11 Posts

I think yes EDIT:

~# cp etc/mangosd.conf.dist etc/mangosd.conf ~# cp etc/realmd.conf.dist etc/realmd.conf


I suggest to add also: ~# cp etc/scriptdev2.conf.dist etc/scriptdev2.conf or it does not need?

-- UDB Fixer Italian MaNGOS Community Italian Linux MaNGOS Guide Italian Windows MaNGOS Guide Italian MaNGOS Updating Guide Italian MaNGOS FAQ [PATCH] Ally & Horde in the same group (Updated)
Reply Reply With Quote

phelpsben
Donator

I run them both, UDB has SD2 1012 and SD2 is at 1083, this way, your using the current version (which could have some major updates). You don't need to copy SD2 config, it makes 2 on its own.

Join Date: Jul 2008 Location: Earth Posts: 91 Thanks: 0 Thanked 0 Times in 0 Posts

Reply

Reply With Quote

Shin Darth
Cereals incoming

mhm so if I understand in this way you don't have to apply one by one the sd2-corepatch in the database mangos, I understend

Join Date: Nov 2008 Location: Italy Posts: 258 Thanks: 3 Thanked 18 Times in 11 Posts

-- UDB Fixer Italian MaNGOS Community Italian Linux MaNGOS Guide Italian Windows MaNGOS Guide Italian MaNGOS Updating Guide Italian MaNGOS FAQ [PATCH] Ally & Horde in the same group (Updated)
Reply Reply With Quote

phelpsben
Donator

The only reason you would need to apply SD2 SQL patches is if your updating your server, this is for a fresh install, not an update.

Join Date: Jul 2008 Location: Earth Posts: 91 Thanks: 0 Thanked 0 Times in 0 Posts

Reply

Reply With Quote

Shin Darth
Cereals incoming

I'm not sure I understand the eighth and ninth steps, I don't understend where I should place the "dbc" and "maps" folders (on windows i place them in the same folder of mangosd.exe and realmd.exe).. anywhere.. Thanks for all your work and patience, I would be grateful if you write an Updating Guide for Ubuntu, after you finish all works for the Setup Guide.... edit: just place the "maps" and "dbc" in the "bin" folder

Join Date: Nov 2008 Location: Italy Posts: 258 Thanks: 3 Thanked 18 Times in 11 Posts

-- UDB Fixer Italian MaNGOS Community Italian Linux MaNGOS Guide Italian Windows MaNGOS Guide Italian MaNGOS Updating Guide Italian MaNGOS FAQ [PATCH] Ally & Horde in the same group (Updated)
Reply Reply With Quote

sturm105
Seed Join Date: Jun 2008 Posts: 29 Thanks: 0 Thanked 0 Times in 0 Posts

I appreciate this guide.

Reply

Reply With Quote

Shin Darth
Cereals incoming

finish!!! very very thanks for this tutorial!

Join Date: Nov 2008 Location: Italy Posts: 258 Thanks: 3 Thanked 18 Times in 11 Posts

-- UDB Fixer Italian MaNGOS Community Italian Linux MaNGOS Guide Italian Windows MaNGOS Guide Italian MaNGOS Updating Guide Italian MaNGOS FAQ [PATCH] Ally & Horde in the same group (Updated)
Reply Reply With Quote

phelpsben
Donator

I'm happy to see people using it. Thank you.

Join Date: Jul 2008 Location: Earth Posts: 91 Thanks: 0 Thanked 0 Times in 0 Posts

Reply

Reply With Quote

Shin Darth
Cereals incoming

Now I'm making an Italian Guide for this... when I'll finish it, I will place the url in my signature.

Join Date: Nov 2008 Location: Italy Posts: 258 Thanks: 3 Thanked 18 Times in 11 Posts

-- UDB Fixer Italian MaNGOS Community Italian Linux MaNGOS Guide Italian Windows MaNGOS Guide Italian MaNGOS Updating Guide Italian MaNGOS FAQ [PATCH] Ally & Horde in the same group (Updated)
Reply Reply With Quote

phelpsben
Donator

Because I don't know Italian, I'm going to say in advance, great translation.

Join Date: Jul 2008 Location: Earth Posts: 91 Thanks: 0 Thanked 0 Times in 0 Posts

Reply

Reply With Quote

Shin Darth
Cereals incoming

Join Date: Nov 2008 Location: Italy Posts: 258 Thanks: 3 Thanked 18 Times in 11 Posts

Applying: ScriptDev2 patch commit error: patch failed: src/mangosd/Makefile.am:33 error: src/mangosd/Makefile.am: patch does not apply Patch failed at 0001. When you have resolved this problem run "git am --resolved". If you would prefer to skip this patch, instead run "git am --skip". To restore the original branch and stop patching run "git am --abort".
what it means?

-- UDB Fixer Italian MaNGOS Community Italian Linux MaNGOS Guide Italian Windows MaNGOS Guide Italian MaNGOS Updating Guide Italian MaNGOS FAQ [PATCH] Ally & Horde in the same group (Updated)
Reply Reply With Quote

ghroth
Seed Join Date: Feb 2008 Posts: 8 Thanks: 0 Thanked 0 Times in 0 Posts

Originally Posted by Shin Darth

Applying: ScriptDev2 patch commit error: patch failed: src/mangosd/Makefile.am:33 error: src/mangosd/Makefile.am: patch does not apply Patch failed at 0001. When you have resolved this problem run "git am --resolved". If you would prefer to skip this patch, instead run "git am --skip". To restore the original branch and stop patching run "git am --abort". what it means?

Same error here.


Reply Reply With Quote

exdeath
Seed Join Date: Oct 2008 Posts: 21 Thanks: 0 Thanked 0 Times in 0 Posts

Originally Posted by ghroth

Same error here.

Rev. 7810 restructured a lot of code, resulting in the conflict. Until SD2 updates their patch, you can temporarily checkout 7809 (which seems to compile cleanly for me) by running: git checkout 04a788ba038903879b5490cf3f94daf9db2382be in the MaNGOS root directory, and then following the howto from the last line of "Step 2" in the guide.
Reply Reply With Quote

Skirnir
Seed Join Date: Posts: Thanks: Jan 2008 40 2 Thanked 1 Time in 1 Post

I just wouldn't run MaNGOS as root user neither I'd build it as root user. And

Original by freghar apt-get is obsolete in Debian,[...]


thats hm big words ... I use apt every day. Just not being the newest of the new doesn't make things "obsolete". Just my point of view.
Reply Reply With Quote

Shin Darth
Cereals incoming

Until SD2 updates their patch


today, we reported this here in the sd2 forum and I think we must wait the sd2 devs.. so?

Join Date: Nov 2008 Location: Italy Posts: 258 Thanks: 3 Thanked 18 Times in 11 Posts

-- UDB Fixer Italian MaNGOS Community Italian Linux MaNGOS Guide Italian Windows MaNGOS Guide Italian MaNGOS Updating Guide Italian MaNGOS FAQ [PATCH] Ally & Horde in the same group (Updated)
Reply Reply With Quote

Quick Navigation

Installation, Configuration & Upgrades

Top

Page 1 of 9

2 3 ...

Last

Previous Thread | Next Thread

All times are GMT +1. The time now is 06:41 AM. Powered by vBulletin Version 4.0.0 Copyright 2010 vBulletin Solutions, Inc. All rights reserved. Copyright 2005-2010 MaNGOS foundation

You might also like