PDA

View Full Version : How to compile trinity on linux ubuntu - With pictures



Ghostcrawler336
05-08-13, 07:25 AM
Hello everyone,

Today I'm going to be making a tutorial on how to compile trinity core on Ubuntu 10 (linux) step by step!

Required Programs
Click the names, for the links.


putty (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html) (ssh client)
WinSCP (http://sourceforge.net/projects/winscp/) (Like filezilla, etc)



First Step -

Alright now that you have the programs downloaded & installed. You are ready to start! Open up putty, and you will see something like this.

http://img203.imageshack.us/img203/399/c4b500d7e89446ec94fe7ec.png

Just type your host IP inside Host Name (or IP address). Don't worry about the port, it's 22 by default unless you change it. You can ether hit save or just hit open. Saving it would be a smart idea so you don't have to keep typing in the IP every time. You can save it by typing in saved sessions the name you want and hitting save.

NOTE - When you open your SSH connection, you will need to type in your username (Default - root) and your password. When you go to type your password in, it won't show you typing but it is don't worry.

Second step -

When you first login you will need to run the two commands listed below to save you any problems during the installing & compiling.


sudo apt-get update




sudo apt-get upgrade


After updating / upgrading your system, you are ready to download all required programs and get to compiling so keep reading.


Third step -

Now that you have upgraded / updated your system programs & files you are ready to download the development tools to compile. Run the following commands below and wait for them to install. Run the following two commands to install all required programs to compile.

http://i.imgur.com/D2mUMpa.png


sudo apt-get install build-essential autoconf libtool gcc g++ make cmake git-core patch wget links zip unzip unrar


After the first development tools are downloaded, run the following command to download the rest of them.
http://i.imgur.com/9R35iWd.png


sudo apt-get install openssl libssl-dev mysql-server mysql-client libmysqlclient15-dev libmysql++-dev libreadline6-dev zlib1g-dev libbz2-dev


You will also need to install screen, to run programs after you close your SSH connection.


sudo apt-get install screen



Fourth step - Downloading and unpacking the ACE-library

Now we are moving on to installing ACE on your linux box, this program will take anywhere from 5 mins - 30 mins depending how fast your linux box is. Run the commands listed below.

http://i.imgur.com/NzUKPR9.png



wget http://download.dre.vanderbilt.edu/previous_versions/ACE-6.0.3.tar.gz
tar xvzf ACE-6.0.3.tar.gz
cd ACE_wrappers/
mkdir build
cd build


Configuring, compiling and installing ACE

Recommended method. This will install ACE for all users of the machine. It will build the library as a user without any specific privileges, and then install it into /usr/local as root (the superuser).

http://i.imgur.com/4RuLiTI.png


../configure --disable-ssl
make
sudo make install


This is what it will look like when it's configuring -
http://img255.imageshack.us/img255/415/295c00e0ac9f48868799d64.png

When you start to compile ACE you will see some stuff like this -
http://i.imgur.com/WepY3p0.png

Fifth step - Pulling Trinity Core

Now that you have downloaded all the needed development tools to compile, you are ready to compile. Let's start by pulling the source code.

Getting the source code



cd ~/
git clone git://github.com/TrinityCore/TrinityCore.git


Run the following command, to enter the Trinitycore folder and create the build folder.


cd Trinitycore


Creating the build-directory

To avoid issues with updates and colliding source builds, we create a specific build-directory, so we avoid any possible issues due to that (if any might occur)



mkdir build
cd build


Configuring for compiling

Now that you have the files, and you are inside the build folder. You are ready to configure it. Run the following command.

The following command will place your server files inside home/root/server


cmake ../ -DPREFIX=/home/`echo $USER`/server -DTOOLS=1


Building the core

After configuring and checking that everything is in order (read cmakes output), you can build Trinity (this will take some time unless you are on a rather fast machine)

First run make, and then make install.



make
make install


If you have multiple CPU cores, you can enable the use of those during compile :

example - make -j 4 (4 being the number of cores the box has.)


make -j <number of cores>
make install




Making server public -

The ports are open by default on linux, so you only need to setup a few configs and set the realmlist in your database. You will find your server files in home/root/server
NOTE - In the pictures below, my folder will be name Core, but if you followed this guide yours will be called server.

Now you will need to open WinSCP and type your info out.
Hostname - IP
Username - root (Default linux user name)
Password - Your password
SSH port 22 (Default)
http://img823.imageshack.us/img823/5540/06758d937bb1471e8319274.png


After you have logged into WinSCP, make your way to home/root/server/etc you should see this. And Rename worldserver.config.dist & authserver.config.dist

http://img32.imageshack.us/img32/5885/c408d79a90a14784877c8a9.png

Rename them to worldserver.config & authserver.config after doing that right click on authserver.config and click edit
http://i.imgur.com/S20brjZ.png

And do the same thing with the worldserver.config -
http://img10.imageshack.us/img10/5429/4e19d526d91a419fb4fa114.png

Go down until you find


LoginDatabaseInfo = "127.0.0.1;3306;trinity;trinity;auth"
WorldDatabaseInfo = "127.0.0.1;3306;trinity;trinity;world"
CharacterDatabaseInfo = "127.0.0.1;3306;trinity;trinity;character"


And change it to the info, you have setup during the mysql installing.

Editing the database realmlist

Now that you have changed the config files, you will need to change the realmlist in the database. Open your mysql program heidisql or whatever you might use. And login. And go to Auth -> Realmlist -> Change realmlist to your server IP.

http://i.imgur.com/Sx49nCQ.png

You are now done installing & compiling your server, all you need to do now is start it up. And you may do so by following the commands below.



cd /home/root/server/bin
screen ./authserver
screen ./worldserver


And you are now ready to go, read the 2nd post on how to install webmin a web-based interface for linux!

Hello everyone,

Today I'm going to be making a tutorial on how to compile trinity core on Ubuntu 10 (linux) step by step!

Required Programs
Click the names, for the links.


putty (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html) (ssh client)
WinSCP (http://sourceforge.net/projects/winscp/) (Like filezilla, etc)



First Step -

Alright now that you have the programs downloaded & installed. You are ready to start! Open up putty, and you will see something like this.

http://img203.imageshack.us/img203/399/c4b500d7e89446ec94fe7ec.png

Just type your host IP inside Host Name (or IP address). Don't worry about the port, it's 22 by default unless you change it. You can ether hit save or just hit open. Saving it would be a smart idea so you don't have to keep typing in the IP every time. You can save it by typing in saved sessions the name you want and hitting save.

NOTE - When you open your SSH connection, you will need to type in your username (Default - root) and your password. When you go to type your password in, it won't show you typing but it is don't worry.

Second step -

When you first login you will need to run the two commands listed below to save you any problems during the installing & compiling.


sudo apt-get update




sudo apt-get upgrade


After updating / upgrading your system, you are ready to download all required programs and get to compiling so keep reading.


Third step -

Now that you have upgraded / updated your system programs & files you are ready to download the development tools to compile. Run the following commands below and wait for them to install. Run the following two commands to install all required programs to compile.

http://i.imgur.com/D2mUMpa.png


sudo apt-get install build-essential autoconf libtool gcc g++ make cmake git-core patch wget links zip unzip unrar


After the first development tools are downloaded, run the following command to download the rest of them.
http://i.imgur.com/9R35iWd.png


sudo apt-get install openssl libssl-dev mysql-server mysql-client libmysqlclient15-dev libmysql++-dev libreadline6-dev zlib1g-dev libbz2-dev


You will also need to install screen, to run programs after you close your SSH connection.


sudo apt-get install screen



Fourth step - Downloading and unpacking the ACE-library

Now we are moving on to installing ACE on your linux box, this program will take anywhere from 5 mins - 30 mins depending how fast your linux box is. Run the commands listed below.

http://i.imgur.com/NzUKPR9.png



wget http://download.dre.vanderbilt.edu/previous_versions/ACE-6.0.3.tar.gz
tar xvzf ACE-6.0.3.tar.gz
cd ACE_wrappers/
mkdir build
cd build


Configuring, compiling and installing ACE

Recommended method. This will install ACE for all users of the machine. It will build the library as a user without any specific privileges, and then install it into /usr/local as root (the superuser).

http://i.imgur.com/4RuLiTI.png


../configure --disable-ssl
make
sudo make install


This is what it will look like when it's configuring -
http://img255.imageshack.us/img255/415/295c00e0ac9f48868799d64.png

When you start to compile ACE you will see some stuff like this -
http://i.imgur.com/WepY3p0.png

Fifth step - Pulling Trinity Core

Now that you have downloaded all the needed development tools to compile, you are ready to compile. Let's start by pulling the source code.

Getting the source code



cd ~/
git clone git://github.com/TrinityCore/TrinityCore.git


Run the following command, to enter the Trinitycore folder and create the build folder.


cd Trinitycore


Creating the build-directory

To avoid issues with updates and colliding source builds, we create a specific build-directory, so we avoid any possible issues due to that (if any might occur)



mkdir build
cd build


Configuring for compiling

Now that you have the files, and you are inside the build folder. You are ready to configure it. Run the following command.

The following command will place your server files inside home/root/server


cmake ../ -DPREFIX=/home/`echo $USER`/server -DTOOLS=1


Building the core

After configuring and checking that everything is in order (read cmakes output), you can build Trinity (this will take some time unless you are on a rather fast machine)

First run make, and then make install.



make
make install


If you have multiple CPU cores, you can enable the use of those during compile :

example - make -j 4 (4 being the number of cores the box has.)


make -j <number of cores>
make install




Making server public -

The ports are open by default on linux, so you only need to setup a few configs and set the realmlist in your database. You will find your server files in home/root/server
NOTE - In the pictures below, my folder will be name Core, but if you followed this guide yours will be called server.

Now you will need to open WinSCP and type your info out.
Hostname - IP
Username - root (Default linux user name)
Password - Your password
SSH port 22 (Default)
http://img823.imageshack.us/img823/5540/06758d937bb1471e8319274.png


After you have logged into WinSCP, make your way to home/root/server/etc you should see this. And Rename worldserver.config.dist & authserver.config.dist

http://img32.imageshack.us/img32/5885/c408d79a90a14784877c8a9.png

Rename them to worldserver.config & authserver.config after doing that right click on authserver.config and click edit
http://i.imgur.com/S20brjZ.png

And do the same thing with the worldserver.config -
http://img10.imageshack.us/img10/5429/4e19d526d91a419fb4fa114.png

Go down until you find


LoginDatabaseInfo = "127.0.0.1;3306;trinity;trinity;auth"
WorldDatabaseInfo = "127.0.0.1;3306;trinity;trinity;world"
CharacterDatabaseInfo = "127.0.0.1;3306;trinity;trinity;character"


And change it to the info, you have setup during the mysql installing.

Editing the database realmlist

Now that you have changed the config files, you will need to change the realmlist in the database. Open your mysql program heidisql or whatever you might use. And login. And go to Auth -> Realmlist -> Change realmlist to your server IP.

http://i.imgur.com/Sx49nCQ.png

You are now done installing & compiling your server, all you need to do now is start it up. And you may do so by following the commands below.



cd /home/root/server/bin
screen ./authserver
screen ./worldserver


And you are now ready to go, read the 2nd post on how to install webmin a web-based interface for linux!

- - - Updated - - -

DOWNLOADING & INSTALLING WEBMIN

Run the following command, inside your root directory. This command will download webmin.



wget http://prdownloads.sourceforge.net/webadmin/webmin_1.620_all.deb


Run the following command to attempt to install webmin.



dpkg --install webmin_1.620_all.deb


The install will be done automatically to /usr/share/webmin, the administration username set to root and the password to your current root password. You should now be able to login to Webmin at the URL http://localhost:10000/. Or if accessing it remotely, replace localhost with your system's IP address.


When you first run the install command, it is very common to get a error. You will get these errors because you are missing some required files. Just run the following command, and it will fix it right up.



sudo apt-get install -f


Hello everyone,

Today I'm going to be making a tutorial on how to compile trinity core on Ubuntu 10 (linux) step by step!

Required Programs
Click the names, for the links.


putty (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html) (ssh client)
WinSCP (http://sourceforge.net/projects/winscp/) (Like filezilla, etc)



First Step -

Alright now that you have the programs downloaded & installed. You are ready to start! Open up putty, and you will see something like this.

http://img203.imageshack.us/img203/399/c4b500d7e89446ec94fe7ec.png

Just type your host IP inside Host Name (or IP address). Don't worry about the port, it's 22 by default unless you change it. You can ether hit save or just hit open. Saving it would be a smart idea so you don't have to keep typing in the IP every time. You can save it by typing in saved sessions the name you want and hitting save.

NOTE - When you open your SSH connection, you will need to type in your username (Default - root) and your password. When you go to type your password in, it won't show you typing but it is don't worry.

Second step -

When you first login you will need to run the two commands listed below to save you any problems during the installing & compiling.


sudo apt-get update




sudo apt-get upgrade


After updating / upgrading your system, you are ready to download all required programs and get to compiling so keep reading.


Third step -

Now that you have upgraded / updated your system programs & files you are ready to download the development tools to compile. Run the following commands below and wait for them to install. Run the following two commands to install all required programs to compile.

http://i.imgur.com/D2mUMpa.png


sudo apt-get install build-essential autoconf libtool gcc g++ make cmake git-core patch wget links zip unzip unrar


After the first development tools are downloaded, run the following command to download the rest of them.
http://i.imgur.com/9R35iWd.png


sudo apt-get install openssl libssl-dev mysql-server mysql-client libmysqlclient15-dev libmysql++-dev libreadline6-dev zlib1g-dev libbz2-dev


You will also need to install screen, to run programs after you close your SSH connection.


sudo apt-get install screen



Fourth step - Downloading and unpacking the ACE-library

Now we are moving on to installing ACE on your linux box, this program will take anywhere from 5 mins - 30 mins depending how fast your linux box is. Run the commands listed below.

http://i.imgur.com/NzUKPR9.png



wget http://download.dre.vanderbilt.edu/previous_versions/ACE-6.0.3.tar.gz
tar xvzf ACE-6.0.3.tar.gz
cd ACE_wrappers/
mkdir build
cd build


Configuring, compiling and installing ACE

Recommended method. This will install ACE for all users of the machine. It will build the library as a user without any specific privileges, and then install it into /usr/local as root (the superuser).

http://i.imgur.com/4RuLiTI.png


../configure --disable-ssl
make
sudo make install


This is what it will look like when it's configuring -
http://img255.imageshack.us/img255/415/295c00e0ac9f48868799d64.png

When you start to compile ACE you will see some stuff like this -
http://i.imgur.com/WepY3p0.png

Fifth step - Pulling Trinity Core

Now that you have downloaded all the needed development tools to compile, you are ready to compile. Let's start by pulling the source code.

Getting the source code



cd ~/
git clone git://github.com/TrinityCore/TrinityCore.git


Run the following command, to enter the Trinitycore folder and create the build folder.


cd Trinitycore


Creating the build-directory

To avoid issues with updates and colliding source builds, we create a specific build-directory, so we avoid any possible issues due to that (if any might occur)



mkdir build
cd build


Configuring for compiling

Now that you have the files, and you are inside the build folder. You are ready to configure it. Run the following command.

The following command will place your server files inside home/root/server


cmake ../ -DPREFIX=/home/`echo $USER`/server -DTOOLS=1


Building the core

After configuring and checking that everything is in order (read cmakes output), you can build Trinity (this will take some time unless you are on a rather fast machine)

First run make, and then make install.



make
make install


If you have multiple CPU cores, you can enable the use of those during compile :

example - make -j 4 (4 being the number of cores the box has.)


make -j <number of cores>
make install




Making server public -

The ports are open by default on linux, so you only need to setup a few configs and set the realmlist in your database. You will find your server files in home/root/server
NOTE - In the pictures below, my folder will be name Core, but if you followed this guide yours will be called server.

Now you will need to open WinSCP and type your info out.
Hostname - IP
Username - root (Default linux user name)
Password - Your password
SSH port 22 (Default)
http://img823.imageshack.us/img823/5540/06758d937bb1471e8319274.png


After you have logged into WinSCP, make your way to home/root/server/etc you should see this. And Rename worldserver.config.dist & authserver.config.dist

http://img32.imageshack.us/img32/5885/c408d79a90a14784877c8a9.png

Rename them to worldserver.config & authserver.config after doing that right click on authserver.config and click edit
http://i.imgur.com/S20brjZ.png

And do the same thing with the worldserver.config -
http://img10.imageshack.us/img10/5429/4e19d526d91a419fb4fa114.png

Go down until you find


LoginDatabaseInfo = "127.0.0.1;3306;trinity;trinity;auth"
WorldDatabaseInfo = "127.0.0.1;3306;trinity;trinity;world"
CharacterDatabaseInfo = "127.0.0.1;3306;trinity;trinity;character"


And change it to the info, you have setup during the mysql installing.

Editing the database realmlist

Now that you have changed the config files, you will need to change the realmlist in the database. Open your mysql program heidisql or whatever you might use. And login. And go to Auth -> Realmlist -> Change realmlist to your server IP.

http://i.imgur.com/Sx49nCQ.png

You are now done installing & compiling your server, all you need to do now is start it up. And you may do so by following the commands below.



cd /home/root/server/bin
screen ./authserver
screen ./worldserver


And you are now ready to go, read the 2nd post on how to install webmin a web-based interface for linux!

Hello everyone,

Today I'm going to be making a tutorial on how to compile trinity core on Ubuntu 10 (linux) step by step!

Required Programs
Click the names, for the links.


putty (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html) (ssh client)
WinSCP (http://sourceforge.net/projects/winscp/) (Like filezilla, etc)



First Step -

Alright now that you have the programs downloaded & installed. You are ready to start! Open up putty, and you will see something like this.

http://img203.imageshack.us/img203/399/c4b500d7e89446ec94fe7ec.png

Just type your host IP inside Host Name (or IP address). Don't worry about the port, it's 22 by default unless you change it. You can ether hit save or just hit open. Saving it would be a smart idea so you don't have to keep typing in the IP every time. You can save it by typing in saved sessions the name you want and hitting save.

NOTE - When you open your SSH connection, you will need to type in your username (Default - root) and your password. When you go to type your password in, it won't show you typing but it is don't worry.

Second step -

When you first login you will need to run the two commands listed below to save you any problems during the installing & compiling.


sudo apt-get update




sudo apt-get upgrade


After updating / upgrading your system, you are ready to download all required programs and get to compiling so keep reading.


Third step -

Now that you have upgraded / updated your system programs & files you are ready to download the development tools to compile. Run the following commands below and wait for them to install. Run the following two commands to install all required programs to compile.

http://i.imgur.com/D2mUMpa.png


sudo apt-get install build-essential autoconf libtool gcc g++ make cmake git-core patch wget links zip unzip unrar


After the first development tools are downloaded, run the following command to download the rest of them.
http://i.imgur.com/9R35iWd.png


sudo apt-get install openssl libssl-dev mysql-server mysql-client libmysqlclient15-dev libmysql++-dev libreadline6-dev zlib1g-dev libbz2-dev


You will also need to install screen, to run programs after you close your SSH connection.


sudo apt-get install screen



Fourth step - Downloading and unpacking the ACE-library

Now we are moving on to installing ACE on your linux box, this program will take anywhere from 5 mins - 30 mins depending how fast your linux box is. Run the commands listed below.

http://i.imgur.com/NzUKPR9.png



wget http://download.dre.vanderbilt.edu/previous_versions/ACE-6.0.3.tar.gz
tar xvzf ACE-6.0.3.tar.gz
cd ACE_wrappers/
mkdir build
cd build


Configuring, compiling and installing ACE

Recommended method. This will install ACE for all users of the machine. It will build the library as a user without any specific privileges, and then install it into /usr/local as root (the superuser).

http://i.imgur.com/4RuLiTI.png


../configure --disable-ssl
make
sudo make install


This is what it will look like when it's configuring -
http://img255.imageshack.us/img255/415/295c00e0ac9f48868799d64.png

When you start to compile ACE you will see some stuff like this -
http://i.imgur.com/WepY3p0.png

Fifth step - Pulling Trinity Core

Now that you have downloaded all the needed development tools to compile, you are ready to compile. Let's start by pulling the source code.

Getting the source code



cd ~/
git clone git://github.com/TrinityCore/TrinityCore.git


Run the following command, to enter the Trinitycore folder and create the build folder.


cd Trinitycore


Creating the build-directory

To avoid issues with updates and colliding source builds, we create a specific build-directory, so we avoid any possible issues due to that (if any might occur)



mkdir build
cd build


Configuring for compiling

Now that you have the files, and you are inside the build folder. You are ready to configure it. Run the following command.

The following command will place your server files inside home/root/server


cmake ../ -DPREFIX=/home/`echo $USER`/server -DTOOLS=1


Building the core

After configuring and checking that everything is in order (read cmakes output), you can build Trinity (this will take some time unless you are on a rather fast machine)

First run make, and then make install.



make
make install


If you have multiple CPU cores, you can enable the use of those during compile :

example - make -j 4 (4 being the number of cores the box has.)


make -j <number of cores>
make install




Making server public -

The ports are open by default on linux, so you only need to setup a few configs and set the realmlist in your database. You will find your server files in home/root/server
NOTE - In the pictures below, my folder will be name Core, but if you followed this guide yours will be called server.

Now you will need to open WinSCP and type your info out.
Hostname - IP
Username - root (Default linux user name)
Password - Your password
SSH port 22 (Default)
http://img823.imageshack.us/img823/5540/06758d937bb1471e8319274.png


After you have logged into WinSCP, make your way to home/root/server/etc you should see this. And Rename worldserver.config.dist & authserver.config.dist

http://img32.imageshack.us/img32/5885/c408d79a90a14784877c8a9.png

Rename them to worldserver.config & authserver.config after doing that right click on authserver.config and click edit
http://i.imgur.com/S20brjZ.png

And do the same thing with the worldserver.config -
http://img10.imageshack.us/img10/5429/4e19d526d91a419fb4fa114.png

Go down until you find


LoginDatabaseInfo = "127.0.0.1;3306;trinity;trinity;auth"
WorldDatabaseInfo = "127.0.0.1;3306;trinity;trinity;world"
CharacterDatabaseInfo = "127.0.0.1;3306;trinity;trinity;character"


And change it to the info, you have setup during the mysql installing.

Editing the database realmlist

Now that you have changed the config files, you will need to change the realmlist in the database. Open your mysql program heidisql or whatever you might use. And login. And go to Auth -> Realmlist -> Change realmlist to your server IP.

http://i.imgur.com/Sx49nCQ.png

You are now done installing & compiling your server, all you need to do now is start it up. And you may do so by following the commands below.



cd /home/root/server/bin
screen ./authserver
screen ./worldserver


And you are now ready to go, read the 2nd post on how to install webmin a web-based interface for linux!

- - - Updated - - -

DOWNLOADING & INSTALLING WEBMIN

Run the following command, inside your root directory. This command will download webmin.



wget http://prdownloads.sourceforge.net/webadmin/webmin_1.620_all.deb


Run the following command to attempt to install webmin.



dpkg --install webmin_1.620_all.deb


The install will be done automatically to /usr/share/webmin, the administration username set to root and the password to your current root password. You should now be able to login to Webmin at the URL http://localhost:10000/. Or if accessing it remotely, replace localhost with your system's IP address.


When you first run the install command, it is very common to get a error. You will get these errors because you are missing some required files. Just run the following command, and it will fix it right up.



sudo apt-get install -f


- - - Updated - - -

DOWNLOADING & INSTALLING WEBMIN

Run the following command, inside your root directory. This command will download webmin.



wget http://prdownloads.sourceforge.net/webadmin/webmin_1.620_all.deb


Run the following command to attempt to install webmin.



dpkg --install webmin_1.620_all.deb


The install will be done automatically to /usr/share/webmin, the administration username set to root and the password to your current root password. You should now be able to login to Webmin at the URL http://localhost:10000/. Or if accessing it remotely, replace localhost with your system's IP address.


When you first run the install command, it is very common to get a error. You will get these errors because you are missing some required files. Just run the following command, and it will fix it right up.



sudo apt-get install -f

Apple
05-08-13, 07:28 AM
nice one , thanks for sharing +rep