This HOWTO will describe how to install uTorrent on your Linux desktop using wine and how to get a more suitable tray icon using alltray
First of all we need to add a new repo (for dapper, but works in edgy):
sudo gedit /etc/apt/sources.list
Add this to the end, save and quit:
Now to install wine and alltray:
sudo apt-get update
sudo apt-get install alltray wine
Now, download and "install" uTorrent 1.6 (or any other (standalone) version):
now, we will create a menu entry for uTorrent:
sudo gedit /usr/share/applications/utorrent.desktop
You should now have an empty file, copy & paste this (and replace the highlighted areas):
[Desktop Entry]
Type=Application
Version=1.0
Encoding=UTF-8
Name=uTorrent
GenericName=BitTorrent Client
Icon=/home/
<username>/.utorrent/utorrenteh8.png
Exec=alltray --icon /home/
<username>/.utorrent/utorrenteh8.png wine /home/
<username>/.utorrent/utorrent.exe
Path=
Terminal=false
MimeType=
Categories=GNOME;Application;Network;
Save the file and close gedit.
To refresh gnome-panel type: killall gnome-panel
uTorrent Should now be found in the Network menu.
Snapshot:

Edit:
Remember to disable to original tray icon in preferences.
SHARE uTORRENT SETTINGS WITH WINDOWS (Courtesy of guguma)
I am using winXP and Ubuntu together. And I really like utorrent. I also do switch between two OS's regularly. So I needed to find a way to resume my torrents in both OS's. I finally acknowledged it. And I am writing this tutorial to the forum because ******* related issues are not that mentioned in the ubuntu forums. I hope it will help.
First of all:
1. I did this with Ubuntu Feisty 7.04. i386 build and Windows XP pro 32-bit.
2. I used utorrent 1.7.2.
3. I like explaining things in detail in order to avoid future misunderstandings. And I will not only explain how but why I am doing things to. So be patient.
FIRST STEP [Installing uTorrent on XP]
1. Download utorrent 1.7.2 from
http://download.utorrent.com/1.7.2/utorrent.exe
2. Execute utorrent.exe and when it prompts you to install it say NO. (If you say yes it will create some shortcuts and registry items which we do not like)
3. Place the executable to a folder of your choice say
D:\Standalones\utorrent\
4. Run utorrent once, and then exit.
5. The folder utorrent will be created at C:\Documents and
Settings\<USERNAME>\Application Data\
6. Copy the contents of this folder in the same place you placed
utorrent.exe (this will somehow change how utorrent behaves. Now it will be more standalone and will not create folders and items in distant places but write anything on the folder where the executable is contained)
7. Create another folder in the folder of the executable called 'torrents'. (We will choose the option to store torrents here this is essential for continuity because when we run utorrent from Linux we will make it look into this folder too, otherwise it will store torrents in Application Data)
8. Run utorrent again. And assign the folder locations for downloaded and finished torrents(choose a win drive because we want both XP and Linux to write the downloads and XP cannot write to the LInux Partitions).
In Options->Preferences->Downloads. And also
go to Options->Preferences->Other and choose your torrent storeage folder as the one we created at step 7.
9. Windows part is finished.
SECOND STEP [Installing and Configuring WINE]
Wine is a windows application layer for Linux systems. It runs windows programs.
1. Get the latest WINE. Open up the terminal and type this to add the repository's key to your system's list of trusted APT keys
Code:
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -
Then add the reposiotry by typing:
Code:
sudo wget http://wine.budgetdedicated.com/apt/....d/feisty.list -O
/etc/apt/sources.list.d/winehq.list
Then update the package database
Code:
sudo apt-get update
And install wine
Code:
sudo apt-get install wine
2. Configuring Wine
Now this is very important. Your drive where utorrent.exe is in and where your download locations are in must be recognized by Wine.
Wine uses symbolic links to assign drive letters. Wine also has a terrible habit of assigning your cdrom devices from D: to where they stop. If you have 2 cdrom devices d: and f: wil be taken. And Z: will be the root filesystem of your linux. So we will not mess with cdrom drive letters and Z:.
First let us make Wine recognize your homefolder. This is important because it can cause crashes in wine.
Code:
sudo ln -s /home/<USERNAME>/ ~/.wine/dosdevices/h:
This will make your home folder H: in Wine. Now we need to make Wine know of your other drive related with utorrent. Let
us call it T:.
Code:
sudo ln -s /<Where yout torrent related drive is mounted in Linux> ~/.wine/dosdevices/T:
Before going to the last part. Let us make sure Wine runs with XP layer. It defaults to Win2000 layer and it causes black backgrounds in utorrent.
This will run the configuration window. If you do not sudo it it will not
save the configuration. Change Windows2000 to XP from there then click apply then OK.
3. Wine configuration is finished
THIRD STEP (Executing utorrent in Linux and configuring it AKA The End)
Now type:
Code:
wine /<Complete path of utorrent.exe>
Again you will probably see the install prompt. Choose No. If you do not see the utorrent window. Look at your tray icons and rightclick on it. Then choose hide/show utorrent. (By the way we will minimize and maximize utorrent like this, otherwise it will cause problems minimizing or maximizing)When utorrent executes. Make your port configurations and so, also choose your unfinished, finished download locations and torrent storage folder. These will the same as the ones you chose in XP with the difference of T: replaced by <Your Drive Letter>:.
ADDENDUM (Writing on ntfs partitions)
If the finished and unfinished download folders are on NTFS partitions you will have to make them writeable. Here is how:
Go to Synaptic Package Manager and search for ntfs-3g. Install it. (This lets you write on NTFS partitions).
Then
Code:
sudo gedit /etc/fstab
On the configuration file replace ''ntfs'' with ''ntfs-3g'' and save the file.
And if everything works perfect. You have achieved your solution.
If you come across any problems post it here. I am still a newbie and I may not be able to assist you with complicated problems. But can lead you to an expert. The only dangerous thing to do on this post is writing on the /etc/fstab. If you are not sure what to do. Ask before applying.
Thanks and good days to all.