Wednesday, September 5, 2007

Running uTorrent in Ubuntu

Make sure you have Wine installed before you try to run uTorrent.

To install Wine:
Add Wine's repositories to your source list:
sudo wget -O /etc/apt/sources.list.d/winehq.list

Add the repository key:
wget -q -O- | sudo apt-key add -

Update apt-get:
sudo apt-get update

Install Wine:
sudo apt-get install wine

Download uTorrent

Make uTorrent hidden
mv utorrent.exe .utorrent

To launch uTorrent use the command
wine ~/.utorrent

To get firefox to automatically open uTorrent when clicking on torrent links

sudo gedit /usr/bin/utorrent

Paste the following into the newly opened text file:

cd ~/

if [ "$1" != "" ]; then
var="`echo $1 | sed 's/\//\\\/g'`"
wine .utorrent "$var"
wine .utorrent
save it & close

Make the script you just wrote executable
sudo chmod a+x /usr/bin/utorrent

Now, go into Firefox and download a torrent. Choose "open with" and hit "browse" on the list, and navigate to /usr/bin and choose uTorrent.

To learn a little more about what bittorrenting is, how it works or where to find torrents; check out my guide here
edited by pHreaksYcle


Chris said...

Why in the world would you go to all that trouble just to run a bittorrent client? Azureus is just as good as uTorrent and can be installed with a simple apt-get command. Sure it takes a bit of resources, but if that's the problem, there's always rtorrent. It's a command-line bittorrent program.

redDEAD said...

i agree with you chris, i prefer deluge. but i have to give the people what they want.

PowerofWords said...

Thanks redDEAD. I find that I far prefer uTorrent to any of the others, it's far more elegantly designed.