Torrentflux with Transmissioncli
From NAS-Central Buffalo - The Linkstation Wiki
(→For Mysql Database) |
|||
| Line 60: | Line 60: | ||
mysqladmin -p create torrentflux | mysqladmin -p create torrentflux | ||
and then | and then | ||
| - | mysql torrentflux < mysql_torrentflux_tf-b4rt- | + | mysql torrentflux < mysql_torrentflux_tf-b4rt-98.sql |
<font color=red>(if you set a passwd for mysql root then use this and enter passwd at prompt)</font> | <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- | + | mysql -p torrentflux < mysql_torrentflux_tf-b4rt-98.sql |
cd ../../html | cd ../../html | ||
Revision as of 16:30, 24 January 2007
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:
Installation
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
wget http://download.berlios.de/tf-b4rt/torrentflux_2.1-b4rt-98.tar.bz2
Untar the downloaded file and move into it
tar -jxvf torrentflux_2.1-b4rt-98.tar.bz2 && cd torrentflux_2.1-b4rt-98
Configure and make transmissioncli
cd clients/transmission tar -jxvf Transmission-0.7-svn1302_tfCLI-svn1995.tar.bz2 cd Transmission-0.7-svn1302_tfCLI-svn1995 ./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
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-98.sql
(if you set a passwd for mysql root then use this and enter passwd at prompt)
mysql -p torrentflux < mysql_torrentflux_tf-b4rt-98.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
cd ../../../sql/sqlite
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
Apache
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
</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_2.1-b4rt-98/html
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_2.1-b4rt-98/html
Configure it
You should see this
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).
Bauldrick 11:38, 4 December 2006 (EST)


