rTorrent and wTorrent on OSX

In what seems to be a never ending quest to use every BitTorrent client ever written I’ve made the transition to using rTorrent. I run it on my HTPC so that Podcasts and TV shows are right there to watch. However, because rTorrent can be a pain to get working and since it’s much friendlier to use with a web interface I’m providing this simple guide to get it working on OSX.

It’s possible to compile from source, but the easiest solutions is to install it from MacPorts, this will take care off all the dependencies for you. Just install MacPorts and follow the steps described to add it to your PATH. In a terminal enter:

port install rtorrent-devel +xmlrpc

This will install the latest available port with xmlrpc support (explained later). Now that you have this great console BT client installed you can configure it to do many useful things. Setup watch directories to look for new torrents, configure it to move or run scripts when a transfer completes, AND best of all setup a pretty web interface so you don’t have to control it with ’screen’.

Download the latest wTorrent source from here, and follow the setup guide with a few minor changes for OSX:

Instead of installing xmlrpc-c from source, you can install it from MacPorts:

port install xmlrpc-c

Ignore everything about lighttpd, its easier to just use Apache which is already built into OSX, so follow the ‘Using mod_scgi for apache’ steps. Install mod_scgi as directed, but before you go any further we need to modify Apache so that it will properly load the module. The OSX Apache binary is compiled with PPC, PPC64, x86, and x64 support and this prevents mod_scgi from loading at startup. To fix this, issue the following commands:

cd /usr/sbin

sudo mv ./httpd ./httpd.fat

file ./httpd.fat

Here, you can see that this ‘fat’ binary has 4 supported architectures. To fix that we liposuction out that ‘fat’.

sudo lipo ./httpd.fat -thin i386 -output ./httpd.i386

sudo ln -s ./httpd.i386 ./httpd

file ./httpd.i386

Now, you can see that the binary has been stripped down to the x86 architecture. Enable OSX’s ‘Web Sharing’ and Apache and mod_scgi will work fine. Continue the steps in the wTorrent install guide and you will soon have a sexy web interface to control your transfers remotely.

wTorrent doesn’t have as many features as Torrentflux-b4rt, but it backed by the very powerful rTorrent, which makes up for what it lacks. Plus wTorrent is under steady development so new features are coming all the time.


Details