Difference between revisions of "Torrentflux with Transmissioncli"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
(Apache)
 
(31 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{Template:Articles}}
+
{{Template:Articles|Debian|FreeLink|Filesharing}}
 +
<table align=right><tr><td>
 
[[Image:Torrentflux.gif]]
 
[[Image:Torrentflux.gif]]
 +
</td></tr>
 +
<tr><td>
 
[[Image:Transmission.gif]]
 
[[Image:Transmission.gif]]
 +
</td></tr></table>
  
 +
'''[[w:Torrentflux|Torrentflux]]''' is a multi-user GUI for [[w:BitTornado|BitTornado]]. It is scripted in [[w:PHP|PHP]], with a [[w:MySQL|MySQL]] database and runs on a web server. The most recent beta release also includes support for [[w:ADOdb|ADOdb]], allowing for use of other database backends. Numerous "hacks" have been written to add additional functionality.
 +
 +
'''[[w:Transmission_%28BitTorrent%29|Transmission]]''' is a free, lightweight [[w:BitTorrent|BitTorrent]] client. It features a simple, intuitive interface (we won't be using here) on top on an efficient, cross-platform back-end.
 
=== Requirements ===
 
=== Requirements ===
  
Line 12: Line 19:
  
 
=== Installation ===
 
=== Installation ===
 
+
May not be needed -
First get python and perl
+
Get python and perl
  
 
  apt-get install python perl
 
  apt-get install python perl
 +
 +
May not be needed -
 +
Get cksfv and unrar (you will need non-free in /etc/apt/sources.list for unrar)
 +
 +
apt-get install cksfv unrar libevent-dev
 +
 +
 
Goto webservers root directory (/var/www)
 
Goto webservers root directory (/var/www)
  
Line 22: Line 36:
 
Download [http://tf-b4rt.berlios.de torrentflux-b4rt] into said directory
 
Download [http://tf-b4rt.berlios.de torrentflux-b4rt] into said directory
  
  <nowiki>wget http://download.berlios.de/tf-b4rt/torrentflux_2.1-b4rt-97.tar.bz2</nowiki>
+
  <nowiki>wget http://download.berlios.de/tf-b4rt/torrentflux-b4rt_1.0-beta2.tar.bz2</nowiki>  
  
 
Untar the downloaded file and move into it
 
Untar the downloaded file and move into it
  
  tar -jxvf torrentflux_2.1-b4rt-97.tar.bz2 && cd torrentflux_2.1-b4rt-97
+
  tar -jvxf torrentflux-b4rt_1.0-beta2.tar.bz2 && cd torrentflux-b4rt_1.0-beta2
  
 
Configure and make transmissioncli
 
Configure and make transmissioncli
  
  cd clients/transmission  
+
  cd clients/transmission
  tar -jxvf Transmission-0.7-svn1124_tfCLI-svn1565.tar.bz2
+
 
cd Transmission-0.7-svn1124_tfCLI-svn1565
+
  <strike>tar -jxvf Transmission-0.80-svn3355_tfCLI-svn3084.tar.bz2 && cd Transmission-0.80-svn3355_tfCLI-svn3084</strike>
   
+
 
 +
  tar -jvxf Transmission-0.72_tfCLI-svn3318.tar.bz2 && cd Transmission-0.72_tfCLI-svn3318
 +
 
 
  ./configure --prefix=/usr/local --disable-gtk --sysconfdir=/etc
 
  ./configure --prefix=/usr/local --disable-gtk --sysconfdir=/etc
 
  make
 
  make
Line 41: Line 57:
 
  updatedb
 
  updatedb
 
  locate transmissioncli  
 
  locate transmissioncli  
Should be in /mnt/hda/usr/bin/transmissioncli
+
Should be in (/mnt/hda)/usr/local/bin/transmissioncli
 
+
== Populate the database ==
+
 
+
=== For Mysql Database ===
+
 
+
cd ../../../sql/mysql
+
 
+
mysqladmin create torrentflux
+
<font color=red>(if you set a passwd for mysql root then use this and enter passwd at prompt)</font>
+
mysqladmin -p create torrentflux
+
and then
+
mysql torrentflux < mysql_torrentflux_tf-b4rt-97.sql
+
<font color=red>(if you set a passwd for mysql root then use this and enter passwd at prompt)</font>
+
mysql -p torrentflux < mysql_torrentflux_tf-b4rt-97.sql
+
 
+
cd ../../html
+
mv config.db.php.dist config.db.php
+
 
+
<font color=red>(if you set a passwd for mysql root you need to edit)</font>
+
pico config.db.php
+
<font color=red>add passwd</font>
+
$cfg["db_pass"] = "<add passwd>";            // Password for Database
+
 
+
=== For SQLite Database ===
+
 
+
<font color=red>All this needs clarifying</font>
+
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
+
<font color=red>alter database type</font>
+
$cfg["db_type"] = "<font color=red><strike>mysql</strike></font>";        // Database-Type : mysql/sqlite/postgres
+
$cfg["db_type"] = "sqlite";        // Database-Type : mysql/sqlite/postgres
+
+
  
 
== Apache ==
 
== Apache ==
  
 
Make it readable for apache user:group
 
Make it readable for apache user:group
  chown -R www-data:www-data /var/www/torrentflux_2.1-b4rt-97/html
+
  chown -R www-data:www-data /var/www/torrentflux-b4rt_1.0-beta2/html
  
 
Now you will need to create a file in apache to see torrentflux
 
Now you will need to create a file in apache to see torrentflux
Line 96: Line 73:
 
  Listen 8090
 
  Listen 8090
 
  <VirtualHost _default_:8090>
 
  <VirtualHost _default_:8090>
         DocumentRoot "/var/www/torrentflux_2.1-b4rt-97/html"
+
         DocumentRoot "/var/www/torrentflux-b4rt_1.0-beta2/html"
         <Directory "/var/www/torrentflux_2.1-b4rt-97/html">
+
         <Directory "/var/www/torrentflux-b4rt_1.0-beta2/html">
 
                 Options Indexes FollowSymLinks MultiViews
 
                 Options Indexes FollowSymLinks MultiViews
 
                 AllowOverride None
 
                 AllowOverride None
Line 115: Line 92:
  
 
Make it readable for apache user:group
 
Make it readable for apache user:group
  chown -R www-data:www-data /var/www/torrentflux_2.1-b4rt-97/html
+
  chown -R www-data:www-data /var/www/torrentflux-b4rt_1.0-beta2
  
 
Restart Lighttpd
 
Restart Lighttpd
Line 121: Line 98:
  
 
== Run it ==
 
== Run it ==
 
+
=== Apache ===
 
Go to your Torrentflux on your Linkstation
 
Go to your Torrentflux on your Linkstation
  
 
  <nowiki>http://<IPAdddress>:8090</nowiki>
 
  <nowiki>http://<IPAdddress>:8090</nowiki>
  
 +
=== Lighttpd ===
 +
Go to your Torrentflux on your Linkstation
 +
 +
<nowiki>http://<IPAdddress>/torrentflux-b4rt_1.0-beta1/html</nowiki>
 +
 +
== Configure it ==
 +
 +
You should see the configuration screen that will run you through what database to use etc...
 +
Once you've entered the correct details you'll see...
 +
 +
[[Image:Torrentflux_Login.JPG]]
 +
 +
Enter user name and passwd - <font color=red>WARNING!!</font> - That is for the superuser, so don't forget it
 +
 +
Check all the admin settings pages and configure your installation - i.e select transmissioncli as default client and point it in the right direction. You will need to correct everything highlighted red (apart from bittornado unless you are going to use it).
 +
 +
== Problems and Issues ==
 +
Linkstation Pro : ARM Processor
 +
Running out of memory after ca. 24 hours of running.
 +
Needed to add more swap space. Search the wiki for "Adding more swap to Linkstation"
 +
Generally, the 128 MB RAM + 256 MB swap are NOT enough for running the lighttpd + SQLite + python (the queue manager) + 2 torrents, each with 2 ports open
 +
 +
Recommended: If you add swap, do it right, 512 MB minimum.
 +
 +
Running more than 6 torrents at a time can rapidly increase server load.
 +
Typical example:
 +
8 torrents downloading simultaneously, 128 MB RAM, 1 GB swap space, load avg: 3.2 3.6 3.6
 +
which means, that your processor is overloaded by ca. 320%  (current value) 360% (5 minutes average) and 360% (last 15 minutes average). Good values are between 0 and 2 for your Linkstation and your nerves.
 +
 +
==Recommended settings==
 +
 +
* Queue manager: max. 6 torrents simultaneously global for the whole server
 +
 +
* Max. download rate per torrent: I use (My bandwidth = 900 kb/s)/(Number of simult. torrents = 6) = 150 kb/s
 +
 +
* Max. upload rate per torrent: I use (My upload bandwidth = 100 kb) / (Number of simult. torrents = 6) >> 10 kb/s
 +
 +
* Max. connections per torrent: 1 or 2, opening more ports per torrent (more than 12 in total) may slow down your Linkstation
  
  
 +
[[User:Bauldrick|Bauldrick]] 11:38, 4 December 2006 (EST)
 +
Minor changes by [[User:mosi|mosi]] 30.08.2007
  
 
[[Category:Debian]]
 
[[Category:Debian]]

Latest revision as of 16:14, 31 August 2009

Torrentflux.gif

Transmission.gif

Torrentflux is a multi-user GUI for BitTornado. It is scripted in PHP, with a MySQL database and runs on a web server. The most recent beta release also includes support for ADOdb, allowing for use of other database backends. Numerous "hacks" have been written to add additional functionality.

Transmission is a free, lightweight BitTorrent client. It features a simple, intuitive interface (we won't be using here) on top on an efficient, cross-platform back-end.

Contents

Requirements

You will need to install either:

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

Installation

May not be needed - Get python and perl

apt-get install python perl

May not be needed - Get cksfv and unrar (you will need non-free in /etc/apt/sources.list for unrar)

apt-get install cksfv unrar libevent-dev


Goto webservers root directory (/var/www)

cd /var/www

Download torrentflux-b4rt into said directory

wget http://download.berlios.de/tf-b4rt/torrentflux-b4rt_1.0-beta2.tar.bz2 

Untar the downloaded file and move into it

tar -jvxf torrentflux-b4rt_1.0-beta2.tar.bz2 && cd torrentflux-b4rt_1.0-beta2

Configure and make transmissioncli

cd clients/transmission
tar -jxvf Transmission-0.80-svn3355_tfCLI-svn3084.tar.bz2 && cd Transmission-0.80-svn3355_tfCLI-svn3084
tar -jvxf Transmission-0.72_tfCLI-svn3318.tar.bz2 && cd Transmission-0.72_tfCLI-svn3318
./configure --prefix=/usr/local --disable-gtk --sysconfdir=/etc
make
make install

See if it's in the right place

updatedb
locate transmissioncli 

Should be in (/mnt/hda)/usr/local/bin/transmissioncli

Apache

Make it readable for apache user:group

chown -R www-data:www-data /var/www/torrentflux-b4rt_1.0-beta2/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-b4rt_1.0-beta2/html"
       <Directory "/var/www/torrentflux-b4rt_1.0-beta2/html">
               Options Indexes FollowSymLinks MultiViews
               AllowOverride None
               Order allow,deny
               Allow from all
       </Directory>
       <IfModule mod_dir.c>
               DirectoryIndex index.html index.php
       </IfModule>
</VirtualHost>

Restart apache

/etc/init.d/apache restart

Lighttpd

Make it readable for apache user:group

chown -R www-data:www-data /var/www/torrentflux-b4rt_1.0-beta2

Restart Lighttpd

/etc/init.d/lighttpd restart

Run it

Apache

Go to your Torrentflux on your Linkstation

http://<IPAdddress>:8090

Lighttpd

Go to your Torrentflux on your Linkstation

http://<IPAdddress>/torrentflux-b4rt_1.0-beta1/html

Configure it

You should see the configuration screen that will run you through what database to use etc... Once you've entered the correct details you'll see...

Torrentflux Login.JPG

Enter user name and passwd - WARNING!! - That is for the superuser, so don't forget it

Check all the admin settings pages and configure your installation - i.e select transmissioncli as default client and point it in the right direction. You will need to correct everything highlighted red (apart from bittornado unless you are going to use it).

Problems and Issues

Linkstation Pro : ARM Processor Running out of memory after ca. 24 hours of running. Needed to add more swap space. Search the wiki for "Adding more swap to Linkstation" Generally, the 128 MB RAM + 256 MB swap are NOT enough for running the lighttpd + SQLite + python (the queue manager) + 2 torrents, each with 2 ports open

Recommended: If you add swap, do it right, 512 MB minimum.

Running more than 6 torrents at a time can rapidly increase server load. Typical example: 8 torrents downloading simultaneously, 128 MB RAM, 1 GB swap space, load avg: 3.2 3.6 3.6 which means, that your processor is overloaded by ca. 320% (current value) 360% (5 minutes average) and 360% (last 15 minutes average). Good values are between 0 and 2 for your Linkstation and your nerves.

Recommended settings

  • Queue manager: max. 6 torrents simultaneously global for the whole server
  • Max. download rate per torrent: I use (My bandwidth = 900 kb/s)/(Number of simult. torrents = 6) = 150 kb/s
  • Max. upload rate per torrent: I use (My upload bandwidth = 100 kb) / (Number of simult. torrents = 6) >> 10 kb/s
  • Max. connections per torrent: 1 or 2, opening more ports per torrent (more than 12 in total) may slow down your Linkstation


Bauldrick 11:38, 4 December 2006 (EST) Minor changes by mosi 30.08.2007