Good Guide! up! XD
CREDITS: FeestBijtje
Required:
-Server with Ubuntu Server 9.04
-Knowledge what you will be doing!
------
1. Installing Trinity Core 2
------
Notes:
This is just for the Trinity Core 2 system not the Web/MySQL server.
Do not copy/paste the "$" symbol if you copy the commands.
Alright, I assume you got an Ubuntu Server running and ready to prepare for Trinity Core2.
First step:
Install the required for the build, these files are very essential to almost every build.
It will ask you for a password type in your account password, and after that it will ask for a confirmation to install the packets. So press "Y" then hit the "Enter" key.$ sudo aptitude install g++ gcc make cmake libmysql++-dev subversion mercurial openssl libssl-dev zlib1g-dev libtool libmysqlclient15-dev patch build-essential mysql-client libreadline5-dev
Once this is installed we create ACE manually!
We are going to make the trinity server account.
Note: Please do enter a secure password but easy to remember for you!$ sudo adduser trinity
Now we are going to log in on the user "trinity" and go to his home directory!
We do need the latest version of ACE and put it into a proper directory called "ACE".$ su trinity
$ cd ~/
We have downloaded ACE and placed it in the directory "/home/trinity/ACE"
Now we are going to compile ACE version 5.7.0.
Note: The compile syntax is from the help of [Only registered and activated users can see links. ]$ cd ~/ACE/
$ mkdir build
$ cd build
$ ../configure --prefix=/home/trinity/.sys/
After the configuration we must compile it!
Note: Depending on the system it can take up to 8 hours!$ make
$ make install
After the compile we are ready to compile trinity!
Now we got to prepare the directory where we going to put the bins in.
----This will be your BINARIES folder-----$ cd ~/
$ mkdir build
Now we got to checkout the source!
NOTE: If you want to use an older revision please use:
Now were going to configure the trinity server.
NOTE: This is still done under user "trinity" and we will not change user!$ cd ~/trinitycore2
$ cmake -DPREFIX=/home/trinity/build -DACE_LIBRARY=/home/trinity/.sys/lib/libACE.so -DACE_INCLUDE_DIR=/home/trinity/.sys/include/
Note2: The compile syntax is from the help of [Only registered and activated users can see links. ]
After you passed this you can build Trinity (takes some what 2 hours).
After this is done you can configure and run Trinity Core 2.$ make
$ make install
It is located in "/home/trinity/build"
------
2. How to update your Trinity Core 2 Server.
------
Updating is very simple and here I show you what commands to perform.
I assume you are logged in a new session and you are located in the root of your home directory "/home/trinity/".
Like in our last build we checked out with the hg command at "/home/trinity/trinitycore2/" we have to browse there.
Now we are going to check for updates with "hg" command (Really love Mercury).cd ~/trinitycore2
Now we are going to update the files.hg pull
it should display how many files were updated/merged/modified!hg update
Now we can reconfigure Trinity Core 2
cmake -DPREFIX=/home/trinity/build -DACE_LIBRARY=/home/trinity/.sys/lib/libACE.so -DACE_INCLUDE_DIR=/home/trinity/.sys/include/Before you are going to do 'make install' be 100% sure that both realm and core is down!make
I always run my server under the screen command so in my case I should do 'screen -r' and terminate those screens.
If you don't know with pid's you are running and want to kill them simply apply
Alright we are going to install the newer version!sudo pkill -u trinity
NOTE: This might overwrite your config files so please do back them up!make install
------
5. References
------
[Only registered and activated users can see links. ]
[Only registered and activated users can see links. ] (Autcompiler) credits to Elegos
[Only registered and activated users can see links. ] (Restarter) credits to Elegos
[Only registered and activated users can see links. ] credits to KinPing
[Only registered and activated users can see links. ] Credits to Canonical Ltd
[Only registered and activated users can see links. ] Credits to their respective owners
/* If I did missed some thing out please give me a yell *\
Credits:
-FeestBijtje for writing this.
-Google for finding the proper information.
-Elegos for his knowledge (I found his answers on google)
Updates:
29-7-2009 - Fixed so it will be done 100% from user 'trinity'.
30-7-2009 - Added "cd build" command.
30-7-2009 - Fixed tar command.
31-7-2009 - Added "how to update".
31-7-2009 - Added references url's.
31-7-2009 - Added missing packages.
Good Guide! up! XD
Last edited by moska; 09-01-2009 at 10:04 PM.
Man, I just spend 2 weeks of searching for the solution with Ubuntu and ACE library. And here it is, the solution ... I've just been looking for this. Thank You.
Excellent guide ! Merci !
Bookmarks