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.
Logging into your Ubuntu server:
Alright now that you have the programs downloaded & installed. You are ready to start! Open up putty, and you will see something like this.
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.
Updating your Ubuntu host to get it ready:
When you first log into your Ubuntu server, you will need to run the following command(s) to save you from any problems later on during the installment of development tools, and compiling.
Code:apt-get update && apt-get upgrade
Installment of your development tools:
Now you are ready to install the development tools needed to compile, and help run your server. Run the following commands below and wait for them to install.
Now that you got the first set of development tools, run the following command to install the rest of them.Code:sudo apt-get install build-essential autoconf libtool gcc g++ make cmake git-core patch wget links zip unzip
You will also need to install screen, to run programs after you close your SSH connection.Code:sudo apt-get install openssl libssl-dev mysql-server mysql-client libmysqlclient15-dev libmysql++-dev libreadline6-dev zlib1g-dev libbz2-dev
If you are using Ubuntu 12.04, Debian 7 or some 2013 linux distributions you will also need:Code:sudo apt-get install screen
Code:sudo apt-get install libncurses5-dev
Downloading and unpacking the ACE-library
You are now ready to download and install ACE on your Ubuntu server, this program will take anywhere from 5 minutes - 30 minutes depending how fast your server is. Run the following commands listed below.
Configuring, compiling and installing ACECode: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
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).
This is what it will look like when it's configuring -Code:../configure --disable-ssl make sudo make install
When you start to compile ACE you will see some stuff like this -
Pulling Trinity Core on your Ubuntu Server
Now you are ready to pull Trinity Core, since you have all the required tools to compile. I know we aren't suppose to use root, but in this guide we will.
Getting the source code
Run the following command, to enter your Trinity Core folder and create the build folder.Code:cd /home git clone git://github.com/TrinityCore/TrinityCore.git
Creating your build directoryCode:cd Trinitycore
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)
Configuring for compilingCode:mkdir build cd build
You are now ready to configure your core to compile. Run the following command.
Compiling Trinity Core:Code:cmake ../ -DPREFIX=/home/`echo $USER`/server -DTOOLS=1
Now that you have configure your core, you are ready to compile. Run the following command's to compile your Trinity Core. This might take some time unless you have a fast host.
First run make, and then make install.
If you have multiple CPU cores, you can enable the use of those during compile:Code:make make install
example - make -j 4 (4 being the number of cores the box has.)
Now that you have compiled, you can find your server files under home/root/serverCode:make -j <number of cores> make install
Making server public -
All ports are open by default on Linux, so all you need to do is setup your config files for your World Server, and Auth Server and change the realm list inside your database. You can locate your server files under 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)
Now that you have logged into your Ubuntu server via WinSCP, make your way to home/root/server/etc you should see your config files for your World Server & Auth Server. Rename your worldserver.config.dist TO worldserver.config and change your authserver.config.dist TO authserver.config and keep reading -
Rename them to worldserver.config & authserver.config after doing that right click on authserver.config and click edit
And do the same thing with the worldserver.config -
Go down until you find
You will than need to edit it to your database information you setup during the mysql installment.Code: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"
Editing the database realml ist
You are now ready to edit your realm list inside your database open your Mysql program HeidiSQL or whatever program you might use. And log into your database and go to auth -> Realmlist -> Change realmlist to your server IP and you are good to go.
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.
And you are now ready to go, read the 2nd post on how to install webmin a web-based interface for linux!Code:cd /home/root/server/bin screen ./authserver screen ./worldserver