Lost Password? No account yet? Sign up! Why bother?
  • Narrow screen resolution
  • Wide screen resolution
  • Auto width resolution
  • Increase font size
  • Decrease font size
  • Default font size

SmallNetBuilder - Small Network Help

  
Home arrow NAS arrow NAS How To arrow How To: Convert your Xbox to a NAS - Part 2
How To: Convert your Xbox to a NAS - Part 2 Print E-mail
Kevin Herring   
December 28, 2005

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.



Tags: How To, NAS, Xbox,

Related Articles:

How To: Convert your Xbox to a NAS - Part 3
Slideshow - Synology DS207
How To: Hacking the Linksys NSLU2 - Part 4- Customizing the Flash
How To: Hacking the Linksys NSLU2 - Part 5- Moving to Unslung
How To: Convert your Xbox to a NAS - Part 1
 

Most Read

 
 

Slideshows

Western Digital My Book World Edition II (white bar) Buffalo TeraStation III Linksys WET610N Wireless-N Ethernet Bridge with Dual-Band NETGEAR ReadyNAS Vault Buffalo Linkstation Pro XHL LaCie Network Space More

Over At The Forums

NAS, Gigabit, TCP window size
Hi All, This could be a very stupid question...but... When looking to achieve max transfer speeds to a NAS, can the TCP window size of the *sending*...

Are STBC mandatory for 802.11n?
STBC for those who don't know are "Space Time Block Code" the feature of 802.11n that is supposed to extend the range to infinity and...

Definitely clueless..Please help!
Hey there. First let me tell you that I am really NOT technically savvy. I mean I can follow instructions (I was able to connect...

good laptop card to use w/WZR-HP-G300NH?
Going to order a Buffalo WZR-HP-G300NH wireless router. Was looking for advice on a laptop card (32 bit cardbus card) for my gf's laptop (Inspiron...

Best way to sync NASs directly (not through computers)
I just finished reading Kevin's "How To Back Up Offsite for Free with rsync" article and it was pretty useful *but* it dealt with doing...

Go Shopping with PriceGrabber

Get Email Updates

Enter your email address:

Delivered by FeedBurner once a day

 
 

Ldr:0.00156998634338, Rct:0.00543117523193, Sky:0.00672817230225, Tlink:0.238712072372, TopPG:0.238810062408, GQV:0.238991975784 seconds to load.