mini_banner
Showing posts with label utorrent. Show all posts
Showing posts with label utorrent. Show all posts

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


Download uTorrent
wget http://download.utorrent.com/1.7.2/utorrent.exe

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:
#!/bin/sh

cd ~/

if [ "$1" != "" ]; then
var="`echo $1 | sed 's/\//\\\/g'`"
var="Z:${var}"
wine .utorrent "$var"
else
wine .utorrent
fi
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