Control and Grab Your Torrents From Anywhere with TorrentFlux
Posted by Kevin Purdy at 2:00 AM on April 19, 2008

You're at a friends house, extolling the virtues of your latest TV obsession or music kick, and you can't wait to get them into it as well. Usually, this conversation ends with a promise of burned CDs—but why not offer them what you've already grabbed from BitTorrent, or give them a user name and password to get what you're about to start downloading? TorrentFlux, a free, open-source, server-based BitTorrent manager, can do all those things. If you've got a Windows or Linux computer you keep on most of the time, a home server, or even hosted space, you can take control of your downloads. Follow through the jump for a tutorial on getting started with TorrentFlux.
Windows Users: Install WAMP
Windows users who have undertaken any one of web serving projects should be familiar with WAMP, the all-in-one package that sets up the Apache web server, a mySQL database and PHP functionality. WAMP's been updated since we last linked to it, but the easy setup remains. Follow the first two in this step-by-step guide exactly, but create a database named "torrentflux" at the third step. Grab a copy of the stable Windows release, unzip it and open the file named "torrentflux.sql" with Notepad or another editor, and copy all the text inside to your clipboard. Head back to phpMyAdmin, click the "SQL" tab, then enter the copied text and hit go. A few more file shifts, and we'll have TorrentFlux up and running.
Set up TorrentFlux
Create a new directory somewhere you have access—I made a folder named "tfdownloads" right at my hard drive's base c:\ section—and right-click on it. You're going to give full control of the folder to administrators and users, so make sure it's not somewhere you also place sensitive files. Inside the TorrentFlux folder, unzip the "binaries" file, then copy all of the resulting folder's files inside your WAMP folder—I like to make a new "torrentflux" folder inside the "bins" directory and paste them all inside. Now copy all the files inside the "html" folder, create a "torrentflux" directory in your published documents folder ("www" inside the wamp folder, in most cases), and paste all those files in there. Now open up the "config.inc.php" file you just pasted with a text editor.
At the line starting with $cfg["db_user"], fill in the username (root) and password you gave your database. Scroll down and change "C:/binaries" to wherever you stashed the binaries folder (making sure to use forward-slashes), and
change the downloads directory to the folder you enabled earlier (again, using forward-slashes).
Once that's set up, head to localhost/torrentflux in a browser, and you'll be prompted twice for a username and password. Whatever you put in will be what protects your files from peering eyes, so choose something secure. Now you're in, and you can start poking around.

Starting a download is as easy as pasting a link in the "URL" field and hitting the green "Start" button—unfortunately, the stable Windows version lacks the ability to individually throttle torrents, but you can set a general upload cap (which usually equates to downstream traffic) in the config file. You can can change the themed skin of the page, set up user accounts for friends, see your server stats and hit "directory list" to see your collected files, but you can't download them—not yet, anyways.
If you're feeling hacker-ish and want to code download links yourself, you can take ,one forum member's suggestions and run with them, but I've put together a single file replacement that should enable direct downloads:
dir.php replacement
Simply grab that file and drop it into the folder where you stashed TorrentFlux's web files (\wamp\www\torrentflux, most likely). You should now see download links in the right-hand columns for every file, finished or not.
Installing TorrentFlux in Linux
TorrentFlux is one of the few cross-platform apps you'll find that's easier, and more advanced, in its Linux installation than Windows. If you want to set up a system with full file-sharing (Samba), we've previously posted a guide to creating an $80 file server that features TorrentFlux. Otherwise, the steps are very similar to the Windows installation, with a few command-line differences:- Installing LAMP: This will vary by distribution a bit, but the basics of setting up Apache, mySQL and PHP are covered in this HowtoForge guide for Ubuntu.
- Installing phpMyAdmin: Your repository should have an auto-setup package for it, and changing passwords is the same as with Windows.
- Setting up TorrentFlux: If your distribution has a package, all the better. If not, grab the latest version and follow the installation instructions included—though they should be the same as Windows.
- That's it: Direct downloads, per-file throttling and other extras are enabled by default in the latest Linux packages.
Open it up
Finally, to make your torrents controllable and accessible from the big world out there, you'll need to open up a port for web access and find a way to get to it. Luckily, Gina's written up great guides to getting past your router/firewall and giving it a constant home with DynDNS. Follow those guides for the Apache module, and you'll be sharing videos, tunes, and other gear with friends in no time.Like anything about TorrentFlux I didn't mention? Found an easier way to make your files accessible from outside your home network? Share your thoughts, takes, and questions in the comments.
Kevin Purdy, associate editor at Lifehacker, is psyched about starting torrent downloads from the line at the coffee shop. His weekly feature, Open Sourcery, appears every Saturday on Lifehacker AU.

Comments (AU Comments · US Comments)
adam
Posted April 27, 2008 7:00 PM
Had this working on teeny tiny Geode Dataevolution box for the past 5 months, and it's way cool.
keki
Posted 3:09 AM 19/4/08
dsadsad
keki
FoolsRun
Posted 3:09 AM 19/4/08
I actually prefer Clutch, a web-based front-end for the superb Transmission BitTorrent client (Mac and Linux only). I run a headless Ubuntu machine at home and Clutch is a really simple and easy way to add/control torrents both from inside my network (without having to leave my laptop on/open) and from remote locations.
FoolsRun
vega480
Posted 3:04 AM 19/4/08
there are quite a few good hosts out there. here is another flavor of torrentflux [tf-b4rt.berlios.de] I worked with someone who knows the creator of TorrentFlux, but he has stopped work on it and it has been passed on to another. the site linked here adds a bunch of new fetaures that the current TF does not have. both are pretty muched stalled at the moment for updates.
vega480
Kevin Purdy
Posted 2:58 AM 19/4/08
@All: Re: uTorrent, it's obviously a great tool for Windows users, but I tried to point out a server option that allows for downloads and can work on Windows ,Linux, or, well, a web server.
Kevin Purdy
Kevin Purdy
Posted 2:57 AM 19/4/08
@eyeRmonkey: Good point re: server hosts, and I wish I'd thought to mention a few? Know any that would work well?
Kevin Purdy
DigitalNoise
Posted 2:55 AM 19/4/08
I've used the remote functions of uTorrent before, but there are some issues with it - namely it seems to totally lock up my machine if I access the program more than twice remotely.
Not sure if it's just my machine, but I don't think so - I've installed in on all three of them on the network at home, and all of them have the same issue.
The children over at the uTorrent support forum are pretty much worthless when it comes to asking questions - they'd rather flame and ban you then actually help.
DigitalNoise
dangermoose
Posted 2:53 AM 19/4/08
I use this all the time... The website works on my N95 so I can check the status of my downloads from anywhere - even starting and stopping them remotely. You can probably add torrents from there too but I think thats just a bit too much hard work for me.
My Girlfriend likes it too because she can add things she likes (gossip girl, DH etc.) and they will be sat at mine for the next time she comes over. She doesn't know or care what a torrent is, I've just shown her where to look and how to do it. She now thinks that things download in a few minutes, oh well...
dangermoose
eyeRmonkey
Posted 2:43 AM 19/4/08
I'm pretty sure uTorrent and others have options to just give a web-based display for controlling your torrents. It's MUCH easier than TorrentFlux.
I have been trying to get TorrentFlux working on a an external server for a while. I tried on [www.nearlyfreespeech.net] and [www.godaddy.com] but there were restrictions on both that didn't allow me to get the whole thing working.
If you search around, there are certain hosts out there that are specifically designed to host a TorrentFlux installation for you. The obvious benefit of this is that a server generally has a much faster connection that your home computer, and you can just download the completed torrent once it's done.
eyeRmonkey
bjm2q
Posted 3:36 AM 19/4/08
I've been using TorrentFlux on my Ubuntu 7.10 desktop for almost half a year now. I haven't had a single issue with it and it works very well!
bjm2q
keki
Posted 3:23 AM 19/4/08
alma
keki
guibom
Posted 4:43 AM 19/4/08
It usually seems that download servers like TorrentFlux like things that I need, like DHT, Encryption, Bandwidth control per torrent, etc.
So I ended up using the web client of uTorrent (that works nicely with Wine btw). When I need a bit more control over uTorrent, I just VNC into the machine.
I'll check out the other options people mentioned here.
guibom
rkhwaja
Posted 4:15 AM 19/4/08
I'd like to put in a plug for BTG [btg.berlios.de] The best feature of BTG is that it will call a script when it's finished downloading (or seeding or whatever). I use this for automatically transcoding video downloads for my n800, for instance.
It's an excellent for a headless linux box and it's just appeared on the ubuntu repositories so you don't have to cobble it together from source anymore :)
rkhwaja
ollie
Posted 5:31 AM 19/4/08
While TorrentFlux is great for a home server, I see absolutely no need to install LAMP and run an apache server in a desktop computer only to control a torrent application. Talk about overkill.
Besides the windows-only uTorrent, both Azureus and Deluge -- cross-platform Lin/Win/Mac -- have plugins for web interface control. I can vouch for the one on Azureus 2.5. It's very, very good. Fast, well-designed, allows you to pretty much do anything, including tweak the app's settings and speeds, download by url, via torrent file, and much more.
ollie
rschwarz_jr
Posted 5:29 AM 19/4/08
I have been using TorrentFlux for a year now and it has been wonderful. I have it setup on a 1Tb linux server at home and I control it from work.
Since there hasn't been much development I switched to Torrentflux-b4rt. [tf-b4rt.berlios.de]
It is an updated version of Torrentflux.
rschwarz_jr
DJWeezy
Posted 5:26 AM 19/4/08
screen+rtorrent+ssh= much better than torrentflux
DJWeezy
jadixon
Posted 5:19 AM 19/4/08
I typically just RDP to my machine and access uTorrent that way. I find it much easier than setting up TorrentFlux or even remote access to uTorrent. But I suppose if you want to give others the ability to access your torrents, but not the ability to log onto your machine, TorrentFlux seems like a good alternative.
jadixon
GrayBird
Posted 5:15 AM 19/4/08
@Kevin Purdy: from the uTorrent website:"[made]For Wine, Windows 95 (Winsock2), 98/ME, NT/2000, XP, 2003, and Vista."
uTorrent works flawlessly in wine, and is a pretty decent option for linux users as well. But I guess a native option is a good thing.
GrayBird
keyz
Posted 4:57 AM 19/4/08
@keki: thanks for contributing more of your immature, monkey-like keyboard bashing. I'd flag you if there was a function here to do that.
keyz
nef
Posted 6:07 AM 19/4/08
I use to use torrentflux on fiest fawn. It was too slow so now I use deluge with a web based admin. I still have it installed on fiesty fawn. Its great for people who want to start dling something and dont mind waiting a bit longer for it to finish.
nef
iwekani
Posted 5:49 AM 19/4/08
What about security? Can you encrypt your traffic in Torrent Flux?
iwekani
Jungleboy
Posted 2:47 AM 19/4/08
There is also another Torrentflux version that has more features: Torrentflux-b4rt.
It has several improvements over the standard Torrentflux. My favorites:
Supports multiple internet transfer protocols: torrents, newsgroups and wget for http downloads.
Extensive transfer statistics and logging
Integrated Filemanager - explore the filesystem and carry out common tasks such as decompressing archives, copying/moving files/directories, streaming media using VLC and more
AJAX updates for realtime info with minimal bandwidth
Screenshot:
[tf-b4rt.berlios.de]
I've been using this for some time now and i really like it.
Jungleboy
Bobly
Posted 6:58 AM 19/4/08
+1 for TF-B4rt however one quite important thing:
"home server, or even hosted space, you"
It is HIGHLY likely that your web host will not give you shell access to your online storage, and in the case of the host being a dedicated/private server then I would suggest you read the ToS carefully as many frown upon P2P.
Bobly
Cache22
Posted 7:43 AM 19/4/08
@DJWeezy: I agree, I initially ran TorrentFlux on my Debian Etch machine, but after trying rtorrent for a short time I never looked back. Anyone that is used to Linux conf files will have no trouble getting it setup (customize default download location, watch folder for new torrent files, etc) ... and the hotkeys to navigate are simple to learn and remember. Since it is all text based, the interface is very fast for remote connections over SSH.
Cache22
JoeyTheHobo
Posted 7:13 AM 19/4/08
In the last week I finally started using the uTorrent's (^awesome) WebUI. It is sleek, fast, and lets me do most of the functions I can do in person, only from afar. Setting up is a cinch and if you're already using uTorrent as your downloader of choice, then I would heartily recommend this over an outside app.
JoeyTheHobo
Papa Midnight
Posted 8:51 AM 19/4/08
The only problem is Python sucks CPU time like a hungry baby when TorrentFlux is running (yes that applies to b4rt as well).
Papa Midnight
prosonik
Posted 10:30 AM 19/4/08
+ deluge Web plugin. I have been using deluge for about 9 months now, recently with my mythbox 2.0, I've switched to it for my .torrent needs. I love its simple web interface and greasemonkey script, which makes adding .torrents a snap. The only thing it is missing is scripting ability upon completion of download. However, if MIRO was to add a web interface and scripting-upon-downloading, it really would be the perfect .torrent downloader for my mythbox needs..
prosonik
masterpilot
Posted 2:19 AM 21/4/08
Escape Hosting is a good host. [escapehosting.com]
masterpilot