Skip navigation.

Mr Green's house of joints.

Enter with THC in blood.

Posts tagged with "Ubuntu"

Open torrent files from browser with uTorrent.

http://www.ubuntuforums.org/showpost.php?p=1421017&postcount=11

From the post:

Yes, it is possible launch the torrent automatically. You need a special script.

Steps to get it:
1. Open a terminal
2. Type
Code:

sudo gedit /usr/bin/utorrent


3. Paste the following text
Code:

#!/bin/sh

cd ~/.wine/drive_c/Program\ Files/utorrent
if [ "$1" != "" ]; then
var="`echo $1 | sed 's/\//\\\/g'`"
var="Z:${var}"
wine utorrent.exe "$var"
else
wine utorrent.exe
fi


Modify the path to the utorrent directory where needed
4. Save and close Gedit
5. Type
Code:

sudo chmod a+x /usr/bin/utorrent


You can now launch utorrent from anywhere by typing 'utorrent' (no .exe)
To open .torrents automatically from firefox set the utorrent file as the default program.



Ofcourse it also works with Opera.

Windows reinstall messes up grub.

,

Last night I reinstalled Windows to make it a mean, lean gaming machine. And that's what it looks like it's gonna be. A major advantage with using Linux for all your non-gaming needs is that you don't need to install all sorts of crap on your Wintendo partition. That's something to think about for you die hard gamers. Reboot in thirty seconds is a nice thing!

The only thing installed on my Wintendo now is drivers for the Radeon x800 Pro card and the Soundblaster Live soundcard. I also installed the latest version of DirectX and the game I'll be playing 98% of the time; Counter Strike:Source and Steam. Now all I need to do to is tweak Windows a bit.

Of course the Windows installation messed up the grub bootloader and now I can't access my precious Ubuntu Linux. Now I need a way of getting GRUB back, as I do not plan to use Windows until Dapper is released and I'm not about to reinstall Ubuntu.

There is a howto at the wiki so I'll check out that when I get home from work.

Recovering Ubuntu after installing Windows


PS! As opposed to installing Ubuntu, where all the hardware works out of the box, Windows did not have drivers for the Soundblaster Live 5.1 soundcard :D

A word of advice:

Do not use the Super Grub Disk as it doesn't work, at least it did not work for me.

When using the Live CD approach, DO NOT setup grub on (hd0,1) or whatever is behind the comma for you. USE "setup (hdo)" instead.

This will reinstall grub on your MBR which is what you want, I tried the hd0,1 approach first with no luck and that made sure that the linux OS could not be booted when running setup (hd0) afterwards. I guess it installed the grub boot files where the linux kernel were supposed to boot from.


So to sum it all up, this is what I do(Overwrites MBR):

Boot the livecd.
Start a terminal.

sudo -i
grub
find /boot/grub/stage1 // Will print something like (hd0,1)
root (hd0,1)
setup (hd0)
quit



Reboot computer.

Now your old grub menu should be there.
November 2009
M T W T F S S
October 2009December 2009
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30