<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Harry Sukumar&#039;s Weblog</title>
	<atom:link href="http://hsukumar.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://hsukumar.wordpress.com</link>
	<description></description>
	<lastBuildDate>Wed, 05 Aug 2009 02:02:39 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='hsukumar.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/279c39dece2d2bb3623c0e8a7ea8fee3?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Harry Sukumar&#039;s Weblog</title>
		<link>http://hsukumar.wordpress.com</link>
	</image>
			<item>
		<title>How to add dictonary ( Redhat based Machines)</title>
		<link>http://hsukumar.wordpress.com/2009/08/05/how-to-add-dictonary-redhat-based-machines/</link>
		<comments>http://hsukumar.wordpress.com/2009/08/05/how-to-add-dictonary-redhat-based-machines/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 02:02:39 +0000</pubDate>
		<dc:creator>hsukumar</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[General Linux]]></category>

		<guid isPermaLink="false">http://hsukumar.wordpress.com/?p=174</guid>
		<description><![CDATA[Go to the following link and install the rpm
http://stardict.sourceforge.net/Dictionaries_dictd-www.dict.org.php
it is really a very useful dict, when you double click the work it comes up with the meaning  
Enjoy Dicting  
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hsukumar.wordpress.com&blog=2265613&post=174&subd=hsukumar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Go to the following link and install the rpm</p>
<p>http://stardict.sourceforge.net/Dictionaries_dictd-www.dict.org.php</p>
<p>it is really a very useful dict, when you double click the work it comes up with the meaning <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Enjoy Dicting <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hsukumar.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hsukumar.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hsukumar.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hsukumar.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hsukumar.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hsukumar.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hsukumar.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hsukumar.wordpress.com/174/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hsukumar.wordpress.com/174/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hsukumar.wordpress.com/174/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hsukumar.wordpress.com&blog=2265613&post=174&subd=hsukumar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hsukumar.wordpress.com/2009/08/05/how-to-add-dictonary-redhat-based-machines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7f5ecf2f7fa6dd29fc4893b3a98faa4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Harry</media:title>
		</media:content>
	</item>
		<item>
		<title>Remove old kernels on Fedora/Centos/RHEL</title>
		<link>http://hsukumar.wordpress.com/2009/04/25/remove-old-kernels-on-fedoracentosrhel/</link>
		<comments>http://hsukumar.wordpress.com/2009/04/25/remove-old-kernels-on-fedoracentosrhel/#comments</comments>
		<pubDate>Sat, 25 Apr 2009 11:19:58 +0000</pubDate>
		<dc:creator>hsukumar</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[General Linux]]></category>
		<category><![CDATA[Redhat MIX]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://hsukumar.wordpress.com/?p=171</guid>
		<description><![CDATA[First I figure out what kernel I am actually running now so I don&#8217;t try and delete it. I am not sure what would happen if I tried but I am not going to find out. To determine the running kernel, use uname -r. I am running 2.4.21-52.ELsmp .
Next we want to see what other [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hsukumar.wordpress.com&blog=2265613&post=171&subd=hsukumar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>First I figure out what kernel I am actually running now so I don&#8217;t try and delete it. I am not sure what would happen if I tried but I am not going to find out. To determine the running kernel, use <code>uname -r</code>. I am running 2.4.21-52.ELsmp .</p>
<p>Next we want to see what other kernels are installed to find what we can delete. Do this like so:</p>
<pre>[root@localhost root]# rpm -q kernel
kernel-2.4.21-37.EL
kernel-2.4.21-37.0.1.EL
kernel-2.4.21-40.EL
kernel-2.4.21-47.EL
kernel-2.4.21-47.0.1.EL
kernel-2.4.21-50.EL
kernel-2.4.21-51.EL
kernel-2.4.21-52.EL</pre>
<p>I see that we have 7 old kernels installed. Now to delete them, just use rpm -e  like so:</p>
<p><code style="font-weight:bold;">rpm -e kernel-2.4.21-37.EL</code></p>
<p>or you can use yum remove &lt; kernel&gt;</p>
<p>or more fany stuff is to use this command</p>
<p>yum remove $(rpm -qa | grep kernel | grep -v `uname -r`)</p>
<p>This will remove all the old kernel except the current one <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hsukumar.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hsukumar.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hsukumar.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hsukumar.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hsukumar.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hsukumar.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hsukumar.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hsukumar.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hsukumar.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hsukumar.wordpress.com/171/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hsukumar.wordpress.com&blog=2265613&post=171&subd=hsukumar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hsukumar.wordpress.com/2009/04/25/remove-old-kernels-on-fedoracentosrhel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7f5ecf2f7fa6dd29fc4893b3a98faa4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Harry</media:title>
		</media:content>
	</item>
		<item>
		<title>Control Virtual Machines from Command line</title>
		<link>http://hsukumar.wordpress.com/2009/04/20/control-virtual-machines-from-command-line/</link>
		<comments>http://hsukumar.wordpress.com/2009/04/20/control-virtual-machines-from-command-line/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 05:27:39 +0000</pubDate>
		<dc:creator>hsukumar</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://hsukumar.wordpress.com/?p=165</guid>
		<description><![CDATA[Vmware workstation and vmware server comes with a command called vmrun which can be used from command line to control the virtual machines, without having to use GUI such as vi web access
The vmtool gets installed in the host system as part of vmware workstation/server install on linux the executable is located under /usr/bin/
#vmrun vmrun [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hsukumar.wordpress.com&blog=2265613&post=165&subd=hsukumar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Vmware workstation and vmware server comes with a command called vmrun which can be used from command line to control the virtual machines, without having to use GUI such as vi web access</p>
<p>The vmtool gets installed in the host system as part of vmware workstation/server install on linux the executable is located under /usr/bin/</p>
<p>#vmrun vmrun start /vmware-machines/WinXP-VM2/WinXP-VM2.vmx ( basically you are specifying the vmx file of the virtual machine )</p>
<p>some of the controls are</p>
<p>start: Start VM</p>
<p>Stop: Stop VM</p>
<p>reset: restart or reboot the vm</p>
<p>suspend: suspends the vm based on fast restart via start</p>
<p>Pause: pause the machine</p>
<p>unpause: unpause the machine</p>
<p>And also if you want to control the vm from remote host you can type the following command</p>
<pre>vmrun -T server -h https://vmwarehost.address:8333/sdk -u root -p mypassword stop "/vmware-machines/WinXP-VM2/WinXP-VM2.vmx"</pre>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hsukumar.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hsukumar.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hsukumar.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hsukumar.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hsukumar.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hsukumar.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hsukumar.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hsukumar.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hsukumar.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hsukumar.wordpress.com/165/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hsukumar.wordpress.com&blog=2265613&post=165&subd=hsukumar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hsukumar.wordpress.com/2009/04/20/control-virtual-machines-from-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7f5ecf2f7fa6dd29fc4893b3a98faa4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Harry</media:title>
		</media:content>
	</item>
		<item>
		<title>Recover Apple Mac Keychain password</title>
		<link>http://hsukumar.wordpress.com/2009/04/15/recover-apple-mac-keychain-password/</link>
		<comments>http://hsukumar.wordpress.com/2009/04/15/recover-apple-mac-keychain-password/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 06:37:00 +0000</pubDate>
		<dc:creator>hsukumar</dc:creator>
				<category><![CDATA[Mac OSX]]></category>

		<guid isPermaLink="false">http://hsukumar.wordpress.com/?p=159</guid>
		<description><![CDATA[Go to your home folder, find the Library folder and drag the Library&#62;Keychains folder to the trash.
Restart the computer and a new keychain will be created using your current system password.
If you have forgotten you whole system password then you will need to reset it using your System Restore disk
Is your &#8220;Keychain password&#8221; the same [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hsukumar.wordpress.com&blog=2265613&post=159&subd=hsukumar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Go to your home folder, find the Library folder and drag the Library&gt;Keychains folder to the trash.</p>
<p>Restart the computer and a new keychain will be created using your current system password.</p>
<p>If you have forgotten you whole system password then you will need to reset it using your System Restore disk</p>
<p>Is your &#8220;Keychain password&#8221; the same as your &#8220;Administrator password&#8221;, the one you use to install software? Or do you have a user account a Mac OS X machine where someone else is the system administrator?</p>
<p>If you&#8217;re the administrator and you&#8217;ve forgotten the password to the login keychain and the administrator password, I am afraid you&#8217;ve permanently lost the contents of your keychain. However, you can recover from the situation without reinstalling the entire OS.</p>
<p>First, reset the administrator password using the Mac OS X disc:</p>
<ol>
<li>Insert the Mac OS X Install disc and restart the computer.</li>
<li>When you hear the startup tone, hold down the C key until you see the spinning gear.</li>
<li>When the Installer appears, choose Utilities &gt; Reset Password.</li>
<li>Follow the onscreen instructions to change the password.</li>
<li>Quit the Installer and restart your computer while holding down the mouse button to eject the disc.</li>
</ol>
<p>After the Mac has restarted, you&#8217;d normally now need to change the password for the keychain called &#8220;login&#8221; to match the new admin password, but since you&#8217;ve forgotten it you&#8217;ll need to delete the old login keychain. Do the following steps:</p>
<ol>
<li>Open Keychain Access, located in /Applications/Utilities.</li>
<li>Choose Keychain List from the Edit menu.</li>
<li>Select the &#8220;login&#8221; keychain.</li>
<li>Click Delete (the &#8220;-&#8221; button).</li>
</ol>
<p>The login keychain will now be empty. The next time the keychain is needed you&#8217;ll have to manually enter the appropriate password and then you&#8217;ll be asked if you want to store the password in the keychain</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hsukumar.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hsukumar.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hsukumar.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hsukumar.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hsukumar.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hsukumar.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hsukumar.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hsukumar.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hsukumar.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hsukumar.wordpress.com/159/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hsukumar.wordpress.com&blog=2265613&post=159&subd=hsukumar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hsukumar.wordpress.com/2009/04/15/recover-apple-mac-keychain-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7f5ecf2f7fa6dd29fc4893b3a98faa4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Harry</media:title>
		</media:content>
	</item>
		<item>
		<title>Solve Codec problem on Ubuntu Linux</title>
		<link>http://hsukumar.wordpress.com/2009/04/08/solve-codec-problem-on-ubuntu-linux/</link>
		<comments>http://hsukumar.wordpress.com/2009/04/08/solve-codec-problem-on-ubuntu-linux/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 12:44:40 +0000</pubDate>
		<dc:creator>hsukumar</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://hsukumar.wordpress.com/?p=102</guid>
		<description><![CDATA[The Ubuntu Restricted Extras will install Adobe Flash Player, Java Runtime Environment (JRE) (sun-java-jre) with Firefox plug-ins (icedtea), a set of Microsoft Fonts (msttcorefonts), multimedia codecs (w32codecs or w64codecs), mp3-compatible encoding (lame), FFMpeg, extra Gstreamer codecs, the package for DVD decoding (libdvdread3, libdvdcss2), and the unrar archiver. This is a single command approach.
sudo apt-get install [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hsukumar.wordpress.com&blog=2265613&post=102&subd=hsukumar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The Ubuntu Restricted Extras will install Adobe Flash Player, Java Runtime Environment (JRE) (sun-java-jre) with Firefox plug-ins (icedtea), a set of Microsoft Fonts (msttcorefonts), multimedia codecs (w32codecs or w64codecs), mp3-compatible encoding (lame), FFMpeg, extra Gstreamer codecs, the package for DVD decoding (libdvdread3, libdvdcss2), and the unrar archiver. This is a single command approach.</p>
<pre>sudo apt-get install ubuntu-restricted-extras</pre>
<div class="editsection" style="float:right;margin-left:5px;">[<a title="Intrepid" href="http://ubuntuguide.org/index.php?title=Ubuntu:Intrepid&amp;action=edit&amp;section=72">edit</a>]</div>
<p><a name="Games_Applications"></a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hsukumar.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hsukumar.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hsukumar.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hsukumar.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hsukumar.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hsukumar.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hsukumar.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hsukumar.wordpress.com/102/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hsukumar.wordpress.com/102/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hsukumar.wordpress.com/102/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hsukumar.wordpress.com&blog=2265613&post=102&subd=hsukumar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hsukumar.wordpress.com/2009/04/08/solve-codec-problem-on-ubuntu-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7f5ecf2f7fa6dd29fc4893b3a98faa4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Harry</media:title>
		</media:content>
	</item>
		<item>
		<title>Network Troubleshooting Linux</title>
		<link>http://hsukumar.wordpress.com/2009/04/08/network-troubleshooting-linux-2/</link>
		<comments>http://hsukumar.wordpress.com/2009/04/08/network-troubleshooting-linux-2/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 12:43:00 +0000</pubDate>
		<dc:creator>hsukumar</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Redhat MIX]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://hsukumar.wordpress.com/?p=118</guid>
		<description><![CDATA[ Sources of Network Slowness 

 NIC duplex and speed incompatibilities
 Network congestion
 Poor routing
 Bad cabling
 Electrical interference
 An overloaded server at the remote end of the connection
 Misconfigured DNS

TEST YOUR NIC
It is always a good practice in troubleshooting to be versed in monitoring the status of your NIC card from the command line. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hsukumar.wordpress.com&blog=2265613&post=118&subd=hsukumar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h2><span class="mw-headline"> Sources of Network Slowness </span></h2>
<ul>
<li> NIC duplex and speed incompatibilities</li>
<li> Network congestion</li>
<li> Poor routing</li>
<li> Bad cabling</li>
<li> Electrical interference</li>
<li> An overloaded server at the remote end of the connection</li>
<li> Misconfigured DNS</li>
</ul>
<p>TEST YOUR NIC</p>
<p>It is always a good practice in troubleshooting to be versed in monitoring the status of your NIC card from the command line. The following sections introduce a few commands that will be useful.</p>
<p>The ifconfig command without any arguments gives you all the active interfaces on your system. Interfaces will not appear if they are shut down:</p>
<pre>[root@bigboy tmp]# ifconfig</pre>
<p><strong>Note:</strong> Interfaces will appear if they are activated, but have no link.</p>
<h3><span class="mw-headline"> DHCP Considerations</span></h3>
<p>DHCP clients automatically give their NICs and IP address starting with 169.254.x.x until they can make contact with their DHCP server. When contact is made they reconfigure their IP addresses to the values provided by the DHC server. An interface with a 169.254.x.x address signifies a failure to communicate with the DHCP server. Check your cabling, routing and DHCP server configuration to rectify such a problem.</p>
<h2><span class="mw-headline">Testing Link Status from the Command Line </span></h2>
<h3><span class="mw-headline"> Link Status Output from ethtool </span></h3>
<pre>[root@test.com tmp]# ethtool eth0

Settings for eth0:
        Supported ports: [ TP MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
        Advertised auto-negotiation: No
        Speed: 100Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 1
        Transceiver: internal
        Auto-negotiation: off
        Supports Wake-on: g
        Wake-on: g
        Current message level: 0x00000007 (7)
        Link detected: yes
[root@test.com tmp]#</pre>
<h1><span class="mw-headline">Testing Web sites with the curl</span></h1>
<h2><span class="mw-headline"> Using curl </span></h2>
<p>The curl utility acts like a text based Web browser in which you can select to see either the header or complete body of a Web page&#8217;s HTML code displayed on your screen.</p>
<p>A good start is to use the curl command with the -I flag to view just the Web page&#8217;s header and HTTP status code. By not using the -I command you will see all the Web page&#8217;s HTML code displayed on the screen. Either method can provide a good idea of your server&#8217;s performance.</p>
<pre>[root@ bigboy tmp]# curl -I www.testing.com
HTTP/1.1 200 OK
Date: Tue, 19 Oct 2004 05:11:22 GMT
Server: Apache/2.0.51 (Fedora)
Accept-Ranges: bytes
Vary: Accept-Encoding,User-Agent
Connection: close
Content-Type: text/html; charset=UTF-8
[root@test.com tmp]#</pre>
<h1><span class="mw-headline">Using netcat to Test Network Bandwidth</span></h1>
<p>Most Linux distributions contain the netcat or nc packages which can be used to create a TCP socket over which you can transfer data. The syntax can also vary between distributions so you should refer to your system&#8217;s man pages if you have any questions.</p>
<p>The netcat server can be easily created with the -l switch that signifies the program should listen, and not talk. The desired TCP port then follows. In this case the server is listening on TCP port 7777.</p>
<p>[root@smallfry tmp]# nc -l 7777</p>
<p>The netcat client only needs to specify the server&#8217;s IP address followed by server&#8217;s the TCP listener port.</p>
<p>[root@bigboy ~]# nc 192.168.2.50 7777</p>
<p>Any text typed to the console screen of the client;</p>
<p>[root@bigboy ~]# nc 192.168.2.50 7777 This is a test of the NetCat program! [root@bigboy ~]#</p>
<p>will also be visible on the server&#8217;s console.</p>
<p>[root@smallfry tmp]# nc -l 7777 This is a test of the NetCat program! [root@smallfry tmp]#</p>
<p>If you want to transfer a file, you only need to use some simple command line redirection. In this case, the server will output all data it receives on port 7777 to a file called FC-6-i386-disc1.iso, and the client pipes the output of the cat command to the netcat client that points to our server.</p>
<p>[root@smallfry tmp]# nc -l 7777 &gt; FC-6-i386-disc1.iso  [root@bigboy ~]# cat /tmp/FC-6-i386-disc1.iso | nc 192.168.2.50 7777</p>
<p>All Linux systems have a black hole file named /dev/null which automatically discards any data written to it. If you want to test file transfers without filling your disk storage, or having the server&#8217;s disk I/O be a bottleneck, then use this as your output file instead.</p>
<p>[root@smallfry tmp]# nc -l 7777 &gt; /dev/null</p>
<p>All Linux systems also have a have a continuous random data source located at /dev/random. Instead of using a file in your tests, you can use this instead for a data stream or infinite duration.</p>
<p>[root@bigboy ~]# cat /dev/random | nc 192.168.2.50 7777</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hsukumar.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hsukumar.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hsukumar.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hsukumar.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hsukumar.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hsukumar.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hsukumar.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hsukumar.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hsukumar.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hsukumar.wordpress.com/118/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hsukumar.wordpress.com&blog=2265613&post=118&subd=hsukumar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hsukumar.wordpress.com/2009/04/08/network-troubleshooting-linux-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7f5ecf2f7fa6dd29fc4893b3a98faa4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Harry</media:title>
		</media:content>
	</item>
		<item>
		<title>GPG on Linux-(Secure communications)</title>
		<link>http://hsukumar.wordpress.com/2009/04/08/gpg-on-linux-secure-communications/</link>
		<comments>http://hsukumar.wordpress.com/2009/04/08/gpg-on-linux-secure-communications/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 12:38:13 +0000</pubDate>
		<dc:creator>hsukumar</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[General Linux]]></category>
		<category><![CDATA[Redhat MIX]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://hsukumar.wordpress.com/?p=153</guid>
		<description><![CDATA[ 
Overview
GnuPG is a tool for secure communication and data storage. It can be used to encrypt data and to create digital signatures. GnuPG is a complete and free replacement for PGP. Because it does not use the patented IDEA algorithm, it can be used without any restrictions. GnuPG uses public-key cryptography so that users may [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hsukumar.wordpress.com&blog=2265613&post=153&subd=hsukumar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p> </p>
<p><strong>Overview</strong></p>
<p>GnuPG is a tool for secure communication and data storage. It can be used to encrypt data and to create digital signatures. GnuPG is a complete and free replacement for PGP. Because it does not use the patented IDEA algorithm, it can be used without any restrictions. GnuPG uses public-key cryptography so that users may communicate securely. In a public-key system, each user has a pair of keys consisting of a private key and a public key. A user&#8217;s private key is kept secret; it need never be revealed. The public key may be given to anyone with whom the user wants to communicate. It is a full replacement for PGP. this does not use any potential algorithm</p>
<p>Installation: Most Linux and Unix Systems have gpg installed by default</p>
<p><strong>Generating a new keypair</strong> </p>
<p>We must create a new key-pair (public and private) for the first time. The command line option &#8211;gen-key is used to create a new primary keypair.</p>
<p>[root@dragon /]# gpg &#8211;gen-key <span><br />
</span>gpg (GnuPG) 1.0.2; Copyright (C) 2000 Free Software Foundation, Inc. <span><br />
</span>This program comes with ABSOLUTELY NO WARRANTY. <span><br />
</span>This is free software, and you are welcome to redistribute it <span><br />
</span>under certain conditions. See the file COPYING for details.</p>
<p>gpg:/root/.gnupg/secring.gpg: keyring created <span><br />
</span>gpg: /root/.gnupg/pubring.gpg: keyring created <span><br />
</span>Please select what kind of key you want: <span><br />
  </span> (1) DSA and ElGamal (default) <span><br />
  </span> (2) DSA (sign only) <span><br />
  </span> (4) ElGamal (sign and encrypt) <span><br />
</span>Your selection?  1 <span><br />
</span>DSA keypair will have 1024 bits. <span><br />
</span>About to generate a new ELG-E keypair. <span><br />
             </span> minimum keysize is  768 bits <span><br />
             </span> default keysize is 1024 bits <span><br />
   </span> highest suggested keysize is 2048 bits <span><br />
</span>What keysize do you want? (1024) 2048 <span><br />
</span>Do you really need such a large keysize? y <span><br />
</span>Requested keysize is 2048 bits <span><br />
</span>Please specify how long the key should be valid. <span><br />
        </span> 0 = key does not expire <span><br />
     </span> &lt;n&gt;   = key expires in n days <span><br />
     </span> &lt;n&gt; w = key expires in n weeks <span><br />
     </span> &lt;n&gt; m = key expires in n months <span><br />
     </span> &lt;n&gt; y = key expires in n years <span><br />
</span>Key is valid for? (0) 0 <span><br />
</span>Key does not expire at all <span><br />
</span>Is this correct (y/n)? y</p>
<p>You need a User-ID to identify your key; the software constructs the user id <span><br />
</span>from Real Name, Comment and Email Address in this form: &#8220;</p>
<p>Real name: Test Tester <span><br />
</span>Email address: test@example.com <span><br />
</span>Comment: Unix/Linux consultant <span><br />
</span>You selected this USER-ID: <span><br />
   </span> &#8220;Test Tester (Unix/Linux consultant) &lt;test@example.com&gt; &#8220;</p>
<p>Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? o <span><br />
</span>You need a Passphrase to protect your secret key.</p>
<p>Enter passphrase: [enter a passphrase]</p>
<p>We need to generate a lot of random bytes. It is a good idea to perform <span><br />
</span>some other action (type on the keyboard, move the mouse, utilize the <span><br />
</span>disks) during the prime generation; this gives the random number <span><br />
</span>generator a better chance to gain enough entropy. ++++++++++.+++++^^^ <span><br />
</span>public and secret key created and signed.</p>
<p>Now I will explain about the various inputs asked during the generation of the keypairs.</p>
<ul>
<li>Please select what kind of key you want:</li>
<li>(1) DSA and ElGamal (default) </li>
<li>(2) DSA (sign only) </li>
<li>(3) ElGamal (sign and encrypt) </li>
<li>Your selection?</li>
</ul>
<p>  GnuPG is capable of creating different kind of keypairs. There are three options. </p>
<p> A DSA keypair is the primary keypair usable only for making signatures. An ElGamal subordinate keypair is also created for encryption. Option 2 is similar but creates only a DSA keypair. Option </p>
<p> 3[1] creates a single ElGamal keypair usable for both making signatures and performing encryption. <strong><em>For most users the default option is fine.</em></strong> </p>
<p> </p>
<ul>
<li>You must also choose a key size. The size of a DSA key must be between 512 and 1024 bits, and an ElGamal key may be of any size.</li>
</ul>
<p>                      About to generate a new ELG-E keypair. </p>
<p>                      minimum keysize is  768 bits </p>
<p>                     default keysize is 1024 bits </p>
<p>                     highest suggested keysize is 2048 bits </p>
<p>                     What keysize do you want? (1024)</p>
<p> There are advantages and disadvantages of choosing a longer key. The advantages are: 1) The longer the key the more secure it is against brute-force attacks <span><br />
 </span>The disadvantages are: 1) encryption and decryption will be slower as the key size is increased 2) a larger keysize may affect signature length</p>
<p>  <strong>The default keysize is adequate for almost all purpose and  the keysize can never be changed after selection.</strong> <span><br />
 </span></p>
<ul>
<li>Finally, you must choose an expiration date. If Option 1 was chosen, the expiration date will be used for both the ElGamal and DSA keypairs</li>
<li>  Please specify how long the key should be valid </li>
<li>  0 = key does not expire   = key expires in n days </li>
<li>&lt;n&gt; w = key expires in n weeks </li>
<li>&lt;n&gt; m = key expires in n months </li>
<li>&lt;n&gt; y = key expires in n years </li>
<li>Key is valid for? (0)</li>
</ul>
<p>For most users a key that does not expire is adequate. The expiration time should be chosen with care, however, since although it is possible to change the expiration date after the key is created, </p>
<p>it may be difficult to communicate a change to users who have your public key. </p>
<p> </p>
<ul>
<li>You must provide a user ID in addition to the key parameters. The user ID is used to associate the key being created with a real person.</li>
</ul>
<p>             You need a User-ID to identify your key; the software constructs the user id </p>
<p>              from Real Name, Comment and Email Address in this form: </p>
<p>             &#8220;Test Tester (Linux consultant) &lt;test@example.com&gt; &#8220;</p>
<p><span>             Real name: </span><em>Enter you name here</em> <span><br />
            </span> Email address: <em>Enter you email address</em> <span><br />
</span><em>           </em>Comment: <em>Enter any comment here</em> <span><br />
 </span> </p>
<ul>
<li>GnuPG needs a passphrase to protect the primary and subordinate private keys that you keep in your possession.</li>
<li>You need a Passphrase to protect your secret key.</li>
</ul>
<p>              Enter passphrase:</p>
<p>There is no limit on the length of a passphrase, and it should be carefully chosen. From the perspective of security, the passphrase to unlock the private key is one of the weakest points in GnuPG <span><br />
</span>(and other public-key encryption systems as well) since it is the only protection you have if another individual gets your private key. Ideally, the passphrase should not use words from a <span><br />
</span>dictionary and should mix the case of alphabetic characters as well as use non-alphabetic characters. A good passphrase is crucial to the secure use of GnuPG. <span><br />
 </span></p>
<p><strong>2: Generating a revocation certificate</strong></p>
<p>After your keypair is created you should immediately generate a revocation certificate for the primary public key using the option &#8211;gen-revoke. If you forget your passphrase or if your private <span><br />
</span>key is compromised or lost, this revocation certificate may be published to notify others that the public key should no longer be used.</p>
<p> [root@dragon /]# gpg &#8211;output revoke.asc &#8211;gen-revoke mykey</p>
<p>Here mykey must be a key specifier, either the key ID of your primary keypair or any part of a user ID that identifies your keypair. The generated certificate will be left in the file <span><br />
</span>revoke.asc. The certificate should not be stored where others can access it since anybody can publish the revocation certificate and render the corresponding public key <span><br />
</span>useless. <span><br />
 </span> <span><br />
 </span></p>
<p><strong>3: Listing Keys</strong></p>
<p> To list the keys on your public keyring use the command-line option &#8211;list-keys.</p>
<p>[root@dragon /]#  gpg &#8211;list-keys <span><br />
</span>/root/.gnupg/pubring.gpg <span><br />
</span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; <span><br />
</span>pub  1024D/020C9884 2000-11-09 Test Tester (Unix/Linux consultant) &lt;test@example.com&gt; <span><br />
</span>sub  2048g/555286CA 2000-11-09</p>
<p><strong>4: Exporting a public key</strong></p>
<p>You can export your public key to use it on your homepage or on a available key server on the Internet or any other method. To send your public key to a correspondent you must first export it. The command-line option &#8211;export is used to do this. It takes an additional argument identifying the public key to export. <span><br />
 </span></p>
<ul>
<li>To export your public key in binary format, use the following command:</li>
<li>  [root@dragon /]# gpg &#8211;output harry.gpg &#8211;export test@example.com</li>
<li>To export your public key in ASCII armored output, use the following command:</li>
<li> [root@dragon /]# gpg  &#8211;export-armor&gt; harry-key.asc </li>
<li>Here &#8220;&#8211;export&#8221; is for extracting your Public-key from your pubring encrypted file , &#8220;-armor&#8221; is to create ASCII armored output that you can mail, publish it on a web page and &#8220;&gt; harry-key.asc&#8221; is to put the result in a file.</li>
<li>To export your public key in ASCII armored output and to view it , use the following command:</li>
<li><span> </span>•<span> </span>[root@dragon /]# gpg  &#8211;export-armor </li>
</ul>
<ul>
<li>&#8212;&#8211;BEGIN PGP PUBLIC KEY BLOCK&#8212;&#8211; </li>
<li>Version: GnuPG v1.0.2 (GNU/Linux) </li>
<li>Comment: For info see http://www.gnupg.org</li>
<li><span>[...]<br />
</span>&#8212;&#8211;END PGP PUBLIC KEY BLOCK&#8212;&#8211; <span><br />
 </span></li>
</ul>
<p><strong>5: Importing a public key</strong> </p>
<p>Once your own keypair is created, you can put it into your public keyring database of all keys from trusted third party in order to be able to use the keys for future encryption and authentication communication. A public key may be added to your public keyring with the &#8211;import option.</p>
<p> [root@dragon /]# gpg &#8211;import &lt;filename&gt; <span><br />
</span>Here &#8220;filename&#8221; is the name of the exported public key. <span><br />
</span>For example: <span><br />
</span>[root@dragon /]# gpg &#8211;import mandrake.asc <span><br />
</span>gpg: key :9B4A4024: public key imported <span><br />
</span>gpg: /root/.gnupg/trustdb.gpg: trustdb created <span><br />
</span>gpg: Total number processed: 1 <span><br />
</span>gpg:              imported: 1</p>
<p>In the above example we imported the Public key file &#8220;mandrake.asc&#8221; from the company Mandrake Linux, downloadable from Mandrake Internet site, into our keyring.</p>
<p><strong>6: Validating the key</strong> <span><br />
</span>Once a key is imported it should be validated.  A key is validated by verifying the key&#8217;s fingerprint and then signing the key to certify it as a valid key. A key&#8217;s fingerprint can be quickly viewed with the &#8211;fingerprint command-line option. <span><br />
</span>[root@dragon /]# gpg &#8211;fingerprint &lt;UID&gt; <span><br />
</span>As a example: <span><br />
</span>[root@dragon /]# gpg &#8211;fingerprint mandrake <span><br />
</span>pub  1024D/9B4A4024 2000-01-06 MandrakeSoft (MandrakeSoft official keys) &lt;mandrake@mandrakesoft.com&gt; <span><br />
    </span> Key fingerprint = 63A2 8CBD A7A8 387E 1A53  2C1E 59E7 0DEE 9B4A 4024 <span><br />
</span>sub  1024g/686FF394 2000-01-06</p>
<p>In the above example we verified the fingerprint of mandrake. A key&#8217;s fingerprint is verified with the key&#8217;s owner. This may be done in person or over the phone or through any other means as long as you can guarantee that you are communicating with the key&#8217;s true owner. If the fingerprint you get is the same as the fingerprint the key&#8217;s owner gets, then you can be sure that you have a correct copy of the key.</p>
<p><strong>7: Key Signing</strong> <span><br />
</span>After importing and verifying the keys that you have imported into your public database, you can start signing them. Signing a key certifies that you know the owner of the keys. You should only sign the keys when you are 100% sure of the authentication of the key. <span><br />
 </span></p>
<ul>
<li>To sign a key for the company Mandrake that we have added on our keyring above, use the following command:</li>
<li>[root@dragon /]# gpg &#8211;sign-key &lt;UID&gt; </li>
<li>As an example: </li>
<li>[root@dragon /]# gpg &#8211;sign-key &lt;UID&gt; </li>
<li>pub  1024D/9B4A4024  created: 2000-01-06 expires: never      trust: -/q </li>
<li>sub  1024g/686FF394  created: 2000-01-06 expires: never </li>
<li>(1)  MandrakeSoft (MandrakeSoft official keys) &lt;mandrake@mandrakesoft.com&gt; </li>
<li> </li>
<li>pub  1024D/9B4A4024  created: 2000-01-06 expires: never      trust: -/q<br />
            <span> Fingerprint: 63A2 8CBD A7A8 387E 1A53  2C1E 59E7 0DEE 9B4A 4024</span></li>
<li>     MandrakeSoft (MandrakeSoft official keys) &lt;mandrake@mandrakesoft.com&gt;</li>
<li>Are you really sure that you want to sign this key <span><br />
</span>with your key: &#8220;Test Tester (Unix/Linux consultant) &lt;test@example.com&gt; &#8220;</li>
<li>Really sign? y</li>
<li>You need a passphrase to unlock the secret key for <span><br />
</span>user: &#8220;Test Tester (Unix/Linux consultant) &lt;test@example.com&gt; &#8221; <span><br />
</span>1024-bit DSA key, ID 020C9884, created 2000-11-09</li>
<li>Enter passphrase: <span><br />
 </span></li>
</ul>
<p><strong>8:  Checking Signatures</strong> </p>
<p> </p>
<p>Once signed you can check the key to list the signatures on it and see the signature that you have added. Every user ID on the key will have one or more self-signatures as well as a signature for </p>
<p>each user that has validated the key. We can check the signatures of the keys by the gpg option &#8220;&#8211;check-sigs: </p>
<p>As an example: </p>
<p>[root@dragon /]# gpg &#8211;check-sigs mandrake </p>
<p>pub  1024D/9B4A4024 2000-01-06 MandrakeSoft (MandrakeSoft official keys) &lt;mandrake@mandrakesoft.com&gt; </p>
<p>sig!       9B4A4024 2000-01-06  MandrakeSoft (MandrakeSoft official keys) &lt;mandrake@mandrakesoft.com&gt; </p>
<p>sig!       020C9884 2000-11-09  Test Tester(Unix/Linux consultant) &lt;test@example.comt&gt; </p>
<p>sub  1024g/686FF394 2000-01-06 </p>
<p>sig!       9B4A4024 2000-01-06  MandrakeSoft (MandrakeSoft official keys) &lt;mandrake@mandrakesoft.com&gt;</p>
<p><strong>9: Encrypting and decrypting</strong> <span><br />
</span>The procedure for encrypting and decrypting documents is very simple. If you want to encrypt a message to mandrake, you encrypt it using mandrake public key, and then only mandrake can <span><br />
</span>decrypt that file  with his private key. If Mandrake wants to send you a message, it  encrypts it using your public key, and you decrypt it with your private key.</p>
<p>To encrypt and sign data for the user Mandrake that we have added on our keyring use the following command (You must have a public key of the recipient): <span><br />
</span>[root@dragon /]# gpg  -sear &lt;UID of the public key&gt; &lt;file&gt;</p>
<p>As an example: <span><br />
</span>[root@dragon /]# gpg -sear Mandrake document.txt <span><br />
</span>You need a passphrase to unlock the secret key for user: &#8220;Kapil Sharma (Unix/Linux consultant) &lt;kapil@linux4biz.net&gt; &#8221; <span><br />
</span>1024-bit DSA key, ID 020C9884, created 2000-11-09</p>
<p>Enter passphrase:</p>
<p>Here &#8220;s&#8221; is for signing , &#8220;e&#8221; for encrypting, &#8220;a&#8221; to create ASCII armored output (&#8220;.asc&#8221; is ready for sending by mail), &#8220;r&#8221; to encrypt the user id name and &lt;file&gt; is the data you want to encrypt <span><br />
</span>[root@dragon /]# gpg  -d &lt;file&gt;</p>
<p>As an example: <span><br />
</span>[root@dragon /]# gpg -d documentforkapil.asc <span><br />
</span>You need a passphrase to unlock the secret key for <span><br />
</span>user: &#8220;Test Tester (Unix/Linux consultant) &lt;test@example.com&gt; &#8221; <span><br />
</span>1024-bit DSA key, ID 020C9884, created 2000-11-09 <span><br />
</span>Enter passphrase:</p>
<p>Here the parameter &#8220;d&#8221; is for decrypting the data and &lt;file&gt; is a data you want to decrypt. <span><br />
</span>[Note: you must have the public key of the sender of the message/data that you want to decrypt in your public keyring database.]</p>
<p><strong>10: Checking the signature</strong> <span><br />
</span>Once you have extracted your public key and exported it then by using the &#8211;verify option of GnuPG anybody can check whether encrypted data from you is also signed by you.</p>
<ul>
<li>To check the signature of encrypted data, use the following command:</li>
<li>[root@dragon /]#  gpg &#8211;verify &lt;Data&gt; </li>
<li>Here &#8220;&#8211;verify&#8221; option is to check the signature and &#8220;&lt;Data&gt; &#8221; is the encrypted data/file you want to verify.</li>
</ul>
<p><strong></strong></p>
<p><strong>Some uses of GnuPG software</strong></p>
<p>1: Send encrypted mail messages. <span><br />
</span>2: Encrypt files and documents <span><br />
</span>3: Transmit encrypted files and important documents through network <span><br />
 </span></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hsukumar.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hsukumar.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hsukumar.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hsukumar.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hsukumar.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hsukumar.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hsukumar.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hsukumar.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hsukumar.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hsukumar.wordpress.com/153/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hsukumar.wordpress.com&blog=2265613&post=153&subd=hsukumar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hsukumar.wordpress.com/2009/04/08/gpg-on-linux-secure-communications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7f5ecf2f7fa6dd29fc4893b3a98faa4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Harry</media:title>
		</media:content>
	</item>
		<item>
		<title>VNC- Virtual Network Computing</title>
		<link>http://hsukumar.wordpress.com/2009/04/08/vnc-virtual-network-computing/</link>
		<comments>http://hsukumar.wordpress.com/2009/04/08/vnc-virtual-network-computing/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 12:36:44 +0000</pubDate>
		<dc:creator>hsukumar</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[General Linux]]></category>
		<category><![CDATA[Redhat MIX]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://hsukumar.wordpress.com/?p=106</guid>
		<description><![CDATA[To configure vncserver as a service on your system, add yourself in following config file.
[harry@beans.com]$ sudo vi /etc/sysconfig/vncservers

# The VNCSERVERS variable is a list of display:user pairs.
#
# Uncomment the line below to start a VNC server on display :1
# as my 'myusername' (adjust this to your own).  You will also
# need to set a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hsukumar.wordpress.com&blog=2265613&post=106&subd=hsukumar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>To configure vncserver as a service on your system, add yourself in following config file.</p>
<pre>[harry@beans.com]$ sudo vi /etc/sysconfig/vncservers

# The VNCSERVERS variable is a list of display:user pairs.
#
# Uncomment the line below to start a VNC server on display :1
# as my 'myusername' (adjust this to your own).  You will also
# need to set a VNC password; run 'man vncpasswd' to see how
# to do that.
#
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted!  For a secure way of using VNC, see
# URL:http://www.uk.research.att.com/vnc/sshvnc.html

# VNCSERVERS="1:myusername"
<span style="color:red;">VNCSERVERS="1:harry"</span></pre>
<p>Before starting vncserver as a service, let&#8217;s create a vnc password with <strong>vncpasswd</strong> command.<br />
Notice it creates a hidden directory <strong>.vnc</strong> under your home account with file <strong>passwd</strong> which contains your vnc password.</p>
<p>[tchung@tchung101 tchung]$ vncpasswd</p>
<p>Password:</p>
<p>Verify:</p>
<p>[beans@harry]$ ls -d .vnc</p>
<p>[beans@harry]$ ls .vnc</p>
<p>passwd</p>
<p>[beans@harry]$</p>
<p>Now let&#8217;s start vncserver as a service.</p>
<p>[beans@harry.com]$ sudo /sbin/service vncserver start or service vncserver start</p>
<p>Starting VNC server: 1:tchung                              [  OK  ]</p>
<p>[tchung@tchung101 tchung]$</p>
<p>Take a look at the contents of .vnc directory now. You should have something similiar to following.</p>
<p>[tchung@tchung101 tchung]$ cd .vnc</p>
<p>[tchung@tchung101 .vnc]$ ls</p>
<p>passwd  tchung101:1.log  tchung101:1.pid  xstartup</p>
<p>[tchung@tchung101 .vnc]$   If you edit the script called <strong>xstartup</strong>, you will notice following comment in red.<br />
<strong>Uncomment</strong> those two lines in <span style="color:red;">red</span> as shown below!!! Otherwise, you will get nothing but grey screen. #!/bin/sh</p>
<p># Uncomment the following two lines for normal desktop:</p>
<p><span style="color:red;"> unset SESSION_MANAGER </span></p>
<p><span style="color:red;">exec /etc/X11/xinit/xinitrc </span></p>
<p>#!/bin/sh</p>
<p># vncconfig -iconic &amp;<br />
# Uncomment the following two lines for normal desktop:<br />
#unset SESSION_MANAGER<br />
#exec /etc/X11/xinit/xinitrc</p>
<p>[ -x /etc/vnc/xstartup ] &amp;&amp; exec /etc/vnc/xstartup<br />
[ -r $HOME/.Xresources ] &amp;&amp; xrdb $HOME/.Xresources<br />
xsetroot -solid grey<br />
xterm -geometry 80&#215;24+10+10 -ls -title &#8220;$VNCDESKTOP Desktop&#8221; &amp;</p>
<p>twm &amp;</p>
<p>I have add to add these lines just because my fedora box refused to start x without the following lines 3, please remember to delete &amp;twm if you are going to add the below lines</p>
<p>gnome-session &amp;<br />
gnome-wm &amp;<br />
gnome-panel &amp;</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hsukumar.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hsukumar.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hsukumar.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hsukumar.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hsukumar.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hsukumar.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hsukumar.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hsukumar.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hsukumar.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hsukumar.wordpress.com/106/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hsukumar.wordpress.com&blog=2265613&post=106&subd=hsukumar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hsukumar.wordpress.com/2009/04/08/vnc-virtual-network-computing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7f5ecf2f7fa6dd29fc4893b3a98faa4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Harry</media:title>
		</media:content>
	</item>
		<item>
		<title>Windows Uptime?</title>
		<link>http://hsukumar.wordpress.com/2009/04/08/windows-uptime/</link>
		<comments>http://hsukumar.wordpress.com/2009/04/08/windows-uptime/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 06:11:28 +0000</pubDate>
		<dc:creator>hsukumar</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://hsukumar.wordpress.com/?p=145</guid>
		<description><![CDATA[Instructions
Option 1:
1.  Go to &#8220;Start&#8221; -&#62; &#8220;Run&#8221;.
2.  Write &#8220;CMD&#8221; and press on &#8220;Enter&#8221; key.
3.  Write the command &#8220;net statistics server&#8221; and press on &#8220;Enter&#8221; key.
4.  The line that start with &#8220;Statistics since …&#8221; provides the time that the server was up from.
*   The command &#8220;net stats srv&#8221; can be [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hsukumar.wordpress.com&blog=2265613&post=145&subd=hsukumar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Instructions</p>
<p>Option 1:</p>
<p>1.  Go to &#8220;Start&#8221; -&gt; &#8220;Run&#8221;.</p>
<p>2.  Write &#8220;CMD&#8221; and press on &#8220;Enter&#8221; key.</p>
<p>3.  Write the command &#8220;net statistics server&#8221; and press on &#8220;Enter&#8221; key.</p>
<p>4.  The line that start with &#8220;Statistics since …&#8221; provides the time that the server was up from.</p>
<p>*   The command &#8220;net stats srv&#8221; can be use instead.</p>
<p>Option 2:</p>
<p>Uptime.exe Tool Allows You to Estimate Server Availability</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hsukumar.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hsukumar.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hsukumar.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hsukumar.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hsukumar.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hsukumar.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hsukumar.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hsukumar.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hsukumar.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hsukumar.wordpress.com/145/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hsukumar.wordpress.com&blog=2265613&post=145&subd=hsukumar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hsukumar.wordpress.com/2009/04/08/windows-uptime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7f5ecf2f7fa6dd29fc4893b3a98faa4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Harry</media:title>
		</media:content>
	</item>
		<item>
		<title>Help Communication using ssh-agent and ssh-add</title>
		<link>http://hsukumar.wordpress.com/2009/04/08/help-communication-using-ssh-agent-and-ssh-add/</link>
		<comments>http://hsukumar.wordpress.com/2009/04/08/help-communication-using-ssh-agent-and-ssh-add/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 03:20:06 +0000</pubDate>
		<dc:creator>hsukumar</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Redhat MIX]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://hsukumar.wordpress.com/?p=141</guid>
		<description><![CDATA[The little program ssh-agent does you a favor by managing your keys for you. You enter the passphrase once, and after that, ssh-agent keeps your key in its memory and pulls it up whenever it is asked for it.
To use the agent first start it. Just enter &#8220;ssh-agent bash&#8221; and thats all. This will put [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hsukumar.wordpress.com&blog=2265613&post=141&subd=hsukumar&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The little program ssh-agent does you a favor by managing your keys for you. You enter the passphrase once, and after that, ssh-agent keeps your key in its memory and pulls it up whenever it is asked for it.</p>
<p>To use the agent first start it. Just enter &#8220;<code>ssh-agent bash</code>&#8221; and thats all. This will put you in a bash shell which is spawned by ssh-agent. After that you&#8217;ll need to add your key. To do this enter the command &#8220;ssh-add&#8221;. This will try and add the standard key &#8220;identity&#8221; to the key manager. To add a key with a different name, enter &#8220;ssh-add /location/of/key&#8221;. After this, the ssh-add program will ask you for your passphrase. After you entered your password the key is loaded in the key manager ssh-agent.</p>
<p>You can test this by logging into the server you put your public key on. If the key is correctly loaded in the ssh agent it wont ask you for your passphrase and log you in. (&#8220;ssh -v host.with.pubkey&#8221;).</p>
<p>Also you can have a look at your currently loaded keys by using &#8220;<code>ssh-add -l</code>&#8220;.</p>
<p>After you logged in, log out by typing &#8220;logout&#8221;. After this, try and login again, using &#8220;ssh -v host.with.pubkey&#8221; again. Again it wont ask you for your passphrase, because the ssh-agent does this for you.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hsukumar.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hsukumar.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hsukumar.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hsukumar.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hsukumar.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hsukumar.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hsukumar.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hsukumar.wordpress.com/141/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hsukumar.wordpress.com/141/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hsukumar.wordpress.com/141/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hsukumar.wordpress.com&blog=2265613&post=141&subd=hsukumar&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://hsukumar.wordpress.com/2009/04/08/help-communication-using-ssh-agent-and-ssh-add/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b7f5ecf2f7fa6dd29fc4893b3a98faa4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Harry</media:title>
		</media:content>
	</item>
	</channel>
</rss>