Guide Sharing utorrent settings between Windows and Linux

Since I use Windows Vista and Ubuntu on my machine, I wanted to have a torrent client in Ubuntu so that I would be able to continue the downloads that I had started in Windows Vista. Now I could have just used ktorrent, rtorrent, Deluge or any other Linux client and force check the files in the client every time when I boot in the respective OS. Needless to say this is a big pain. In addition, I wanted the torrent clients to share the same stats, so that every time I download/upload in one client, the same stats would be reflected in the other. This is impossible for different clients, so I decided to run utorrent under Wine in Ubuntu.

Here is a guide I have searched and compiled. With this guide you will be able to share the stats between utorrent in Windows XP or Vista and utorrent in Linux without doing anything after it has been set up. So let’s get started.

Step 1: utorrent in Windows
Obviously you should be having utorrent installed and running in Windows. Make sure you have the installation setup file stored somewhere (or you can download it later).

Step 2: Taking Backup
Before we start doing anything, it’s a good idea to backup your settings and stats of utorrent in case you mess up somehow. Although I don’t think there would be any way you could mess it up, but still it’s a precaution for all of you who have a habit of screwing things. :P

For Windows XP:
If you are using Windows XP, this is the folder location.
[Windows partition]/Documents and Settings/Username/Application Data/uTorrent

For Windows Vista:
If you are using Windows Vista, this is the folder location.
[Windows partition]/Users/Username/AppData/Roaming/uTorrent

where Username is your username in Windows.

Copy this utorrent folder somewhere else as a backup.

Step 3: Installing Wine in Linux
Now it’s time to boot into Linux and set everything up. First we will need to install Wine. You can install Wine using the package manager in your respective Linux flavour. In Ubuntu, you can install Wine using the Synaptic Package Manager.

Step 4: Setting up Wine
We have to setup Wine to map the correct drives to the correct drive letters. Before going ahead, make sure all the partitions you want are properly mounted in Linux. Go to the Wine settings in Applications>>Wine>>Settings. Or alternatively you can type the following in the terminal.
Code:
winecfg

You will see a screen like this.
winecfg1.jpg

Select the version of Windows you are using in the drop menu.

Now, don't just add your application yet. We first we will map the drives to the correct drive letters. Select the 'Drives' tab and you will get something like this.
winecfg2.jpg

You will see a list of the partitions you have mounted. We now have to map the drive letter used in Windows to the correct drive in Linux. You can click on 'Autodetect' to map the drives. Autodetect didn't work for me, so I manually edited the path. If some drive letters are missing, you can add them using the 'Add' button. Select the drive letter, and click on browse. Then give the path to the corresponding drive, which would be under /media/your_drive. For example, in my case, Data_1 is D: drive in Windows while Data_2 is E: drive. Leave the C: drive as it is. This is not the actual C: drive Windows partition. It is a virtual Windows drive created by Wine.

Step 5: Installing utorrent in Linux under Wine
After mapping all your drives to the correct drive letter, we have to install utorrent in Linux. Go to the utorrent installation setup file location or download it from the website and save it in an easy location like the desktop. As a precaution, I have used the same version of utorrent on both Windows and Linux. So make sure you are using the same version as well. Go to the path you have the installation file stored and double click it. It should start the setup. If it doesn't start, fire up the terminal and type:
Code:
cd [COLOR="Red"]path_of_installation_file[/COLOR]
where path_of_installation_file is the path where you have saved the utorrent installation .exe file.

If you have downoaded to the desktop, then type
Code:
cd /home/[COLOR="Red"]your_username[/COLOR]/Desktop
where your_username is your username in Linux

Complete the installation like you normally do in Windows. When it asks for the installation path, leave it as C:\Program Files. This will install utorrent to the virtual C: drive created by Wine.

Step 6: Adding utorrent in Wine
Go back to the Wine configuration settings. Under Applications tab, click on 'Add application...'.
winecfg3.jpg

Give the path of utorrent.exe you just installed. The path would be
Code:
/home/[COLOR="Red"]username[/COLOR]/.wine/drive_c/Program Files/utorrent/utorrent.exe
where username is your username in Linux.

Step 7: Creating a Symbolic Link
After installation, start utorrent to make sure it is running. After knowing it is running fine exit the program. We now have to create a ‘symbolic link’ of the utorrent folder in Linux to the utorrent folder in Windows. This is very easy. Just type in the following commands.

Code:
rm -r "/home/[COLOR="Red"]Linux_username[/COLOR]/.wine/drive_c/windows/profiles/[COLOR="Red"]Windows_username[/COLOR]/Application Data/uTorrent"
where Linux_username is your username in Linux and Windows_username is the username you use in Windows.
This command would delete the utorrent folder for the Linux installation. Don't worry, we will replace this in the next command.

For Windows XP:
Code:
ln -s "/media/windows/Documents and Settings/[COLOR="Red"]Windows_username[/COLOR]/Application Data/uTorrent" "/home/[COLOR="Red"]Linux_username[/COLOR]/.wine/drive_c/windows/profiles/[COLOR="Red"]Windows_username[/COLOR]/Application Data/uTorrent"
where Linux_username is your username in Linux and Windows_username is the username you use in Windows.
For Windows Vista:
Code:
ln -s "/media/windows/Users [COLOR="Red"]Windows_username[/COLOR]/AppData/Roaming/uTorrent " "/home/[COLOR="Red"]Linux_username[/COLOR]/.wine/drive_c/windows/profiles/[COLOR="Red"]Windows_username[/COLOR]/Application Data/uTorrent"
where Linux_username is your username in Linux and Windows_username is the username you use in Windows.

This command creates the symbolic link between Windows and Linux utorrent folders. You might be wondering what this symbolic link exactly is? Well, it simply is a file/folder that contains a reference to another file/folder. What this basically means is that, the utorrent in Linux will try to access the settings stored in the utorrent folder in virtual C: drive created by Wine. Now with this symbolic link, we give the reference to the utorrent folder in Windows. So when utorrent under Linux accesses the files, it actually accesses the files of the Windows utorrent folder. I hope that wasn't too confusing. :P

Step 8: Finshing
Reboot your pc. I don’t know if this is necessary, but at first it wasn’t working for me, but after I had done a reboot to Windows and then back to Linux, I was able to see my settings and all torrents with stats in Linux.
Once you reboot, start up utorrent. To start utorrent you can go to Applications>>Wine>>Programs>>utorrent.
You can also type the following in the terminal
Code:
wine /home/[COLOR="Red"]Linux_username[/COLOR]/.wine/drive_c/Program Files/utorrent/utorrent.exe
where Linux_username is your username in Linux
You should be able to see all your settings and the torrents with stats.

One thing I noticed is, you won't be able to share the downloads that are downloaded in the C: drive since the C: in Linux is mapped to the virtual C: and not the actual Windows C: drive. But I guess no one really downloads anything in C: drive. So it is isn't much of a problem.

With this I can start and stop my torrents on either Windows or Linux and be able to maintain the stats. Hope this guide would help you as well.
 
As I mentioned, I wanted to share the stats. i would have been happy using any client, but i wanted to maintain the stats. Also, its easier to start/stop as you like in either OS. this is mainly for those who use both OS frequently and care about stats.
 
This is exactly the solution I was looking for. Now thanks to your post, my system is set up so that I can continue my downloads from Windows while working on Fedora. Thanks a lot.
 
I'm glad you found it useful.

It's been a while since I have used Linux and now that I'm thinking of installing Linux again I'll be using this setup again. :D
 
These instructions have been very useful, they are clear and comprehensive. Thank you for sharing them.

Despite there are valid native alternatives of uTorrent for Linux, I still find uTorrent the best choice, both because I can use it on my Windows and Linux boxes, pausing downloads from one and resuming from the other whenever I need to switch O.S., and because of uTorrent features I could not find in any of the native torrent applications in Linux (e.g. the integrated RSS downloader and the shutdown when downloads complete).

Actually the "shutdown when downloads complete" function doesn't work on Linux; I can live with that, but if there would be a way to make it work there too it would just great.
 
These instructions have been very useful, they are clear and comprehensive. Thank you for sharing them.

Despite there are valid native alternatives of uTorrent for Linux, I still find uTorrent the best choice, both because I can use it on my Windows and Linux boxes, pausing downloads from one and resuming from the other whenever I need to switch O.S., and because of uTorrent features I could not find in any of the native torrent applications in Linux (e.g. the integrated RSS downloader and the shutdown when downloads complete).

Actually the "shutdown when downloads complete" function doesn't work on Linux; I can live with that, but if there would be a way to make it work there too it would just great.
 
Nice tutorial indeed.. :)

I'm thinking of installing Ubuntu Lucid Linux and I'll be using this process to sharing settings between Windows XP and Linux..
 
Back
Top