24.1.10

How to Format a Hard Drive in Linux

When you format a computer hard drive, you will lose everything that is on the drive!!! Therefore it is very important to back up anything you might later want!!!

Linux refers to hard drives as either "hdx" or "sdx" where x is a letter, starting with a, which represents the order in which the drive was added to or detected by the computer. The "hd" prefix is used for IDE and PAT), and the "sd" prefix is used for SCSI, SATA, and USB drives. Usually a number is also put at the end of "hdx" or "sdx" to denote different partitions on the same phisical drive, but for the purpose of formatting you only need to know which letter the drive you want to format is.

All actions done with root privileges.
You can check which drives are represented in your system. Do following commands:
ls /dev/hd*
   or (depending on which type of drive)
ls /dev/sd*
Simple output: /dev/hda  /dev/hda1  /dev/hda2  /dev/hdb  /dev/hdb1  /dev/hdd
OR...
# fdisk -l
Output:
Disk /dev/hda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          13      104391   83  Linux
/dev/hda2              14        9726    78019672+  8e  Linux LVM

Disk /dev/hdb: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1               1        4865    39078081   83  Linux
In this examples we can see that the operating system is installed on hda, which has two partitions (hda1 and hda2), and there is one partition on hdb - hdb1.

Firefox' about:conf tricks + Bonus extension

Spell Check Single Line Fields
  • In address bar type: about:config.
  • In the “Filter” field type layout.spellcheckDefault.
  • As you can see it has value of "1". Double click on it and enter 2 as its new value.
  • Restart firefox. 
Address bar as Search BOX
Yes in Mozilla Firefox you can just type your search query in address bar and get the search results displyed to you!
For this:
  • Type about:config in address bar of Mozilla Firefox.
  • Type keyword.URL in filter box.
  • Right-Click on that line and select modify option.
  • Enter any of the following string for corresponding search engine!(Google's Feeling lucky is my favorite, and it's by default)
Google: Feeling Lucky - http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=
Vanilla Google - http://www.google.co.in/search?btnG=Google+Search&q=
Wikipedia -  http://en.wikipedia.org/wiki/Special:Search?fulltext=Search&search=
Wikipedia: Feeling Lucky - http://en.wikipedia.org/wiki/Special:Search?go=Go&search=
Yahoo -  http://search.yahoo.com/search?p=
(Default Firefox en-US keyword URL: http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=)

17.1.10

File permissions in linux - explained

Linux is often used as a multi-user system and it is not desirable that all users have access to all files and directories.
For eg. : On a multi-user environment in a office using a central server running linux , it might be required the accountants documents be shared between employees of the accountants department . At the same time, it might be undesirable and indeed dangerous if anyone having access to the server is able to read/edit them.

Linux has a 3X3 permission system.

There are 3 levels of security for a file :

Read Permission : Permission to read a file (r)
Write Permission : Permission to edit a file (w)
Execute Permission : Permission to execute a file if it is executable (x)

and 3 different levels for a directory :

Enter Permission : Permission to Enter into the Directory
Show Entry : Permission to see the contents of the Directory
Write Entry : Permission to make a new file or subdirectory in the Directory

For granting the above permissions, users are divided into 3 different sets

User : The owner of the file/directory - mostly the person who created the file/directory
Group : Linux users can be divided in groups and one user can be a member of more than one group. A Group denotes all users who are members of group(s) to which the owner of a file/directory belongs
Others : All users not in the group(s) of the owner.

7.1.10

My Firefox Addons Collection



Collection of most useful and powerful addons i've ever used and suggesting to other.
I've tried to collect addons which are helping power users or admins to save time during surfing on the web.
No funky shit, 3d Effects, or whatever design enhancements, except my favorite theme and some additional buttons. Yeap there are some addons which i'm not using but think that they are good and maybe useful for someone else except me.
Collection contains 84 addons and amount is growing while i'm finding more and more usefull extensions.

Link to my firefox collection: Power User Pack

List of some addons in my collection:
- TabMixPlus
- FlashGot
- Firebug
- Download Status Bar
- Enhaced Status Bar
- ScreenGrab
- ImageZoom
- UnMHT
- Hide Menu Bar
- Quick Restart
- Fast Dial
- All In One Sidebar
- Check Places
- NoScript
- TreeStyle Tab
and much more other cool extensions.

Here is how my FF looks: