Thursday, December 18, 2008

How to install uTorrent in Ubuntu with wine

http://news.softpedia.com/news/uTorrent-under-Ubuntu-in-3-Easy-Steps-49037.shtml

sudo apt-get install wine

wget http://download.utorrent.com/1.7.5/utorrent.exe

wine utorrent.exe

http://news.softpedia.com/news/uTorrent-under-Ubuntu-in-3-Easy-Steps-49037.shtml
Step 1 - Install Wine

Open a console and type:

CODE
sudo aptitude install wine

Step 2 - Create uTorrent executable script

CODE
sudo gedit /usr/bin/utorrent

A text editor will open, just paste in the following lines. Remember to leave a blank line after the code below!

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

Save and close. This will create a script in your /usr/bin/ folder. You still need to make this script executable, so type the following command in a console:

CODE
sudo chmod a+x /usr/bin/utorrent

Now create a folder called utorrent in your home directory, then download the latest version (Standalone, NOT the installer) of the uTorrent application from Softpedia and place it in the folder you've just created.

Step 3 - Create Desktop Shortcut

In this final step, we're gonna create a desktop shortcut for the uTorrent script above, so you don't have to type any command at all.

Right click on your desktop and go to "Create Launcher...". On the new launcher window, fill the fields as follows:

Type: Application
Name: uTorrent
Command: wine "/your-home-directory/utorrent/utorrent.exe"
Comment: BitTorrent Client

1 comment:

atlas245 said...

Nice post on web scrapers, simple and too the point :), For simple stuff i use python to get or simplify data, data extraction can be a time consuming process but for larger projects like files, the web, or documents i tried http://www.extractingdata.com/web%20scraper.htm which worked great, they build quick custom screen scrapers, web scrapers, and data parsing programs