Saturday, November 21, 2009

96th Post.. Nearing a Century... :)

Hi All,

I never expected that I will cross 100 - now is it fast or this slow??? U have the answers....

Ok let me make this special enough... Lets talk about some security issues....

Topic: Pidgin - with Purple

1. Never ever save your password for any a/c / protocol while you are using Pidgin - before you log in.

2. Please type your password each time - so that you may not have to be hacked..

The Reason:

1. Have you all ever checked - this file - under your home directory - enable to view hidden files and then go to this path - /.purple/
[So if your username is "kitty" - then go to /home/kitty/.purple/ ]

2. Issue this command - from your terminal - "gedit accounts.xml"

3. Read it properly - and you will find your password - for each and every a/c you are now logged into.

A security breach...!!!

Pidgin version I am referring to is - 2.4 and later.

Beware...

Do mail me in - about this blog... What you like and what you dont...I will try to improve with time... :)

Take care all,
Ananth Gouri

Wednesday, November 11, 2009

Mtools

Hi All,

This post explains how to rename a FAT32 label of your mp3 player or a USB/Flash drive.

Note that: You are doing this at your own risk and this blog is not related in any terms to a improbable damage.

Open Synaptic and install mtools.

1. Say your flash drive is at /dev/sdb1
2. You have given it a label as Ananth
3. You now want to change it to Lenny-Ananth

You can do these in 2 ways. One in using the UI based Gparted tool.

Second is this console method:

1. Before proceeding further from this step - please close all the drives, folders and apps and music and et al that is being accessed by the disk and finally umount[un-mount] the drive.

2. Open a terminal and type this command. You may have to change the device according to your device mounted. Command : sudo mlabel -i /dev/sdb1 -s ::

3. The command in step 2 should reply you back with this output : Volume label is Ananth

4. This command now changes your label: sudo mlabel -i /dev/sdb1 ::Lenny-Ananth

5. Here above step 3 and 4 commands are of the form: sudo mlabel -i device_drive -s :: and sudo mlabel -i device_drive :: new_label

Finally visit this below link for much more info and also in detail... Mine was only a high level explanation....

Change Fat32 Label

PS: In my lenny, I had to remove my usb cable of my hard disk and re-insert to make it work completely. I did not get the changed label name in the terminal when I checked it.

Hope you all like this,
Ananth Gouri

Added a 'Subscribe Via Email' Option

Hi All,

Also added a subscribe via email option to my blog..

So now - you would have 2 options.

1. To read all the RSS feeds in the Google Reader.
2. To get the post details to your email - id directly.

Let me know once you use them and do comment / criticize.

Thanks,
Ananth Gouri

Added a RSS feed...

Hey All,

I just now added a RSS feed to my blog...

So now you can keep track of my blog in your mails and you need not visit my blog regularly for my irregular blog posts these days....

Happy subscribing....

Thanks,
Ananth Gouri

Tuesday, November 10, 2009

Grub Commands for restoring Grub

Hi All,

This post tells you how to install Grub, a.k.a Grand Unified Boot Loader, using the basic so called Grub commands[common man terminologies :)]

Points to Ponder:

1. Grub gets installed on usually by default on the MBR [master boot record] , or on any other partition as a matter of fact.
2. hda - This is called the MBR of a hdd [hard disk drive/device]
3. "h"da - the older hard disks with the IDE cables
4. "s"da - the newer serial ata hard disk.

Say you had installed - Karmic Koala [code name of Ubuntu 9.10 released on Oct 29th, 09]
On Oct 30th you installed the unsupported Windows XP. XP would erase your MBR.

Note that only your MBR is destroyed and your Ubuntu 9.10 setup is perfectly intact.

To restore GRUB of a single / partition Ubuntu 9.10 - installed on /dev/hda2.

1. Put any Live Linux CD. I would prefer simpler ones like Knoppix, DSL, System Rescue CD, Puppy Linux or any live cd including Ubuntu 9.10.
2. Open a terminal as root or being sudo to konsole.
3. cd to /boot/grub folder
4. Enter "grub"
5. This step 4 will open a prompt with "*grub>"
6. root (hd0,1) --- It is zero and not Oh [character O]
7. setup (hd0) --- It is zero and not Oh [character O]

Things to re-ponder:

1. Since it is hda - yours is an IDE based harddisk. Be careful - this plays differently in different distros. Best is to check your /dev/ folder.

2. Above step 6: It is "hd0,1" --- here since you have installed the GRUB to your MBR - in the maths terms of GRUB - a "hd'a'" is equivalent to "hd'0'"
[If it is hdb then it is hd1 ---> a=0,b=1...]

3. Above step 6: Since I had told earlier that the Ubuntu is installed as a single / partition in /dev/hda2 --- here since it is 2 - Grub terms it to a "1"
[If it is /dev/hda4 then it is 4-1=3, here 1=0,2=1 and etc]

4. In step 7 above - the same 2nd point of re-ponder works for the setup command. :)

Hope this is in detail. There is one more method of restoring the GRUB without using these commands which I will post it some time later.

Take care,
Ananth Gouri