Like every other website on the planet, SmallNetBuilder uses cookies. Our cookies track login status, but we only allow admins to log in anyway, so those don't apply to you. Any other cookies you pick up during your visit come from advertisers, which we don't control.
If you continue to use the site, you agree to tolerate our use of cookies. Thank you!

Router Charts

Click for Router Charts

Router Ranker

Click for Router Ranker

NAS Charts

Click for NAS Charts

NAS Ranker

Click for NAS Ranker

More Tools

Click for More Tools

NAS How To

BitTorrent & TorrentFlux

We're now going to install the TorrentFlux BitTorrent client software. Go to the TorrentFlux webpage and have a good look around and check what the latest version is. TorrentFlux is no Azureus, but it is a lot less demanding and is ideal for our use. These instructions use version 2.0 beta 1, so navigate to your home directory and type in (this all goes on one line):

wget http://prdownloads.sourceforge.net/torrentflux/torrentflux-2.0beta1.tar.gz?download

This will download the gzip to your home directory. Now type in:

tar -zxvf torrentflux-20.beta1.tar.gz

which will extract the file to a directory of the same name (torrentflux-2.0beta1). Now go into your new directory and have a read of the INSTALL document.

Next copy the html directory into the place where your web pages are kept:

mkdir /var/www/torrentflux
cp -r html /var/www/torrentflux

Now we need to create the mysql database for TorrentFlux to use:

mysqladmin create torrentflux

Then using the provided torrentflux.sql script, create all the required tables:

mysql torrentflux < torrentflux.sql

Next, you'll need to create a mysql user. So go to the mysql command line and enter:

mysql

Then connect to the database you just created with:

connect torrentflux

Now create the user:

grant CREATE,INSERT,DELETE,UPDATE,SELECT on torrentflux.* to tf@localhost;

And set the password:

set password for tf = password('MyPassword');

Now quit out of mysql using 'exit'.

Copy the two bittorrent python files and make them executable:

cp TF_BitTornado/ /usr/local/
chmod +x /usr/local/TF_BitTornado/btphptornado.py
chmod +x /usr/local/TF_BitTornado/btshowmetainfo.py

Next you need to edit the config.php file:

vi /var/www/torrentflux/config.php

Near the top you will see various settings. They should look a bit like this:

$cfg["db_type"] = "mysql";
$cfg["db_host"] = "localhost";
$cfg["db_name"] = "torrentflux";
$cfg["db_user"] = "tf";
$cfg["db_pass"] = "MyPassword";

$cfg["path"] = "/samba_share/downloads/";
$cfg["btphpbin"] = "/usr/local/TF_BitTornado/btphptornado.py";

$cfg["btshowmetainfo"] = "/usr/local/TF_BitTornado/btshowmetainfo.py";

There are other options here, such as port numbers you might wish to change and they are all fairly obvious. Save and quit the file, then navigate to http://ipaddress/torrentflux with one of your other computers. Hopefully, you will be confronted with the login screen. Note that the username and password you enter here will be saved as the super-user.

If you've used BitTorrent, the TorrentFlux client is pretty self-explanatory. But if you need help, jump on over to the TorrentFlux Forum.

That wraps it up for Part 2. In the next and final installment, we'll add the ability to allocate bandwidth between BitTorrent and other Internet activities, and check out the file serving performance of what we've created.

More NAS

Wi-Fi System Tools
Check out our Wi-Fi System Charts, Ranker and Finder!

Support Us!

If you like what we do and want to thank us, just buy something on Amazon. We'll get a small commission on anything you buy. Thanks!

Over In The Forums

Hello, I'm seeking advise on making sure a new NAS I will be installing and my soon to be home security camera and home network are secure.I would lik...
Hello,After many hours spent researching the issue, I still have not been able to properly configure my router. CenturyLink provided a username and pa...
Hi,I was able to use my tunnelbear account to setup the openvpn client, it connects ok, bit non of the device's traffix is going through that tunnel.h...
All, i have an AC88UAbout a year and a half ago i got this router brand new. First thing out of the box i flashed merlin.It worked well for a short pe...
The past few updates I've noticed that my ISPs IPv6 DNS address is still getting passed to my devices even with get DNS automatically turned off under...

Don't Miss These

  • 1
  • 2
  • 3