XBT Tracker Installation
The XBT Tracker can run on Unix/Linux or Windows. Please check the tutorial that fits you best.
Using Unix/Linux
The XBT Tracker must be compiled from source on Unix/Linux. You need shell and root access to compile and run XBT Tracker. You also need the following packages:
- boost-devel
- mysql-devel
- gcc-c++ (at least version 7)
- git
To install this required packages you can run the following commands in your server:
Installing the required packages on Debian and Ubuntu | |
1 |
apt-get install cmake default-libmysqlclient-dev g++ git libboost-dev make zlib1g-dev
|
Installing the required packages on CentOS, Fedora or Red Hat | |
1 |
dnf install boost-devel cmake gcc-c++ git make mysql-devel systemd-devel
|
Link the x64 (/usr/lib64) libraries into the x86 (/usr/lib) | |
1 |
ln -s /usr/lib64/mysql/libmysqlclient.so /usr/lib/libmysqlclient.so
|
Then create a folder in your server and type the following:
1 |
git clone https://github.com/OlafvdSpek/xbt |
After the server is compiled you will have a xbt_tracker binary under xbt/Tracker. Copy this binary into the directory where you will run XBTT along with the xbt_tracker.conf.default that is on the same folder. You will end up with two files in your xbt directory: the xbt_tracker and the xbt_tracker.conf.default. Rename the xbt_tracker.conf.default to xbt_tracker.conf.
we are using /home/xbt_tracker as an example | |
1 |
cp xbt_tracker /home/xbt_tracker/ |
We now need to create a database to be used with XBTT. You can use phpMyAdmin of the mysql command to create it. See the example below using the mysql client:
After the database is created we need to import the default sql that we previously copied into our xbt_tracker home directory. Just type the following command in the shell of your server:
1 |
mysql -uxbt_tracker -pmy_tracker_password xbt_tracker < xbt_tracker.sql
|
Ok, the default database schema (xbt_tracker.sql) is imported into the database we have created. All that is left is to configure XBTT to use it. To do so, edit the xbt_tracker.conf in the xbt_tracker home directory and use the following (change the values to fit you need. We are going to use the ones from the previous commands):
1 |
mysql_host = localhost |
We have now concluded the installation of XBTT on our server. So let's start it. To do it just type:
1 |
./xbt_tracker
|
You now have XBT Tracker running on the default port 2710. To customize it please read the Configuration page. To see how you can always start XBT Tracker when your server starts please check the General Tips page.
Using Windows
To use the tracker on Windows you can download the installation file from the XBT project page. After downloading the exe file you must run it to install it on your computer. The windows version is installed by default as a service.
Personal note: Although XBT Tracker runs on Windows I recommend you to run it on a linux server.