January 7, 2010

Including Code Snippets In Blogger

Writing code snippets in Blogger is a real task, for which I found the following site extremely useful:


Just copy the code and paste it in the first text area and click Process. Then paste the code from the lower text area into your Blogger post, wherever necessary. :)

Although the code, when pasted, may be maroon in colour, you can change it according to what you like.

Deactivating Password Request For Mounting Windows Partitions In Ubuntu 9.10

Mounting Windows partitions in Ubuntu 9.10 prompts for the administrator password by default, which can be deactivated by following the steps given below:

1. Open the concerned file by typing in the terminal the following command.

varsha@varsha-laptop:~$ sudo gedit /usr/share/polkit-1/actions/org.freedesktop.devicekit.disks.policy

2. In the file, search for the line (most probably 34th):


3. Replace the above line with the following line:


4. Save and close the file.

Next time you mount the partitions, they would mount automatically without prompting for the password.

[Source: Web Upd8- Deactivate Password Request For Mounting Partitions In Ubuntu Karmic]