Difference between revisions of "Torrentflux with Transmissioncli"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
 
Line 20: Line 20:
 
Download [http://tf-b4rt.berlios.de torrentflux-b4rt] into said directory
 
Download [http://tf-b4rt.berlios.de torrentflux-b4rt] into said directory
  
cd /var/www/swisscenter
 
 
  <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_2.1-b4rt-97.tar.bz2</nowiki>
  
Untar the downloaded file
+
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
  
tar -jxvf torrentflux_2.1-b4rt-97.tar.bz2
 
cd torrentflux_2.1-b4rt-97
 
cd clients
 
cd transmission
 
tar -jxvf Transmission-0.7-svn1124_tfCLI-svn1565.tar.bz2
 
 
  ./configure --prefix=/usr /local --disable-gtk --sysconfdir=/etc
 
  ./configure --prefix=/usr /local --disable-gtk --sysconfdir=/etc
 
  make
 
  make
 
  make install
 
  make install
 +
 
See if it's in the right place
 
See if it's in the right place
 
  updatedb
 
  updatedb
 
  locate transmissioncli  
 
  locate transmissioncli  
 
Should be in /mnt/hda/usr/bin/transmissioncli
 
Should be in /mnt/hda/usr/bin/transmissioncli
 +
 +
Add the Mysql database
  
 
  cd ../../../sql/mysql
 
  cd ../../../sql/mysql
 +
 
  mysqladmin create torrentflux
 
  mysqladmin create torrentflux
(if you set a passwd for mysql root)
+
<font color=red>(if you set a passwd for mysql root then use this and enter passwd at prompt)</font>
 
  mysqladmin -p create torrentflux  
 
  mysqladmin -p create torrentflux  
 
+
and then
 
  mysql torrentflux < mysql_torrentflux_tf-b4rt-97.sql
 
  mysql torrentflux < mysql_torrentflux_tf-b4rt-97.sql
(if you set a passwd for mysql root)
+
<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
 
  mysql -p torrentflux < mysql_torrentflux_tf-b4rt-97.sql
  
Line 50: Line 54:
 
  mv config.db.php.dist config.db.php
 
  mv config.db.php.dist config.db.php
  
(if you set apasswd mysql root)
+
<font color=red>(if you set a passwd for mysql root you need to edit)</font>
 
  pico config.db.php
 
  pico config.db.php
add passwd
+
<font color=red>add passwd</font>
 
  $cfg["db_pass"] = "<add passwd>";            // Password for Database
 
  $cfg["db_pass"] = "<add passwd>";            // Password for Database
  
Line 95: Line 99:
  
 
[[Category:Debian]]
 
[[Category:Debian]]
[[Category:]]
 

Revision as of 12:54, 4 December 2006

[[Image:]]


Contents

Requirements

You will need to install:

  1. Apache
  2. PHP
  3. MySQL


Installation

Goto webservers root directory (/var/www)

cd /var/www

Download torrentflux-b4rt into said directory

wget http://download.berlios.de/tf-b4rt/torrentflux_2.1-b4rt-97.tar.bz2

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
make install

See if it's in the right place

updatedb
locate transmissioncli 

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

Add the 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
chown -R www-data:www-data /var/www/torrentflux_2.1-b4rt-97/html

Apache

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

pico /etc/apache/conf.d/swisscenter.conf 

and add this to that file

 # SwissCenter 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
       </Directory>
       <IfModule mod_dir.c>
               DirectoryIndex index.html index.php
       </IfModule>
</VirtualHost>

Restart apache

/etc/init.d/apache restart


Run it

Go to your Torrentflux on your Linkstation

http://<IPAdddress>:8090