Torrentflux with Transmissioncli

From NAS-Central Buffalo - The Linkstation Wiki
Revision as of 15:07, 4 December 2006 by Bauldrick (Talk | contribs)

Jump to: navigation, search

Torrentflux.gif Transmission.gif


You will need to install either:

  1. LAMP Steps 1-5
  2. LLMP
  3. LLSP


First get python and perl

apt-get install python perl

Goto webservers root directory (/var/www)

cd /var/www

Download torrentflux-b4rt into said directory


Untar the downloaded file and move into it

tar -jxvf torrentflux_2.1-b4rt-97.tar.bz2 && cd torrentflux_2.1-b4rt-97

Configure and make transmissioncli

cd clients/transmission && tar -jxvf Transmission-0.7-svn1124_tfCLI-svn1565.tar.bz2
./configure --prefix=/usr/local --disable-gtk --sysconfdir=/etc
make install

See if it's in the right place

locate transmissioncli 

Should be in /mnt/hda/usr/bin/transmissioncli

Populate the database

For Mysql database

cd ../../../sql/mysql
mysqladmin create torrentflux

(if you set a passwd for mysql root then use this and enter passwd at prompt)

mysqladmin -p create torrentflux 

and then

mysql torrentflux < mysql_torrentflux_tf-b4rt-97.sql

(if you set a passwd for mysql root then use this and enter passwd at prompt)

mysql -p torrentflux < mysql_torrentflux_tf-b4rt-97.sql
cd ../../html
mv config.db.php.dist config.db.php

(if you set a passwd for mysql root you need to edit)

pico config.db.php

add passwd

$cfg["db_pass"] = "<add passwd>";             // Password for Database

For SQLite Database

All this needs clarifying

sqlite torrentflux

Ctrl + Z

sqlite torrentflux < sqlite_torrentflux_tf-b4rt-97.sql

Ctrl + Z

cd ../../html
mv config.db.php.dist config.db.php
pico config.db.php

alter database type

$cfg["db_type"] = "mysql";        // Database-Type : mysql/sqlite/postgres
$cfg["db_type"] = "sqlite";        // Database-Type : mysql/sqlite/postgres


Make it readable for apache user:group

chown -R www-data:www-data /var/www/torrentflux_2.1-b4rt-97/html

Now you will need to create a file in apache to see torrentflux

pico /etc/apache/conf.d/torrentflux.conf 

and add this to that file

 # Torrentflux Virtual Host Configuration file
Listen 8090
<VirtualHost _default_:8090>
       DocumentRoot "/var/www/torrentflux_2.1-b4rt-97/html"
       <Directory "/var/www/torrentflux_2.1-b4rt-97/html">
               Options Indexes FollowSymLinks MultiViews
               AllowOverride None
               Order allow,deny
               Allow from all
       <IfModule mod_dir.c>
               DirectoryIndex index.html index.php

Restart apache

/etc/init.d/apache restart

Run it

Go to your Torrentflux on your Linkstation