[guide] ubuntu debian cento
TRANSCRIPT
Forum Help & Support Installation, Configuration & Upgrades
[GUIDE] Ubuntu/Debian/CentOS/RHEL Install Guide
Thread: [GUIDE] Ubuntu/Debian
/CentOS/RHEL Install Guide
New Posts Private Messages FAQ Calendar Community Forum Actions Quick Links Advanced Search
Results 1 to 25 of 219 Page 1 of 9 2 3 ... Last
[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/ RHEL3) 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 onDebian/Ubuntu based system.
Your going to get a MySQL root password prompt if you havn't setupMySQL before, pick a secure password, make sure you rememberthis.
Code :
Step 1b - Install the software - CentOS/RHEL
This will install the packages required by MaNGOS on RHEL/CentOSbased 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 :
Join Date:
Location:
Posts:
Thanks:
Thanked 0 Times in 0 Posts
Jul 2008
Earth
91
0
Donator
phelpsben
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 minutesup to a few hours.
This is going to get everything ready, you can copy/paste this, I justplaced all the commands on a single like, so there is a minimalchance to mess something up.
Code :
This will configure MaNGOS. You can change "/opt/mangos" tothe 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 steps1-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 --installlibssl0.9.8_0.9.8k-5_i386.deb;dpkg --installopenssl_0.9.8k-5_i386.deb;git clone git://github.com/mangos/mangos.git;cd mangos;svn cohttps://scriptdev2.svn.sourceforge.net/svnroot/scriptdev2/ src/bindings/ScriptDev2/;git amsrc/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;makeinstall;
Step 5 - Setup MaNGOS
We need to enter the MaNGOS install directory. If you changedthe 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 renamethem 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 VERYsimple 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, iwill 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 accessedfrom other computers.
Code :
mysql> exit
Step 8 - Datafiles
Download the datatools, I got these from the contrib folder in theMaNGOS source.
Place these files in your w*w folder and run "ad.exe" and"makevmaps_SIMPLE.bat". This will take a LONG time, when itsdone 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 canupload 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 showyou my preferred method. Where going to use a linux cmd line appthat 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 bedifferent if you changed it in step 4.
Code :
Now switch to your second screen, and change to the samedirectory.
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 theawesome mod who made this a sticky.
Reply Reply With Quote
Mangos SQL Updates
Since there are SO many sql changes made, I will try my best toexplain how to apply the mysql updates.
You will need the current revision of the SD2 World DB youinstalled, from there, you will run ALL updates from that revisionand up.
The updates are in the /mangos/sql/updates folder.
If you update the core, you will need to check for any SQL changesand apply those with each new core.
Join Date:
Location:
Posts:
Thanks:
Thanked 0 Times in 0 Posts
Jul 2008
Earth
91
0
Donator
phelpsben
Reply Reply With Quote
ok thanks for the guide, but what files should I open to run mangos?
Join Date:
Location:
Posts:
Thanks:
Thanked 18 Times in 11 Posts
Nov 2008
Italy
258
3
Cereals incoming
Shin Darth
-- UDB FixerItalian MaNGOS CommunityItalian Linux MaNGOS Guide
Italian Windows MaNGOS GuideItalian MaNGOS Updating Guide
Italian MaNGOS FAQ[PATCH] Ally & Horde in the same group (Updated)
Reply Reply With Quote
Ill write an extra section to the guide, give me a few minutes.
Join Date:
Location:
Posts:
Thanks:
Thanked 0 Times in 0 Posts
Jul 2008
Earth
91
0
Donator
phelpsben
Reply Reply With Quote
I see your using Ubuntu. Are you using Server or Desktop? Are youusing a 32 or 64 bit system?Join Date:
Posts:
Thanks:
Thanked 0 Times in 0 Posts
Aug 2008
7
0
Seed
shade00
Reply Reply With Quote
That doesn't matter with this guide, it will install and build for theright architecture.
Remember, this isn't windows, when you install dependencies, youralways going to get the right architecture.
Join Date:
Location:
Posts:
Thanks:
Thanked 0 Times in 0 Posts
Jul 2008
Earth
91
0
Donator
phelpsben
Reply Reply With Quote
Regarding the ScriptDev2 patch numbers, this code will just applythe patch in the directory.
Code :
Also, when I compile, I not getting mangos-worldd. Only mangos-realmd and genrevision appear in mangos/bin.
Join Date:
Posts:
Thanks:
Thanked 0 Times in 0 Posts
Jun 2008
2
0
Seed
artanis
Reply Reply With Quote
There is an error with SD2, if you look at the make exits, you willsee it does so with errors.
This isn't due to the tutorial, this is the same method I have usedmany times over.
EDIT: just ran the code, and it installed, looks like they fixed it.Join Date:
Location:
Posts:
Thanks:
Thanked 0 Times in 0 Posts
Jul 2008
Earth
91
0
Donator
phelpsben
Reply Reply With Quote
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, butwhatever, 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'reprobably unable to find out where the error occured. If youabsolutelly _must_ use several commands per line, becauseyou feel it's somewhat cool, use `&&' instead of semicolon.This will most likely stop other commands from executing if anerror occur (due to return value).I'm really surprised you used git-am. Almost noone realizesthat I made SD2 patch usable for git-am. You should howeverinclude a git-apply version (or at least mention) for peoplewho don't want any custom commits, because they git-stashall their custom stuff befure update (to make it fast-forward) ..just btw .. you can use wildcards even like "git-amsrc/bindings/ScriptDev2/patches/MaNGOS-*.patch" to get onlythe .patch file (no gzip) ... or use gzipped one together withzcat.Delete everything in the autoreconf line except "autoreconf--install --force", everything else is already done by this onecommand.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 likelyfail (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 ordoing something like "cat file1 file2 file3 file4 | mysqlmydatabase -p" and typing the pass once. But that is, ofcourse, not so nice, because you won't know which file causeda possible error.
edit:
win-SCP would be perhaps easier than filezilla, I don't know iffilezilla runs without instalation .. and if remote server doesn'tsupport sftp, but it does have scp, you are able to use that.
Join Date:
Posts:
Thanks:
Thanked 5 Times in 4 Posts
Apr 2008
795
0
Git keeper
freghar
Reply Reply With Quote
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.
# apt-get is obsolete in Debian, I don't know how that's in *buntu, Iwould 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 UbuntuServer that has come with aptitude. Apt installs these just fine, itsnever messed up on me.
# Use one command per line, no semicolons! If an error occur, thecommand list continues executing and thus you're probably unableto find out where the error occured. If you absolutelly _must_ useseveral commands per line, because you feel it's somewhat cool, use`&&' instead of semicolon. This will most likely stop othercommands from executing if an error occur (due to return value).
I don't feel the semicolon is "cool" in any way, I'm writing thisexpecting people who have no idea what there doing to try andfollow it. This keeps people from copying/pasting over alot ofcommands and missing one. Most of the multi-command lines havea small chance of messing up anyways.
# I'm really surprised you used git-am. Almost noone realizes that Imade SD2 patch usable for git-am. You should however include agit-apply version (or at least mention) for people who don't wantany custom commits, because they git-stash all their custom stuffbefure update (to make it fast-forward) ..
I seen the email headers at the beginning of the patch, that's how Iknew. If someone is going to be adding there own patches, do youthink 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 ityourself.
# I don't know why most guides use "--enable-ra" even if 95% ofthe 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, andmy 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, yourcurrent solution is really, really bad as make can likely fail (whichisn'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.
Join Date:
Location:
Posts:
Thanks:
Thanked 0 Times in 0 Posts
Jul 2008
Earth
91
0
Donator
phelpsben
# Using mysql passwords on command line is rather dangerous,better solution would be to use "source" from mysql client or doingsomething like "cat file1 file2 file3 file4 | mysql mydatabase -p" andtyping the pass once. But that is, of course, not so nice, becauseyou won't know which file caused a possible error.
If using the password on the CMD line is dangerous, maybe youshould worry about who has access to your server root to look atthe history where you used them. I do the MySQL commandsseparate because if there going to have a problem, its going to behere.
If they can't get Filezilla working, then they can ask for help, tryingto keep this simple.
Reply Reply With Quote
Do the "UDB_0.11.5_Core_7681_SD2_1012.sql" already include the"009_acid.sql" and "mangos_scriptname_full.sql"?
I think yes
EDIT:
I suggest to add also:
~# cp etc/scriptdev2.conf.dist etc/scriptdev2.conf
or it does not need?
Join Date:
Location:
Posts:
Thanks:
Thanked 18 Times in 11 Posts
Nov 2008
Italy
258
3
Cereals incoming
Shin Darth
~# 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
~# cp etc/mangosd.conf.dist etc/mangosd.conf~# cp etc/realmd.conf.dist etc/realmd.conf
-- UDB FixerItalian MaNGOS CommunityItalian Linux MaNGOS Guide
Italian Windows MaNGOS GuideItalian MaNGOS Updating Guide
Italian MaNGOS FAQ[PATCH] Ally & Horde in the same group (Updated)
Reply Reply With Quote
I run them both, UDB has SD2 1012 and SD2 is at 1083, this way,your using the current version (which could have some majorupdates).
You don't need to copy SD2 config, it makes 2 on its own.
Join Date:
Location:
Posts:
Thanks:
Thanked 0 Times in 0 Posts
Jul 2008
Earth
91
0
Donator
phelpsben
Reply Reply With Quote
mhm so if I understand in this way you don't have to apply one byone the sd2-corepatch in the database mangos, I understend
Join Date:
Location:
Posts:
Thanks:
Thanked 18 Times in 11 Posts
Nov 2008
Italy
258
3
Cereals incoming
Shin Darth
-- UDB FixerItalian MaNGOS CommunityItalian Linux MaNGOS Guide
Italian Windows MaNGOS GuideItalian MaNGOS Updating Guide
Italian MaNGOS FAQ[PATCH] Ally & Horde in the same group (Updated)
Reply Reply With Quote
The only reason you would need to apply SD2 SQL patches is if yourupdating your server, this is for a fresh install, not an update.
Join Date:
Location:
Posts:
Thanks:
Thanked 0 Times in 0 Posts
Jul 2008
Earth
91
0
Donator
phelpsben
Reply Reply With Quote
I'm not sure I understand the eighth and ninth steps, I don'tunderstend where I should place the "dbc" and "maps" folders (onwindows i place them in the same folder of mangosd.exe andrealmd.exe)..
anywhere..Thanks for all your work and patience, I would be grateful if youwrite an Updating Guide for Ubuntu, after you finish all works forthe Setup Guide....
edit: just place the "maps" and "dbc" in the "bin" folder
Join Date:
Location:
Posts:
Thanks:
Thanked 18 Times in 11 Posts
Nov 2008
Italy
258
3
Cereals incoming
Shin Darth
-- UDB FixerItalian MaNGOS CommunityItalian Linux MaNGOS Guide
Italian Windows MaNGOS GuideItalian MaNGOS Updating Guide
Italian MaNGOS FAQ[PATCH] Ally & Horde in the same group (Updated)
Reply Reply With Quote
I appreciate this guide.
Join Date:
Posts:
Thanks:
Thanked 0 Times in 0 Posts
Jun 2008
29
0
Seed
sturm105
Reply Reply With Quote
finish!!! very very thanks for this tutorial!
Join Date:
Location:
Posts:
Thanks:
Thanked 18 Times in 11 Posts
Nov 2008
Italy
258
3
Cereals incoming
Shin Darth
-- UDB FixerItalian MaNGOS CommunityItalian Linux MaNGOS Guide
Italian Windows MaNGOS GuideItalian MaNGOS Updating Guide
Italian MaNGOS FAQ[PATCH] Ally & Horde in the same group (Updated)
Reply Reply With Quote
I'm happy to see people using it. Thank you.
Join Date:
Location:
Posts:
Thanks:
Thanked 0 Times in 0 Posts
Jul 2008
Earth
91
0
Donator
phelpsben
Reply Reply With Quote
Now I'm making an Italian Guide for this... when I'll finish it, I willplace the url in my signature.
Join Date:
Location:
Posts:
Thanks:
Thanked 18 Times in 11 Posts
Nov 2008
Italy
258
3
Cereals incoming
Shin Darth
-- UDB FixerItalian MaNGOS CommunityItalian Linux MaNGOS Guide
Italian Windows MaNGOS GuideItalian MaNGOS Updating Guide
Italian MaNGOS FAQ[PATCH] Ally & Horde in the same group (Updated)
Reply Reply With Quote
Because I don't know Italian, I'm going to say in advance, greattranslation.
Join Date:
Location:
Posts:
Thanks:
Thanked 0 Times in 0 Posts
Jul 2008
Earth
91
0
Donator
phelpsben
Reply Reply With Quote
what it means?
Join Date:
Location:
Posts:
Thanks:
Thanked 18 Times in 11 Posts
Nov 2008
Italy
258
3
Cereals incoming
Shin Darth
Applying: ScriptDev2 patch commiterror: patch failed: src/mangosd/Makefile.am:33error: src/mangosd/Makefile.am: patch does not applyPatch 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".
-- UDB FixerItalian MaNGOS CommunityItalian Linux MaNGOS Guide
Italian Windows MaNGOS GuideItalian MaNGOS Updating Guide
Italian MaNGOS FAQ[PATCH] Ally & Horde in the same group (Updated)
Reply Reply With Quote
Same error here.
Join Date:
Posts:
Thanks:
Thanked 0 Times in 0 Posts
Feb 2008
8
0
Seed
ghroth
Originally Posted by Shin Darth
what it means?
Applying: ScriptDev2 patch commiterror: patch failed: src/mangosd/Makefile.am:33error: src/mangosd/Makefile.am: patch does notapplyPatch 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 patchingrun "git am --abort".
Reply Reply With Quote
« Previous Thread | Next Thread »
Rev. 7810 restructured a lot of code, resulting in the conflict. UntilSD2 updates their patch, you can temporarily checkout 7809 (whichseems to compile cleanly for me) by running:
git checkout 04a788ba038903879b5490cf3f94daf9db2382be
in the MaNGOS root directory, and then following the howto fromthe last line of "Step 2" in the guide.
Join Date:
Posts:
Thanks:
Thanked 0 Times in 0 Posts
Oct 2008
21
0
Seed
exdeath
Originally Posted by ghroth
Same error here.
Reply Reply With Quote
I just wouldn't run MaNGOS as root user neither I'd build it as rootuser.
And
thats hm big words ... I use apt every day. Just not being thenewest of the new doesn't make things "obsolete".
Just my point of view.
Join Date:
Posts:
Thanks:
Thanked 1 Time in 1 Post
Jan 2008
40
2
Seed
Skirnir
Original by fregharapt-get is obsolete in Debian,[...]
Reply Reply With Quote
today, we reported this here in the sd2 forum and I think we mustwait the sd2 devs.. so?
Join Date:
Location:
Posts:
Thanks:
Thanked 18 Times in 11 Posts
Nov 2008
Italy
258
3
Cereals incoming
Shin Darth
Until SD2 updates their patch
-- UDB FixerItalian MaNGOS CommunityItalian Linux MaNGOS Guide
Italian Windows MaNGOS GuideItalian MaNGOS Updating Guide
Italian MaNGOS FAQ[PATCH] Ally & Horde in the same group (Updated)
Reply Reply With Quote
Page 1 of 9 2 3 ... LastQuick Navigation Installation, Configuration & Upgrades Top
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