This will be an updated version of the post I made for “install gazelle on Ubuntu 10.04“. I am using Ubuntu 11.10 Beta (the official release will be on Oct 13th).
Requirements
- Webserver - apache2, nginx, or lighttpd [We will use Apache2]
- PHP 5.3.0 or newer
- MySQL 5.0 or newer (recommended 5.1)
- Memcached 1.4.2 or newer (depending on if you want to use a tcp port rather than a unix domain socket you can also use an older version)
- Sphinx 0.9.9 or newer
- Knowledge of your operating system (how to use the command line, package management system, etc.) Debian or Ubuntu are the recommended operating systems, although any flavor Linux or BSD distribution should work
- PHP and MySQL knowledge is recommended
- A VPS or Dedicated Server
apt-get update && apt-get upgrade
apt-get install build-essential gcc wget subversion automake libtool make g++ -f mysql-server mysql-client libmysqlclient15-dev zlib1g-dev libpng-dev libmcrypt-dev libxml2-dev libevent-dev libmysqld-dev apache2 php5 memcached sphinxsearch phpmyadmin gcc build-essential binutils libmysql++-dev g++ libev-dev php5-memcache
cd /tmp
mkdir debs
cd debs
wget http://mirror.pnl.gov/ubuntu//pool/main/i/icu/libicu42_4.2.1-3_i386.deb && dpkg -i libicu42*.deb
wget https://launchpad.net/~freefilesync/+archive/ffs/+files/libboost-serialization1.44.0_1.44.0-2ubuntu1%7E10.04back1_i386.deb && dpkg -i libboost-serial*.deb
wget https://launchpad.net/~freefilesync/+archive/ffs/+files/libboost-serialization1.44-dev_1.44.0-2ubuntu1%7E10.04back1_i386.deb && dpkg -i libboost-serial*dev*.deb
wget https://launchpad.net/~freefilesync/+archive/ffs/+files/libboost-date-time1.44.0_1.44.0-2ubuntu1%7E10.04back1_i386.deb&& dpkg -i libboost-date*.deb
wget https://launchpad.net/~freefilesync/+archive/ffs/+files/libboost-date-time1.44-dev_1.44.0-2ubuntu1%7E10.04back1_i386.deb && dpkg -i libboost-date*dev*.deb
wget https://launchpad.net/~freefilesync/+archive/ffs/+files/libboost1.44-dev_1.44.0-2ubuntu1%7E10.04back1_i386.deb && dpkg -i libboost1.44-dev*.deb
wget https://launchpad.net/~freefilesync/+archive/ffs/+files/libboost-thread1.44.0_1.44.0-2ubuntu1%7E10.04back1_i386.deb&& dpkg -i libboost-thread*.deb
wget https://launchpad.net/~freefilesync/+archive/ffs/+files/libboost-thread1.44-dev_1.44.0-2ubuntu1%7E10.04back1_i386.deb&& dpkg -i libboost-thread*dev*.deb
cd /tmp
mkdir debs
cd debs
wget http://mirror.pnl.gov/ubuntu//pool/main/i/icu/libicu42_4.2.1-3_amd64.deb && dpkg -i libicu42*.deb
wget https://launchpad.net/~freefilesync/+archive/ffs/+files/libboost-serialization1.44.0_1.44.0-2ubuntu1%7E10.04back1_amd64.deb && dpkg -i libboost-serial*.deb
wget https://launchpad.net/~freefilesync/+archive/ffs/+files/libboost-serialization1.44-dev_1.44.0-2ubuntu1%7E10.04back1_amd64.deb && dpkg -i libboost-serial*dev*.deb
wget https://launchpad.net/~freefilesync/+archive/ffs/+files/libboost-date-time1.44.0_1.44.0-2ubuntu1%7E10.04back1_amd64.deb && dpkg -i libboost-date*.deb
wget https://launchpad.net/~freefilesync/+archive/ffs/+files/libboost-date-time1.44-dev_1.44.0-2ubuntu1%7E10.04back1_amd64.deb && dpkg -i libboost-date*dev*.deb
wget https://launchpad.net/~freefilesync/+archive/ffs/+files/libboost1.44-dev_1.44.0-2ubuntu1%7E10.04back1_amd64.deb && dpkg -i libboost1.44-dev*.deb
wget https://launchpad.net/~freefilesync/+archive/ffs/+files/libboost-thread1.44.0_1.44.0-2ubuntu1%7E10.04back1_amd64.deb&& dpkg -i libboost-thread*.deb
wget https://launchpad.net/~freefilesync/+archive/ffs/+files/libboost-thread1.44-dev_1.44.0-2ubuntu1%7E10.04back1_amd64.deb && dpkg -i libboost-thread*dev*.deb
nano /etc/php5/apache2/php.ini
nano /etc/php5/cli/php.ini
extension=memcache.so
nano /etc/apache2/apache2.conf
And add the following to the very bottom:
LoadModule php5_module modules/libphp5.so
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch “\.ph(p[2-6]?|tml)$”>
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch “\.phps$”>
SetHandler application/x-httpd-php-source
</FilesMatch>
service apache2 restartor/etc/init.d/apache2 restart
cd /tmp
wget http://what.cd/gazelle/releases/gazelle-r11397.tar.gz
tar -xvf gazelle-r11397.tar.gz
cp -r release/* /var/www/
mysql -u root -p < /var/www/gazelle.sql
Make sure you configure the config file properly
cp /var/www/classes/config.template /var/www/classes/config.php
nano /var/www/classes/config.php
Rememeber to change /var/run/mysqld/mysql.sock to /var/run/mysqld/mysqld.sock
*Note* You must fill in everything minus IRC otherwise you will get a blank white page error.
Configuring Ocelot:
Download and extract Ocelot
mkdir /ocelot
cd /ocelot
wget http://what.cd/ocelot-0.2-alpha.tar.gz
tar -xvf ocelot-0.2-alpha.tar.gz
cp ocelot/* /ocelot/
Configure the config.cpp file:
cp config.cpp.template config.cpp
nano config.cpp
make
Edit in your MySQL details. Your site password must match here.
Note: If you left the port in Gazelle config, then change 30000 to 2710 here.
Configuring Sphinx
Download and install sphinx
cd /tmp
wget http://sphinxsearch.com/files/sphinx-1.10-beta.tar.gz
tar -xvf sphinx-1.10-beta.tar.gz
cd sphinx-1.10-beta
./configure
make && make install
Configure Sphinx:
cp /var/www/sphinx.conf /var/www/sphinx.conf.bak
nano /var/www/sphinx.conf
cp /var/www/sphinx.conf /usr/local/etc/sphinx.conf
mkdir -p /var/data/sphinx/delta
mkdir -p /var/log/searchd
/usr/local/bin/indexer -c /usr/local/etc/sphinx.conf –all
Note: Change /var/run/mysqld/mysql.sock to /var/run/mysqld/mysqld.sock
crontab -e
Now you want to edit the text and replace the schedule in your gazelle config.
0,15,30,45 * * * * /usr/local/bin/php /var/www/schedule.php KEY >> /root/schedule.log
10,25,40,55 * * * * /usr/local/bin/php /var/www/peerupdate.php KEY >> /root/peerupdate.log
* * * * * /usr/local/bin/indexer -c /usr/local/etc/sphinx.conf –rotate delta requests_delta
5 0,12 * * * /usr/local/bin/indexer -c /usr/local/etc/sphinx.conf –rotate –alls
Processing and Bash start up Script:
Lets make a simple bash script so we don’t have to play around with restarting everything.
nano ~/startup.sh
Now enter the following lines in your startup.sh script:
#!/bin/bash
memcached -d -m 512 -s /var/run/memcached.sock -a 0777 -t16 -C -u root
/usr/local/bin/searchd
/ocelot/ocelot
chmod a+x ~/startup.sh
~/startup.sh
Now type in your URL or IP of the server, you should end up with something like this:

Popular search terms:
- trackery txt
- tor ubuntu 11 10
- install of ocelot gazelle
- ubuntu 11 10 php ini
- php ini ubuntu 11 10
- gazelle torrent
- p2p ubuntu 11 10
- ubuntu 11 10 php ini location
- tracker ubuntu 11 10
- gazelle ubuntu
- ubuntu 11 10 tor
- ubuntu 11 10 file sharing
- install gazelle
- tor for ubuntu 11 10
- ubuntu 11 10 system requirements
- ubuntu 11 10 tracker
- how to install tor on ubuntu 11 10
- install tor ubuntu 11 10
- apache ubuntu 11 10
- install gazelle ubuntu
- file sharing ubuntu 11 10
- ubuntu 11 10 essentials
- ubuntu 11 10 p2p
- php ini location ubuntu 11 10
- ubuntu 11 10 build-essential





















































Why don’t you use
add-apt-repository ppa:freefilesync/ffs
instead to install each dep? That would be way easier.