<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="http://feedproxy.google.com/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feedproxy.google.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>The Geek Stuff</title>
	
	<link>http://www.thegeekstuff.com</link>
	<description>Guides, HowTos and Tips for Technology Geeks</description>
	<pubDate>Sat, 22 Nov 2008 05:16:43 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feedproxy.google.com/TheGeekStuff" type="application/rss+xml" /><feedburner:emailServiceId>TheGeekStuff</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>3 Steps to Perform SSH Login Without Password Using ssh-keygen &amp; ssh-copy-id</title>
		<link>http://feedproxy.google.com/~r/TheGeekStuff/~3/eBfPHu3axYs/</link>
		<comments>http://www.thegeekstuff.com/2008/11/3-steps-to-perform-ssh-login-without-password-using-ssh-keygen-ssh-copy-id/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 16:04:28 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[authentication keys]]></category>

		<category><![CDATA[openssh]]></category>

		<category><![CDATA[public key authentication]]></category>

		<category><![CDATA[scp]]></category>

		<category><![CDATA[scp no password]]></category>

		<category><![CDATA[ssh]]></category>

		<category><![CDATA[ssh no pasword]]></category>

		<category><![CDATA[ssh-add]]></category>

		<category><![CDATA[ssh-agent]]></category>

		<category><![CDATA[ssh-copy-id]]></category>

		<category><![CDATA[ssh-keygen]]></category>

		<category><![CDATA[ssh2]]></category>

		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=268</guid>
		<description><![CDATA[You can login to a remote Linux server without entering password in 3 simple steps using ssky-keygen and ssh-copy-id as explained in this article.
 
 ssh-keygen creates the public and private keys. ssh-copy-id copies the local-host&#8217;s public key to the remote-host&#8217;s authorized_keys file. ssh-copy-id also assigns proper permission to the remote-host&#8217;s home, ~/.ssh, and ~/.ssh/authorized_keys.
 [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright alignnone size-medium wp-image-4" style="float: right;" title="[OpenSSH Logo]" src="http://www.thegeekstuff.com/wp-content/uploads/2008/05/openssh-300x99.gif" alt="[OpenSSH Logo]" width="300" height="99" />You can login to a remote Linux server without entering password in 3 simple steps using ssky-keygen and ssh-copy-id as explained in this article.<br />
<code> </code><br />
<strong> ssh-keygen</strong> creates the public and private keys.<strong> ssh-copy-id</strong> copies the local-host&#8217;s public key to the remote-host&#8217;s authorized_keys file. ssh-copy-id also assigns proper permission to the remote-host&#8217;s home, ~/.ssh, and ~/.ssh/authorized_keys.<br />
<code> </code><br />
This article also explains 3 minor annoyances of using ssh-copy-id and how to use ssh-copy-id along with ssh-agent.<br />
<span id="more-268"></span></p>
<h3>Step 1: Create public and private keys using ssh-key-gen on local-host</h3>
<pre>jsmith@local-host$ <span style="color: red;">[Note: You are on local-host here]</span>

jsmith@local-host$ <strong>ssh-keygen
</strong>Generating public/private rsa key pair.
Enter file in which to save the key (/home/jsmith/.ssh/id_rsa):<span style="color: red;">[Enter key]</span>
Enter passphrase (empty for no passphrase): <span style="color: red;">[Press enter key]</span>
Enter same passphrase again: <span style="color: red;">[Pess enter key]</span>
Your identification has been saved in /home/jsmith/.ssh/id_rsa.
Your public key has been saved in /home/jsmith/.ssh/id_rsa.pub.
The key fingerprint is:
33:b3:fe:af:95:95:18:11:31:d5:de:96:2f:f2:35:f9 jsmith@local-host</pre>
<h3>Step 2: Copy the public key to remote-host using ssh-copy-id</h3>
<pre>jsmith@local-host$ <strong>ssh-copy-id -i ~/.ssh/id_rsa.pub remote-host</strong>
jsmith@remote-host&#8217;s password:
Now try logging into the machine, with &#8220;ssh &#8216;remote-host&#8217;&#8221;, and check in:

.ssh/authorized_keys

to make sure we haven&#8217;t added extra keys that you weren&#8217;t expecting.</pre>
<p><strong>Note:</strong> ssh-copy-id <strong>appends</strong> the keys to the remote-host&#8217;s .ssh/authorized_key.</p>
<h3>Step 3: Login to remote-host without entering the password</h3>
<pre>jsmith@local-host$ <strong>ssh remote-host</strong>
Last login: Sun Nov 16 17:22:33 2008 from 192.168.1.2
<span style="color: red;">[Note: SSH did not ask for password.]</span>

jsmith@remote-host$ <span style="color: red;">[Note: You are on remote-host here]</span></pre>
<p><code> </code><br />
The above 3 simple steps should get the job done in most cases.<br />
<code> </code><br />
We also discussed earlier in detail about performing SSH and SCP from <a href="http://www.thegeekstuff.com/2008/06/perform-ssh-and-scp-without-entering-password-on-openssh/">openSSH to openSSH</a> without entering password.<br />
<code> </code><br />
If you are using SSH2, we discussed earlier about performing SSH and SCP without password from <a href="http://www.thegeekstuff.com/2008/06/comprehensive-guide-for-ssh2-key-based-authentication-setup/">SSH2 to SSH2</a> , from <a href="http://www.thegeekstuff.com/2008/07/ssh-key-based-authentication-setup-from-openssh-to-ssh2/">OpenSSH to SSH2</a> and from <a href="http://www.thegeekstuff.com/2008/10/perform-ssh-and-scp-without-password-from-ssh2-to-openssh/">SSH2 to OpenSSH</a>.<br />
<code> </code></p>
<h3>Using ssh-copy-id along with the ssh-add/ssh-agent</h3>
<p>When no value is passed for the <em>option -i</em> and If <em>~/.ssh/identity.pub</em> is not available, <em>ssh-copy-id</em> will display the following error message.</p>
<pre>jsmith@local-host$ ssh-copy-id -i remote-host
/usr/bin/ssh-copy-id: ERROR: No identities found</pre>
<p><code> </code><br />
If you have loaded keys to the <em>ssh-agent</em> using the <em>ssh-add</em>, then <em>ssh-copy-id</em> will get the keys from the <em>ssh-agent</em> to copy to the remote-host. i.e, it copies the keys provided by <strong><em>ssh-add -L</em></strong> command to the remote-host, when you don&#8217;t pass <em>option -i</em> to the <em>ssh-copy-id</em>.</p>
<pre>jsmith@local-host$ <strong>ssh-agent $SHELL
</strong>
jsmith@local-host$ <strong>ssh-add -L</strong>
The agent has no identities.

jsmith@local-host$ <strong>ssh-add</strong>
Identity added: /home/jsmith/.ssh/id_rsa (/home/jsmith/.ssh/id_rsa)

jsmith@local-host$ <strong>ssh-add -L</strong>
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAsJIEILxftj8aSxMa3d8t6JvM79DyBV
aHrtPhTYpq7kIEMUNzApnyxsHpH1tQ/Ow== /home/jsmith/.ssh/id_rsa

jsmith@local-host$ <strong>ssh-copy-id -i remote-host</strong>
jsmith@remote-host&#8217;s password:
Now try logging into the machine, with &#8220;ssh &#8216;remote-host&#8217;&#8221;, and check in:

.ssh/authorized_keys

to make sure we haven&#8217;t added extra keys that you weren&#8217;t expecting.
<span style="color: red;">[Note: This has added the key displayed by ssh-add -L]</span></pre>
<h3>Three Minor Annoyances of ssh-copy-id</h3>
<p>Following are few minor annoyances of the ssh-copy-id.<br />
<code> </code></p>
<ol>
<li><strong>Default public key:</strong> ssh-copy-id uses ~/.ssh/identity.pub as the default public key file (i.e when no value is passed to <em>option -i</em>). Instead, I wish it uses id_dsa.pub, or id_rsa.pub, or identity.pub as default keys. i.e If any one of them exist, it should copy that to the remote-host. If two or three of them exist, it should copy identity.pub as default.</li>
<li><strong>The agent has no identities:</strong> When the <em>ssh-agent</em> is running and the <em>ssh-add -L</em> returns &#8220;The agent has no identities&#8221; (i.e no keys are added to the ssh-agent), the ssh-copy-id will still copy the message &#8220;The agent has no identities&#8221; to the remote-host&#8217;s authorized_keys entry.</li>
<li><strong>Duplicate entry in authorized_keys:</strong> I wish ssh-copy-id validates duplicate entry on the remote-host&#8217;s authorized_keys. If you execute ssh-copy-id multiple times on the local-host, it will keep appending the same key on the remote-host&#8217;s authorized_keys file without checking for duplicates. Even with duplicate entries everything works as expected. But, I would like to have my authorized_keys file clutter free.</li>
</ol>
<p><code> </code><br />
<em> If you like this article, please bookmark it on <strong>Delicious</strong> and <strong>Stumble it</strong>.</em></p>
<p>Post from: <a href="http://www.thegeekstuff.com">The Geek Stuff</a></p>
<p><a href="http://www.thegeekstuff.com/2008/11/3-steps-to-perform-ssh-login-without-password-using-ssh-keygen-ssh-copy-id/">3 Steps to Perform SSH Login Without Password Using ssh-keygen &#038; ssh-copy-id</a></p>

<p><a href="http://feedads.googleadservices.com/~a/-CvfI2PgVT-c0uG50sqh74_TrH4/a"><img src="http://feedads.googleadservices.com/~a/-CvfI2PgVT-c0uG50sqh74_TrH4/i" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feedproxy.google.com/~f/TheGeekStuff?a=qONej1Z2"><img src="http://feedproxy.google.com/~f/TheGeekStuff?d=41" border="0"></img></a> <a href="http://feedproxy.google.com/~f/TheGeekStuff?a=C8qngMDk"><img src="http://feedproxy.google.com/~f/TheGeekStuff?i=C8qngMDk" border="0"></img></a> <a href="http://feedproxy.google.com/~f/TheGeekStuff?a=uJbBNO97"><img src="http://feedproxy.google.com/~f/TheGeekStuff?d=50" border="0"></img></a>
</div><img src="http://feedproxy.google.com/~r/TheGeekStuff/~4/eBfPHu3axYs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.thegeekstuff.com/2008/11/3-steps-to-perform-ssh-login-without-password-using-ssh-keygen-ssh-copy-id/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.thegeekstuff.com/2008/11/3-steps-to-perform-ssh-login-without-password-using-ssh-keygen-ssh-copy-id/</feedburner:origLink></item>
		<item>
		<title>How To Manage Dell Servers using OMSA - OpenManage Server Administrator On Linux</title>
		<link>http://feedproxy.google.com/~r/TheGeekStuff/~3/szfTOjNS5fQ/</link>
		<comments>http://www.thegeekstuff.com/2008/11/how-to-manage-dell-servers-using-omsa-openmanage-server-administrator-on-linux/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 16:22:08 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
		
		<category><![CDATA[Hardware]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Create RAID]]></category>

		<category><![CDATA[dell]]></category>

		<category><![CDATA[DELL OMSA]]></category>

		<category><![CDATA[DELL Server]]></category>

		<category><![CDATA[Diagnose Hardware]]></category>

		<category><![CDATA[Hardware Error Log]]></category>

		<category><![CDATA[OMSA Linux]]></category>

		<category><![CDATA[OMSA Windows]]></category>

		<category><![CDATA[Open Manage Systems Management]]></category>

		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=263</guid>
		<description><![CDATA[ OMSA is a web based application to manage DELL PowerEdge Servers. Using OMSA you can perform proactive system monitoring,  system diagnosis, troubleshoot hardware issues and configure RAID etc., You can also view and manage hardware&#8217;s embedded system management (ESM) log using OMSA.
 
This is an jumpstart guide that explains how to install Dell [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright alignnone size-medium wp-image-21" style="float: right;" title="[Dell Server]" src="http://www.thegeekstuff.com/wp-content/uploads/2008/06/dell-server-300x158.jpg" alt="[Dell Server]" width="300" height="158" /> OMSA is a web based application to manage DELL PowerEdge Servers. Using OMSA you can perform proactive system monitoring,  system diagnosis, troubleshoot hardware issues and configure RAID etc., You can also view and manage hardware&#8217;s embedded system management (ESM) log using OMSA.<br />
<code> </code><br />
This is an jumpstart guide that explains how to install Dell OMSA on Linux. I have also provided few screenshots of DELL OMSA web application.<br />
<span id="more-263"></span></p>
<h3>1. Download DELL OMSA</h3>
<p>Go to <a href="http://support.dell.com/">DELL support</a> website -&gt; click on &#8220;Drivers &amp; Downloads&#8221; -&gt; choose your server model (in my case, I selected PowerEdge 2850) -&gt; choose the operating system -&gt; scroll-down and expand &#8216;Systems Management&#8217; -&gt; Click on &#8216;OpenManage Server Administrator Managed Node&#8217; -&gt; Click on OM_5.5.0_ManNode_A00.tar.gz to download it. You can directly download it to your Linux server as shown below.</p>
<pre># mkdir -p /usr/local/omsa
# cd /usr/local/omsa
# wget http://ftp.us.dell.com/sysman/OM_5.5.0_ManNode_A00.tar.gz</pre>
<h3>2. Install DELL OMSA</h3>
<p>Perform an express OMSA installation as shown below. After the installation, check /var/log/srvadmin.log for any installation errors.</p>
<pre># gzip -d OM_5.5.0_ManNode_A00.tar.gz
# tar xvf OM_5.5.0_ManNode_A00.tar
# sh linux/supportscripts/srvadmin-install.sh --express
Installing the selected packages.

Preparing...                ###################################### [100%]
   1:srvadmin-omilcore      ###################################### [  8%]
     To start all installed services without a reboot,
     enter the following command:  srvadmin-services.sh  start
   2:srvadmin-syscheck      ###################################### [ 15%]
   3:srvadmin-deng          ###################################### [ 23%]
   4:srvadmin-omauth        ###################################### [ 31%]
   5:srvadmin-omacore       ###################################### [ 38%]
   6:srvadmin-jre           ###################################### [ 46%]
   7:srvadmin-ipmi          ###################################### [ 54%]
   8:srvadmin-hapi          ###################################### [ 62%]
   9:srvadmin-isvc          ###################################### [ 69%]
  10:srvadmin-cm            ###################################### [ 77%]
  11:srvadmin-iws           ###################################### [ 85%]
  12:srvadmin-omhip         ###################################### [ 92%]
  13:srvadmin-storage       ###################################### [100%]</pre>
<h3>3. Start DELL OMSA Services</h3>
<p>Invoke the srvadmin-services.sh script to start the OMSA services as shown below.</p>
<pre># sh linux/supportscripts/srvadmin-services.sh start
Starting Systems Management Device Drivers:
Starting dell_rbu:                                         [  OK  ]
Starting ipmi driver:                                      [  OK  ]
Starting Systems Management Data Engine:
Starting dsm_sa_datamgr32d:                                [  OK  ]
Starting dsm_sa_eventmgr32d:                               [  OK  ]
Starting DSM SA Shared Services:                           [  OK  ]
Starting DSM SA Connection Service:                        [  OK  ]</pre>
<h3>4. Access OMSA from web browser</h3>
<p>By default, OMSA web application runs on Port 1311 . Login to OMSA from web using the URL: https://{omsa-server-ip-address}:1311 using root as shown below. Please note that you can login only using HTTPS.</p>
<div style="text-align: center;"><a href="http://www.thegeekstuff.com/wp-content/uploads/2008/11/dell-omsa-login.jpg"><img class="alignnone size-full wp-image-264" title="DELL OMSA Login Screen" src="http://www.thegeekstuff.com/wp-content/uploads/2008/11/dell-omsa-login.jpg" alt="DELL OMSA Login Screen" width="380" height="261" /></a></div>
<div style="text-align: center;"><strong>Fig:</strong> DELL OMSA - Web Login Screen</div>
<h3>5. Check overall system health of the server</h3>
<p>To check the overall system health of various hardware components, expand system menu and click on &#8216;Main System Chassis&#8217;, which will display the health of Memory, CPU etc., as shown below.</p>
<div style="text-align: center;"><a href="http://www.thegeekstuff.com/wp-content/uploads/2008/11/dell-omsa-system-health.jpg"><img class="alignnone size-full wp-image-265" title="DELL OMSA Check System Health" src="http://www.thegeekstuff.com/wp-content/uploads/2008/11/dell-omsa-system-health.jpg" alt="DELL OMSA Check System Health" width="499" height="551" /></a></div>
<div style="text-align: center;"><strong>Fig:</strong> DELL OMSA - Check System Health</div>
<h3>6. Clear System Event Log on DELL PowerEdge Servers</h3>
<p>Sometimes you will see hardware error messages on the front side of the server even after the problem is fixed.  To clear this false alarm,  you have to clear the hardware&#8217;s Embedded System Management (ESM) Log. To clear hardware event logs, login to DELL OMSA -&gt; Click on Logs TAB -&gt; click on Clear Log.</p>
<h3>7. Create RAID (Virtual Disk) group using OMSA</h3>
<p>To create a new raid group, click on Storage -&gt; select &#8220;Create Virtual Disk&#8221; from the drop-down menu next to &#8220;PERC 4e/Di&#8221;, as shown below. -&gt; Click on Execute -&gt; and follow the on-screen instructions to create a new RAID group.</p>
<div style="text-align: center;"><a href="http://www.thegeekstuff.com/wp-content/uploads/2008/11/dell-omsa-create-raid.jpg"><img class="alignnone size-full wp-image-266" title="DELL OMSA Create RAID" src="http://www.thegeekstuff.com/wp-content/uploads/2008/11/dell-omsa-create-raid.jpg" alt="DELL OMSA Create RAID" width="500" height="325" /></a></div>
<div style="text-align: center;"><strong>Fig:</strong> DELL OMSA - Create RAID</div>
<p><code> </code><br />
You can also create RAID using PERC/CERC Bios Configuration Utility as explained in <a href="http://www.thegeekstuff.com/2008/07/step-by-step-guide-to-configure-hardware-raid-on-dell-servers-with-screenshots/">Step-by-Step Guide to Configure Hardware RAID on DELL servers with Screenshots.</a><br />
<code> </code><br />
Once the RAID group is created, to view the RAID, click on Storage -&gt; &#8220;PERC 4e/Di (Embedded)&#8221; -&gt; Click on &#8220;Virtual Disks&#8221; -&gt; Click on &#8220;Virtual Disks 0&#8243; -&gt; This will display the details of the physical disks of that particular RAID group as shown below.</p>
<div style="text-align: center;"><a href="http://www.thegeekstuff.com/wp-content/uploads/2008/11/dell-omsa-view-raid.jpg"><img class="alignnone size-full wp-image-267" title="DELL OMSA View RAID" src="http://www.thegeekstuff.com/wp-content/uploads/2008/11/dell-omsa-view-raid.jpg" alt="DELL OMSA View RAID" width="500" height="203" /></a></div>
<div style="text-align: center;"><strong>Fig:</strong> DELL OMSA - View RAID</div>
<p>Post from: <a href="http://www.thegeekstuff.com">The Geek Stuff</a></p>
<p><a href="http://www.thegeekstuff.com/2008/11/how-to-manage-dell-servers-using-omsa-openmanage-server-administrator-on-linux/">How To Manage Dell Servers using OMSA - OpenManage Server Administrator On Linux</a></p>

<p><a href="http://feedads.googleadservices.com/~a/HkE0QIdca_j_IWxloJj7z2dO94Y/a"><img src="http://feedads.googleadservices.com/~a/HkE0QIdca_j_IWxloJj7z2dO94Y/i" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feedproxy.google.com/~f/TheGeekStuff?a=4rqkOoFO"><img src="http://feedproxy.google.com/~f/TheGeekStuff?d=41" border="0"></img></a> <a href="http://feedproxy.google.com/~f/TheGeekStuff?a=U5JH7CoQ"><img src="http://feedproxy.google.com/~f/TheGeekStuff?i=U5JH7CoQ" border="0"></img></a> <a href="http://feedproxy.google.com/~f/TheGeekStuff?a=WTc7ftr5"><img src="http://feedproxy.google.com/~f/TheGeekStuff?d=50" border="0"></img></a>
</div><img src="http://feedproxy.google.com/~r/TheGeekStuff/~4/szfTOjNS5fQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.thegeekstuff.com/2008/11/how-to-manage-dell-servers-using-omsa-openmanage-server-administrator-on-linux/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.thegeekstuff.com/2008/11/how-to-manage-dell-servers-using-omsa-openmanage-server-administrator-on-linux/</feedburner:origLink></item>
		<item>
		<title>Overview of MySQL information_schema Database With Practical Examples</title>
		<link>http://feedproxy.google.com/~r/TheGeekStuff/~3/LEf0yMRYu5E/</link>
		<comments>http://www.thegeekstuff.com/2008/11/overview-of-mysql-information_schema-database-with-practical-examples/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 16:13:27 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
		
		<category><![CDATA[Database]]></category>

		<category><![CDATA[column names]]></category>

		<category><![CDATA[database server]]></category>

		<category><![CDATA[describe command]]></category>

		<category><![CDATA[information_schema]]></category>

		<category><![CDATA[MySQL]]></category>

		<category><![CDATA[mysql command]]></category>

		<category><![CDATA[mysql database]]></category>

		<category><![CDATA[reading table]]></category>

		<category><![CDATA[schema]]></category>

		<category><![CDATA[show command]]></category>

		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=261</guid>
		<description><![CDATA[Starting from MySQL 5, when you execute show databases command, information_schema will be listed in the database list. information_schema is a virtual MySQL database that stores metadata information of all the MySQL databases.
 
Typically you will execute either DESCRIBE or SHOW commands to get the metadata information. However using the information_schema views, you can execute [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright alignnone size-full wp-image-262" style="float: right;" title="[MySQL Information Schema]" src="http://www.thegeekstuff.com/wp-content/uploads/2008/11/information-schema.jpg" alt="[MySQL Information Schema]" width="300" height="180" />Starting from MySQL 5, when you execute <em>show databases </em>command, information_schema will be listed in the database list. <strong>information_schema</strong> is a virtual MySQL database that stores metadata information of all the MySQL databases.<br />
<code> </code><br />
Typically you will execute either DESCRIBE or SHOW commands to get the metadata information. However using the information_schema views, you can execute the standard select SQL command to get the metadata information. In this article, let us review few practical examples on how to use the information_schema database.<br />
<span id="more-261"></span></p>
<h3>1. Get basic information about information_schema</h3>
<p><em>show databases</em> command will display the information_schema in the database list. information_schema is not a physical database.  When you perform <em>select</em> on the information_schema tables, it pulls the data from the real database and other system variables.</p>
<pre>mysql&gt; show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| bugs               |
| mysql              |
| sugarcrm           |
+--------------------+
4 rows in set (0.00 sec)</pre>
<p>Following are the tables (views) available in the information_schema database.</p>
<pre>mysql&gt; use information_schema;
mysql&gt; show tables;
+---------------------------------------+
| Tables_in_information_schema          |
+---------------------------------------+
| CHARACTER_SETS                        |
| COLLATIONS                            |
| COLLATION_CHARACTER_SET_APPLICABILITY |
| COLUMNS                               |
| COLUMN_PRIVILEGES                     |
| KEY_COLUMN_USAGE                      |
| PROFILING                             |
| ROUTINES                              |
| SCHEMATA                              |
| SCHEMA_PRIVILEGES                     |
| STATISTICS                            |
| TABLES                                |
| TABLE_CONSTRAINTS                     |
| TABLE_PRIVILEGES                      |
| TRIGGERS                              |
| USER_PRIVILEGES                       |
| VIEWS                                 |
+---------------------------------------+
17 rows in set (0.00 sec)</pre>
<h3>2. Query to display tables with more than 1000 rows</h3>
<p>Using the above mentioned information_schema tables you can build your own query to get metadata information. This example displays the MySQL tables that have more than 1000 rows.</p>
<pre>mysql&gt; select concat(table_schema,'.',table_name) as table_name,table_rows
    -&gt; from information_schema.tables where table_rows &gt; 1000
    -&gt; order by table_rows desc;

+----------------------------------+------------+
| table_name                       | table_rows |
+----------------------------------+------------+
| bugs.series_data                 |      52778 |
| bugs.bugs_activity               |      26436 |
| bugs.longdescs                   |      21473 |
| bugs.email_setting               |       5370 |
| bugs.attachments                 |       4714 |
| bugs.attach_data                 |       4651 |
| bugs.cc                          |       4031 |
| bugs.bugs                        |       2190 |
| bugs.namedqueries_link_in_footer |       1228 |
+----------------------------------+------------+
9 rows in set (0.04 sec)</pre>
<h3>3. Query to list all tables without primary key</h3>
<p>This example gives a list of all the tables without primary key.</p>
<pre>SELECT CONCAT(t.table_name,".",t.table_schema) as table_name
FROM information_schema.TABLES t
LEFT JOIN information_schema.TABLE_CONSTRAINTS tc
ON t.table_schema = tc.table_schema
AND t.table_name = tc.table_name
AND tc.constraint_type = 'PRIMARY KEY'
WHERE tc.constraint_name IS NULL
AND t.table_type = 'BASE TABLE';</pre>
<h3>4. Implement history data for tables using information_schema</h3>
<p><a href="http://www.quest-pipelines.com/newsletter-v6/1005_A.htm">Putting the MySQL information_schema to Use</a> article implements a history database using the information schema. The first half of this article describes the requirements for the history database, and a generic design to implement it. The second half describes the stepwise construction of code-generator that creates the SQL to construct and load the history database. The code-generator is driven by the information schema and some features of the information schema are discussed in detail.</p>
<h3>5. Query to list top 5 largest tables in the database</h3>
<p>This examples gives the top 5 largest space occupying tables in the database along with it&#8217;s size in MB.</p>
<pre>mysql&gt; SELECT concat(table_schema,'.',table_name) table_name,
    -&gt; concat(round(data_length/(1024*1024),2),'M') data_length
    -&gt; FROM information_schema.TABLES
    -&gt; ORDER BY data_length DESC LIMIT 5;

+--------------------+-------------+
| table_name         | data_length |
+--------------------+-------------+
| bugs.attach_data   | 706.89M     |
| bugs.longdescs     | 3.45M       |
| bugs.bugs_activity | 1.45M       |
| bugs.series_data   | 0.75M       |
| bugs.attachments   | 0.51M       |
+--------------------+-------------+
5 rows in set (0.05 sec)</pre>
<h3>Additional References:</h3>
<ul>
<li><a href="http://dev.mysql.com/doc/refman/5.0/en/information-schema.html">Information_schema table documentation from MySQL</a></li>
<li><a href="http://www.xcdsql.org/Misc/MySQL_INFORMATION_SCHEMA.html">Clickable diagram of MySQL information_schema data dictionary<br />
</a></li>
</ul>
<p>Post from: <a href="http://www.thegeekstuff.com">The Geek Stuff</a></p>
<p><a href="http://www.thegeekstuff.com/2008/11/overview-of-mysql-information_schema-database-with-practical-examples/">Overview of MySQL information_schema Database With Practical Examples</a></p>

<p><a href="http://feedads.googleadservices.com/~a/ePiVrw25RZlyh_ymtI-vJ10sUug/a"><img src="http://feedads.googleadservices.com/~a/ePiVrw25RZlyh_ymtI-vJ10sUug/i" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feedproxy.google.com/~f/TheGeekStuff?a=bVJ6PMKs"><img src="http://feedproxy.google.com/~f/TheGeekStuff?d=41" border="0"></img></a> <a href="http://feedproxy.google.com/~f/TheGeekStuff?a=GfFPqrc4"><img src="http://feedproxy.google.com/~f/TheGeekStuff?i=GfFPqrc4" border="0"></img></a> <a href="http://feedproxy.google.com/~f/TheGeekStuff?a=mG7eYDtN"><img src="http://feedproxy.google.com/~f/TheGeekStuff?d=50" border="0"></img></a>
</div><img src="http://feedproxy.google.com/~r/TheGeekStuff/~4/LEf0yMRYu5E" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.thegeekstuff.com/2008/11/overview-of-mysql-information_schema-database-with-practical-examples/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.thegeekstuff.com/2008/11/overview-of-mysql-information_schema-database-with-practical-examples/</feedburner:origLink></item>
		<item>
		<title>How To Get Hardware Information On Linux Using dmidecode Command</title>
		<link>http://feedproxy.google.com/~r/TheGeekStuff/~3/3Ca7877x2MM/</link>
		<comments>http://www.thegeekstuff.com/2008/11/how-to-get-hardware-information-on-linux-using-dmidecode-command/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 14:24:27 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
		
		<category><![CDATA[Hardware]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[BIOS configuration]]></category>

		<category><![CDATA[BIOS decoder]]></category>

		<category><![CDATA[biosdecode]]></category>

		<category><![CDATA[dmidecode]]></category>

		<category><![CDATA[dmidecode windows]]></category>

		<category><![CDATA[free command]]></category>

		<category><![CDATA[Hardware configuration]]></category>

		<category><![CDATA[linux BIOS info]]></category>

		<category><![CDATA[linux server RAM upgrade]]></category>

		<category><![CDATA[memory for server]]></category>

		<category><![CDATA[memory upgrade]]></category>

		<category><![CDATA[physical memory]]></category>

		<category><![CDATA[server chassis]]></category>

		<category><![CDATA[system configuration]]></category>

		<category><![CDATA[System Memory]]></category>

		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=259</guid>
		<description><![CDATA[Photo courtesy of B Naveen Kumar
dmidecode command reads the system DMI table to display hardware and BIOS information of the server. Apart from getting current configuration of the system, you can also get information about maximum supported configuration of the system using dmidecode. For example, dmidecode gives both the current RAM on the system and [...]]]></description>
			<content:encoded><![CDATA[<div class="optional_excerpt"><img class="alignnone size-medium wp-image-260" title="[Mother Board]" src="http://www.thegeekstuff.com/wp-content/uploads/2008/10/motherboard-300x225.jpg" alt="[Mother Board]" width="300" height="225" /><small>Photo courtesy of <a href="http://www.flickr.com/photos/bnaveenkumar/2859550104/">B Naveen Kumar</a></small></div>
<p>dmidecode command reads the system DMI table to display hardware and BIOS information of the server. Apart from getting current configuration of the system, you can also get information about maximum supported configuration of the system using dmidecode. For example, dmidecode gives both the current RAM on the system and the maximum RAM supported by the system.<br />
<code> </code><br />
This article provides an overview of the dmidecode and few practical examples on how to use dmidecode command.<br />
<span id="more-259"></span></p>
<h3>1. Overview of dmidecode</h3>
<p><a href="http://www.dmtf.org/home">Distributed Management Task Force</a> maintains the <a href="http://www.dmtf.org/standards/dmi/">DMI specification</a> and <a href="http://www.dmtf.org/standards/smbios/">SMBIOS specification</a>. The output of the dmidecode contains several records from the DMI (Desktop Management interface) table.<br />
<code> </code><br />
Following is the record format of the dmidecode output of the DMI table.</p>
<pre>Record Header: Handle {record id}, DMI type {dmi type id}, {record size} bytes
Record Value: {multi line record value}</pre>
<ul>
<li><strong>record id:</strong> Unique identifier for every record in the DMI table.</li>
<li><strong>dmi type id:</strong> Type of the record. i.e BIOS, Memory etc.,</li>
<li><strong>record size:</strong> Size of the record in the DMI table.</li>
<li><strong>multi line record values:</strong> Multi line record value for that specific DMI type.</li>
</ul>
<p>Sample output of dmidecode command:</p>
<pre># <strong>dmidecode | head -15
</strong>
# dmidecode 2.9
SMBIOS 2.3 present.
56 structures occupying 1977 bytes.
Table at 0&#215;000FB320.

Handle 0xDA00, DMI type 218, 11 bytes
OEM-specific Type
        Header and Data:
                DA 0B 00 DA B0 00 17 03 08 28 00

Handle 0&#215;0000, DMI type 0, 20 bytes
BIOS Information
        Vendor: Dell Computer Corporation
        Version: A07
        Release Date: 01/13/2004</pre>
<p>Get the total number of records in the DMI table as shown below:</p>
<pre># dmidecode | grep ^Handle | wc -l
56

(or)

# dmidecode | grep structures
56 structures occupying 1977 bytes.</pre>
<h3>2. DMI Types</h3>
<p>DMI Type id will give information about a particular hardware component of your system. Following command with type id 4 will get the information about CPU of the system.</p>
<pre># <strong>dmidecode -t 4
</strong># dmidecode 2.9
SMBIOS 2.3 present.

Handle 0&#215;0400, DMI type 4, 35 bytes
Processor Information
        Socket Designation: Processor 1
        Type: Central Processor
        Family: Xeon
        Manufacturer: Intel
        ID: 29 0F 00 00 FF FB EB BF
        Signature: Type 0, Family 15, Model 2, Stepping 9
        Flags:
                FPU (Floating-point unit on-chip)
                VME (Virtual mode extension)
                DE (Debugging extension)
                PSE (Page size extension)
                TSC (Time stamp counter)
                MSR (Model specific registers)</pre>
<p>Following are the different DMI types available.</p>
<pre>       Type   Information
       ----------------------------------------
          0   BIOS
          1   System
          2   Base Board
          3   Chassis
          4   Processor
          5   Memory Controller
          6   Memory Module
          7   Cache
          8   Port Connector
          9   System Slots
         10   On Board Devices
         11   OEM Strings
         12   System Configuration Options
         13   BIOS Language
         14   Group Associations
         15   System Event Log
         16   Physical Memory Array
         17   Memory Device
         18   32-bit Memory Error
         19   Memory Array Mapped Address
         20   Memory Device Mapped Address
         21   Built-in Pointing Device
         22   Portable Battery
         23   System Reset
         24   Hardware Security
         25   System Power Controls
         26   Voltage Probe
         27   Cooling Device
         28   Temperature Probe
         29   Electrical Current Probe
         30   Out-of-band Remote Access
         31   Boot Integrity Services
         32   System Boot
         33   64-bit Memory Error
         34   Management Device
         35   Management Device Component
         36   Management Device Threshold Data
         37   Memory Channel
         38   IPMI Device
         39   Power Supply</pre>
<p>Instead of type_id, you can also pass the keyword to the -t option of the dmidecode command. Following are the available keywords.</p>
<pre>       Keyword     Types
       ------------------------------
       bios        0, 13
       system      1, 12, 15, 23, 32
       baseboard   2, 10
       chassis     3
       processor   4
       memory      5, 6, 16, 17
       cache       7
       connector   8
       slot        9</pre>
<p>For example, to get all the system baseboard related information execute the following command, which will display the type_id 2 and 10</p>
<pre># <strong>dmidecode -t baseboard
</strong># dmidecode 2.9
SMBIOS 2.3 present.

Handle 0&#215;0200, DMI type 2, 9 bytes
Base Board Information
        Manufacturer: Dell Computer Corporation
        Product Name: 123456
        Version: A05
        Serial Number: ..CN123456789098.

Handle 0&#215;0A00, DMI type 10, 14 bytes
On Board Device 1 Information
        Type: SCSI Controller
        Status: Enabled
        Description: LSI Logic 53C1030 Ultra 320 SCSI
On Board Device 2 Information
        Type: SCSI Controller
        Status: Enabled
        Description: LSI Logic 53C1030 Ultra 320 SCSI
On Board Device 3 Information
        Type: Video
        Status: Enabled
        Description: ATI Rage XL PCI Video
On Board Device 4 Information
        Type: Ethernet
        Status: Enabled
        Description: Broadcom Gigabit Ethernet 1
On Board Device 5 Information
        Type: Ethernet
        Status: Enabled
        Description: Broadcom Gigabit Ethernet 2</pre>
<h3>3. Get Physical Memory (RAM) information using dmidecode</h3>
<p><strong>What is the maximum RAM supported by the system?</strong> In this example, this system can support maximum 8GB of RAM.</p>
<pre># <strong>dmidecode -t 16
</strong># dmidecode 2.9
SMBIOS 2.3 present.

Handle 0&#215;1000, DMI type 16, 15 bytes
Physical Memory Array
        Location: System Board Or Motherboard
        Use: System Memory
        Error Correction Type: Multi-bit ECC
<strong>        Maximum Capacity: 8 GB
</strong>        Error Information Handle: Not Provided
        Number Of Devices: 4</pre>
<p><code> </code><br />
<strong>How much memory can I expand to?</strong> From /proc/meminfo you can find out the total current memory of your system as shown below.</p>
<pre># grep MemTotal /proc/meminfo
MemTotal:      1034644 kB</pre>
<p><code> </code><br />
In this example, the system has 1GB of RAM. Is this 1 x 1GB (or) 2 x 512MB (or) 4 x 256MB? This can be figured out by passing the type id 17 to the dmidecode command as shown below. Please note in the example below, if you have to expand upto 8GB of maximum RAM, you need to remove the existing 512MB from slot 1 and 2, and use 2GB RAM on all the 4 memory slots.</p>
<pre># <strong>dmidecode -t 17
</strong># dmidecode 2.9
SMBIOS 2.3 present.

Handle 0&#215;1100, DMI type 17, 23 bytes
Memory Device
        Array Handle: 0&#215;1000
        Error Information Handle: Not Provided
        Total Width: 72 bits
        Data Width: 64 bits
<strong>        Size: 512 MB  </strong><span style="color: red;">[Note: Slot1 has 512 MB RAM]</span>
        Form Factor: DIMM
        Set: 1
        Locator: DIMM_1A
        Bank Locator: Not Specified
        Type: DDR
        Type Detail: Synchronous
        Speed: 266 MHz (3.8 ns)

Handle 0&#215;1101, DMI type 17, 23 bytes
Memory Device
        Array Handle: 0&#215;1000
        Error Information Handle: Not Provided
        Total Width: 72 bits
        Data Width: 64 bits
<strong>        Size: 512 MB </strong><span style="color: red;">[Note: Slot2 has 512 MB RAM]</span>
        Form Factor: DIMM
        Set: 1
        Locator: DIMM_1B
        Bank Locator: Not Specified
        Type: DDR
        Type Detail: Synchronous
        Speed: 266 MHz (3.8 ns)

Handle 0&#215;1102, DMI type 17, 23 bytes
Memory Device
        Array Handle: 0&#215;1000
        Error Information Handle: Not Provided
        Total Width: 72 bits
        Data Width: 64 bits
<strong>        Size: No Module Installed</strong><span style="color: red;"> [Note: Slot3 is empty]</span>
        Form Factor: DIMM
        Set: 2
        Locator: DIMM_2A
        Bank Locator: Not Specified
        Type: DDR
        Type Detail: Synchronous
        Speed: 266 MHz (3.8 ns)

Handle 0&#215;1103, DMI type 17, 23 bytes
Memory Device
        Array Handle: 0&#215;1000

        Error Information Handle: Not Provided
        Total Width: 72 bits
        Data Width: 64 bits
<strong>        Size: No Module Installed </strong><span style="color: red;">[Note: Slot4 is empty]</span>
        Form Factor: DIMM
        Set: 2
        Locator: DIMM_2B
        Bank Locator: Not Specified
        Type: DDR
        Type Detail: Synchronous
        Speed: 266 MHz (3.8 ns)</pre>
<h3>4. Get BIOS information using dmidecode</h3>
<pre># <strong>dmidecode -t bios
</strong># dmidecode 2.9
SMBIOS 2.3 present.

Handle 0&#215;0000, DMI type 0, 20 bytes
BIOS Information
        Vendor: Dell Computer Corporation
        Version: A07
        Release Date: 01/13/2004
        Address: 0xF0000
        Runtime Size: 64 kB
        ROM Size: 4096 kB
        Characteristics:
                ISA is supported
                PCI is supported
                PNP is supported
                BIOS is upgradeable
                BIOS shadowing is allowed
                ESCD support is available
                Boot from CD is supported
                Selectable boot is supported
                EDD is supported
                Japanese floppy for Toshiba 1.2 MB is supported (int 13h)
                5.25&#8243;/360 KB floppy services are supported (int 13h)
                5.25&#8243;/1.2 MB floppy services are supported (int 13h)
                3.5&#8243;/720 KB floppy services are supported (int 13h)
                8042 keyboard services are supported (int 9h)
                Serial services are supported (int 14h)
                CGA/mono video services are supported (int 10h)
                ACPI is supported
                USB legacy is supported
                LS-120 boot is supported
                BIOS boot specification is supported
                Function key-initiated network boot is supported

Handle 0&#215;0D00, DMI type 13, 22 bytes
BIOS Language Information
        Installable Languages: 1
                en|US|iso8859-1
        Currently Installed Language: en|US|iso8859-1</pre>
<h3>5. View Manufacturer, Model and Serial number of the equipment using dmidecode</h3>
<p>You can get information about the make, model and serial number of the equipment as shown below:</p>
<pre># <strong>dmidecode -t system
</strong># dmidecode 2.9
SMBIOS 2.3 present.

Handle 0&#215;0100, DMI type 1, 25 bytes
System Information
        <strong>Manufacturer</strong>: Dell Computer Corporation
        <strong>Product Name</strong>: PowerEdge 1750
        Version: Not Specified
        <strong>Serial Number</strong>: 1234567
        UUID: 4123454C-4123-1123-8123-12345603431
        Wake-up Type: Power Switch

Handle 0&#215;0C00, DMI type 12, 5 bytes
System Configuration Options
        Option 1: NVRAM_CLR:  Clear user settable NVRAM areas and set defaults
        Option 2: PASSWD:  Close to enable password

Handle 0&#215;2000, DMI type 32, 11 bytes
System Boot Information
        Status: No errors detected</pre>
<p>Post from: <a href="http://www.thegeekstuff.com">The Geek Stuff</a></p>
<p><a href="http://www.thegeekstuff.com/2008/11/how-to-get-hardware-information-on-linux-using-dmidecode-command/">How To Get Hardware Information On Linux Using dmidecode Command</a></p>

<p><a href="http://feedads.googleadservices.com/~a/zjHb2SajuSQPIFHQJaVETtlauiw/a"><img src="http://feedads.googleadservices.com/~a/zjHb2SajuSQPIFHQJaVETtlauiw/i" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feedproxy.google.com/~f/TheGeekStuff?a=s5hFUmV3"><img src="http://feedproxy.google.com/~f/TheGeekStuff?d=41" border="0"></img></a> <a href="http://feedproxy.google.com/~f/TheGeekStuff?a=I06S7GHd"><img src="http://feedproxy.google.com/~f/TheGeekStuff?i=I06S7GHd" border="0"></img></a> <a href="http://feedproxy.google.com/~f/TheGeekStuff?a=lLDm4Nye"><img src="http://feedproxy.google.com/~f/TheGeekStuff?d=50" border="0"></img></a>
</div><img src="http://feedproxy.google.com/~r/TheGeekStuff/~4/3Ca7877x2MM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.thegeekstuff.com/2008/11/how-to-get-hardware-information-on-linux-using-dmidecode-command/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.thegeekstuff.com/2008/11/how-to-get-hardware-information-on-linux-using-dmidecode-command/</feedburner:origLink></item>
		<item>
		<title>Overview of RAMFS and TMPFS on Linux</title>
		<link>http://feedproxy.google.com/~r/TheGeekStuff/~3/sRSDmM2wjmk/</link>
		<comments>http://www.thegeekstuff.com/2008/11/overview-of-ramfs-and-tmpfs-on-linux/#comments</comments>
		<pubDate>Thu, 06 Nov 2008 14:21:40 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[/dev/ram]]></category>

		<category><![CDATA[initramfs]]></category>

		<category><![CDATA[mounting ramfs]]></category>

		<category><![CDATA[mounting tmpfs]]></category>

		<category><![CDATA[raid]]></category>

		<category><![CDATA[ramdisk]]></category>

		<category><![CDATA[ramfs]]></category>

		<category><![CDATA[tmpfs]]></category>

		<category><![CDATA[virtual file system]]></category>

		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=251</guid>
		<description><![CDATA[This is a guest post written by SathiyaMoorthy.
 
Using ramfs or tmpfs you can allocate part of the physical memory to be used as a partition. You can mount this partition and start writing and reading files like a hard disk partition. Since you&#8217;ll be reading and writing to the RAM, it will be faster.
 [...]]]></description>
			<content:encoded><![CDATA[<p><em>This is a guest post written by SathiyaMoorthy.</em><br />
<code> </code><br />
<a href="http://www.thegeekstuff.com/wp-content/uploads/2008/10/ramfs-tmpfs.jpg"><img class="alignright alignnone size-full wp-image-257" style="float: right;" title="[Linux Ramfs and Tmpfs]" src="http://www.thegeekstuff.com/wp-content/uploads/2008/10/ramfs-tmpfs.jpg" alt="[Linux Ramfs and Tmpfs]" width="300" height="225" /></a>Using ramfs or tmpfs you can allocate part of the physical memory to be used as a partition. You can mount this partition and start writing and reading files like a hard disk partition. Since you&#8217;ll be reading and writing to the RAM, it will be faster.<br />
<code> </code><br />
When a vital process becomes drastically slow because of disk writes, you can choose either ramfs or tmpfs file systems for writing files to the RAM.<br />
<code> </code><br />
<span id="more-251"></span><br />
Both tmpfs and ramfs mount will give you the power of fast reading and writing files from and to the primary memory.  When you test this on a small file, you may not see a huge difference. You&#8217;ll notice the difference only when you write large amount of data to a file with some other processing overhead such as network.</p>
<h3>1. How to mount Tmpfs</h3>
<pre># mkdir -p /mnt/tmp

# mount -t tmpfs -o size=20m tmpfs /mnt/tmp</pre>
<p>The last line in the following df -k shows the above mounted /mnt/tmp tmpfs file system.</p>
<pre># df -k
Filesystem      1K-blocks  Used     Available Use%  Mounted on
/dev/sda2       32705400   5002488  26041576  17%   /
/dev/sda1       194442     18567    165836    11%   /boot
tmpfs           517320     0        517320    0%    /dev/shm
tmpfs           20480      0        20480     0%    /mnt/tmp</pre>
<h3>2. How to mount Ramfs</h3>
<pre># mkdir -p /mnt/ram

# mount -t ramfs -o size=20m ramfs /mnt/ram</pre>
<p>The last line in the following mount command shows the above mounted /mnt/ram ramfs file system.</p>
<pre># mount
/dev/sda2 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
tmpfs on /mnt/tmp type tmpfs (rw,size=20m)
ramfs on /mnt/ram type ramfs (rw,size=20m)</pre>
<p>You can mount ramfs and tmpfs during boot time by adding an entry to the <a href="http://wiki.linuxquestions.org/wiki/Fstab">/etc/fstab</a>.</p>
<h3>3. Ramfs vs Tmpfs</h3>
<p>Primarily both ramfs and tmpfs does the same thing with few minor differences.<br />
<code> </code></p>
<ul>
<li><strong> Ramfs will grow dynamically</strong>.  So, you need control the process that writes the data to make sure ramfs doesn&#8217;t go above the available RAM size in the system. Let us say you have 2GB of RAM on your system and created a 1 GB ramfs and mounted as /tmp/ram. When the total size of the /tmp/ram crosses 1GB, you can still write data to it.  System will not stop you from writing data more than 1GB. However, when it goes above total RAM size of 2GB, the system may hang, as there is no place in the RAM to keep the data.</li>
<li><strong>Tmpfs will not grow dynamically</strong>. It would not allow you to write more than the size you&#8217;ve specified while mounting the tmpfs.  So, you don&#8217;t need to worry about controlling the process that writes the data to make sure tmpfs doesn&#8217;t go above the specified limit. It may give errors similar to &#8220;No space left on device&#8221;.</li>
<li><strong>Ramfs uses <a href="http://www.linux.com/feature/121916">swap</a></strong>.</li>
<li><strong>Tmpfs does not use swap. </strong></li>
</ul>
<h3>4. Disadvantages of Ramfs and Tmpfs</h3>
<p>Since both ramfs and tmpfs is writing to the system RAM, it would get deleted once the system gets rebooted, or crashed. So, you should write a process to pick up the data from ramfs/tmpfs to disk in periodic intervals. You can also write a process to write down the data from ramfs/tmpfs to disk while the system is shutting down. But, this will not help you in the time of system crash.</p>
<table border="1" cellspacing="0" cellpadding="0" align="center" summary="This is a table">
<caption>Table: Comparison of ramfs and tmpfs</caption>
<tbody>
<tr>
<th>Experimentation</th>
<th>Tmpfs</th>
<th>Ramfs</th>
</tr>
<tr>
<td>Fill maximum space and continue writing</td>
<td>Will display error</td>
<td>Will continue writing</td>
</tr>
<tr>
<td>Fixed Size</td>
<td>Yes</td>
<td>No</td>
</tr>
<tr>
<td>Uses Swap</td>
<td>Yes</td>
<td>No</td>
</tr>
<tr>
<td>Non-volatile Storage</td>
<td>Yes</td>
<td>Yes</td>
</tr>
</tbody>
</table>
<p><code> </code><br />
If you want your process to write faster, opting for tmpfs is a better choice with precautions about the system crash.<br />
<code> </code><br />
<em>This article was written by SathiyaMoorthy. He is working at <a href="http://www.bksystems.co.in/">bksystems</a>, interested in writing articles and  contribute to open source in his leisure time. The Geek Stuff welcomes your tips and <a href="http://www.thegeekstuff.com/guest-blogging/">guest articles</a>.<br />
</em></p>
<p>Post from: <a href="http://www.thegeekstuff.com">The Geek Stuff</a></p>
<p><a href="http://www.thegeekstuff.com/2008/11/overview-of-ramfs-and-tmpfs-on-linux/">Overview of RAMFS and TMPFS on Linux</a></p>

<p><a href="http://feedads.googleadservices.com/~a/zewTuDWM6WUgprsfK7ULp3c_Gws/a"><img src="http://feedads.googleadservices.com/~a/zewTuDWM6WUgprsfK7ULp3c_Gws/i" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feedproxy.google.com/~f/TheGeekStuff?a=BoPkTuGH"><img src="http://feedproxy.google.com/~f/TheGeekStuff?d=41" border="0"></img></a> <a href="http://feedproxy.google.com/~f/TheGeekStuff?a=lNw6EdH0"><img src="http://feedproxy.google.com/~f/TheGeekStuff?i=lNw6EdH0" border="0"></img></a> <a href="http://feedproxy.google.com/~f/TheGeekStuff?a=L8jDmYVp"><img src="http://feedproxy.google.com/~f/TheGeekStuff?d=50" border="0"></img></a>
</div><img src="http://feedproxy.google.com/~r/TheGeekStuff/~4/sRSDmM2wjmk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.thegeekstuff.com/2008/11/overview-of-ramfs-and-tmpfs-on-linux/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.thegeekstuff.com/2008/11/overview-of-ramfs-and-tmpfs-on-linux/</feedburner:origLink></item>
		<item>
		<title>How To Monitor Network Switch and Ports Using Nagios</title>
		<link>http://feedproxy.google.com/~r/TheGeekStuff/~3/JP6fPrvnLOA/</link>
		<comments>http://www.thegeekstuff.com/2008/11/how-to-monitor-network-switch-and-ports-using-nagios/#comments</comments>
		<pubDate>Mon, 03 Nov 2008 14:30:50 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Cisco Switch]]></category>

		<category><![CDATA[Linksys Switch]]></category>

		<category><![CDATA[Monitor]]></category>

		<category><![CDATA[Monitoring Tool]]></category>

		<category><![CDATA[nagios]]></category>

		<category><![CDATA[Nagios Plugins]]></category>

		<category><![CDATA[Nagios UI]]></category>

		<category><![CDATA[Network Monitoring]]></category>

		<category><![CDATA[Port]]></category>

		<category><![CDATA[Switch]]></category>

		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=247</guid>
		<description><![CDATA[Nagios is hands-down the best monitoring tool to monitor host and network equipments. Using Nagios plugins you can monitor pretty much monitor anything.
 
I use Nagios intensively and it gives me peace of mind knowing that I will get an alert on my phone, when there is a problem. More than that, if warning levels [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright alignnone size-full wp-image-250" style="float: right;" title="[Nagios Monitoring Switch]" src="http://www.thegeekstuff.com/wp-content/uploads/2008/10/nagios-switch.jpg" alt="[Nagios Monitoring Switch]" width="300" height="200" />Nagios is hands-down the best monitoring tool to monitor host and network equipments. Using Nagios plugins you can monitor pretty much monitor anything.<br />
<code> </code><br />
I use Nagios intensively and it gives me peace of mind knowing that I will get an alert on my phone, when there is a problem. More than that, if warning levels are setup properly, Nagios will proactively alert you before a problem becomes critical.<br />
<code> </code><br />
Earlier I wrote about, how to <a href="http://www.thegeekstuff.com/2008/05/nagios-30-jumpstart-guide-for-red-hat-overview-installation-and-configuration/" target="_blank">setup Nagios</a> to monitor <a href="http://www.thegeekstuff.com/2008/06/how-to-monitor-remote-linux-host-using-nagios-30/" target="_blank">Linux Host</a>, <a href="http://www.thegeekstuff.com/2008/07/how-to-monitor-remote-windows-machine-using-nagios-on-linux/" target="_blank">Windows Host </a>and <a href="http://www.thegeekstuff.com/2008/09/how-to-monitor-vpn-active-sessions-and-temperature-using-nagios/">VPN device</a>.<br />
<code> </code><br />
In this article, I&#8217;ll explain how to <strong>configure Nagios to monitor network switch</strong> and it&#8217;s <strong>active ports</strong>.<br />
<span id="more-247"></span></p>
<h3>1. Enable switch.cfg in nagios.cfg</h3>
<p>Uncomment the switch.cfg line in /usr/local/nagios/etc/nagios.cfg as shown below.</p>
<pre>[nagios-server]# grep switch.cfg /usr/local/nagios/etc/nagios.cfg
cfg_file=/usr/local/nagios/etc/objects/switch.cfg</pre>
<h3>2. Add new hostgroup for switches in switch.cfg</h3>
<p>Add the following switches hostgroup to the /usr/local/nagios/etc/objects/switch.cfg file.</p>
<pre>define hostgroup{
hostgroup_name  switches
alias           Network Switches
}</pre>
<h3>3. Add a new host for the switch to be monitered</h3>
<p>In this example, I’ve defined a host to monitor the core switch in the /usr/local/nagios/etc/objects/switch.cfg file. Change the address directive to your switch ip-address accordingly.</p>
<pre>define host{
use             generic-switch
host_name       core-switch
alias           Cisco Core Switch
address         192.168.1.50
hostgroups      switches
}</pre>
<h3>4. Add common services for all switches</h3>
<p>Displaying the uptime of the switch and verifying whether switch is alive are common services for all switches. So, define these services under the switches hostgroup_name as shown below.</p>
<pre># Service definition to ping the switch using check_ping
define service{
use                     generic-service
hostgroup_name          switches
service_description     PING
check_command           check_ping!200.0,20%!600.0,60%
normal_check_interval   5
retry_check_interval    1
}

# Service definition to monitor switch uptime using check_snmp
define service{
use                     generic-service
hostgroup_name          switches
service_description     Uptime
check_command           check_snmp!-C public -o sysUpTime.0
}</pre>
<h3>5. Add service to monitor port bandwidth usage</h3>
<p>check_local_mrtgtraf uses the <a href="http://oss.oetiker.ch/mrtg/" target="_blank">Multil Router Traffic Grapher - MRTG</a>. So, you need to install MRTG for this to work properly. The *.log file mentioned below should point to the MRTG log file on your system.</p>
<pre>define service{
use			        generic-service
host_name			core-switch
service_description	Port 1 Bandwidth Usage
check_command		check_local_mrtgtraf!/var/lib/mrtg/192.168.1.11_1.log!AVG!1000000,2000000!5000000,5000000!10
}</pre>
<h3>6. Add service to monitor an active switch port</h3>
<p>Use check_snmp to monitor the specific port as shown below. The following two services monitors port#1 and port#5. To add additional ports, change the value ifOperStatus.n accordingly. i.e n defines the port#.</p>
<pre># Monitor status of port number 1 on the Cisco core switch
define service{
use                  generic-service
host_name            core-switch
service_description  Port 1 Link Status
check_command        check_snmp!-C public -o ifOperStatus.1 -r 1 -m RFC1213-MIB
}

# Monitor status of port number 5 on the Cisco core switch
define service{
use                  generic-service
host_name            core-switch
service_description  Port 5 Link Status
check_command	       check_snmp!-C public -o ifOperStatus.5 -r 1 -m RFC1213-MIB
}</pre>
<h3>7. Add services to monitor multiple switch ports together</h3>
<p>Sometimes you may need to monitor the status of multiple ports combined together. i.e Nagios should send you an alert, even if one of the port is down. In this case, define the following service to monitor multiple ports.</p>
<pre># Monitor ports 1 - 6 on the Cisco core switch.
define service{
use                   generic-service
host_name             core-switch
service_description   Ports 1-6 Link Status
check_command         check_snmp!-C public -o ifOperStatus.1 -r 1 -m RFC1213-MIB, -o ifOperStatus.2 -r 1 -m RFC1213-MIB, -o ifOperStatus.3 -r 1 -m RFC1213-MIB, -o ifOperStatus.4 -r 1 -m RFC1213-MIB, -o ifOperStatus.5 -r 1 -m RFC1213-MIB, -o ifOperStatus.6 -r 1 -m RFC1213-MIB
}</pre>
<h3>8. Validate configuration and restart nagios</h3>
<p>Verify the nagios configuration to make sure there are no warnings and errors.</p>
<pre># /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Total Warnings: 0
Total Errors:   0
Things look okay - No serious problems were detected during the pre-flight check</pre>
<p>Restart the nagios server to start monitoring the VPN device.</p>
<pre># /etc/rc.d/init.d/nagios stop
Stopping nagios: .done.

# /etc/rc.d/init.d/nagios start
Starting nagios: done.</pre>
<p>Verify the status of the switch from the Nagios web UI: http://{nagios-server}/nagios as shown below:</p>
<div style="text-align: center;">
<a href="http://www.thegeekstuff.com/wp-content/uploads/2008/10/nagios-ui-for-switch.jpg"><img class="alignnone size-full wp-image-253" title="[Nagios GUI for Network Switch]" src="http://www.thegeekstuff.com/wp-content/uploads/2008/10/nagios-ui-for-switch.jpg" alt="[Nagios GUI for Network Switch]" width="692" height="177" /></a>
</div>
<div style="text-align: center;">
<strong>Fig</strong>: Nagios GUI displaying status of a Network Switch
</div>
<p><code>&nbsp;</code></p>
<h3>9. Troubleshooting</h3>
<p><strong>Issue1:</strong> Nagios GUI displays &#8220;check_mrtgtraf: Unable to open MRTG log file&#8221; error message for the Port bandwidth usage</p>
<p><strong>Solution1:</strong> make sure the *.log file defined in the check_local_mrtgtraf service is pointing to the correct location.<br />
<code> </code><br />
<strong>Issue2</strong>: Nagios UI displays &#8220;Return code of 127 is out of bounds - plugin may be missing&#8221; error message for Port Link Status.</p>
<p><strong>Solution2</strong>: Make sure both net-snmp and net-snmp-util packages are installed. In my case, I was missing the net-snmp-utils package and installing it resolved this issue as shown below.</p>
<pre>[nagios-server]# rpm -qa | grep net-snmp
net-snmp-libs-5.1.2-11.el4_6.11.2
net-snmp-5.1.2-11.el4_6.11.2

[nagios-server]# rpm -ivh net-snmp-utils-5.1.2-11.EL4.10.i386.rpm
Preparing&#8230;       ########################################### [100%]
1:net-snmp-utils   ########################################### [100%]

[nagios-server]# rpm -qa | grep net-snmp
net-snmp-libs-5.1.2-11.el4_6.11.2
net-snmp-5.1.2-11.el4_6.11.2
net-snmp-utils-5.1.2-11.EL4.10</pre>
<p><strong>Note:</strong> After you&#8217;ve installed net-snmp and net-snmp-utils, re-compile and re-install nagios plugins as explained in &#8220;6. Compile and install nagios plugins&#8221; in the <a href="http://www.thegeekstuff.com/2008/05/nagios-30-jumpstart-guide-for-red-hat-overview-installation-and-configuration/" target="_blank">Nagios 3.0 jumpstart guide</a>.</p>
<p>Post from: <a href="http://www.thegeekstuff.com">The Geek Stuff</a></p>
<p><a href="http://www.thegeekstuff.com/2008/11/how-to-monitor-network-switch-and-ports-using-nagios/">How To Monitor Network Switch and Ports Using Nagios</a></p>

<p><a href="http://feedads.googleadservices.com/~a/bKfoNaln8a_pc4ZKw4L6TcjFBgc/a"><img src="http://feedads.googleadservices.com/~a/bKfoNaln8a_pc4ZKw4L6TcjFBgc/i" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feedproxy.google.com/~f/TheGeekStuff?a=3CTU0VPZ"><img src="http://feedproxy.google.com/~f/TheGeekStuff?d=41" border="0"></img></a> <a href="http://feedproxy.google.com/~f/TheGeekStuff?a=ZvLN9gMY"><img src="http://feedproxy.google.com/~f/TheGeekStuff?i=ZvLN9gMY" border="0"></img></a> <a href="http://feedproxy.google.com/~f/TheGeekStuff?a=BchuLXoS"><img src="http://feedproxy.google.com/~f/TheGeekStuff?d=50" border="0"></img></a>
</div><img src="http://feedproxy.google.com/~r/TheGeekStuff/~4/JP6fPrvnLOA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.thegeekstuff.com/2008/11/how-to-monitor-network-switch-and-ports-using-nagios/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.thegeekstuff.com/2008/11/how-to-monitor-network-switch-and-ports-using-nagios/</feedburner:origLink></item>
		<item>
		<title>Around The Geek World - Oct 2008</title>
		<link>http://feedproxy.google.com/~r/TheGeekStuff/~3/40Qe8huS0F0/</link>
		<comments>http://www.thegeekstuff.com/2008/10/around-the-geek-world-oct-2008/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 14:22:33 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[Around The Geek World]]></category>

		<category><![CDATA[Monthly Links]]></category>

		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=255</guid>
		<description><![CDATA[
Around The Geek World is a monthly summary of interesting articles and news around the geek world with my brief comment.
 
I hope you enjoy this collection of interesting geek articles for October 2008.
 


7 online blunders - One of the 7 blunders mentioned in this article is: Using single password for all online accounts, [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright alignnone size-full wp-image-256" style="float: right;" title="[Around The Geek World]" src="http://www.thegeekstuff.com/wp-content/uploads/2008/10/around-the-geek-world-1.jpg" alt="[Around The Geek World]" width="300" height="225" /></p>
<p><strong>Around The Geek World</strong> is a monthly summary of interesting articles and news around the geek world with my brief comment.<br />
<code> </code><br />
I hope you enjoy this collection of interesting geek articles for October 2008.<br />
<code> </code><br />
<span id="more-255"></span></p>
<ul>
<li><a href="http://www.consumerreports.org/cro/electronics-computers/computers-internet/internet-and-other-services/7-online-blunders/overview/7-online-blunders-ov.htm">7 online blunders</a> - <span><span>One of the 7 blunders mentioned in this article is: Using single password for all online accounts, which is a major mistake done by lot of people. The article I wrote a while back about creating a <a href="http://www.thegeekstuff.com/2008/06/the-ultimate-guide-for-creating-strong-passwords/">strong passwords</a> talks about 10 common sense about passwords.</span></span></li>
<p><code><br />
</code></p>
<li><a href="http://thehottestgadgets.com/2008/09/the-15-hottest-wearable-gadgets-001253">15 of The Hottest Wearable Gadgets [Pics and Video]</a> - One of the 15 wearable gadgets is a &#8220;Wi-Fi detector T-Shirt&#8221; - when you’re in the range of a wi-fi- signal, the bars on the shirt light up.  Is this geeky or spooky?</li>
<p><code><br />
</code></p>
<li><a href="http://www.physorg.com/news142677178.html">World first for sending data using quantum cryptography</a> - Anything around cryptography is always fascinating for me, because of the complex algorithms involved. For the first time, the transmission of data secured by quantum cryptography is demonstrated within a commercial telecommunications network.</li>
<p><code><br />
</code></p>
<li><a href="http://arstechnica.com/news.ars/post/20081009-wikipedia-adopts-ubuntu-for-its-server-infrastructure.html">Wikipedia adopts Ubuntu for its server infrastructure</a> - Ubuntu is the best Linux distro for desktop. But, it can also be an excellent choice for server infrastructure. Don&#8217;t beleive me? Ask Wikipedia team, who are migrating 400+ servers from RedHat+Fedora combination to Ubuntu.</li>
<p><code><br />
</code></p>
<li><a href="http://www.cyberciti.biz/tips/raid5-vs-raid-10-safety-performance.html">RAID 5 vs RAID 10: Recommended RAID For Safety and Performance</a> - At work, for all I/O intensive database servers, I use RAID 10. If you are debating whether to use RAID 5 of RAID 10, Vivek has clearly explained why you should choose RAID 10 in this article.</li>
<p><code><br />
</code></p>
<li><a href="http://www.dailyartisan.com/news/10-handy-productivity-tools-in-linux/">10 Handy Productivity Tools in Linux</a> - Some applications mentioned in this list are must-have for Linux desktop environment. Freemind is an excellent mind-mapping tool. If you are new to mind-mapping concept, it will take little practice to use this tool effectively. Once you get the hang of it, you will not execute any major project without a mind-map.</li>
<p><code><br />
</code></p>
<li><a href="http://www.search-this.com/2008/05/15/easy-vertical-centering-with-css/">Easy Vertical Centering with CSS</a> - Excellent tutorial with screenshots on how to perform vertical centering in CSS effectively.</li>
<p><code><br />
</code></p>
<li><a href="http://geekhero.iovene.com/2008/10/09/programmers-salary-policy/">Programmers Salary Policy - Geek Hero Webcomic</a> - Your salary increment is directly proportionate to the total lines of code you write. How many lines of code can you write to do 1 + 1?</li>
<p><code><br />
</code></p>
<li><a href="http://digg.com/hardware/Increase_your_productivity_by_using_2_monitors">Increase your productivity by using 2 monitors</a> - USAToday is very late in talking about this, as most of us have been using dual monitors for ages now.  Look at the amount of digg comments (close to 300) on such a simple article.</li>
<p><code><br />
</code></p>
<li><a href="http://www.noupe.com/photoshop/1000-free-high-resolution-photoshop-brush-sets.html">1000+ Free High Resolution Photoshop Brush Sets</a> - Some of them are very specific to certain versions of photoshop. But, you&#8217;ll definitely find several good brush sets for the version you are using, as there are so many of them.</li>
<p><code><br />
</code></p>
<li><a href="http://www.techradar.com/news/software/operating-systems/the-14-best-linux-distros-465771">14 Best Linux Distro</a> - Debian, Fedora, OpenSUSE, Mandriva and Ubuntu are in the list as you would expect.  Did your favorite distro made it to this list?</li>
<p><code><br />
</code></p>
<li><a href="http://radar.oreilly.com/2008/10/effect-of-the-depression-on-te.html">Effect of the Depression on Technology</a> - October is pretty bad month for WallStreet and US economy in general. As a geek, you may be interested to know how it affects technology. As mentioned in the article, open source will benefit from this economy slow down,  as companies will now turn to open source to save some cash.</li>
<p><code><br />
</code></p>
<li><a href="http://www.networkworld.com/community/node/33708">Why did Linus Torvalds start a blog?</a> - Hear it from him directly.</li>
<p><code><br />
</code></p>
<li><a href="http://woork.blogspot.com/2008/09/10-useful-articles-about-database.html">10 Useful articles about Database design</a> - Excellent collection of all DB design related articles. If you are DBA, DB architect, or DB programmer, you should definitely bookmark this.</li>
<p><code><br />
</code></p>
<li><a href="http://stackoverflow.com/questions/1711/what-is-the-single-most-influential-book-every-programmer-should-read">What is the single most influential book every programmer should read?</a> - You can spend lot of time reading through the user&#8217;s answers for this question. My amazon wish-list grew 25%, as I&#8217;ve added several books recommended in the article to my wish-list.</li>
<p><code><br />
</code></p>
<li><a href="http://dougmccune.com/blog/2008/09/27/if-you-steal-source-code-dont-ask-for-help-fixing-it/">If you steal source code, don’t ask for help fixing it</a> - Is it OK to decompile someone&#8217;s code and use it? Just read the comment section of this post to hear various opinions from users.</li>
<p><code><br />
</code></p>
<li><a href="http://www.reddit.com/r/technology/comments/75o81/gmail_adds_feature_to_stop_users_emailing_while/">Hilarious comments from reddit users</a> about Gmail&#8217;s new feature that will stop sending mails that you&#8217;ll regret later.  Geek getting drunk and sending emails &#8212; can anything be more hilarious than that?</li>
<p><code><br />
</code></ul>
<p>Post from: <a href="http://www.thegeekstuff.com">The Geek Stuff</a></p>
<p><a href="http://www.thegeekstuff.com/2008/10/around-the-geek-world-oct-2008/">Around The Geek World - Oct 2008</a></p>

<p><a href="http://feedads.googleadservices.com/~a/kanrVC2R8ssDlYM1F0CTZQdYECo/a"><img src="http://feedads.googleadservices.com/~a/kanrVC2R8ssDlYM1F0CTZQdYECo/i" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feedproxy.google.com/~f/TheGeekStuff?a=SS9QAao7"><img src="http://feedproxy.google.com/~f/TheGeekStuff?d=41" border="0"></img></a> <a href="http://feedproxy.google.com/~f/TheGeekStuff?a=vHdDq17b"><img src="http://feedproxy.google.com/~f/TheGeekStuff?i=vHdDq17b" border="0"></img></a> <a href="http://feedproxy.google.com/~f/TheGeekStuff?a=TMSYoBuG"><img src="http://feedproxy.google.com/~f/TheGeekStuff?d=50" border="0"></img></a>
</div><img src="http://feedproxy.google.com/~r/TheGeekStuff/~4/40Qe8huS0F0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.thegeekstuff.com/2008/10/around-the-geek-world-oct-2008/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.thegeekstuff.com/2008/10/around-the-geek-world-oct-2008/</feedburner:origLink></item>
		<item>
		<title>Increase Bugzilla Attachment Size Using MySQL max_allowed_packet</title>
		<link>http://feedproxy.google.com/~r/TheGeekStuff/~3/3559UpaJyKk/</link>
		<comments>http://www.thegeekstuff.com/2008/10/increase-bugzilla-attachment-size-using-mysql-max_allowed_packet/#comments</comments>
		<pubDate>Mon, 27 Oct 2008 14:30:30 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
		
		<category><![CDATA[Database]]></category>

		<category><![CDATA[Bugzilla]]></category>

		<category><![CDATA[Bugzilla attachment size]]></category>

		<category><![CDATA[maxattachmentsize]]></category>

		<category><![CDATA[max_allowed_packet]]></category>

		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=244</guid>
		<description><![CDATA[Bugzilla, an open source bug tracking system uses MySQL for the database. When you try to attach a document to the bug that is greater than 1MB in size, you will get the error message shown below. This article explains how to fix this problem by changing the MySQL max_allowed_packet database parameter and bugzilla maxattachmentsize [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright alignnone size-medium wp-image-254" style="float: right;" title="[Bugzilla Logo]" src="http://www.thegeekstuff.com/wp-content/uploads/2008/10/bugzilla-logo-260x300.png" alt="[Bugzilla Logo]" width="260" height="300" /><a href="http://www.bugzilla.org">Bugzilla</a>, an open source bug tracking system uses MySQL for the database. When you try to attach a document to the bug that is greater than 1MB in size, you will get the error message shown below. This article explains how to fix this problem by changing the MySQL max_allowed_packet database parameter and bugzilla maxattachmentsize parameter.<br />
<code>&nbsp;</code><br />
When a MySQL client or the mysqld server receives a packet bigger than max_allowed_packet bytes, it issues a Packet too large error and closes the connection.<br />
<code>&nbsp;</code><br />
MySQL client&#8217;s default max_allowed_packet value is 16MB. MySQL server&#8217;s default max_allowed_packet is 1MB. For bugzilla attachment, we need to increase the max_allowed_packet size of the MySQL server.<br />
<span id="more-244"></span></p>
<pre><strong>Bugzilla error message:
</strong>The file you are trying to attach is 1396 kilobytes (KB) in size. Non-patch
attachments cannot be more than 1000 KB. 

We recommend that you store your attachment elsewhere on the web,
and then insert the URL to it in a comment, or in the URL field for this bug. 

Alternately, if your attachment is an image, you could convert it to a
compressible format like JPG or PNG and try again.</pre>
<h3>1. Change the maxattachmentsize parameter in Bugzilla</h3>
<p>Login to bugzilla and click on &#8220;Parameters&#8221; link next to the &#8220;Edit&#8221; section in the footer area. This will display bugzilla configuration menu as shown below. Click on &#8220;Attachments&#8221; menu-item to display all bugzilla attachment related configuration parameters. Change the values of <strong>maxattachmentsize</strong> to 3000 for a 3MB limit.</p>
<div style="text-align: center;"><img class="alignnone size-full wp-image-245" title="[Bugzilla Configuration - Attachments menu items]" src="http://www.thegeekstuff.com/wp-content/uploads/2008/10/bugzilla-attachment-menu-item.jpg" alt="[Bugzilla Configuration - Attachments menu items]" width="156" height="171" /></p>
<p><strong>Fig</strong> - Bugzilla configuration Menu</p>
</div>
<p><code> </code><br />
<strong>maxattachmentsize</strong> is the maximum size (in kilobytes) of non-patch attachments. Bugzilla will not accept attachments greater than this number of kilobytes in size. To accept attachments of any size (subject to the limitations of your server software), set this value to zero.</p>
<h3>2. Change the max_allowed_packet parameter in MySQL database</h3>
<p>Add <em>max_allowed_packet=3M</em> to the MySQL configuration file:/etc/my.cnf as shown below.</p>
<pre>[db-server]# cat /etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
<strong>max_allowed_packet=3M</strong>

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

[client]
socket=/var/lib/mysql/mysql.sock</pre>
<p>Restart the MySQL database for the new max_allowed_packet parameter to take effect.</p>
<pre>[db-server]# /etc/rc.d/init.d/mysqld restart
Stopping MySQL:                                            [  OK  ]
Starting MySQL:                                            [  OK  ]</pre>
<p><code> </code><br />
After the above two changes, you can upload attachments upto 3MB on bugzilla. Also, sometimes when you are <a href="http://www.thegeekstuff.com/2008/09/backup-and-restore-mysql-database-using-mysqldump/" target="_blank">restoring a MySQL backup</a>, you may get the following error message.</p>
<pre>Got a packet bigger than 'max_allowed_packet' bytes</pre>
<p>To resolve this issue, increase the max_allowed_packet as explained above to 32MB or more.</p>
<p>Post from: <a href="http://www.thegeekstuff.com">The Geek Stuff</a></p>
<p><a href="http://www.thegeekstuff.com/2008/10/increase-bugzilla-attachment-size-using-mysql-max_allowed_packet/">Increase Bugzilla Attachment Size Using MySQL max_allowed_packet</a></p>

<p><a href="http://feedads.googleadservices.com/~a/LToPxhHg_cWIzAwECp6JBSl9aEU/a"><img src="http://feedads.googleadservices.com/~a/LToPxhHg_cWIzAwECp6JBSl9aEU/i" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feedproxy.google.com/~f/TheGeekStuff?a=8YiVZI5N"><img src="http://feedproxy.google.com/~f/TheGeekStuff?d=41" border="0"></img></a> <a href="http://feedproxy.google.com/~f/TheGeekStuff?a=kfOnWUdp"><img src="http://feedproxy.google.com/~f/TheGeekStuff?i=kfOnWUdp" border="0"></img></a> <a href="http://feedproxy.google.com/~f/TheGeekStuff?a=2v6Srr7Z"><img src="http://feedproxy.google.com/~f/TheGeekStuff?d=50" border="0"></img></a>
</div><img src="http://feedproxy.google.com/~r/TheGeekStuff/~4/3559UpaJyKk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.thegeekstuff.com/2008/10/increase-bugzilla-attachment-size-using-mysql-max_allowed_packet/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.thegeekstuff.com/2008/10/increase-bugzilla-attachment-size-using-mysql-max_allowed_packet/</feedburner:origLink></item>
		<item>
		<title>View DELL Service Tag and Express Service Code From Linux and Windows</title>
		<link>http://feedproxy.google.com/~r/TheGeekStuff/~3/aVABL1CHLu4/</link>
		<comments>http://www.thegeekstuff.com/2008/10/view-dell-service-tag-and-express-service-code-from-linux-and-windows/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 14:21:41 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
		
		<category><![CDATA[Hardware]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Windows]]></category>

		<category><![CDATA[dell]]></category>

		<category><![CDATA[dmidecode]]></category>

		<category><![CDATA[express service code]]></category>

		<category><![CDATA[find dell service tag]]></category>

		<category><![CDATA[find service tag]]></category>

		<category><![CDATA[poweredge]]></category>

		<category><![CDATA[serial number]]></category>

		<category><![CDATA[service tag]]></category>

		<category><![CDATA[svc tag]]></category>

		<category><![CDATA[wmic]]></category>

		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=243</guid>
		<description><![CDATA[When you call DELL customer support for any help, they will ask for either Service Tag or Express Service Code. You also need service tag to download drivers and documentations from DELL support website.
 
When you have physical access to the system, you can easily identify the service tag affixed on the body of the [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright alignnone size-medium wp-image-21" style="float: right;" title="[Dell Server]" src="http://www.thegeekstuff.com/wp-content/uploads/2008/06/dell-server-300x158.jpg" alt="[Dell Server]" width="300" height="158" />When you call DELL customer support for any help, they will ask for either Service Tag or Express Service Code. You also need service tag to download drivers and documentations from DELL support website.<br />
<code> </code><br />
When you have physical access to the system, you can easily identify the service tag affixed on the body of the server. <a href="http://support.dell.com/support/topics/global.aspx/support/en/identifyyoursystem?c=us&amp;l=en&amp;s=gen" target="_blank">DELL support site</a> shows the exactly location of the service tag and express code stickers for various DELL equipments.<br />
<code> </code><br />
When you don&#8217;t have physical access to the server, you can get the same information remotely from the OS level. Using <strong>Windows </strong>or <strong>Linux </strong>command line you can easily get <strong>DELL service tag</strong> as explained below.<br />
<span id="more-243"></span></p>
<h3>1. Get DELL Service Tag on remote Windows system</h3>
<p>Login to the Windows remote-host using VNC or remote desktop connection. Use WMIC on Windows to get service tag as shown below.</p>
<pre>C:\&gt;<strong>wmic bios get serialnumber</strong>
SerialNumber
ABCDEF1</pre>
<p>Following WMIC command will give make and model number along with service tag.</p>
<pre>C:\&gt;wmic csproduct get vendor,name,identifyingnumber<strong>
</strong>IdentifyingNumber    Name                Vendor
ABCDEF1              PowerEdge 2950      Dell Inc.</pre>
<p>If VNC or remote desktop connection to the remote-host is not available,  execute the following from the local-host to get the service tag of the remote-host.</p>
<pre>C:\&gt;<strong>wmic /user:administrator /node:remote-host bios get serialnumber</strong>
SerialNumber
ABCDEF1
[Note: Replace remote-host with the machine name of your remote-host.]</pre>
<h3>2. Get DELL Service Tag on remote Linux system</h3>
<p>Login to the Linux remote-host using SSH. Use dmidecode on Linux to get service tag as shown below.</p>
<pre>[remote-host]# <strong>dmidecode -s system-serial-number</strong>
ABCDEF1</pre>
<h3>3. Get DELL Express Service Code From Service Tag</h3>
<p>Service Tag is a base-36 integer.  Once you have the Service Tag, you can calculate express service code yourself. Express Service Code is base-10 decimal integer of Service Tag. Dell uses express service code mainly for their support call-routing. When you call dell support, their automated call-routing system may ask you to enter express service code, which you can easily enter in your telephone, as it is just a bunch of numbers, instead of characters.<br />
<code> </code><br />
Use the following online tools to find express service code from service tag and vice-versa.</p>
<ul>
<li><a href="http://www.creativyst.com/Doc/Articles/HT/Dell/DellPop.htm">Creativyst Dell-Number Widget</a></li>
<li><a href="http://www.powerdog.com/dellconv.cgi">Dell PC service tag/code converter from PowerDog Industries</a></li>
</ul>
<p><code> </code><br />
If you own systems other than DELL, such as HP, IBM, Sony, Toshiba, Acer etc., how do you find out serial number? <strong>Does the same method explained above works for you (or)</strong> <strong>Do you use a different method to identify serial numbers?</strong> Please leave your comment.</p>
<p>Post from: <a href="http://www.thegeekstuff.com">The Geek Stuff</a></p>
<p><a href="http://www.thegeekstuff.com/2008/10/view-dell-service-tag-and-express-service-code-from-linux-and-windows/">View DELL Service Tag and Express Service Code From Linux and Windows</a></p>

<p><a href="http://feedads.googleadservices.com/~a/E1EjtAyPA3zTUD3VdSVj0A8LDC4/a"><img src="http://feedads.googleadservices.com/~a/E1EjtAyPA3zTUD3VdSVj0A8LDC4/i" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feedproxy.google.com/~f/TheGeekStuff?a=CLcMTDN8"><img src="http://feedproxy.google.com/~f/TheGeekStuff?d=41" border="0"></img></a> <a href="http://feedproxy.google.com/~f/TheGeekStuff?a=6BTRcQga"><img src="http://feedproxy.google.com/~f/TheGeekStuff?i=6BTRcQga" border="0"></img></a> <a href="http://feedproxy.google.com/~f/TheGeekStuff?a=qC7zbPYz"><img src="http://feedproxy.google.com/~f/TheGeekStuff?d=50" border="0"></img></a>
</div><img src="http://feedproxy.google.com/~r/TheGeekStuff/~4/aVABL1CHLu4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.thegeekstuff.com/2008/10/view-dell-service-tag-and-express-service-code-from-linux-and-windows/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.thegeekstuff.com/2008/10/view-dell-service-tag-and-express-service-code-from-linux-and-windows/</feedburner:origLink></item>
		<item>
		<title>How To Perform SSH and SCP Without Password from SSH2 to OpenSSH</title>
		<link>http://feedproxy.google.com/~r/TheGeekStuff/~3/4GCdenvk4k8/</link>
		<comments>http://www.thegeekstuff.com/2008/10/perform-ssh-and-scp-without-password-from-ssh2-to-openssh/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 15:20:55 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<category><![CDATA[authentication keys]]></category>

		<category><![CDATA[key file]]></category>

		<category><![CDATA[openssh]]></category>

		<category><![CDATA[passphrase]]></category>

		<category><![CDATA[private keys]]></category>

		<category><![CDATA[public key]]></category>

		<category><![CDATA[scp]]></category>

		<category><![CDATA[scp no password]]></category>

		<category><![CDATA[ssh]]></category>

		<category><![CDATA[ssh no password login]]></category>

		<category><![CDATA[ssh-keygen]]></category>

		<category><![CDATA[ssh2]]></category>

		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=242</guid>
		<description><![CDATA[In our previous articles, we discussed how to setup ssh key based authentication to perform ssh and scp without password under the following three scenarios:

OpenSSH to OpenSSH
OpenSSH to SSH2
SSH2 to SSH2

In this article,  I&#8217;ll explain how to perform ssh and scp from SSH2 (local-host) to OpenSSH (remote-host) with no password.

1. Identify local-host and remote-host [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright alignnone size-medium wp-image-4" style="float: right;" title="[OpenSSH Logo]" src="http://www.thegeekstuff.com/wp-content/uploads/2008/05/openssh-300x99.gif" alt="[OpenSSH Logo]" width="300" height="99" />In our previous articles, we discussed how to setup ssh key based authentication to perform ssh and scp without password under the following three scenarios:</p>
<ol>
<li><a href="http://www.thegeekstuff.com/2008/06/perform-ssh-and-scp-without-entering-password-on-openssh/" target="_blank">OpenSSH to OpenSSH</a></li>
<li><a href="http://www.thegeekstuff.com/2008/07/ssh-key-based-authentication-setup-from-openssh-to-ssh2/" target="_blank">OpenSSH to SSH2</a></li>
<li><a href="http://www.thegeekstuff.com/2008/06/comprehensive-guide-for-ssh2-key-based-authentication-setup/" target="_blank">SSH2 to SSH2</a></li>
</ol>
<p>In this article,  I&#8217;ll explain how to perform ssh and scp from SSH2 (local-host) to OpenSSH (remote-host) with no password.<br />
<span id="more-242"></span></p>
<h3>1. Identify local-host and remote-host SSH version</h3>
<p>In this example, local-host is running SSH2 and remote-host is running OpenSSH.</p>
<pre>[local-host]$ <strong>ssh -V
</strong>ssh: SSH Secure Shell 3.2.9.1 (non-commercial version) on i686-pc-linux-gnu

[remote-host]$ <strong>ssh -V</strong>
OpenSSH_4.3p2, OpenSSL 0.9.8b 04 May 2006</pre>
<h3>2. Generate SSH2 authentication key pair on the local-host using ssh-keygen2</h3>
<p>On SSH2, ssh-keygen will be a soft-link to the ssh-keygen2 as shown below.</p>
<pre>[local-host]$ ls -l /usr/local/bin/ssh-keygen
lrwxrwxrwx  1 root root 11 Jul 31  2006 /usr/local/bin/ssh-keygen -&gt; ssh-keygen2

[local-host]$ <strong>ssh-keygen
</strong>Generating 2048-bit dsa key pair
7 o.oOo..oOo.o
Key generated.
2048-bit dsa, jsmith@local-host, Sun Oct 19 2008 14:49:42 -0700
Passphrase : <span style="color: red;">[Enter the password here]</span>
Again      :
Private key saved to /home/jsmith/.ssh2/id_dsa_2048_a
Public key saved to /home/jsmith/.ssh2/id_dsa_2048_a.pub</pre>
<p>The public key and private key are stored in .ssh2 folder under your home directory. In this example, it is under /home/jsmith/.ssh2.<br />
<code> </code><br />
<span style="color: red;">You should not share the private key with anybody.</span><br />
<code> </code><br />
By default <strong>ssh-keygen2</strong> generates DSA (Digital Signature Algorithm) key pair. You can also generate RSA key pair as shown below.</p>
<pre>[local-host]$ <strong>ssh-keygen -t rsa</strong></pre>
<h3>3.  Copy SSH2 public key from local-host to remote-host that is running OpenSSH</h3>
<p>Copy local-host:/home/jsmith/.ssh2/id_dsa_2048_a.pub file to  remote-host:/home/jsmith/.ssh/id_dsa_1024_a.pub.  Perform a vi /home/jsmith/.ssh/id_dsa_1024_b.pub on the remote-host and copy the content of the public key from the local-host.</p>
<pre>[remote-host]$ vi /home/jsmith/.ssh/id_dsa_1024_a.pub
&#8212;- BEGIN SSH2 PUBLIC KEY &#8212;-
Subject: jsmith
Comment: &#8220;2048-bit dsa, jsmith@local-host Sun Oct 19 2008 14:49:42 -070\0&#8243;
7ZTVd7H63VyVqBIqfmEBALVa6VKtALZkydlOiPasikEQfujH07tjW+OffaRufFDG0VQESj
5iGSvMtmBBj8wQxGlvJ/dayVqBvvHzMao8bwGC+HFUtH1un7uyIEwOqU1fNzEpghC97mIx
tIxJA7ZTVd7H63VIqmzlLbp/ZCd6bcJLvZEepMz96nlNB4NJ5UYIfdgXNhf/TrJD8COWQs
t6jsP6RG/WrpHi5iGSvMtmBBj8wQGHddexkRnf/o5YMFJZRo4Iwc7+bgYrIyywBZnfLL7T
RTk9TBfWzgJHy/y1tTtCMvVooWvFZbG5AiV3de63MxBaD0o68SASyXZzVM+MabXhjcdXFY
2vjq2vJxOzunEAAAAVAOTeOzDCnj3K5iGSvMtmBBj8wQGHAAABAA38sGpHEfSxLx5MjQci
dko1pKuV1W9rOK3y19A2J2N6rSdWYb7Zyzw8Gr7kTMWX1TP5WhRGCUhNRYnjI+4wgZIZdC
lfGdp8MGI3HBg9CAr702BOzRTMnW0aqsGjrbhcwhWaDgRymhBh++nGAhHxeWn4ApJ8F6kT
8HaAm3dFYXpHCaZ/xuKPXr4DFugGl8MRDU8TwioNE9kRi0Ko/kB5LTHuGhMPHGshMJeVGi
PQTrt9NAzgYyJeT9RB9VZadgElMvQ9S0+fo6ipOA==
&#8212;- END SSH2 PUBLIC KEY &#8212;-</pre>
<h3>4. On remote-host, convert SSH2 public key to OpenSSH public key</h3>
<p>This should be executed on the remote-host that is running OpenSSH. Only OpenSSH can convert keys back and forth between OpenSSH and SSH2 format.</p>
<pre>[remote-host]$ <strong>ssh-keygen</strong> -i -f ~/.ssh/id_dsa_1024_a.pub &gt; \
~/.ssh/id_dsa_1024_a_openssh.pub</pre>
<p>Copy the converted OpenSSH public key from ~/.ssh/id_dsa_1024_a_openssh.pub file to the authorized_keys file as shown below.</p>
<pre>[remote-host]$ <strong>vi ~/.ssh/authorized_keys</strong>
ssh-dss 5iGSvMtmBBj8wQdegAEBALVa6VKtALZkydlOiPasikEQfujH07tjW+OffaRufFD
G0VQESjq+YlVTWcXxStz0xGlvJ/dayVqBvvHzMao8bwGC+HFUtH1un7uyIEwOqU1fNzEpgh
C97s143S8zBcTAGtdegte3IqmlLbp/ZCd6bcJLvZEepMz96nlNB4NJ5UYIfdgXNhf/TrJD8
COWQst6jsP6RG/WrpHiI4QVDM6tZVZ4CnGjm1QPkRnf/o5YMFJZRo4Iwc7+bgYrIyywBZnf
LL7TRTk9TBfWzgJHy/y1tTtCMvVooWvFZbG5AiV3de63MxBaD0o68SASyXZzVM+MabXhjcd
XFY2vjq2vJxOzunEAAAAVAOTeOzDCnj3K5iGSvMtmBBj8wQGHAAABAA38sGpHEfSxLx5MjQ
dFYXpHCaZ/xuKPXr4DFugGl8MRDU8TwioNE9kRi0Ko/kB5LTHuGhMPHGshMJeVGiPQTrt9N
AzgYyJeT9RB9VZadgElMvQ9S0+fo6ipOA==</pre>
<h3>5. Login from the local-host to remote-host using the SSH key authentication</h3>
<p>Perform ssh from local-host (SSH2) to remote-host (OpenSSH) as shown below to verify whether the key based authentication works properly.</p>
<pre>[local-host]$ <span style="color: red;">[You are on local-host here]</span>

[local-host]$ <strong>ssh -l jsmith remote-host
</strong>Host key not found from database.
Key fingerprint:
bitaz-navun-gogus-mptop-ljilk-qwlem-ftrtm-llmak-topok-zuiof-bnmix
You can get a public key&#8217;s fingerprint by running
% ssh-keygen -F publickey.pub on the keyfile.
Are you sure you want to continue connecting (yes/no)? <strong>yes</strong>
Host key saved to /home/jsmith/.ssh2/hostkeys/key_22_remote-host.pub
host key for remote-host, accepted by jsmith Sun Oct 19 2008 15:06:42 -0700

Passphrase for key &#8220;/home/jsmith/.ssh2/id_dsa_2048_a&#8221; with comment &#8220;2048-bit
dsa, jsmith@local-host, Sun Oct 19 2008 14:49:42 -0700&#8243;:<span><span style="color: red;">[Enter password]
</span></span>Last login: Sun Oct 19 14:01:48 2008 from 192.168.1.10

[remote-host]$ <span style="color: red;">[You are on remote-host here]</span></pre>
<p><code> </code><br />
<strong>Note</strong>: If you get the following error while performing the ssh or scp from local-host to remote-host, please refer to <a href="http://www.thegeekstuff.com/2008/07/howto-resolve-algorithm-negotiation-failed-issue-on-ssh/" target="_blank">How to resolve Algorithm negotiation failed issue on SSH</a>, to fix this issue.</p>
<pre>[local-host]$ ssh -l jsmith remote-host
<strong>warning: Authentication failed.
Disconnected; key exchange or algorithm negotiation failed
(Algorithm negotiation failed.)</strong></pre>
<p><code> </code><br />
<strong>There are two ways to perform ssh and scp without entering the password:</strong></p>
<ol>
<li><strong>No passphrase:</strong> While creating key pair, leave the passphrase empty. Use this option for the automated batch processing. for e.g. if you are running a cron job to copy files between machines this is suitable option. You can skip the next step steps for this method.</li>
<li><strong>Use passphrase and SSH Agent</strong>: If you are using ssh and scp interactively from the command-line and you don’t want to use the password everytime you perform ssh or scp, I don’t recommend the previous option (no passphrase), as you’ve eliminated one level of security in the ssh key based authentication. Instead, use the passphrase while creating the key pair and use SSH Agent to perform ssh and scp without having to enter the password everytime as explained in the steps below.</li>
</ol>
<h3>6. Start the SSH Agent on local-host</h3>
<p>The SSH Agent will be running in the background to hold the private keys and perform ssh and scp without having to enter the passphrase several times.</p>
<pre>[local-host]$ <strong>ssh-agent $SHELL</strong></pre>
<h3>7. Load the private key to the SSH agent on the local-host</h3>
<pre>[local-host]$ <strong>ssh-add
</strong>
Adding identity: /home/jsmith/.ssh2/id_dsa_2048_a.pub
Need passphrase for /home/jsmith/.ssh2/id_dsa_2048_a (2048-bit dsa,
jsmith@local-host, Sun Oct 19 2008 14:49:42 -0700).
Enter passphrase:<span style="color: red;">[Enter your passphrase here]</span></pre>
<h3>8. Perform SSH or SCP from local-host to remote-home without entering the password</h3>
<pre>[local-host]$ <span style="color: red;">[You are on local-host here]</span>

[local-host]$ ssh -l jsmith remote-host
Last login: Sun Oct 19 14:20:48 2008 from 192.168.1.10

[remote-host]$ <span style="color: red;">[You are on remote-host here]</span></pre>
<p><code> </code><br />
<em>If you liked this article, please share it on <strong>delicious and Stumble it</strong>.</em></p>
<p>Post from: <a href="http://www.thegeekstuff.com">The Geek Stuff</a></p>
<p><a href="http://www.thegeekstuff.com/2008/10/perform-ssh-and-scp-without-password-from-ssh2-to-openssh/">How To Perform SSH and SCP Without Password from SSH2 to OpenSSH</a></p>

<p><a href="http://feedads.googleadservices.com/~a/5ytho-xXItO9I30qqcZJ8e_Skhg/a"><img src="http://feedads.googleadservices.com/~a/5ytho-xXItO9I30qqcZJ8e_Skhg/i" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feedproxy.google.com/~f/TheGeekStuff?a=TGmJCNc8"><img src="http://feedproxy.google.com/~f/TheGeekStuff?d=41" border="0"></img></a> <a href="http://feedproxy.google.com/~f/TheGeekStuff?a=Ah6EXkqE"><img src="http://feedproxy.google.com/~f/TheGeekStuff?i=Ah6EXkqE" border="0"></img></a> <a href="http://feedproxy.google.com/~f/TheGeekStuff?a=PImozhSd"><img src="http://feedproxy.google.com/~f/TheGeekStuff?d=50" border="0"></img></a>
</div><img src="http://feedproxy.google.com/~r/TheGeekStuff/~4/4GCdenvk4k8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.thegeekstuff.com/2008/10/perform-ssh-and-scp-without-password-from-ssh2-to-openssh/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.thegeekstuff.com/2008/10/perform-ssh-and-scp-without-password-from-ssh2-to-openssh/</feedburner:origLink></item>
	</channel>
</rss>
