Bravo List
Register
Go Back   > Bravo List > Source Code > Trackers > Gazelle
Reply
  #1  
Old 03-04-09, 11:47
pirpiliter's Avatar
pirpiliter pirpiliter is offline
Senior Member
 
Join Date: Sep 2008
Moldova
Posts: 27
Post How To Set Up Gazelle on a Debian Server
Tutorial:How To Set Up Gazelle on a Debian Server

This was taken from from ScT forum, and left exactly as-is … take a look here:
ScT/forums_viewtopic.php?id=19331&page=1#p344573

This guide allows anyone to setup their very own BitTorrent tracker using the fancy and flashing Project Gazelle sourcecode by the What.CD development team — Setup and steal releases off ScT and you’ll be as good as SCC, ScL and the likes in no time and NO EFFORT!!!!

This guide is written for Debian (etch), but with little modification you can suit it for other distributions as well. It’s time to go and rent that 20€ Kimsufi now and start your very own career as the SysOp of your imba tracker. While not necessary, it’s preferred that you purchase a domain for the site as well. Preferably something that has “scene” prefix or postfix!!!! Like sceneIMBA.com, cbatogetmyownsceneaxx.com or faggotscene.net.

Want to run a tracker, but your low-end seedbox with 512mb ram runs on Windows? GTFO.

Here’s what you need to install, via apt-get.

1. Dependencies:

Code:
$ apt-get install build-essential apache2 php5 libapache2-mod-php5 mysql-server libmysqlclient15-dev php5-mysql memcached php5-memcache php5-gd php5-mcrypt subversion automake
Code:
$ apt-get install cmake g++ libboost-date-time-dev libboost-dev libboost-filesystem-dev libboost-program-options-dev libboost-regex-dev libboost-serialization-dev make zlib1g-dev
For database management you can use CLI or some sort of gay www frontend such as phpmyadmin (apt-get install phpmyadmin). If you don’t know anything about MySQL just tell yourself that it’ll all be fine and skip this step.

2. Configuring apache

Apache2 installs itself in /etc/apache2. By default, it serves its **** from /var/www directory, but we’ll change that along with some other stuff in a mo.
First, create a directory where you store your web-frontend files. For example:

Code:
$ cd /
$ mkdir site
Now you’ve got a directory called “site” in your filesystem root. Next it’s time to let apache now you’ll want web files served from there.
The file to alter is /etc/apache2/sites-enabled/000-default

Code:
$ nano /etc/apache2/sites-enabled/000-default
Empty the whole file and replace it with this (modify if you like and know your ****):

Code:
# Standard http port
    NameVirtualHost *:80

    <VirtualHost *:80>
    ServerAdmin leet@sysop.com
    ServerName scenefaggot.net

    DocumentRoot /site/

    <Directory “/site/captcha”>
    Order deny,allow
    Deny from all
    </Directory>

    <Directory “/site/classes”>
    Order deny,allow
    Deny from all
    </Directory>

    <Directory “/site/sections”>
    Order deny,allow
    Deny from all
    </Directory>

    <Directory “/site/torrents”>
    Order deny,allow
    Deny from all
    </Directory>

    <Files ~ “^\.ht|\.ini|\.inc|\.sql”>
    Order deny,allow
    Deny from all
    </Files>

    </VirtualHost>
It’s noteworthy that if you wish to enable leet SSL browsing for your site, just add another clause there for:

Code:
# HTTPS port
NameVirtualHost *:443

<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /path/to/cert.crt
SSLCertificateKeyFile /path/to/cert.key
And also add Listen 443 to /etc/apache2/ports.conf
Then you just need to create a certificate (consult google).

Ogay, we’ve done configuring apache. Time to reload the changes

Code:
$ apache2 -k restart


3. Getting sourcecode


EDIT: since the repository is offline you can get the exact copy of the source here: http://www.bvlist.com/gazelle/2208-g...n-11397-a.html

You can fetch the source from What’s SVN repository as follows:



4.Configuring MySQL


Principally you should take a look at /etc/mysql/my.cnf and optimize it for your setup and needs. Obviously you’re too much of a slob and cba to, so just skip this step and tell yourself it’ll all be ok. What you should do, though, is to setup a root password for MySQL as it is not automatic.

Code:
$ mysql -u root
$ use mysql
$ update user set password=PASSWORD(”NEWPASSWORD”) where User=’root’;
$ flush privileges;
$ quit;
You should probably create a different MySQL user for the site with less-than-root rights. But again, you cba to do so, so we’ll just skip this.

5. Configuring the site

Then you will need to navigate to youripaddress and follow instructions. Literacy is required in this step unfortunately. If all is well, you should now be able to access your site. If not, all is not well.

That is not all, though. You’ve got the site web frontend working, but not the tracker — yet. Project Gazelle includes a tracker written in C++. It is its program that runs on its own. Remember to remove the installation directory after successful install. Ie, rm -r /site/install

6. Getting tracker up and running

Code:
$ cd /site/
$ tar zxfv xbtt.tar.gz
$ cd xbtt/build/xbtt
$ ./autogen.sh
$ make
$ cd src
Now you’ve got a compiled tracker that is ready to work. Well, almost ready. There’s a file called xbt_tracker.conf that you need to modify. The fields are rather obvious, there’s stuff like:

Code:
mysql_host =
mysql_user =
Yeah, you got the idea. If not, GTFO.

There’s also the actual tracker executeable xbt_tracker. Which you’ll need to run with command ./xbt_tracker xbt_tracker.conf after the last step.

The last step to get the tracker working is to insert some parameters into MySQL. It defaults to What.cd’s IP address and stuff, and you must change that.

Code:
$ mysql -u root -pNEWPASSWORD
$ use databasename_that_you_defined_in_install_php
$ select * from xbt_config;
There are some important values. You’ll need to modify some and some not if you don’t want to. Anyway:

Code:
$ update xbt_config set value = ‘YOURIPADDRESSHERE’ where value = ‘70.47.114.223′;
$ update xbt_config set value = ‘WHATPORTYOUWANNAUSE’ where value = ‘34000′;

$ select * from xbt_client_whitelist;
Whitelisted, ie. allowed clients. These are outdated; you will need to insert Peer IDs for newer clients.
If you don’t know how to, tell everyone to use uTorrent 1.8 or it’s banhammer time.

Code:
$ insert into xbt_client_whitelist (peer_id, vstring) values (’-UT1810-’, ‘uTorrent 1.8.1′);

Last edited by pirpiliter; 03-04-09 at 12:31.
Reply With Quote
The Following 8 Users Say Thank You to pirpiliter For This Useful Post:
bkkonline (04-08-09), DrDoom (03-07-09), Fynnon (03-04-09), GeorgeS069 (08-11-09), Jack747 (14-02-10), Phogo (03-04-09), sammygo (22-04-09), velvet. (08-05-10)
  #2  
Old 25-04-09, 13:04
andsh's Avatar
andsh andsh is offline
Member
 
Join Date: Apr 2009
P2P
Posts: 10
Default error
Code:
./xbt_tracker xbt_tracker.conf
/site/xbtt/build/xbtt/src/.libs/lt-xbt_tracker: error while loading shared libraries: libmisc.so.0: cannot open shared object file: No such file or directory
When I "make" says
Code:
sql_result.h:70: error: 'atoll' was not declared in this scope
make[4]: *** [database.lo] Error 1
make[4]: Leaving directory `/site/xbtt/build/xbtt/src/misc/sql'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/site/xbtt/build/xbtt/src/misc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/site/xbtt/build/xbtt/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/site/xbtt/build/xbtt'
make: *** [all] Error 2

Last edited by andsh; 25-04-09 at 13:35.
Reply With Quote
  #3  
Old 25-04-09, 13:39
Fynnon's Avatar
Fynnon Fynnon is offline
xxx
 
Join Date: Nov 2007
P2P
Posts: 963
Default
Quote:
Originally Posted by adyshor View Post
Code:
./xbt_tracker xbt_tracker.conf
/site/xbtt/build/xbtt/src/.libs/lt-xbt_tracker: error while loading shared libraries: libmisc.so.0: cannot open shared object file: No such file or directory
You must create some simlinks for libraries.. should be something like this:
Code:
ln -sf ../../lib/libmisc.so.0 /usr/lib/libmisc.so
not really sure...im not very good with linux :P
Reply With Quote
  #4  
Old 25-04-09, 13:41
andsh's Avatar
andsh andsh is offline
Member
 
Join Date: Apr 2009
P2P
Posts: 10
Default
Quote:
Originally Posted by pirpiliter View Post


The last step to get the tracker working is to insert some parameters into MySQL. It defaults to What.cd’s IP address and stuff, and you must change that.

$ mysql -u root -pNEWPASSWORD
$ use databasename_that_you_defined_in_install_php
$ select * from xbt_config;

There are some important values. You’ll need to modify some and some not if you don’t want to. Anyway:

$ update xbt_config set value = ‘YOURIPADDRESSHERE’ where value = ‘70.47.114.223′;
$ update xbt_config set value = ‘WHATPORTYOUWANNAUSE’ where value = ‘34000′;

$ select * from xbt_client_whitelist;

Whitelisted, ie. allowed clients. These are outdated; you will need to insert Peer IDs for newer clients. If you don’t know how to, tell everyone to use uTorrent 1.8 or it’s banhammer time.

$ insert into xbt_client_whitelist (peer_id, vstring) values (’-UT1810-’, ‘uTorrent 1.8.1′);
I'm lost here more details pls :unknown:

Quote:
$ select * from xbt_config;
What does * symbolyse?

Late edit: Still same error
Code:
./xbt_tracker xbt_tracker.conf
/site/xbtt/build/xbtt/src/.libs/lt-xbt_tracker: error while loading shared libraries: libmisc.so.0: cannot open shared object file: No such file or directory

Last edited by andsh; 25-04-09 at 14:10.
Reply With Quote
  #5  
Old 25-04-09, 14:10
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,045
Default
Quote:
What does * symbolyse?
that is a data base feature indicating "all rows in this table"
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Managerô forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #6  
Old 25-04-09, 14:19
andsh's Avatar
andsh andsh is offline
Member
 
Join Date: Apr 2009
P2P
Posts: 10
Default Almost done
:bubble: Hi I'm almost done a still need to resolve this problem
Code:
./xbt_tracker xbt_tracker.conf
/site/xbtt/build/xbtt/src/.libs/lt-xbt_tracker: error while loading shared libraries: libmisc.so.0: cannot open shared object file: No such file or directory
Thank you all!
Later edit: How can I make the anounce url from tracker.domain to domain?

Last edited by andsh; 25-04-09 at 14:48.
Reply With Quote
  #7  
Old 15-06-09, 07:37
m1cha31's Avatar
m1cha31 m1cha31 is offline
Member
 
Join Date: Jun 2009
United States
Posts: 1
Default
Code:
./xbt_tracker xbt_tracker.conf
/site/xbtt/build/xbtt/src/.libs/lt-xbt_tracker: error while loading shared libraries: libmisc.so.0: cannot open shared object file: No such file or directory
I'm getting that, too. Can someone PM me with some help? It would be greatly appreciated!
Reply With Quote
  #8  
Old 02-07-09, 12:51
Zepp's Avatar
Zepp Zepp is offline
Senior Member
 
Join Date: Feb 2009
Default
Posts: 34
Default
Got it working, thanks!
__________________
GamerInside.net
Reply With Quote
  #9  
Old 08-11-09, 04:14
GeorgeS069's Avatar
GeorgeS069 GeorgeS069 is offline
Member
 
Join Date: Nov 2009
United States
Posts: 1
Default I know this is an older thread but, could use a little help
I have xbtt mostly setup and installed but I keep getting this error when I try to run it:
Code:
./xbt_tracker: error while loading shared libraries: libmisc.so.0: 
cannot open shared object file: No such file or directory
Any ideas what I need to do to fix this?

Thank You for ANY help with this!

George

P.S. Guess I should give some more info like OS and stuff....the system is running Debian Stable(Lenny) and I do have Libtools installed if that helps any.
Reply With Quote
  #10  
Old 27-11-09, 10:55
calebrulez's Avatar
calebrulez calebrulez is offline
Member
 
Join Date: Apr 2008
Posts: 2
Default
for the shared libraries issue do
Code:
cp /usr/local/lib/libmisc.* /usr/lib/
you are basically copying the libmisc.so.0.0.0 file to the default sys lib path for xbt to find.

Quote:
Originally Posted by adyshor View Post
Later edit: How can I make the anounce url from tracker.domain to domain?
edit file /path_to_site_root/classes/config.php and modify line
Code:
define('ANNOUNCE_URL','http://tracker.A.B.C.1D:port'); //Announce URL
Reply With Quote
Reply

Tags
debian , gazelle , server , set

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
gazelle on centos 5.3 mrs Gazelle 11 02-08-11 04:36
Looking For a Coder for gazelle thephoenix Gazelle 2 29-05-10 01:29
Installing Webmin and CSF on Debian Lenny Phogo Tutorials 0 26-01-10 13:25
[HELP]Memcache gazelle amnezia Gazelle 1 20-09-09 03:58
Help with gazelle! Viperia Gazelle 4 02-09-09 07:50



All times are GMT +2. The time now is 16:48. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2018, vBulletin Solutions Inc.