LinHES Forums
http://forum.linhes.org/

HOWTO: TorrentFlux on R5.5 (headless www remote bittorrent)
http://forum.linhes.org/viewtopic.php?f=11&t=18970
Page 1 of 1

Author:  graysky [ Sat Sep 20, 2008 7:35 am ]
Post subject:  HOWTO: TorrentFlux on R5.5 (headless www remote bittorrent)

HOWTO Covers: Installation of Torrentflux. Tested, works great on R5.5, and is D-E-A-D simple :p

HOWTO Does NOT Cover: Configuration of TorrentFlux (come on people, it's pretty much self-explanatory). One caveat to be aware of with any system behind a router/firewall (if you have a router and/or firewall) is that you'll have to forward or open a port/ports for TorrentFlux to work properly. This too is beyond the scope of this HOWTO guide. See the references section at the end of this guide for a link that'll help you in this regard.

Background Material: TorrentFlux is a headless (i.e. you run it from a shell and it has no UI), bittorrent client with a killer web interface. You control it through your mythweb from any machine that has access to your mythweb. It uses very little resources compared to some GUI-only BT clients which makes it perfect for a KM system!

The Installation Steps: As always, command that being with the $ prompt are done by the user (i.e. mythtv) and those preceded by the # prompt are done by root.

First download the latest release of TorrentFlux (as of 18-Jun-2008 it is version 2.4):

Code:
$ cd /home/mythtv
$ wget http://internap.dl.sourceforge.net/sourceforge/torrentflux/torrentflux_2.4.tar.gz


Now untar setup mysql for TorrentFlux:

Code:
$ tar zxvf torrentflux_2.4.tar.gz ; cd torrentflux_2.4/sql
$ echo "CREATE DATABASE torrentflux ;" > create.sql ; mysql -uroot < create.sql ; mysql -uroot torrentflux < mysql_torrentflux.sql


Finally create a dir for the www interface, move the files there and delete the untarred files:

Code:
$ cd ..
# mv html /var/www/torrentflux ; chown -R www-data:www-data /var/www/torrentflux
$ cd ..
$ rm -rf torrentflux_2.4


Recommended: I recommend that you place your downloads on your /myth partition since in a single-drive system, that will be the largest partition in the system:

Code:
# mkdir /myth/torrentflux ; chmod 777 /myth/torrentflux ; chown www-data:www-data /myth/torrentflux


When you go through the TorrentFlux config in the web interface, be sure you change the admin>settings>path accordingly.

That's it!

To access the web front-end simply point your browser to http://IP_of_Mythtvbox/torrentflux/index.php

Enjoy!

It's recommended that you install an IPblocking software to help protect your privacy. See my HOWTO: Install Moblock on R5.5 if you wanna give moblock a try.

References
Chrisj'ssimple install script which I consulted prior to writing this guide. In fact, the majority of the guide is taken right out of his script.
Homepage for torrentflux.
Port forwarding guides.

Author:  Liv2Cod [ Sun Sep 21, 2008 7:10 am ]
Post subject: 

Graysky -- is there an advantage to this over just "apt-get install torrentflux?" It seemed to build the MySql database and all with no intervention when I installed it on my Debian server. I'm using it to push R5.5 now.

When I simulate it on my KM R5.5 box, I get:

Code:
root@myth01:~# apt-get -s install torrentflux
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
  bittornado dbconfig-common libphp-adodb
Suggested packages:
  bittornado-gui python-psyco php5-adodb
Recommended packages:
  python-crypto
The following NEW packages will be installed:
  bittornado dbconfig-common libphp-adodb torrentflux
0 upgraded, 4 newly installed, 0 to remove and 895 not upgraded.
Inst bittornado (0.3.18-7 Debian:unstable)
Inst dbconfig-common (1.8.40 Debian:unstable)
Inst libphp-adodb (5.05-1 Debian:unstable)
Inst torrentflux (2.4-2 Debian:unstable)
Conf bittornado (0.3.18-7 Debian:unstable)
Conf dbconfig-common (1.8.40 Debian:unstable)
Conf libphp-adodb (5.05-1 Debian:unstable)
Conf torrentflux (2.4-2 Debian:unstable)

-- Joe

Author:  graysky [ Sun Sep 21, 2008 8:10 am ]
Post subject: 

I originally tried it with apt-get on my system and it failed for some reason... I think at the mysql stuff. I can't remember for sure. Give it a shot and let us know.

Author:  mcdrama [ Mon Dec 08, 2008 12:42 am ]
Post subject: 

sweet! This is exactly what I was looking for. :)

Author:  graysky [ Mon Dec 08, 2008 2:06 pm ]
Post subject: 

Glad it worked out for you... I should say that torrentflux handles the downloads a little weird in my opinion. I have since switched to deluge (GUI but has a web interface that is pretty nice). You can get it to try via:

Code:
# apt-get install deluge-torrent


Once you have it installed you'll need to enable the web plugin via the options menu.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/