File Sharing, P2P and Tracker News

Install Gazelle on Ubuntu 11.10

This will be an updated version of the post I made for “install gazelle on Ubuntu 10.04“. I am using 11.10 Beta (the official release will be on Oct 13th).

Requirements

  • Webserver - apache2nginx, 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 (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
Dependencies
If you already have ubuntu install, you want to upgrade and update it.
apt-get update && apt-get upgrade
Next you want to get your dependencies:
apt-get install build-essential gcc wget subversion 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
Now you want to compile ocelot (skip these steps if you prefer XBT).
For Ubuntu 32Bit (x86) version:
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
For Ubuntu 64Bit (x86_64) Version:
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
Configure Apache:
First you want to edit your php.ini:

nano /etc/php5/apache2/php.ini
nano /etc/php5/cli/php.ini

Add this to the very bottom.
extension=memcache.so
Next you want to configure apache:

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>

Now you can restart apache:
service apache2 restart
or
/etc/init.d/apache2 restart
Configuring Gazelle:
You first want to download Gazelle and import the database to mysql (database will be named gazelle).

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

Remember to change your MySQL details.
Note: Change /var/run/mysqld/mysql.sock to /var/run/mysqld/mysqld.sock
and other tools:
First, you want to enter crontab:

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

Now you want to save with CTRL+X and yes.
You should chmod it:
chmod a+x  ~/startup.sh
Now when you restart and want to start up your programs, type in this :

~/startup.sh

 

Now type in your URL or IP of the server, you should end up with something like this:

whatcd 1024x748 Install Gazelle on Ubuntu 11.10

Popular search terms:

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

Learn how to make money with torrents now! Your free report is here!

2 comments

  1. Jacob Hacker /

    Why don’t you use
    add-apt-repository ppa:freefilesync/ffs

    instead to install each dep? That would be way easier.

  2. This is my first time pay a visit at here and i am really
    impressed to read all at one place.

Trackbacks/Pingbacks

  1. Gazelle on VirtualMachine - [...] here is a guide ...

Leave a Reply

*