Thursday, October 28, 2010

Fedora Core DNS Server using BIND


Setting and configure BIND as and Domain Name Sever (DNS) on Fedora Core Linux machine.
1. DNS (domain name system)
Correspondence of IP address and hostname
The /etc/hosts file example
# IP Address Hostname Alias
127.0.0.1 localhost
192.168.42.1 apple www
192.168.42.2 desk desk.domain.cxm

Installation of BIND

BIND (Berkeley Internet Name Domain)
[root@tenouk ~]# mount /mnt/cdrom
[root@tenouk ~]# cd /mnt/cdrom/RedHat/RPMS
[root@tenouk ~]# rpm –Uhv bind-9.2.0-8.i386.rpm
[root@tenouk ~]# rpm –Uhv caching-nameserver-7.2.1.noarch.rpm
[root@tenouk ~]# cd /
[root@tenouk ~]# umount /dev/cdrom

Setting of client and server

edit the resolf.conf file to enable the client or server to find the DSN server.
[root@tenouk ~]# vi /etc/resolv.conf
search kimura.com
nameserver 10.10.0.235
Definition of IP address of DNS server which client uses

Setting the DNS server.

[root@tenouk ~]# vi /etc/named.conf
// generated by named-bootconf.pl
options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
// The following code is added
zone "kimura.com" IN {
type master;
file "named.kimura.com";
allow-update { none; };
};
zone "0.10.10.in-addr.arpa" IN {
type master;
file "named.10.10.0";
allow-update { none; };
};
include "/etc/rndc.key";
[root@tenouk ~]# cp /var/named/named.local /var/named/named.10.10.0
[root@tenouk ~]# vi /var/named/named.10.10.0
$TTL 86400
@ IN SOA jmtist20.kimura.com. root.jmtist20.kimura.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS jmtist20.kimura.com.
235 IN PTR jmtist20.kimura.com.
236 IN PTR compaq.kimura.com.
[root@tenouk ~]# cp /var/named/named.local /var/named/named.kimura.com
[root@tenouk ~]# vi /var/named/named.kimura.com
$TTL 86400
@ IN SOA jmtist20.kimura.com. root.jmtist20.kimura.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS jmtist20.kimura.com
IN MX 10 jmtist20.kimura.com
jmtist20 IN A 10.10.0.235
compaq IN A 10.10.0.236

Start BIND service

Start, stop and restart the named service.
[root@tenouk ~]# /etc/rc.d/init.d/named start
[root@tenouk ~]# /etc/rc.d/init.d/named stop
[root@tenouk ~]# /etc/rc.d/init.d/named restart
or
[root@tenouk ~]# /sbin/service named start
[root@tenouk ~]# /sbin/service named stop
[root@tenouk ~]# /sbin/service named restart
Setting automatic start for named on runlavel 3 and runlevel 5..
[root@tenouk ~]# /sbin/chkconfig --level 35 named on
Confirmation of automatic start.
[root@tenouk ~]# /sbin/chkconfig --list named

Confirmation of bind.

Use the command example below to test your DNS server functionality.
[root@tenouk ~]# ping 10.10.0.235
[root@tenouk ~]# ping 10.10.0.236
[root@tenouk ~]# ping jmtist20
[root@tenouk ~]# ping compaq
[root@tenouk ~]# ping jmtist20.kimura.com
[root@tenouk ~]# ping compaq.kimura.com
[root@tenouk ~]# nslookup jmtist20.kimura.com
[root@tenouk ~]# nslookup compaq.kimura.com
[root@tenouk ~]# nslookup 10.10.0.235
[root@tenouk ~]# nslookup 10.10.0.236
Note:
SOA - Start of authority
NS - Name server
A - Address record
PTR - Pointer record
MX - Mail exchanger

Change Linux Partition System ID on Linux Fedora system


The step by step below show the use of fdisk tool to change Linux partition system id or Linux system type id to Windows partitiontype Id. The example below show that the Linux hard disk partition or Linux default partition type Id 83 System Linux, change to Windows partition type Id c System W95 FAT32 (LBA)
!. Make sure that you have empty hard Disk Drive to work with. T he procedure below may remove/delete all data inside the disk.
2. Invoke the fdisk and point to the hard disk drive that need to change the partition type id. The example below show the /dev/sdb is my hard disk, change this line to fit your system configuration.
[root@fedora ~]# fdisk /dev/sdb
The number of cylinders for this disk is set to 38154.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)



3. Hit 'm' key and then hit Enter key to get fdisk help to display.
Command (m for help): m
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)



4. Hit 'p' key and then hit Enter key to get fdisk to display partition table.
Command (m for help): p
Disk /dev/sdb: 40.0 GB, 40007761920 bytes
64 heads, 32 sectors/track, 38154 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Disk identifier: 0x00b4c6f2



Device Boot Start End Blocks Id System
/dev/sdb1 1 38154 39069680 83 Linux



5. Hit 'l' key and then hit Enter key to get fdisk to display partition type.
Command (m for help): l



0 Empty 1e Hidden W95 FAT1 80 Old Minix be Solaris boot
1 FAT12 24 NEC DOS 81 Minix / old Lin bf Solaris
2 XENIX root 39 Plan 9 82 Linux swap / So c1 DRDOS/sec (FAT-
3 XENIX usr 3c PartitionMagic 83 Linux c4 DRDOS/sec (FAT-
4 FAT16 <32M 40 Venix 80286 84 OS/2 hidden C: c6 DRDOS/sec (FAT-
5 Extended 41 PPC PReP Boot 85 Linux extended c7 Syrinx
6 FAT16 42 SFS 86 NTFS volume set da Non-FS data
7 HPFS/NTFS 4d QNX4.x 87 NTFS volume set db CP/M / CTOS / .
8 AIX 4e QNX4.x 2nd part 88 Linux plaintext de Dell Utility
9 AIX bootable 4f QNX4.x 3rd part 8e Linux LVM df BootIt
a OS/2 Boot Manag 50 OnTrack DM 93 Amoeba e1 DOS access
b W95 FAT32 51 OnTrack DM6 Aux 94 Amoeba BBT e3 DOS R/O
c W95 FAT32 (LBA) 52 CP/M 9f BSD/OS e4 SpeedStor
e W95 FAT16 (LBA) 53 OnTrack DM6 Aux a0 IBM Thinkpad hi eb BeOS fs
f W95 Ext'd (LBA) 54 OnTrackDM6 a5 FreeBSD ee EFI GPT
10 OPUS 55 EZ-Drive a6 OpenBSD ef EFI (FAT-12/16/
11 Hidden FAT12 56 Golden Bow a7 NeXTSTEP f0 Linux/PA-RISC b
12 Compaq diagnost 5c Priam Edisk a8 Darwin UFS f1 SpeedStor
14 Hidden FAT16 <3 61 SpeedStor a9 NetBSD f4 SpeedStor
16 Hidden FAT16 63 GNU HURD or Sys ab Darwin boot f2 DOS secondary
17 Hidden HPFS/NTF 64 Novell Netware b7 BSDI fs fd Linux raid auto
18 AST SmartSleep 65 Novell Netware b8 BSDI swap fe LANstep
1b Hidden W95 FAT3 70 DiskSecure Mult bb Boot Wizard hid ff BBT
1c Hidden W95 FAT3 75 PC/IX



6. Hit 't' key and then hit Enter key to get fdisk to change the partition system id.
Command (m for help): t
Selected partition 1



7. Hit 'c' key and hit Enter key to get fdisk to changed system type of partition 1 to Id c System W95 FAT32 (LBA).
Hex code (type L to list codes): c
Changed system type of partition 1 to c (W95 FAT32 (LBA))



8. Hit 'w' key and then hit Enter key to get fdisk to write change that we made to partiton table on the hard disk. If you want to cancel all the setting hit 'q' key to quit without saving.
Command (m for help): w
The partition table has been altered!



Calling ioctl() to re-read partition table.
WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
information.
Syncing disks.
[root@fedora ~]#

Verify the changes made to hard disk partition table

Use the fdisk -l /dev/sdb to verify the changes that we made on the hard disk partition table applied.



[root@fedora ~]# fdisk -l /dev/sdb



Disk /dev/sdb: 40.0 GB, 40007761920 bytes
64 heads, 32 sectors/track, 38154 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Disk identifier: 0x00b4c6f2



Device Boot Start End Blocks Id System
/dev/sdb1 1 38154 39069680 c W95 FAT32 (LBA)
[root@fedora ~]#

How to Make and Use External USB Hard Disk on Windows and Linux Fedora

 

How to Make and Use External USB Hard Disk on Windows and Linux Fedora

To make external USB disk or external hard disk portable between Linux and Windows operating system, we need to partition and then formatting the external USB hard disk using vfat filesystem. The step by step command example below show the procedure and command to format the external USB hard disk using vfat filesystem with mkfs command to make USB hard disk can be use on Linux and Windows system.



Step:
1. Log in as root user on your Linux Fedora system or use the su command to execute the command example below.
2. Install and locate the external USB hard disk and the partition that need to format.
3. Make sure no data inside the partition that need to be partitioning and formatted. This partitioning formatting procedure will remove all the data inside that partition.
4. Partitioning the external USB hard disk....



Usually default partition type create under linux system is 83 Linux
[root@fedora ~]# fdisk -l /dev/sdb



Disk /dev/sdb: 40.0 GB, 40007761920 bytes
64 heads, 32 sectors/track, 38154 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Disk identifier: 0x00b4c6f2



Device Boot Start End Blocks Id System
/dev/sdb1 1 38154 39069680 83 Linux
[root@fedora ~]#



5. In order to use the USB hard disk on Windows and Linux you need to change the partition system and ID to Windows partition type ID c System W95 FAT32 (LBA). Follow the link on the step by step article on how to change Linux partition filesystem type from Linux partition ID 83 System Linux to Windows partition type ID c System W95 FAT32 (LBA)



Format external USB hard disk using vfat filesystem.

After change the Linux filesystem type ID, then format the hard disk partition using vfat filesystem in order to make the USB hard disk portable between Linux Fedora and Windows system. The example below show step by step using mkfs command to format the USB hard disk to use on Windows and Linux Fedora operating system.



6. Formatting the external USB hard disk to vfat filesystem. Please note that 4 mkfs command example below show different way using mkfs command to formatting the USB hard disk for vfat file system.



[root@fedora ~]# mkfs -t vfat -v /dev/sdb1
mkfs.vfat 2.11 (12 Mar 2005)
Auto-selecting FAT32 for large filesystem
/dev/sdb1 has 64 heads and 32 sectors per track,
logical sector size is 512,
using 0xf8 media descriptor, with 78139360 sectors;
file system has 2 32-bit FATs and 32 sectors per cluster.
FAT size is 19068 sectors, and provides 2440662 clusters.
Volume ID is 491c040e, no volume label.



or... The mkfs command to format and label the USB hard disk drive partition. The example below show that the USB disk is label as usbdisk, or you can label the disk latter using the e2label command.
[root@fedora ~]# mkfs -t vfat -n usbdisk -v /dev/sdb1
mkfs.vfat 2.11 (12 Mar 2005)
Auto-selecting FAT32 for large filesystem
/dev/sdb1 has 64 heads and 32 sectors per track,
logical sector size is 512,
using 0xf8 media descriptor, with 78139360 sectors;
file system has 2 32-bit FATs and 32 sectors per cluster.
FAT size is 19068 sectors, and provides 2440662 clusters.
Volume ID is 4959f684, volume label usbdisk .



or... Use the mkfs.vfat command as show on the example below to format the USB hard disk to vfat filesystem.



[root@fedora ~]# mkfs.vfat -v /dev/sdb1
mkfs.vfat 2.11 (12 Mar 2005)
Auto-selecting FAT32 for large filesystem
/dev/sdb1 has 64 heads and 32 sectors per track,
logical sector size is 512,
using 0xf8 media descriptor, with 78139360 sectors;
file system has 2 32-bit FATs and 32 sectors per cluster.
FAT size is 19068 sectors, and provides 2440662 clusters.
Volume ID is 491c04cd, no volume label.



or... The mkfs.vfat command to format and label the USB hard disk drive partition. The example below show that the USB disk is label as usbdisk, or you can label the disk latter using the e2label command.



[root@fedora ~]# mkfs.vfat -n usbdisk -v /dev/sdb1
mkfs.vfat 2.11 (12 Mar 2005)
Auto-selecting FAT32 for large filesystem
/dev/sdb1 has 64 heads and 32 sectors per track,
logical sector size is 512,
using 0xf8 media descriptor, with 78139360 sectors;
file system has 2 32-bit FATs and 32 sectors per cluster.
FAT size is 19068 sectors, and provides 2440662 clusters.
Volume ID is 4959f80b, volume label usbdisk .



7. Verify the change made to the external USB hard disk drive.
[root@fedora ~]# fdisk -l /dev/sdb



Disk /dev/sdb: 40.0 GB, 40007761920 bytes
64 heads, 32 sectors/track, 38154 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Disk identifier: 0x00b4c6f2



Device Boot Start End Blocks Id System
/dev/sdb1 1 38154 39069680 c W95 FAT32 (LBA)
Now you can test mount the USB hard disk on Windows system and on Linux fedora system.

Friday, October 22, 2010

Top 5 Best System Monitoring Tools


Top 5 Best System Monitoring Tools




As part of the contest we conducted recently, we got 130 comments from the geeky readers who choose their favorite system monitoring tools.
Based on this data, the top spot goes to..  drum roll please..
Nagios
If you are new to any of the top 5 tools mentioned here, please read the rest of the article to understand more about them.
Top 5 Best Free Network Monitoring Tool
Fig: Favorite System Monitoring Tool Voting Results

1. Nagios – Network Monitoring Software

Nagios won by a huge margin. This is not a suprise to lot of people, as Nagios is hands-down the best monitoring tool.  As you already know, I love Nagios and have been using it for a long time. I have also written several tutorials on Nagios (and many more to come).
  • Author: Ethan Galstad
  • Latest stable release:  3.2
  • License: Open Source. GNU.
  • Read more about Nagios at Wikipedia.
Nagios Core 3 eBook is the only guide you’ll ever need to monitor everything, be proactive, and sleep well.

2. Cacti – Network Monitoring Software

Cacti uses RRDtool for the network graphing solution. Using Caci you can monitor and graph – CPU Load, Network bandwidth utilization, network traffic monitor etc.,
Cacti also supports plugin architecture. Some admins like the powerful graphing feature provided by Cacti, they use both Nagios and Cacti in their environment as the network monitoring tools.

3. Top (and other top variations)


  • Top Command – Few of you have mentioned top command as your favorite monitoring tool
  • ntop (Network Top) – Ntop is a free network monitoring software. ntop displays network usage information in a similar fashion to top command output. You can also create HTML output file (dump) of the network status using ntop.  Apart from the command line, you can also launch the web version of the ntop once you’ve started the ntopd service and visit http://{ip-address}:3000 from browser.
  • htop (interactive process viewer for Linux) – htop is similar to top command with few additional features. The main difference is that you can use mouse to interact with the htop command output.

4. Zabbix

Zabbiz is an open source monitoring solution with a commercial support provided by a company – Zabbix SIA, who primarily develops the software.  Zabbix requires a database to store the monitoring data. You can choose any DB of your choice – MySQL, PostgreSQL, Oracle, or SQLite.
Zabbix has the following three main modules:
  • Server (written in C)
  • Agents (written in C)
  • Frontend (PHP and Javascript)
Additional information about Zabbix:

5. Munin

Munin Network Badwidth Monitoring Platform Using PluginsSimilar to Cacti, Munin uses RRDTool to present the output in a pretty graph via web interface. The primary emphasis of Munin is on the plug and play architecture for it’s plugin. There are lot of plugins available for Munin, which will just work out-of-the box without lot of tweaking.

Awesome Gmail Tips and Tricks


Awesome Gmail Tips and Tricks

Gmail is the best thing that happened since sliced bread. That may sound like an over statement. If you really think about it, Gmail definitely has changed the way how we manage emails. Without Gmail, I cannot imagine processing 100′s of emails effectively every day without breaking a sweat.
In this article let us review 15 awesome Gmail tips and tricks that will help you to manage your emails effectively.

1. Attachment Alerter: Never Forget an Attachment

Oops, I forgot the attachment in my previous email. Here it is” — I’m sure you would’ve either sent an email with this message to somebody  (or) received an email with this message from somebody.  When you are sending emails in a hurry you may forget to send attachments. It will look unprofessional when you are sending a very important business related email and forgot the attachment.
The cure is Gmail’s Attach Alerter. If you have the word ‘attach’ in the mail content, and did not attach anything, you will be alerted by Gmail before sending that email.  To enable this feature, do the following.

Fig: Gmail Attachment Reminder
  • Click on “Settings” link,
  • Click on “Labs” tab,
  • Select “Enable” option button in “Forgotten Attachment Detector”
  • Click on “Save Changes” at the bottom
This will help your message recipient not to receive inevitable follow-up emails with attachments.

Attachment Tip: Attach before composing

It is good idea to attach the file before start typing the message. This way Gmail will be uploading the file when you are typing the email.  When you are done with your email typing, the attachment is already uploaded and you can send the email immediately.
You can delete an attachment by deselecting the check box in front of the file name.

Attachment Tip: Attaching multiple file names

You can attach multiple files in Gmail by selecting the multiple files in your file browser by holding shift or control key for contiguous or different files.

2. Forwarding All Emails Automatically

If you wanted to forward all emails to another account you can do the following.
  • Click on Settings link
  • Click on Forwarding and POP/IMAP tab
  • Click on the radio button “Forward a copy of incoming mail to”, and then give an email id in the text box.
Fig: Setup email automatic forwarding
Fig: Setup email automatic forwarding
You also have the option of deciding what to do with the emails in the original account after forwarding it. Following are the three options available.
  • Keep Gmail’s copy in the inbox
  • Archive Gmail’s copy
  • Delete Gmail’s copy
Now all the mails will be forwarded to the specified email id.

3. Forwarding Selective Emails Automatically Using Filter

If you don’t want to forward all the mails, then you can forward particular mails by creating filter.
  • Click on “Settings” link
  • Click on “Forwarding and POP/IMAP” tab
  • Click on “Create a new filter”
  • Set the filter criteria (for example, emails only from John Smith), and in the next step specify the email id to where the mail should be forwarded.

4. Emails Folders? — What is it? Use Labels Instead

The days or organizing the emails using folders are over. I still remember the good old days when I was having at least 50 folders in my yahoo and hotmail account. I’ll organize the folders based on projects, people etc.
Not having to organize emails in a folder is a total freedom.  Labels are like tags. You can create multiple labels and attach it to emails. Later it becomes easier for you to retrieve emails. If you are used to delicious bookmarking, you’ll have no problem using the Gmail labels effectively.

Creating Labels

  • Click on “Settings”
  • Enter label name in “Label” part and Click on “Create”
  • Created Labels will be listed in your labels list. i.e Right below the ‘Spam’ folder on the top right side.
Fig: Use Gmail Labels to organize emails
Fig: Use Gmail Labels to organize emails

Assigning Labels to an Email

  • Select the email message or conversation
  • Drag and drop it to the particular label to which you want to move. When moving you will see a tip message like “Moving 1 Conversation”.
  • (or) You can also select the message using the check-box in front of it and click on Labels drop-down list on the top and select multiple labels using the check-box.

5. Searching in Gmail

Since search and indexing is the core business of Google, there is no surprise that Gmail’s search feature works like a charm. The search will bring you the relevant email very fast every single time.

Search All Emails

Entering search word in Gmail search box will search for all the messages including chat messages, emails in sent, drafts, inbox and all the messages that are archived and labeled.

Searching Emails in Particular Folders

Searchtext in:foldername” will search for the given text in the specific folder which you specified.  For example, following will search for keyword geek in the Sent Folder.
geek in:sent

Search Specific Type of Messages

Types of messages in Gmail
  • Starred - messages which are Considered as an important
  • Unread - messages which are unread
  • read - messages which are read
  • chat - Conversation messages
is:starred”, “is:unread”, “is:read” and “is:chat” will search for the messages that are starred, unread, read and chat messages respectively.
For Example, the following will give you the list of starred messages in Inbox folder.
in:inbox is:starred

Use OR Operator

You can search messages based on either-or condition. For example, following search gives the message which has ramesh as recipient or sender, after 2009/01/01
from:ramesh OR to:ramesh after:2009/01/01 
from:ramesh | to:ramesh after:2009/01/01
Note: OR is case sensitive and must be in upper case.

Advanced Gmail Search

You can also use advanced options in search by clicking ‘Show search option’ that is located next to the Gmail search box. Advanced search provides search based on the following:
  • from – specify sender
  • to – specify recipient
  • subject – search words in subject
  • Folder – Folder to search
  • Include and Exclude the search words
  • Message has/hasn’t attachment
  • Age of the message

6. Turn-Off or Turn-On Search Highlighting

By Default, Gmail highlights the searched words in search results. i.e When you do a search, Gmail returns a list of messages matching the search criteria. You can select any of these messages to view, and Gmail automatically highlights the word/words you searched for.
Fig: Gmail turn on or off highlighting
Fig: Gmail turn on or off highlighting
Sometimes, you might feel it’s distracting.  You have the ability to turn OFF/ON the highlighting by clicking on the “Turn off Highlighting” link on the top right column. Clicking it again turns highlighting back immediately without reloading the page.

7. How to Attach an Executable (exe file) in Gmail

You cannot attach an executable file like a normal file.  Gmail will display the error message –  “FILE is an executable file. For security reasons, Gmail does not allow you to send this type of file”.
To overcome this issue, do the following as a sender of the email.
  • Rename the file without an exe extension,
  • Compress it with any compression utility and then attach it.
Now it will get attached, and uploaded successfully. The receiver of the email should uncompress the attachment and rename it again with exe extension.

8. Import Your Contacts

Gmail provides feature to import the contacts from Yahoo, Orkut and Outlook. You can also import contacts from CSV file.

How to Import Contact from Custom CSV

Your CSV file should be formatted as a table and must include a header that defines the fields in your table. Gmail accepts many common header fields (Firstname, Lastname, email address, Phone etc.)
Fig: Import contacts to Gmail
Fig: Import contacts to Gmail
  • Click on “Contacts” link
  • Click on “Import” tab,
  • Browse the CSV file which you want to import
  • Click on “Import”
You can also select the contact-group to which you want to add the imported contacts.

9. Sending emails to Group / Alias

You can group the list of email addresses into a single entity.
  • Click on “Contacts” link,
  • Click on “+icon” (New Group) and give a name to the New group.
  • Now you can add new contact to this group or you can move the existing contact to this group.
When you want to send mails to a group, in the To field of the compose box, type the few letters of group name, auto-complete feature will suggest list of group names that matched your word. You can choose from the list and sending mail to the groups.

10. Managing Multiple Gmail Accounts

Checking all emails

You could be having multiple Gmail accounts for various reasons. But it becomes tedious while checking mail that, you would want to logout and login to each account and check mails in different accounts. This can be done easily, by forwarding all mails from all accounts to a single account.

Sending emails as another Gmail account

Follow the steps below to send emails from other accounts. i.e From x@gmail.com, you can send emails as y@gmail.com
  1. Login to x@gmail.com, go to  Settings -> Accounts Tab -> “Send Email As” Section.
  2. Add y@gmail.com account here and confirm that this is your email by following the instruction.
  3. Now you can start sending emails as y@gmail.com from x@gmail.com.

11. Last Login Details for Security Purpose

If you are suspecting somebody else is accessing and hacking into your Gmail account, Gmail provides ‘Last Account Activity’ feature that shows five recent activities in your Gmail account.
  • Click on ‘Details’ link in Last account activity line at the bottom of your Gmail page.
Recent activity information includes, Access Type (Browser or from some mobile device etc), IP address from which the access was made and Date/Time of access.

Fig: Gmail multiple login information
If your Gmail account is currently being accessed from other location, ‘Last Account Activity Detail’ will show the details of other access in ‘Concurrent Session Information’ Table.
You can even sign-out all the other sessions except current session by clicking ‘Sign out all other sessions’

12. Change Gmail Look and Feel Using Themes

You can select any one of the available Gmail themes as explained below.
  • Click on “Settings” link.
  • Click on “Themes” tab.
  • Click on the various available themes. (or) you can create custom theme.
  • Select the Country and City name to customize your theme. Some themes change during day, and based on local sunrise, sunset or based on weather.
Fig: Choose Gmail themes
Fig: Choose Gmail themes

13. Forget the Delete Key — Archive Your Emails

Since you get huge storage space with Gmail, you don’t need to delete any emails. Instead get into the practice of archiving every single email.

14. Gmail Display Language

You can experience Gmail in your native language.
  • Click on “Settings” link,
  • Choose your favorite language in “Gmail Display Language”
  • Select “Save Changes” button.
  • This will display Gmail in your native language.
You can also send message in yours/recipients favorite language, by clicking down arrow and selecting language, in format bar of the compose box.
Note: You can still set your default Gmail Display Language as English and send emails in other languages from the email compose window.

15. View Your Favorite Blog Post Title in Random

There are several ways in following a blog such as subscribing to it by mail, or using an RSS reader, or following it by twitter and so on.  But this is another interesting way to find out what is happening in one of your favorite blog.
Gmail Web clipping will be displayed in the thin strip that is right above the email listings. i.e above the ‘Archive’ button.

Fig: Setup web clips inside Gmail
  • Click on ‘Settings”
  • Select the ‘Web Clips’ tab
  • Enter your blog URL in the ‘Search by topic or URL’. For example, enter: http://www.thegeekstuff.com
  • It will automatically identify the feedproxy URL for the blog and display the last few posts from the blog with an ‘Add’ button.
  • Click on the Add button, which will start displaying the blog posts in the Web Clipping area of the email.
Finally, read our earlier 15 Awesome Google Search Tips and Tricks article and visit the Become a Gmail Ninja Gmail’s official tips page for more Gmail tips and tricks.

Top 5 Best Linux OS Distributions


Top 5 Best Linux OS Distributions




As part of the contest that was conducted a while back, I got around 200 responses from the geeky readers who choose their favorite Linux distributions.

Based on this data, the top spot in the best Linux distribution list goes to…
Ubuntu

My personal favorite was Ubuntu for desktop (#1 in this list) and Red Hat for servers (#5 in this list).

If you are new to any of the distros listed in the top 5, read the rest of the article to understand little bit more about those distros and find out whether your favorite Linux distribution made it in the top 5.

Fig: Favorite Linux Distribution Voting Results

1. Ubuntu

Like most of you, Ubuntu is my #1 choice for desktop Linux. I use it both at home and work. Ubuntu is the #1 in the Linux desktop market and some use Ubuntu for the servers also. Ubuntu offers the following three editions.
  • Ubuntu Desktop Edition
  • Ubuntu Server Edition
  • Ubuntu Notebook Remix

Additional Details:

Refer to our Ubuntu Tips and Tricks article series.

2. Debian

<!--
google_ad_client = "pub-8090601437064582";
/* TGS Inside Content Big */
google_ad_slot = "8006040097";
google_ad_width = 336;
google_ad_height = 280;
//-->google_protectAndRun("ads_core.google_render_ad", google_handleError, google_render_ad);Debian is also called as Debian GNU/Linux, as most of the basic OS tools comes from the GNU Project. Lot of other famous distributions are based on Debian, which includes our #1 distro Ubuntu and many others — such as Knoppix, Linspire, Damn Small Linux etc.,

Additional Details:

Read more about Debian Distribution at wikipedia.

3. Fedora

Fedora is sponsored by Red Hat. If you are interested in experimenting with the the leading technologies, you should use fedora, as the release cycle is very short and fedora tends to include the latest technology software/packages in it’s distribution.

Additional Details:

Read more about Fedora Distribution at wikipedia.

4. CentOS

If your organization does not want to spend money on purchasing Red Hat support, but still want all the benefits of the red-hat distribution, this is obviously the best choice, as this is totally based on the red-hat enterprise Linux.

As you can imagine the Nort American Enterprise Linux vendor mentioned in the quote below is Red Hat.

From the CentOS website: CentOS 2, 3, and 4 are built from publically available open source SRPMS provided by a prominent North American Enterprise Linux vendor. CentOS is designed for people who need an enterprise class OS without the cost or support of the prominent North American Enterprise Linux vendor.

Additional Details:

Read more about CentOS Distribution at wikipedia

5. Red Hat

This is my favorite server distribution.  If an organization doesn’t mind spending dollars on purchasing the red-hat support, this is always my #1 recommendation to any organization who runs mission critical applications.

On a side note, one of the reason I like Red Hat Linux for mission critical production application is that Red Hat tends to take some of the new features from Fedora, which is well tested by the community.

Additional Details:


Awesome Google Search Tips and Tricks


Awesome Google Search Tips and Tricks




You may be using Google search multiple times per day to locate something on the web. Learning how to use Google search effectively can boost your productivity instantly.

This article is part of the on-going Productivity Tips for Geeks. In this article let us review 15 awesome google search tricks that will improve the quality of your online life.
Note: Also, check-out our earlier article about 15 Awesome Gmail Tips and Tricks, and 15 Essential Gmail Lab Features.

1. Identify Local Time for Any City in the World using Google

If you want to know current local time in a particular city, use the following method. To see the current local time in Los Angeles do the following. Go-ahead and try this yourself for your local city and see how it works.
Syntax: time in PLACE

time Los Angeles



Fig: Find out current time of any worldwide city

2. Exclude Keywords in the Search

If you want Google to exclude a word while searching the web page, use – (minus) before the search as shown below. This example searches for the pages which has the word ebooks, and withoutthe word free.
ebooks -free

3. Search for Keywords with Similar Meaning. Include Synonym Keywords in Search

Instead of searching for only the given word, using ~ before the keyword you can instruct Google to search for webpages with the exact givenword or the words which has same meaning. In the following example, giving ~tutorial also searches for keywords: guide, manual, reference etc.
nagios ~tutorial

(or)

debian installation ~tutorial

4. Match Any Single Word in the Search Using *

While searching, if you are not sure about which keyword to be placed in the phrase, you can match any single word using *.

For example, if you want to search for examples of vim substitution, and you are not sure whether to search for “vim editor find and replace examples”, or “vim editor search and replace examples”, then use * , which will match either find,search or any other word, as shown below.
vim editor * and replace examples
Note: You can also match multiple words by using multiple number of *’s respectively.

5. Use OR in Google Search

Using OR operator in between the words makes the following kind of search possible in Google. Following example will search for bash examples or bash programs.
bash examples OR programs

Note: The keyword OR should be in uppercase

6.Identify Definition a Word

To view the definition of a word use the following method.
Syntax: define: <word>

define: tech savvy

7. Search for a Range Using ..

If you are looking for a product in a specific price range use the following. It will search for the pages with text PDA, and $400 to $450 ranged text.
Syntax: text $100..$125

PDA $400..$450

8. Mathematical Calculations using Google

Normally for doing the metric conversions we will be using some online conversion websites or conversion softwares. However just by using Google search box you can do calculations, unit conversions and money conversions as explained below.
You can use the Google search box as your scientific calculator as
sqrt(10)

9. Unit Conversion using Google

The following will show the equivalent pounds for one kg.
kg in pound
So when you want to know what is the equivalent pounds of kg you can view it as:
Fig: Online Unit Conversion using Google
Following are few other possible conversions. Click on these link to see the results.

10. Money Conversion using Google

Following converts US Dollars in Euros(or) US Dollars in Rupees.
USD in Euro

(or)

USD in INR
Fig: Currency Conversion Using Google

11. Searching within a Specific Website

You can search for a text in a specific website. The following example shows how to search only within our blog – www.thegeekstuff.com.
examples site:www.thegeekstuff.com
Note: There is no space between site: and the website address.

12. Google Search for a Given Keywords (both without and with sequence)

Basic Search for a Given Keywords – Without Sequence

The very basic feature of Google which everybody is using today is searching for pages which has the given text as:
linux command line history examples
Fig: Basic Google Search for Keywords with no specific sequence
Note: Highlighted words are not in the order as we given in the search box.

Basic Search with Keywords In a Given Sequence

If you want Google to show only the pages which has the words in the given sequence, then double quote that search string as:
"guide to install php5 from source"
Fig: Basic Search for Keywords in a specific sequence
Note: Highlighted words are in the same order as we given in the search box.

13. Search Based on File Type

The following examples searches only the matching keywords inside a Power Point presentations. In the same way, you can search for the doc, pdf and other file types.
linux introduction filetype:ppt

14. Google Advanced Search Page

If you are not able to remember some of the advanced search syntax mentioned in this article, then use the Google Advanced search page as shown below.

15. Identify Local Weather for Any City in the World using Google

To see the current weather in Los Angeles do the following. Go-ahead and try this yourself for your local city and see how it works.
Syntax: weather PLACE

weather Los Angeles
Fig: Find out current weather forecast of any worldwide city