Utorrent in Ubuntu with Firefox support

1. Install Wine:
To get latest version add Wine’s repositories to your source list:
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/feisty.list -O /etc/apt/sources.list.d/winehq.list

Add the repository key:
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -

Update apt-get:
sudo apt-get update

Install Wine:
sudo apt-get install wine

Utorrent2. Download utorrent:
sudo wget http://download.utorrent.com/1.7.2/utorrent.exe -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.

 
 
» You might also be interested in the following articles:
FAQ: How to install Flash Player for Firefox in Ubuntu Linux?
Firefox 3 Beta 1 is Ready!
Install Ubuntu packages by clicking html link
Install Firefox 3 in Debian Etch
Simple Firefox optimizations that really matter



» Want to stay up to date? Subscribe to our E-MAIL or RSS feed!

2 Responses to “Utorrent in Ubuntu with Firefox support”


  1. 1 spuck

    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’`”

  2. 2 Astery

    var=”`echo $1 | sed ’s////g’`”
    to:
    var=”`echo /usr/bin | sed ’s/\//\x5C/g’`”
    :_)

Leave a Reply




Friendly Sites:Who is behind Linux Screw?
Aspiring Sysadmin | GeekyBits³ | Bash Cures Cancer | TOTMS
Linux Operating System | Small Linux Deployments | My SysAd Blog
The Danesh Project | ZEPY | Linux config Wiki | Planet Sysadmin
The Sys Admin | {buhay sysad} | a non-geek's linux notes
Linux HOWTOs, Tutorials & Projects with Adam Palmer | LinuxAlt.Com
My name is Artem N. (artiomix AT gmail DOT com) and I'm Linux/Unix, Cisco systems engineer. The main idea of Linux Screw is to share relevant knowledge, skills and observations over The Web. Here you can find a lot of information related to different Linux distributions, FreeBSD, IOS as well as a other Open Source around staff. Read more ››