Utorrent in Ubuntu with Firefox support

1. Install Wine:
To get latest version add Wine’s repositories to your source list:
sudo wget https://www.lowvoice.nl/ -O /etc/apt/sources.list.d/winehq.list

Add the repository key:
wget -q https://www.lowvoice.nl/ -O- | sudo apt-key add –

Update apt-get:
sudo apt-get update

Install Wine:
sudo apt-get install wine

Utorrent2. Download utorrent:
sudo wget -O ~/.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:

#!/bin/sh
cd ~/
if [ "$1" != "" ]; then
var="`echo $1 | sed 's////g'`"
var="Z:${var}"
wine .utorrent "$var"
else
wine.utorrent
fi

Then save it & close gedit.

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

3. 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.

Original manual is available here.

SHARE:
nv-author-image

Stefan Durand

My name is Stefan, I'm the admin of LinuxScrew. I am a full-time Linux/Unix sysadmin, a hobby Python programmer, and a part-time blogger. I post useful guides, tips, and tutorials on common Linux and Programming issues. Feel free to reach out in the comment section.

2 thoughts on “Utorrent in Ubuntu with Firefox support”

  1. Didn’t work for me in ubuntu 9.10 so I had to change the script a bit:
    Changed line 4 from:
    var=”`echo $1 | sed ‘s////g’`”
    to:
    var=”`echo $1 | sed ‘s%/%\\\\%g’`”

Leave a Reply

Your email address will not be published. Required fields are marked *