<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-4128089761558623137</atom:id><lastBuildDate>Thu, 12 Jan 2012 05:13:29 +0000</lastBuildDate><category>linux</category><category>deb package</category><category>ubuntu 9.10 Karmic</category><category>ltsp</category><category>karmic koala</category><category>apt</category><category>lucid</category><category>remote filesystem</category><category>ssh</category><category>gadget</category><category>youtube</category><category>kde</category><category>gnome</category><category>sshfs</category><category>android</category><category>disk space</category><category>desktop search</category><category>desktop</category><category>dns</category><category>music and video</category><category>network</category><category>ubuntu</category><category>ubuntu 9.04</category><category>google</category><category>nautilus</category><title>Experimenting with GNU/Linux</title><description>A platform to learn about GNU Linux  and other  derivatives of Unix</description><link>http://unixlab.blogspot.com/</link><managingEditor>noreply@blogger.com (UbuntuGuru)</managingEditor><generator>Blogger</generator><openSearch:totalResults>158</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/unixlab" /><feedburner:info uri="unixlab" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>unixlab</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4128089761558623137.post-8782931651063117822</guid><pubDate>Mon, 12 Dec 2011 03:11:00 +0000</pubDate><atom:updated>2011-12-12T08:41:49.204+05:30</atom:updated><title>Mount Ext4 partitios in Windows</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;
Ubuntu partitions are incompatible with Windows, we can not read and write to them&amp;nbsp; from widows. Ext4 partitions can be read&amp;nbsp; from windows if you install a simple utility in Windows.&lt;br /&gt;
&amp;nbsp;Download ext2fsd from&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;pre&gt;&lt;a href="http://sourceforge.net/projects/ext2fsd/files/Ext2fsd/0.51/"&gt;http://sourceforge.net/projects/ext2fsd/files/Ext2fsd/0.51/&lt;/a&gt;&lt;/pre&gt;&amp;nbsp;Find out&amp;nbsp; Ext2Fsd-0.51.exe from the above site and install it. The following screen shots are self explanatory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-RS9MLebIUro/TuVwgEbebuI/AAAAAAAAEpw/hx7KrjeZ5wg/s1600/8.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="250" src="http://3.bp.blogspot.com/-RS9MLebIUro/TuVwgEbebuI/AAAAAAAAEpw/hx7KrjeZ5wg/s320/8.jpeg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-qUqJrrB8d_s/TuVwjU00MyI/AAAAAAAAEp4/UNk5SaHtFWA/s1600/9.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="250" src="http://4.bp.blogspot.com/-qUqJrrB8d_s/TuVwjU00MyI/AAAAAAAAEp4/UNk5SaHtFWA/s320/9.jpeg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-8jQI0nP7q-s/TuVwmC7IkYI/AAAAAAAAEqA/fk0dHLhlWag/s1600/10.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="250" src="http://4.bp.blogspot.com/-8jQI0nP7q-s/TuVwmC7IkYI/AAAAAAAAEqA/fk0dHLhlWag/s320/10.jpeg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-RSx7ZtA1KpM/TuVwo_cB8-I/AAAAAAAAEqI/yyaExEbuKfk/s1600/11.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="257" src="http://4.bp.blogspot.com/-RSx7ZtA1KpM/TuVwo_cB8-I/AAAAAAAAEqI/yyaExEbuKfk/s320/11.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-0FXHfJsCas4/TuVwrCTaabI/AAAAAAAAEqQ/IssM67tryDE/s1600/12.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-0FXHfJsCas4/TuVwrCTaabI/AAAAAAAAEqQ/IssM67tryDE/s1600/12.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128089761558623137-8782931651063117822?l=unixlab.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ZZMdj_Hb7DbJYoadH5ew-hqMOiY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZZMdj_Hb7DbJYoadH5ew-hqMOiY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ZZMdj_Hb7DbJYoadH5ew-hqMOiY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZZMdj_Hb7DbJYoadH5ew-hqMOiY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/unixlab/~4/Q5atI35c5Hs" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixlab/~3/Q5atI35c5Hs/mount-ext4-partitios-in-windows.html</link><author>noreply@blogger.com (UbuntuGuru)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-RS9MLebIUro/TuVwgEbebuI/AAAAAAAAEpw/hx7KrjeZ5wg/s72-c/8.jpeg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://unixlab.blogspot.com/2011/12/mount-ext4-partitios-in-windows.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4128089761558623137.post-3877809497497219093</guid><pubDate>Sun, 11 Dec 2011 16:23:00 +0000</pubDate><atom:updated>2011-12-11T21:53:44.803+05:30</atom:updated><title>how to clone ubuntu installation</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Here is a quick way to&amp;nbsp; build an exactly similar&amp;nbsp; ubuntu installation on another computer. &lt;br /&gt;
&lt;br /&gt;
Run&lt;br /&gt;
&lt;span style="color: blue;"&gt;$ dpkg --get-selections &amp;gt;my_pakages&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;span style="color: black;"&gt;on the machine that you want to clone. Install a clean copy of Ubuntu on the target machine. Copy the file my_packages to the target machine.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;span style="color: black;"&gt;Run the following command on the target machine. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;span style="color: black;"&gt;$&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;sudo dpkg --set-selections &amp;lt;  ./package_names&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;span style="color: black;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;span style="color: black;"&gt;$&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;sudo apt-get -u dselect-upgrade&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;span style="color: black;"&gt;&amp;nbsp;Done. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;&lt;span style="background-color: #f3f3f3;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128089761558623137-3877809497497219093?l=unixlab.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/XLsdHedfRHsg0mwGYDTUVkfXT2Q/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/XLsdHedfRHsg0mwGYDTUVkfXT2Q/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/XLsdHedfRHsg0mwGYDTUVkfXT2Q/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/XLsdHedfRHsg0mwGYDTUVkfXT2Q/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/unixlab/~4/xCJ5Ig8Pcjg" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixlab/~3/xCJ5Ig8Pcjg/how-to-clone-ubuntu-installation.html</link><author>noreply@blogger.com (UbuntuGuru)</author><thr:total>0</thr:total><feedburner:origLink>http://unixlab.blogspot.com/2011/12/how-to-clone-ubuntu-installation.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4128089761558623137.post-7862426117321093771</guid><pubDate>Sat, 26 Nov 2011 15:07:00 +0000</pubDate><atom:updated>2011-11-26T20:37:30.037+05:30</atom:updated><title>SSH Login Without Password</title><description>&lt;h3&gt;&lt;br /&gt;
&lt;/h3&gt;&lt;div style="text-align: justify;"&gt;For this you required to generate your own personal set of private/public pair. &lt;em&gt;ssh-keygen&lt;/em&gt; is used to generate that key pair for you.&lt;/div&gt;On the user’s home directory, on the localhost, type&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;[local-host]$ ssh-keygen -t dsa&lt;/strong&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;This will ask you a passphrase. A  passphrase is a sequence of words or other text used to control access  to a computer system, program or data. A passphrase is similar to a  password in usage, but is generally longer for added security. Once  entered the passphrase you will be prompted to enter the same passphrase  again for confirmation.&lt;/div&gt;The private key was saved in .ssh/id_dsa and the public key .ssh/id_dsa.pub.&lt;br /&gt;
Now, copy the public key to the remote machine&lt;br /&gt;
&lt;br /&gt;
&lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="bash" style="font-family: monospace;"&gt;&lt;span style="color: #7a0874; font-weight: bold;"&gt;[&lt;/span&gt;local-host&lt;span style="color: #7a0874; font-weight: bold;"&gt;]&lt;/span&gt;$ ssh-copy-id &lt;span style="color: #660033;"&gt;-i&lt;/span&gt; ~&lt;span style="color: black; font-weight: bold;"&gt;/&lt;/span&gt;.ssh&lt;span style="color: black; font-weight: bold;"&gt;/&lt;/span&gt;id_dsa.pub user&lt;span style="color: black; font-weight: bold;"&gt;@&lt;/span&gt;remotehost&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
or if you don’t have ssh-copy-id script installed use&lt;br /&gt;
&lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="bash" style="font-family: monospace;"&gt;&lt;span style="color: #7a0874; font-weight: bold;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="bash" style="font-family: monospace;"&gt;&lt;span style="color: #7a0874; font-weight: bold;"&gt;[&lt;/span&gt;local-host&lt;span style="color: #7a0874; font-weight: bold;"&gt;]&lt;/span&gt;$ &lt;span style="color: #c20cb9; font-weight: bold;"&gt;cat&lt;/span&gt; ~&lt;span style="color: black; font-weight: bold;"&gt;/&lt;/span&gt;.ssh&lt;span style="color: black; font-weight: bold;"&gt;/&lt;/span&gt;id_dsa.pub &lt;span style="color: black; font-weight: bold;"&gt;|&lt;/span&gt; &lt;span style="color: #c20cb9; font-weight: bold;"&gt;ssh&lt;/span&gt; user&lt;span style="color: black; font-weight: bold;"&gt;@&lt;/span&gt;remotehost &lt;span style="color: red;"&gt;"cat - &amp;gt;&amp;gt; ~/.ssh/authorized_keys"&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
Now on the localhost machine, on GNOME select &lt;strong&gt;System &amp;gt; Preferences &amp;gt; Sessions&lt;/strong&gt;.&lt;br /&gt;
Select &lt;strong&gt;Startup Programs&lt;/strong&gt; and add a new entry with this command.&lt;br /&gt;
&lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="bash" style="font-family: monospace;"&gt;&lt;span style="color: #7a0874; font-weight: bold;"&gt;eval&lt;/span&gt; &lt;span style="color: black; font-weight: bold;"&gt;`&lt;/span&gt;&lt;span style="color: #c20cb9; font-weight: bold;"&gt;ssh-agent&lt;/span&gt;&lt;span style="color: black; font-weight: bold;"&gt;`&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;em&gt;ssh-agen&lt;/em&gt;t is a program that  used together with OpenSSH or similar ssh programs provides a secure way  of storing the passphrase of the private key.&lt;/div&gt;Open terminal and run &lt;strong&gt;ssh-add &lt;/strong&gt;without any arguments, it will ask your passphrase once.&lt;br /&gt;
&lt;em&gt;ssh-add&lt;/em&gt; adds identities to the authentication agent, ssh-agent.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="wp_syntax"&gt;&lt;div class="code"&gt;&lt;pre class="bash" style="font-family: monospace;"&gt;&lt;span style="color: #7a0874; font-weight: bold;"&gt;[&lt;/span&gt;local-host&lt;span style="color: #7a0874; font-weight: bold;"&gt;]&lt;/span&gt;$ &lt;span style="color: #c20cb9; font-weight: bold;"&gt;ssh-add&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
Enter passphrase for /home/vinod/.ssh/id_dsa: &lt;enter here="" passphrase="" your=""&gt;&lt;/enter&gt;&lt;br /&gt;
Identity added: /home/you/.ssh/id_dsa (/home/you/.ssh/id_dsa)&lt;br /&gt;
That’s it, now login to remote server it will not ask any password or passphrase.&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;strong&gt;NB: No one else must see the content of .ssh/id_dsa, as it is used to decrypt all correspondence encrypted with the public key.&lt;/strong&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128089761558623137-7862426117321093771?l=unixlab.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/CKAlYiieU8RtifvK8meinsjlFZY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/CKAlYiieU8RtifvK8meinsjlFZY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/CKAlYiieU8RtifvK8meinsjlFZY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/CKAlYiieU8RtifvK8meinsjlFZY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/unixlab/~4/4APTKeHoAzI" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixlab/~3/4APTKeHoAzI/ssh-login-without-password.html</link><author>noreply@blogger.com (Fermi Level)</author><thr:total>0</thr:total><feedburner:origLink>http://unixlab.blogspot.com/2011/11/ssh-login-without-password.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4128089761558623137.post-4877944988058303571</guid><pubDate>Fri, 08 Jul 2011 04:12:00 +0000</pubDate><atom:updated>2011-07-08T09:42:44.597+05:30</atom:updated><title>Childsplay for kids</title><description>&amp;nbsp;&lt;i&gt;&lt;b&gt;Childsplay &lt;/b&gt;&lt;/i&gt;is a collection of educational activities for young children and runs on Windows, OSX, and Linux. It can be used at home, kindergartens and pre-schools.  Childsplay is a fun and save way to let young children use the computer  and at the same time teach them a little math, letters of the alphabets,  spelling, eye-hand coordination etc.&lt;br /&gt;
&lt;br /&gt;
Childsplay is part of the schoolsplay.org project&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Childsplay includes the following games:&lt;/b&gt;&lt;br /&gt;
&amp;nbsp;* Numbers - Put the correct operator between two numbers.&lt;br /&gt;
&amp;nbsp;* SoundNpic - A toy for young children with pictures and sounds.&lt;br /&gt;
&amp;nbsp;* Packid - A pac-man game, try to catch the letters.&lt;br /&gt;
&amp;nbsp;* Soundmemory - The classic memory game, with sounds.&lt;br /&gt;
&amp;nbsp;* Fallingletter - Type them before the reach the ground.&lt;br /&gt;
&amp;nbsp;* Findsound - Listen to a sound and find the image to which it belongs&lt;br /&gt;
&amp;nbsp;* Findsound2 - The same as findsound, now with numbers and letters.&lt;br /&gt;
&amp;nbsp;* Pong - The classic game, play alone or against another child.&lt;br /&gt;
&amp;nbsp;* Billiards - Try to shoot the balls into the hole.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="" name="more"&gt;&lt;/a&gt;&lt;b&gt;Childsplay installation:&lt;/b&gt;&lt;br /&gt;
&amp;nbsp; On ubuntu&amp;nbsp; open a terminal and type&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote style="color: blue;"&gt; sudo apt-get install childsplay&lt;/blockquote&gt;After installation you can open childsplay from Applications &amp;gt; Education &amp;gt; Childsplay&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128089761558623137-4877944988058303571?l=unixlab.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/UDQi5GBgbMleyze_yUINkqq93MI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/UDQi5GBgbMleyze_yUINkqq93MI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/UDQi5GBgbMleyze_yUINkqq93MI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/UDQi5GBgbMleyze_yUINkqq93MI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/unixlab/~4/OtPRNDFdbuE" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixlab/~3/OtPRNDFdbuE/childsplay-for-kids.html</link><author>noreply@blogger.com (UbuntuGuru)</author><thr:total>0</thr:total><feedburner:origLink>http://unixlab.blogspot.com/2011/07/childsplay-for-kids.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4128089761558623137.post-6262933137073133681</guid><pubDate>Wed, 29 Jun 2011 09:49:00 +0000</pubDate><atom:updated>2011-06-29T15:19:05.347+05:30</atom:updated><title>How to recover deleted files in Ubuntu/Linux</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;h2&gt;&lt;br /&gt;
&lt;/h2&gt;&lt;div class="rtejustify"&gt;  When a file is deleted, only the pointer to the file is overwritten and  the original file will still reside in the blocks of the storage device  and will be kept there until it is overwritten by another file. In a  sense, you can always write a file but you can never delete it. So if  you have ever faced the dilemma of trying to recover a deleted file in  Ubuntu then  look no further. Linux offers a wide range of tools for &lt;a href="http://ubuntumanual.org/posts/357/recover-your-deleted-files-in-ubuntu"&gt;recovering deleted files&lt;/a&gt;. These tools work by retrieving the pointer to the deleted files.&lt;/div&gt;&lt;div class="rtejustify"&gt;  The chief among the recovery tools would be Scalpel. Scalpel is a  platform independent command based tool which is small yet very  powerful. You can install the latest version of Scalpel (version 2.0) by  doing a simple&lt;/div&gt;&lt;pre class="alt2" dir="ltr" style="border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 480px;"&gt;sudo apt-get install scalpel &lt;/pre&gt;in the terminal.&lt;br /&gt;
&lt;div class="rtejustify"&gt;  After installation you need to go to the configuration file of scalpel which resides in&lt;/div&gt;&lt;pre class="alt2" dir="ltr" style="border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 480px;"&gt;/etc/scalpel/scalpel.conf&lt;/pre&gt;&lt;div class="rtejustify"&gt;  Using an editor like gedit open the scalpel.conf file using the command.&lt;/div&gt;&lt;pre class="alt2" dir="ltr" style="border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 480px;"&gt;sudo gedit /etc/scalpel/scalpel.conf&lt;/pre&gt;&lt;div class="rtejustify"&gt;  You will notice that that all the lines in the file are preceded by a  comment (#) symbol. Remove the # symbol preceding the file you want to  recover.&lt;/div&gt;&lt;pre class="alt2" dir="ltr" style="border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 480px;"&gt;sudo scalpel "device name/Directoryname/file name" -o "output directory"&lt;/pre&gt;&lt;div class="rtejustify"&gt;  The output directory is the directory where you want to restore your  deleted files. It should be empty before running the command, otherwise  you will get an error. You can also input the deleted filename directly  by using -i option.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128089761558623137-6262933137073133681?l=unixlab.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/PrsNYdJkhpgCBTZaAjyoN3_OxBo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PrsNYdJkhpgCBTZaAjyoN3_OxBo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/PrsNYdJkhpgCBTZaAjyoN3_OxBo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PrsNYdJkhpgCBTZaAjyoN3_OxBo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/unixlab/~4/aBPHPuGhRLc" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixlab/~3/aBPHPuGhRLc/how-to-recover-deleted-files-in.html</link><author>noreply@blogger.com (UbuntuGuru)</author><thr:total>1</thr:total><feedburner:origLink>http://unixlab.blogspot.com/2011/06/how-to-recover-deleted-files-in.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4128089761558623137.post-3482149006932493703</guid><pubDate>Mon, 30 May 2011 04:27:00 +0000</pubDate><atom:updated>2011-05-31T10:00:16.549+05:30</atom:updated><title>Lubuntu Desktop on Natty</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&amp;nbsp;If you don't like the default unity desktop , there are several alternative desktops available for Natty. Lubuntu from the LXDE project is one of my favorites.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-Injjqv7xXJY/TdP5GjBYPaI/AAAAAAAACEg/ogCLjOBAUOU/s1600/Screenshot.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="install lubuntu in Ubuntu 11.04" border="0" height="250" src="http://4.bp.blogspot.com/-Injjqv7xXJY/TdP5GjBYPaI/AAAAAAAACEg/ogCLjOBAUOU/s400/Screenshot.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Lubuntu is a faster, more lightweight and energy saving variant of  Ubuntu based on LXDE desktop, the Lightweight X11 Desktop Environment. &lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Install Lubuntu in Ubuntu 11.04 by doing the following in  Terminal.&lt;/li&gt;
&lt;/ul&gt;&lt;pre class="alt2" dir="ltr" style="border: 1px inset; height: 20px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 560px;"&gt;sudo apt-get install lubuntu-desktop&lt;/pre&gt;&lt;ul&gt;&lt;li&gt;Done.  Lubuntu desktop will now be available within your Ubuntu GDM login  window as a different session already.&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128089761558623137-3482149006932493703?l=unixlab.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/y2KOnnsDejwPOXFBr2gKbOwK_z0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/y2KOnnsDejwPOXFBr2gKbOwK_z0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/y2KOnnsDejwPOXFBr2gKbOwK_z0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/y2KOnnsDejwPOXFBr2gKbOwK_z0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/unixlab/~4/r0KWWOe9r3k" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixlab/~3/r0KWWOe9r3k/lubuntu-desktop-on-natty.html</link><author>noreply@blogger.com (UbuntuGuru)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-Injjqv7xXJY/TdP5GjBYPaI/AAAAAAAACEg/ogCLjOBAUOU/s72-c/Screenshot.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://unixlab.blogspot.com/2011/05/lubuntu-desktop-on-natty.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4128089761558623137.post-4073245672145156833</guid><pubDate>Sun, 29 May 2011 08:05:00 +0000</pubDate><atom:updated>2011-05-31T10:02:50.168+05:30</atom:updated><title>QR code on ubuntu</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;h3 class="post-title entry-title" style="text-align: left;"&gt;&lt;span style="font-size: small; font-weight: normal;"&gt;A QR Code (it  stands for "Quick Response") is a mobile phone readable barcode.simply  encode a URL into the QR Code and then point a mobile phone (or other  camera-enabled mobile) at it. If the device has had QR Code decoding  software installed on it, it will fire up its browser and go straight to  that URL.&lt;/span&gt;&lt;br /&gt;
&lt;/h3&gt;But it doesn't stop there - a QR Code can also contain a phone number,  an SMS message&amp;nbsp; VCard data or just plain alphanumeric text, and the will   respond by opening up the correct application to handle the encoded data  appropriately courtesy of the FNC1 Application Identifiers that are  embedded in the encoded data.&lt;br /&gt;
&lt;div&gt;&lt;div&gt;&lt;br /&gt;
The technical specifications for a QR Code are set down in the ISO-18004  standard so they are the same all over the world, and the only  significant variations from one QR code to another (apart from the data  it contains) is the number of modules required to store the data.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.blogger.com/post-edit.g?blogID=4128089761558623137&amp;amp;postID=4073245672145156833" name="more"&gt;&lt;/a&gt;To &lt;span style="color: blue; font-family: inherit; font-size: inherit ! important; font-weight: inherit ! important; position: static;"&gt;&lt;span class="kLink" style="color: blue; font-family: inherit; font-size: inherit ! important; font-weight: inherit ! important; position: relative;"&gt;make &lt;/span&gt;&lt;span class="kLink" style="color: blue; font-family: inherit; font-size: inherit ! important; font-weight: inherit ! important; position: relative;"&gt;things&lt;/span&gt;&lt;/span&gt;  a bit more  robust, the QR Code also contains its own &lt;span style="color: blue; font-family: inherit; font-size: inherit ! important; font-weight: inherit ! important; position: static;"&gt;&lt;span class="kLink" style="color: blue; font-family: inherit; font-size: inherit ! important; font-weight: inherit ! important; position: relative;"&gt;error&lt;/span&gt;&lt;/span&gt;  correction data, internal orientation calibration and self-alignment  markers. In this way it doesn't matter whether the QR code is upside  down or wrapped around a curved surface, the message will still get  through.&lt;br /&gt;
&lt;br /&gt;
You can easily generate QR Code under &lt;span style="color: blue; font-family: inherit; font-size: inherit ! important; font-weight: inherit ! important; position: static;"&gt;&lt;span class="kLink" style="color: blue; font-family: inherit; font-size: inherit ! important; font-weight: inherit ! important; position: relative;"&gt;Ubuntu&lt;/span&gt;&lt;/span&gt;  for this you need to install 'qrencode’ package. In Ubuntu, you can  install qrencode using this command:&lt;br /&gt;
&lt;blockquote&gt;&lt;span style="color: blue;"&gt;apt-get install qrencode&lt;/span&gt;&lt;/blockquote&gt;Go  to terminal and type folloing command to generate QR code image:&lt;br /&gt;
&lt;blockquote style="color: blue;"&gt;qrencode -l L -v 1 -o unixlab.png  "http://unixlab.blogspot.com"&lt;/blockquote&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-CGVq5Y5rJcQ/TcQaHy4cEII/AAAAAAAAAEg/F9wbr2WTYb8/s1600/linuxpoison.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-CGVq5Y5rJcQ/TcQaHy4cEII/AAAAAAAAAEg/F9wbr2WTYb8/s1600/linuxpoison.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128089761558623137-4073245672145156833?l=unixlab.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/VcQHZxjm-8iC-eNQeafjcWiYTOM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/VcQHZxjm-8iC-eNQeafjcWiYTOM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/VcQHZxjm-8iC-eNQeafjcWiYTOM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/VcQHZxjm-8iC-eNQeafjcWiYTOM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/unixlab/~4/WSm0ap3o_fE" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixlab/~3/WSm0ap3o_fE/qr-code-on-ubuntu.html</link><author>noreply@blogger.com (UbuntuGuru)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-CGVq5Y5rJcQ/TcQaHy4cEII/AAAAAAAAAEg/F9wbr2WTYb8/s72-c/linuxpoison.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://unixlab.blogspot.com/2011/05/qr-code-on-ubuntu.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4128089761558623137.post-4890922155673871778</guid><pubDate>Sun, 29 May 2011 06:45:00 +0000</pubDate><atom:updated>2011-05-29T12:15:26.031+05:30</atom:updated><title>Zorin Splash Manager</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="text-align: justify;"&gt;Zorin Splash Manager&amp;nbsp; is a cool application with which you can change the&amp;nbsp; theme&amp;nbsp; of Ubuntu desktop. The screen shot of the GUI is given below.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-VKIxsGXwxKM/Td6U_L8tzUI/AAAAAAAACH0/bstJn5Ytku0/s1600/Screenshot.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="Install, change Plymouth Themes in Ubuntu" border="0" height="320" src="http://1.bp.blogspot.com/-VKIxsGXwxKM/Td6U_L8tzUI/AAAAAAAACH0/bstJn5Ytku0/s320/Screenshot.png" width="312" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;a href="" name="more"&gt;&lt;/a&gt;&lt;br /&gt;
&amp;nbsp; &lt;b&gt;&lt;/b&gt;Basically,&amp;nbsp;&amp;nbsp; Zorin Splash Screen  Manager is an application&amp;nbsp; made for&amp;nbsp;&lt;a href="http://zorin-os.com/"&gt;Zorin OS&lt;/a&gt; project, a Linux distro based  on Ubuntu. It offers the following features. &lt;br /&gt;
&lt;div&gt;&lt;ul&gt;&lt;li&gt;&amp;nbsp;You can install , remove and change the plymouth theme. Here are some additional screen shots on its usage.&lt;/li&gt;
&lt;/ul&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-M4lzh7jRGR8/Td6eJhDeFtI/AAAAAAAACH4/56_RQQApfPs/s1600/Screenshot.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="Zorin Splash Screen Manager" border="0" height="282" src="http://2.bp.blogspot.com/-M4lzh7jRGR8/Td6eJhDeFtI/AAAAAAAACH4/56_RQQApfPs/s400/Screenshot.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-EWqZiyx1YW0/Td6eODoFdAI/AAAAAAAACH8/iZmkUXIloo8/s1600/Screenshot-1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="Zorin Splash Screen Manager: Manage Plymouth Themes in Ubuntu" border="0" height="336" src="http://1.bp.blogspot.com/-EWqZiyx1YW0/Td6eODoFdAI/AAAAAAAACH8/iZmkUXIloo8/s400/Screenshot-1.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;b&gt;How&amp;nbsp; to install &amp;nbsp; Zorin Splash Screen Manager&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://zorin-os.webs.com/splashscreenmanager.htm"&gt;Download Zorin  Splash Screen Manager DEB Package&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can install the deb package&amp;nbsp; from the command line&amp;nbsp; or&amp;nbsp;&amp;nbsp; you just double click of the deb package from nautilus ( this will launch gdeb-gtk)&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128089761558623137-4890922155673871778?l=unixlab.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/NCA5pNrwmumNcTeuczaWpHqaeaw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NCA5pNrwmumNcTeuczaWpHqaeaw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/NCA5pNrwmumNcTeuczaWpHqaeaw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NCA5pNrwmumNcTeuczaWpHqaeaw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/unixlab/~4/75e59hdMKls" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixlab/~3/75e59hdMKls/zorin-splash-manager.html</link><author>noreply@blogger.com (UbuntuGuru)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-VKIxsGXwxKM/Td6U_L8tzUI/AAAAAAAACH0/bstJn5Ytku0/s72-c/Screenshot.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://unixlab.blogspot.com/2011/05/zorin-splash-manager.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4128089761558623137.post-5599869485516081148</guid><pubDate>Mon, 16 May 2011 07:18:00 +0000</pubDate><atom:updated>2011-05-16T12:48:47.828+05:30</atom:updated><title>Installing android on ubuntu</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Here is a small tutorial on developing android apps on ubuntu platform.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;The article has step by step instructions and lots of screen shots.&lt;br /&gt;
&lt;a href="http://ieffects.blogspot.com/2011/05/android-and-ubuntu-everything.html"&gt;http://ieffects.blogspot.com/2011/05/android-and-ubuntu-everything.html&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128089761558623137-5599869485516081148?l=unixlab.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/EQI4b0cjh3sP8g50HwL_HGrI2Wo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/EQI4b0cjh3sP8g50HwL_HGrI2Wo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/EQI4b0cjh3sP8g50HwL_HGrI2Wo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/EQI4b0cjh3sP8g50HwL_HGrI2Wo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/unixlab/~4/h_arTm64Po4" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixlab/~3/h_arTm64Po4/installing-android-on-ubuntu.html</link><author>noreply@blogger.com (UbuntuGuru)</author><thr:total>0</thr:total><feedburner:origLink>http://unixlab.blogspot.com/2011/05/installing-android-on-ubuntu.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4128089761558623137.post-7006574237235310980</guid><pubDate>Wed, 11 May 2011 17:05:00 +0000</pubDate><atom:updated>2011-05-14T01:54:25.158+05:30</atom:updated><title>Installing Ubuntu 11.04 in pendrive persistently : time for pendrive OS</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;What about the idea of carrying your operating system where you go? I am  not talking about bringing your laptop everywhere you go, instead use  your pendrive to carry your linux distro. Not simply the live distro,  you can carry your operating system with all your configurations, &lt;br /&gt;
&lt;div&gt;&lt;div class="fsm fwn fcg"&gt;&amp;nbsp;&lt;span class="uiAttachmentDetails"&gt;&lt;a href="http://apps.facebook.com/blognetworks/blog/crack_bytezz"&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="fsm fwn fcg"&gt;link: &lt;span class="uiAttachmentDetails"&gt;&lt;a href="http://networkedblogs.com/hEOli" onmousedown="UntrustedLink.bootstrap($(this), &amp;quot;d2586&amp;quot;, event, 
bagof(null));" rel="nofollow" target="_blank"&gt;Full Article...&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128089761558623137-7006574237235310980?l=unixlab.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/E1jWF4AoG3gBAlbWHLDxP6Pyqeg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/E1jWF4AoG3gBAlbWHLDxP6Pyqeg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/E1jWF4AoG3gBAlbWHLDxP6Pyqeg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/E1jWF4AoG3gBAlbWHLDxP6Pyqeg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/unixlab/~4/GQAqboF_meA" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixlab/~3/GQAqboF_meA/installing-ubuntu-1104-in-pendrive.html</link><author>noreply@blogger.com (UbuntuGuru)</author><thr:total>0</thr:total><feedburner:origLink>http://unixlab.blogspot.com/2011/05/installing-ubuntu-1104-in-pendrive.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4128089761558623137.post-7114381127007680407</guid><pubDate>Sun, 20 Mar 2011 16:32:00 +0000</pubDate><atom:updated>2011-03-20T22:02:00.232+05:30</atom:updated><title>Wall paper slide show on Kubuntu</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;
Right Click on the Kubuntu Desktop and&amp;nbsp;&amp;nbsp; Select "Desktop Activity  Settings" Change the "Type" dropdown to read "Slideshow".&lt;br /&gt;
Select  the Image folders you want to scan, and the time delay you  want&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128089761558623137-7114381127007680407?l=unixlab.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/elsbVPQEi17lWdgNmKW1_XBbYLo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/elsbVPQEi17lWdgNmKW1_XBbYLo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/elsbVPQEi17lWdgNmKW1_XBbYLo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/elsbVPQEi17lWdgNmKW1_XBbYLo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/unixlab/~4/XAorjKxgi0s" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixlab/~3/XAorjKxgi0s/wall-paper-slide-show-on-kubuntu.html</link><author>noreply@blogger.com (UbuntuGuru)</author><thr:total>0</thr:total><feedburner:origLink>http://unixlab.blogspot.com/2011/03/wall-paper-slide-show-on-kubuntu.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4128089761558623137.post-8894259727663213987</guid><pubDate>Sun, 20 Mar 2011 05:47:00 +0000</pubDate><atom:updated>2011-03-20T11:17:00.044+05:30</atom:updated><title>How to block flash videos using Squid proxy Server</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Some times network admins want to block flash videos from&amp;nbsp; being played on the network. You can configure&amp;nbsp; Squid proxy server to do the same if we block the appropriate MIME type.&lt;br /&gt;
The MIME Type reply is generally set correctly so browsers are able to pass the reply to the correct module (&lt;i&gt;image, text, &lt;span style="color: black; font-family: Arial,tahoma,Verdana,Arial,Sans-Serif; font-size: 14.4px; font-weight: 400; position: static;"&gt;&lt;span class="kLink" style="font-family: Arial,tahoma,Verdana,Arial,Sans-Serif; font-size: 14.4px; font-weight: 400; position: relative;"&gt;html&lt;/span&gt;&lt;/span&gt;, flash, music, mpeg, etc.&lt;/i&gt;)&lt;br /&gt;
&lt;br /&gt;
The MIME type for flash videos&amp;nbsp; is "&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;video/x-flv&lt;/span&gt;&lt;/i&gt;". Creating an ACL to block this is easy.&lt;br /&gt;
&lt;br /&gt;
First, create an ACL which matches the MIME type in question:&lt;br /&gt;
&lt;blockquote style="color: blue;"&gt;acl deny_rep_mime_flashvideo rep_mime_type video/x-flv&lt;/blockquote&gt;Then create a HTTP Reply ACL which denies any replies with that MIME type:&lt;br /&gt;
&lt;blockquote style="color: blue;"&gt;http_reply_access deny deny_rep_mime_flashvideo&lt;/blockquote&gt;&lt;br /&gt;
If the content is blocked the following similar line will be seen in access.log:&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;1282485682.146 &amp;nbsp;  &amp;nbsp;903 127.0.0.1 TCP_DENIED_REPLY/403 3143 GET  http://tc.v15.cache3.c.youtube.com/videoplayback? -  DIRECT/208.117.252.163 text/html&lt;/span&gt;&lt;br /&gt;
&lt;/i&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128089761558623137-8894259727663213987?l=unixlab.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/8yMZ6iaZLyRNNlo44Rvo70aF1Vo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/8yMZ6iaZLyRNNlo44Rvo70aF1Vo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/8yMZ6iaZLyRNNlo44Rvo70aF1Vo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/8yMZ6iaZLyRNNlo44Rvo70aF1Vo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/unixlab/~4/P0DYOmoB0yM" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixlab/~3/P0DYOmoB0yM/how-to-block-flash-videos-using-squid.html</link><author>noreply@blogger.com (UbuntuGuru)</author><thr:total>1</thr:total><feedburner:origLink>http://unixlab.blogspot.com/2011/03/how-to-block-flash-videos-using-squid.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4128089761558623137.post-1037388354232226191</guid><pubDate>Sat, 19 Mar 2011 16:01:00 +0000</pubDate><atom:updated>2011-03-19T21:31:00.967+05:30</atom:updated><title>Converting IMG files to ISO images</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Some time you will find CD images with .img extentions. Most probably such images are created by clonecd, a windows program.&lt;br /&gt;
&lt;br /&gt;
IMG files are raw-data copies of optical media and are primarily used&amp;nbsp; to&amp;nbsp; store&amp;nbsp; CDs  with&amp;nbsp; odd&amp;nbsp; properties,such as sectors which need to have read errors  when read. Conversion to ISO format removes this&amp;nbsp; information,as ISO  format does not support this. &lt;br /&gt;
&lt;br /&gt;
You can manipulate&amp;nbsp; such images if you install ccd2iso package.&lt;br /&gt;
&amp;nbsp;&amp;nbsp; sudo aptitude install ccd2iso&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; You can&amp;nbsp; convert&amp;nbsp; img files to iso files as shown below.&lt;br /&gt;
&amp;nbsp;&lt;strong&gt; &amp;nbsp;&lt;/strong&gt;  ccd2iso file.img file1.iso&lt;br /&gt;
&amp;nbsp;IMG&amp;nbsp; files almost always include a SUB file, which contains  additional data for the disc format, and a CCD file, which is a  plaintext configu-ration file describing the disc layout.ccd2iso does  not make use of&amp;nbsp; these files&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128089761558623137-1037388354232226191?l=unixlab.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/3fwpZfksX401xRZ6tTPmrkwggOQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3fwpZfksX401xRZ6tTPmrkwggOQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/3fwpZfksX401xRZ6tTPmrkwggOQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3fwpZfksX401xRZ6tTPmrkwggOQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/unixlab/~4/WHNp9wyeT1I" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixlab/~3/WHNp9wyeT1I/converting-img-files-to-iso-images.html</link><author>noreply@blogger.com (UbuntuGuru)</author><thr:total>1</thr:total><feedburner:origLink>http://unixlab.blogspot.com/2011/03/converting-img-files-to-iso-images.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4128089761558623137.post-2775281153487559132</guid><pubDate>Fri, 18 Mar 2011 15:51:00 +0000</pubDate><atom:updated>2011-03-18T21:21:59.193+05:30</atom:updated><title>How to Autostart a program at log in ( Ubuntu )</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&amp;nbsp;You can start up a program or script automatically when you login by creating a ling to&amp;nbsp;&lt;b style="color: #274e13;"&gt; ~/.config/autostart&amp;nbsp; &lt;/b&gt;&lt;br /&gt;
For example, to start Firefox at log in , create a symbolic link.&lt;br /&gt;
&amp;nbsp;&lt;b&gt;$ sudo ln -s /usr/bin/firefox ~/.config/autostart&lt;/b&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128089761558623137-2775281153487559132?l=unixlab.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/j7XIkGs7qWKmxPhEDH2saqsZX28/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/j7XIkGs7qWKmxPhEDH2saqsZX28/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/j7XIkGs7qWKmxPhEDH2saqsZX28/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/j7XIkGs7qWKmxPhEDH2saqsZX28/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/unixlab/~4/uoF-HLUCvNE" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixlab/~3/uoF-HLUCvNE/how-to-autostart-program-at-log-in.html</link><author>noreply@blogger.com (UbuntuGuru)</author><thr:total>0</thr:total><feedburner:origLink>http://unixlab.blogspot.com/2011/03/how-to-autostart-program-at-log-in.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4128089761558623137.post-7061357246267906089</guid><pubDate>Thu, 24 Feb 2011 09:45:00 +0000</pubDate><atom:updated>2011-02-24T15:21:56.063+05:30</atom:updated><title>How to enable PHP in  Apache  per user directory configuration  on  Ubuntu 10.10</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&amp;nbsp;&amp;nbsp; If you want to&amp;nbsp; do web application development on Ubuntu systems,&amp;nbsp; enabling per user directory configuration on Apache web server is a good idea.&amp;nbsp; You can&amp;nbsp; make a&amp;nbsp; directory on your home folder visible&amp;nbsp; to the web server and&amp;nbsp; view it via web browser.&lt;br /&gt;
&amp;nbsp;&amp;nbsp; Let us start with&amp;nbsp; apache installation&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="alt2" dir="ltr" style="border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 440px;"&gt;$ sudo apt-get install apache2&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; By default apache serves pages from&amp;nbsp; /var/www/&lt;br /&gt;
If you&amp;nbsp; invoke http://127.0.0.1 on a browser, you can view web pages stored in&lt;br /&gt;
/var/www . However , if you want to put a new&amp;nbsp; html page at /var/www , you need&amp;nbsp; root access.&amp;nbsp;&amp;nbsp; You can make a directory in your home folder visible to the server and access this directory via http://127.0.0.1/~username.&amp;nbsp; ( Substitute username with your actual login name.) . For achieving this, do the following steps.&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;pre class="alt2" dir="ltr" style="border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 440px;"&gt;&amp;nbsp; $ sudo a2enmod userdir
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Enabling module userdir.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Run '/etc/init.d/apache2 restart' to activate new configuration!&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Now restart&amp;nbsp; apache&lt;br /&gt;
&lt;pre class="alt2" dir="ltr" style="border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 440px;"&gt;$ sudo /etc/init.d/apache2 restart&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;Userdir&amp;nbsp;&amp;nbsp; mod&amp;nbsp; will&amp;nbsp; make public_html&amp;nbsp; folder&amp;nbsp;&amp;nbsp; in your home directory available on&amp;nbsp; web server.&amp;nbsp; You can create public_html&amp;nbsp;&amp;nbsp; folder in your home folder and develop&amp;nbsp; your web applications.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; If you are developing&amp;nbsp; PHP applications , you have to enable php support&amp;nbsp; for per user directory configuration.&lt;br /&gt;
For enabling php,&lt;br /&gt;
&lt;pre class="alt2" dir="ltr" style="border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 440px;"&gt;sudo vi /etc/apache2/mods-available/php5.conf&lt;/pre&gt;&lt;br /&gt;
Look for the lines that look like&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-rjJWf9xaJYs/TWYpl6JyArI/AAAAAAAAElQ/-yzGrXJavFo/s1600/php51.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-rjJWf9xaJYs/TWYpl6JyArI/AAAAAAAAElQ/-yzGrXJavFo/s1600/php51.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-skDqfPKiu-g/TWYpqK4pl-I/AAAAAAAAElU/qkXUPftx2jQ/s1600/php52.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;br /&gt;
&lt;/a&gt;&lt;/div&gt;and change them to look like:&lt;br /&gt;
&lt;a href="http://1.bp.blogspot.com/-skDqfPKiu-g/TWYpqK4pl-I/AAAAAAAAElU/qkXUPftx2jQ/s1600/php52.png" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="86" src="http://1.bp.blogspot.com/-skDqfPKiu-g/TWYpqK4pl-I/AAAAAAAAElU/qkXUPftx2jQ/s320/php52.png" width="320" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;then restart apache. &lt;br /&gt;
&lt;div style="margin: 5px 20px 20px;"&gt;&lt;pre class="alt2" dir="ltr" style="border: 1px inset; height: 34px; margin: 0px; overflow: auto; padding: 6px; text-align: left; width: 540px;"&gt;sudo /etc/init.d/apache2 restart&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128089761558623137-7061357246267906089?l=unixlab.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/d8lFGZ9oKgWJGaTzWIwkey8F-ak/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/d8lFGZ9oKgWJGaTzWIwkey8F-ak/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/d8lFGZ9oKgWJGaTzWIwkey8F-ak/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/d8lFGZ9oKgWJGaTzWIwkey8F-ak/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/unixlab/~4/gv7E0fK7x64" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixlab/~3/gv7E0fK7x64/how-to-enable-php-in-apache-per-user.html</link><author>noreply@blogger.com (UbuntuGuru)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-rjJWf9xaJYs/TWYpl6JyArI/AAAAAAAAElQ/-yzGrXJavFo/s72-c/php51.png" height="72" width="72" /><thr:total>2</thr:total><feedburner:origLink>http://unixlab.blogspot.com/2011/02/how-to-enable-php-in-apache-per-user.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4128089761558623137.post-6659447278246041771</guid><pubDate>Wed, 16 Feb 2011 07:50:00 +0000</pubDate><atom:updated>2011-02-16T13:20:00.056+05:30</atom:updated><title>System backup with TimeVault</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Time vault is a GUI application that can assist&amp;nbsp; users in taking incremental back up.&amp;nbsp; Its functionality is similar&amp;nbsp; to Time/Machine available on Apple MACs&lt;br /&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt; &lt;br /&gt;
&lt;b&gt;&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;/b&gt; TimeVault&amp;nbsp; makes automated&amp;nbsp;&amp;nbsp;snapshots of (&lt;i&gt;selected parts of&lt;/i&gt;) the file system. You can roll  back to a&amp;nbsp;previous version&lt;span style="color: blue ! important; font-family: inherit ! important; font-size: inherit ! important; font-weight: inherit ! important; position: static;"&gt;&lt;span class="kLink" style="color: blue ! important; font-family: inherit ! important; font-size: inherit ! important; font-weight: inherit ! important; position: relative;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt; of a  file or directory, or just view it the way it was when the snapshot was  taken.&amp;nbsp;Snapshots are protected from accidental deletion or modification  since they are read-only by default. The super-user can delete  intermediate snapshots to save space, but files and directories that  existed before or after the deletion will still be accessible&lt;br /&gt;
&lt;br /&gt;
&lt;a href="" name="more"&gt;&lt;/a&gt;It's also integrates into Nautilus, so you can go the  properties page for a snapshot'ed file (right-click in Nautilus and  choose properties), and see a 'Previous Versions' tab with a calendar on  it.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;TimeVault&amp;nbsp;Features include:&lt;/b&gt;&lt;br /&gt;
&amp;nbsp;* Automatically saves and recovers data&lt;br /&gt;
&amp;nbsp;* Actively monitors selected folders&lt;br /&gt;
&amp;nbsp;* Automated snapshots&lt;br /&gt;
&amp;nbsp;* Tight integration with Nautilus, the GNOME file manager&lt;br /&gt;
&amp;nbsp;* File-system agnostic&lt;br /&gt;
&amp;nbsp;* Highly configurable&lt;br /&gt;
&amp;nbsp;* Intuitive interface&lt;br /&gt;
&amp;nbsp;* Archive browser&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;TimeVault Installation and Configuration:&lt;/b&gt;&lt;br /&gt;
Download the .deb file from &lt;a href="https://launchpad.net/timevault" rel="nofollow" target="_blank"&gt;here&lt;/a&gt;, doubleclick on this file to  install TimeVault.&lt;br /&gt;
After installing the .deb file, there are two steps required to complete  installation:&lt;br /&gt;
&lt;br /&gt;
You must configure TimeVault, the backend will start automatically but  the notifier needs to be started:&amp;nbsp;To get the notifier app to start in  your systray whenever you log in you can add it to your startup programs  in &lt;i&gt;System &amp;gt; Preferences &amp;gt; Startup Applications&lt;/i&gt;, you should  have an option to add a program click that, name it TimeVault and put:&lt;br /&gt;
&lt;blockquote&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;/usr/bin/timevault-notifier&lt;/span&gt;&lt;/blockquote&gt;in  the a terminal , you can put whatever you like in the comments box.  After you have done this if you log out and back in again you should  magically have the TimeVault notifier app sitting in your systray. Right  click on it and go to preferences to configure TimeVault as you wish.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Using TimeVault:&lt;/b&gt;&lt;br /&gt;
There are three tabs: General, Include and Exclude.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_X6fJZeOUOEQ/TU_sKi70A4I/AAAAAAAAADw/5k_2OtRkWEs/s1600/timevault-pref-2.png" imageanchor="UI Application to take System Backup and Snapshot - 
TimeVault" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://4.bp.blogspot.com/_X6fJZeOUOEQ/TU_sKi70A4I/AAAAAAAAADw/5k_2OtRkWEs/s320/timevault-pref-2.png" width="312" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;General:&lt;/b&gt;&lt;br /&gt;
Enable Automated Snapshots: By default, TimeVault will not automatically  take snapshots of your system. Checking this box will tell it to  automatically take daily snapshots.&lt;br /&gt;
&lt;br /&gt;
Show snapshot notifications: This switch toggles on and off whether  snapshot notifications are to be shown or not.&lt;br /&gt;
&lt;br /&gt;
Snapshot Root Directory: Where to store the snapshots. Ideally, you  should pick a directory that is mounted onto another physical drive from  the data you are backing up. This is so that, in the case of a  hard-disk failure, the backups will remain intact (&lt;i&gt;unless the drive  containing the backups fails, in which case the current version of the  data remains&lt;/i&gt;).&lt;br /&gt;
&lt;br /&gt;
Make sure you change the settings under Advance to include your largest  file, currently it is only set for 32mb. This is not large enough if you  have videos as part of a back up.&amp;nbsp;You may consider to back up to a  network drive, in the case of total hard drive failure your data will be  safe.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Include:&lt;/b&gt;&lt;br /&gt;
Backup paths are listed here. Every directory that you want snapshot  should be added to this list.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Exclude:&lt;/b&gt;&lt;br /&gt;
Paths or patterns to exclude from the snapshots should be listed here.&lt;br /&gt;
&lt;br /&gt;
When you have finished making the necessary changes click the save  button and TimeVault should pop up a message saying.&amp;nbsp;You have included  new directories in the TimeVault. File signatures will now be  computed.&amp;nbsp;Click &lt;b&gt;&lt;i&gt;ok&lt;/i&gt;&lt;/b&gt; in this box and TimeVault should be  active and will start watching your files.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128089761558623137-6659447278246041771?l=unixlab.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/nxtpv15STxb6HtjE7a4oQEgfSLI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/nxtpv15STxb6HtjE7a4oQEgfSLI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/nxtpv15STxb6HtjE7a4oQEgfSLI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/nxtpv15STxb6HtjE7a4oQEgfSLI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/unixlab/~4/H5AhYt_HTF4" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixlab/~3/H5AhYt_HTF4/system-backup-with-timevault.html</link><author>noreply@blogger.com (UbuntuGuru)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_X6fJZeOUOEQ/TU_sKi70A4I/AAAAAAAAADw/5k_2OtRkWEs/s72-c/timevault-pref-2.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://unixlab.blogspot.com/2011/02/system-backup-with-timevault.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4128089761558623137.post-7752218743584806754</guid><pubDate>Tue, 15 Feb 2011 07:42:00 +0000</pubDate><atom:updated>2011-02-15T13:12:25.890+05:30</atom:updated><title>Advanced IP subnet calculator  sipcalc</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Sipcalc is an advanced console-based IP subnet calculator. It can take multiple forms of input (IPv4/IPv6/interface/hostname) and output a multitude of information about a given subnet.&lt;br /&gt;
&amp;nbsp;On ubuntu,&amp;nbsp; you can install it from&amp;nbsp; software center or from the command line.&lt;br /&gt;
&lt;br /&gt;
If you want to calculate the netmask details of 123.123.123.123/28, here we go&lt;br /&gt;
&lt;br /&gt;
$&amp;nbsp; sipcalc 123.123.123.123/28&lt;br /&gt;
-[ipv4 : 123.123.123.123/28] - 0&lt;br /&gt;
&lt;br /&gt;
[CIDR]&lt;br /&gt;
Host address&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; - 123.123.123.123&lt;br /&gt;
Host address (decimal)&amp;nbsp;&amp;nbsp;&amp;nbsp; - 2071690107&lt;br /&gt;
Host address (hex)&amp;nbsp;&amp;nbsp;&amp;nbsp; - 7B7B7B7B&lt;br /&gt;
Network address&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; - 123.123.123.112&lt;br /&gt;
Network mask&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; - 255.255.255.240&lt;br /&gt;
Network mask (bits)&amp;nbsp;&amp;nbsp;&amp;nbsp; - 28&lt;br /&gt;
Network mask (hex)&amp;nbsp;&amp;nbsp;&amp;nbsp; - FFFFFFF0&lt;br /&gt;
Broadcast address&amp;nbsp;&amp;nbsp;&amp;nbsp; - 123.123.123.127&lt;br /&gt;
Cisco wildcard&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; - 0.0.0.15&lt;br /&gt;
Addresses in network&amp;nbsp;&amp;nbsp;&amp;nbsp; - 16&lt;br /&gt;
Network range&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; - 123.123.123.112 - 123.123.123.127&lt;br /&gt;
Usable range&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; - 123.123.123.113 - 123.123.123.126&lt;br /&gt;
&lt;br /&gt;
Any net admin would love this gem.&lt;br /&gt;
&lt;br /&gt;
You can use it on your existing interfaces too. &lt;br /&gt;
Here is the sample ipcalc output from my wlan interface&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; # sipcalc -d -bcix -n 4 -e -r -t&amp;nbsp; wlan0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;[Classfull]&lt;br /&gt;
Host address&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; - 192.168.1.2&lt;br /&gt;
Host address (decimal)&amp;nbsp;&amp;nbsp;&amp;nbsp; - 3232235778&lt;br /&gt;
Host address (hex)&amp;nbsp;&amp;nbsp;&amp;nbsp; - C0A80102&lt;br /&gt;
Network address&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; - 192.168.1.0&lt;br /&gt;
Network class&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; - C&lt;br /&gt;
Network mask&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; - 255.255.255.0&lt;br /&gt;
Network mask (hex)&amp;nbsp;&amp;nbsp;&amp;nbsp; - FFFFFF00&lt;br /&gt;
Broadcast address&amp;nbsp;&amp;nbsp;&amp;nbsp; - 192.168.1.255&lt;br /&gt;
&lt;br /&gt;
[CIDR]&lt;br /&gt;
Host address&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; - 192.168.1.2&lt;br /&gt;
Host address (decimal)&amp;nbsp;&amp;nbsp;&amp;nbsp; - 3232235778&lt;br /&gt;
Host address (hex)&amp;nbsp;&amp;nbsp;&amp;nbsp; - C0A80102&lt;br /&gt;
Network address&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; - 192.168.1.0&lt;br /&gt;
Network mask&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; - 255.255.255.0&lt;br /&gt;
Network mask (bits)&amp;nbsp;&amp;nbsp;&amp;nbsp; - 24&lt;br /&gt;
Network mask (hex)&amp;nbsp;&amp;nbsp;&amp;nbsp; - FFFFFF00&lt;br /&gt;
Broadcast address&amp;nbsp;&amp;nbsp;&amp;nbsp; - 192.168.1.255&lt;br /&gt;
Cisco wildcard&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; - 0.0.0.255&lt;br /&gt;
Addresses in network&amp;nbsp;&amp;nbsp;&amp;nbsp; - 256&lt;br /&gt;
Network range&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; - 192.168.1.0 - 192.168.1.255&lt;br /&gt;
Usable range&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; - 192.168.1.1 - 192.168.1.254&lt;br /&gt;
[Classfull bitmaps]&lt;br /&gt;
Network address&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; - 11000000.10101000.00000001.00000000&lt;br /&gt;
Network mask&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; - 11111111.11111111.11111111.00000000&lt;br /&gt;
&lt;br /&gt;
[CIDR bitmaps]&lt;br /&gt;
Host address&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; - 11000000.10101000.00000001.00000010&lt;br /&gt;
Network address&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; - 11000000.10101000.00000001.00000000&lt;br /&gt;
Network mask&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; - 11111111.11111111.11111111.00000000&lt;br /&gt;
Broadcast address&amp;nbsp;&amp;nbsp;&amp;nbsp; - 11000000.10101000.00000001.11111111&lt;br /&gt;
Cisco wildcard&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; - 00000000.00000000.00000000.11111111&lt;br /&gt;
Network range&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; - 11000000.10101000.00000001.00000000 -&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11000000.10101000.00000001.11111111&lt;br /&gt;
Usable range&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; - 11000000.10101000.00000001.00000001 -&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 11000000.10101000.00000001.11111110&lt;br /&gt;
&lt;br /&gt;
[Networks]&lt;br /&gt;
Network&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; - 192.168.1.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - 192.168.1.255 (current)&lt;br /&gt;
Network&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; - 192.168.2.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - 192.168.2.255&lt;br /&gt;
Network&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; - 192.168.3.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - 192.168.3.255&lt;br /&gt;
Network&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; - 192.168.4.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - 192.168.4.255&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128089761558623137-7752218743584806754?l=unixlab.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/AgmGKTq9T3nmT5VrF09azZE8-0c/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/AgmGKTq9T3nmT5VrF09azZE8-0c/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/AgmGKTq9T3nmT5VrF09azZE8-0c/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/AgmGKTq9T3nmT5VrF09azZE8-0c/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/unixlab/~4/VYVdjkApYjs" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixlab/~3/VYVdjkApYjs/advanced-ip-subnet-calculator-sipcalc.html</link><author>noreply@blogger.com (UbuntuGuru)</author><thr:total>2</thr:total><feedburner:origLink>http://unixlab.blogspot.com/2011/02/advanced-ip-subnet-calculator-sipcalc.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4128089761558623137.post-6950290092898286753</guid><pubDate>Tue, 15 Feb 2011 07:15:00 +0000</pubDate><atom:updated>2011-02-15T12:45:26.584+05:30</atom:updated><title>Reading E Books with FBReader</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&amp;nbsp; If you are an avid E-book fan FBreader is a cool app for you. &lt;a href="http://www.fbreader.org/"&gt;FBreader&lt;/a&gt; is available&amp;nbsp; on several platforms.Its main features are,&lt;br /&gt;
&lt;br /&gt;
*&amp;nbsp; supports several open e-book formats: fb2, html, chm, plucker, palmdoc, ztxt, tcr (psion text), rtf, oeb, openreader, non-DRM'ed mobipocket, plain text, epub&lt;br /&gt;
&lt;br /&gt;
*&amp;nbsp; reads directly from tar, zip, gzip, bzip2 archives (you can have several books in one archive)&lt;br /&gt;
&lt;br /&gt;
*&amp;nbsp; supports a structured view of your e-book collection&amp;nbsp; automatically determines encodings&lt;br /&gt;
&lt;br /&gt;
*&amp;nbsp; automatically generates a table of contents&lt;br /&gt;
&lt;br /&gt;
*keeps the last open book and the last read positions for all open books between runs&lt;br /&gt;
&lt;br /&gt;
*&amp;nbsp; automatic hyphenation (patterns for several languages are included)&lt;br /&gt;
*&amp;nbsp; searching and downloading books from www.feedbooks.com and www.litres.ru&lt;br /&gt;
&lt;br /&gt;
* partial CSS support for epub files&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; FBReader can be downloaded from its website for several platforms. Some of&amp;nbsp; the supported platforms include&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;Linux&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;Windowa&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;SmartQ 5/7 MID.&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;Nokia  770/N800/N810) Internet Tablet.&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;Sharp Zaurus  with Qtopia-based ROindoiM (e.g., original Sharp, Cacko) installed.&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;Sharp Zaurus  with pdaXrom installed.&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;Sharp  Zaurus with OpenZaurus installed.&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;Siemens  Simpad with OpenSimpad 0.9.0.&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;Archos PMA430.&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;PepperPad.&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;Motorola  A1200 smartphone.&lt;/li&gt;&lt;br /&gt;
&lt;li&gt;Google  Android.&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; FBReader&amp;nbsp;&amp;nbsp; can be installed on&amp;nbsp; ubuntu from softeware center or from the command line.&lt;br /&gt;
$ su apt-get install fbreader&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.fbreader.org/third-party/broncho/"&gt;&amp;nbsp;Here&lt;/a&gt; are some screen shots of FBReader&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128089761558623137-6950290092898286753?l=unixlab.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/8p3xVp55AsHTPdg2x8_v0WK2r18/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/8p3xVp55AsHTPdg2x8_v0WK2r18/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/8p3xVp55AsHTPdg2x8_v0WK2r18/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/8p3xVp55AsHTPdg2x8_v0WK2r18/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/unixlab/~4/rE5sxOJTUQU" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixlab/~3/rE5sxOJTUQU/reading-e-books-with-fbreader.html</link><author>noreply@blogger.com (UbuntuGuru)</author><thr:total>0</thr:total><feedburner:origLink>http://unixlab.blogspot.com/2011/02/reading-e-books-with-fbreader.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4128089761558623137.post-8751214500417160241</guid><pubDate>Mon, 07 Feb 2011 05:46:00 +0000</pubDate><atom:updated>2011-02-10T21:19:00.846+05:30</atom:updated><title>Monitoring  performance with time</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;b&gt;&lt;/b&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The &lt;code&gt;time&lt;/code&gt; command is an excellent&amp;nbsp; tool&amp;nbsp; for analyzing the                 performance of a shell script or command. Simply type &lt;code&gt;time&lt;/code&gt;                 followed by the command that you wish to time. Three results are                 printed when the program or script finishes executing: the                 actual length of time (real-world time spent on the program),                 the total time spent in the program, and the total time spent on                 CPU overhead. The first figure is perhaps the most useful, but                 the third figure will tell you how busy your CPU is.                 &lt;br /&gt;
&lt;br /&gt;
Let us create a small shell script. Type in the following&amp;nbsp; lines to a text file named myscript.sh&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&amp;nbsp;&lt;span style="color: grey; font-style: italic;"&gt;#!/bin/bash&lt;/span&gt;
&lt;span style="color: black; font-weight: bold;"&gt; &lt;/span&gt;
   &lt;span style="color: #7a0874; font-weight: bold;"&gt;echo&lt;/span&gt; &lt;span style="color: red;"&gt;"Welcome to Unixlab "&lt;/span&gt;
&lt;span style="color: black; font-weight: bold;"&gt; &lt;/span&gt;&lt;/pre&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
Save the file and make it executable.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;$ chmod u+x&amp;nbsp; myscript.sh&lt;br /&gt;
&lt;br /&gt;
Now run it&amp;nbsp; using time &amp;nbsp; &lt;br /&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;$ time myscript.sh&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;real 0m0.008s
user 0m0.004s
sys 0m0.000s

My machine is too fast to show any perceptible time.&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;Now try to expand the myscript.sh  by adding  a for loop as below &lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;span style="color: grey; font-style: italic;"&gt;#!/bin/bash&lt;/span&gt;
&lt;span style="color: black; font-weight: bold;"&gt;for&lt;/span&gt; i &lt;span style="color: black; font-weight: bold;"&gt;in&lt;/span&gt; &lt;span style="color: black;"&gt;1&lt;/span&gt; &lt;span style="color: black;"&gt;2&lt;/span&gt; &lt;span style="color: black;"&gt;3&lt;/span&gt; &lt;span style="color: black;"&gt;4&lt;/span&gt; &lt;span style="color: black;"&gt;5&lt;/span&gt; 
&lt;span style="color: black; font-weight: bold;"&gt;do&lt;/span&gt;
   &lt;span style="color: #7a0874; font-weight: bold;"&gt;echo&lt;/span&gt; &lt;span style="color: red;"&gt;"Welcome to Unixlab "&lt;/span&gt;
&lt;span style="color: black; font-weight: bold;"&gt;done&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;Run it&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;$ time myscript.sh&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;Welcome to Unixlab 
Welcome to Unixlab 
Welcome to Unixlab 
Welcome to Unixlab 
Welcome to Unixlab 

real 0m0.008s
user 0m0.004s
sys 0m0.004s
&lt;/pre&gt;&lt;pre&gt;Still the real time is shown as 0.00.  Let us build a loop that takes a long&lt;/pre&gt;&lt;pre&gt;time to finish and see the difference.&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;span style="color: grey; font-style: italic;"&gt;#!/bin/bash&lt;/span&gt;
&lt;span style="color: #007800;"&gt;x=&lt;/span&gt;&lt;span style="color: black;"&gt;1&lt;/span&gt;
&lt;span style="color: black; font-weight: bold;"&gt;while&lt;/span&gt; &lt;span style="color: #7a0874; font-weight: bold;"&gt;[&lt;/span&gt; &lt;span style="color: #007800;"&gt;$x&lt;/span&gt; -le &lt;span style="color: black;"&gt;100&lt;/span&gt; &lt;span style="color: #7a0874; font-weight: bold;"&gt;]&lt;/span&gt;
&lt;span style="color: black; font-weight: bold;"&gt;do&lt;/span&gt;
  &lt;span style="color: #7a0874; font-weight: bold;"&gt;echo&lt;/span&gt; &lt;span style="color: red;"&gt;"Welcome to Unixlab"&lt;/span&gt;
  &lt;span style="color: #007800;"&gt;x=&lt;/span&gt;$&lt;span style="color: #7a0874; font-weight: bold;"&gt;(&lt;/span&gt;&lt;span style="color: #7a0874; font-weight: bold;"&gt;(&lt;/span&gt; &lt;span style="color: #007800;"&gt;$x&lt;/span&gt; + &lt;span style="color: black;"&gt;1&lt;/span&gt; &lt;span style="color: #7a0874; font-weight: bold;"&gt;)&lt;/span&gt;&lt;span style="color: #7a0874; font-weight: bold;"&gt;)&lt;/span&gt;
&lt;span style="color: black; font-weight: bold;"&gt;done&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="color: black; font-weight: bold;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="color: black;"&gt;Again run it.&amp;nbsp; I am getting the following  timings.&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="color: black;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="color: black;"&gt;real 0m0.016s
user 0m0.012s
sys 0m0.004s&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="color: black;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="color: black;"&gt;   Please read the &lt;a href="http://linux.die.net/man/1/time"&gt;time man page&lt;/a&gt; regarding accuracy of  results and  other&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="color: black;"&gt;useful options.&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="color: black;"&gt; &lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="color: black;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128089761558623137-8751214500417160241?l=unixlab.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ru6SNaaGLHITcL3-wOszNa32DI0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ru6SNaaGLHITcL3-wOszNa32DI0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ru6SNaaGLHITcL3-wOszNa32DI0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ru6SNaaGLHITcL3-wOszNa32DI0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/unixlab/~4/vQrAMw-yhh0" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixlab/~3/vQrAMw-yhh0/looking-at-performance-with-time.html</link><author>noreply@blogger.com (Fermi Level)</author><thr:total>0</thr:total><feedburner:origLink>http://unixlab.blogspot.com/2011/02/looking-at-performance-with-time.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4128089761558623137.post-299127863387608628</guid><pubDate>Sun, 06 Feb 2011 05:20:00 +0000</pubDate><atom:updated>2011-02-15T12:01:16.070+05:30</atom:updated><title>Searching  filesystem from command line</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&amp;nbsp;There are several commands available on the command line to locate files and folders on the file system. This article reviews three of them, viz whereis ,locate. find.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1) whereis&lt;/b&gt;&lt;br /&gt;
This command can search for&amp;nbsp; the binary, source, and manual page files for a comand&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Tahoma,Book Antiqua,Times New Roman,Times;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Tahoma,Book Antiqua,Times New Roman,Times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ whereis&amp;nbsp; whereis&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; whereis: /usr/bin/whereis /usr/share/man/man1/whereis.1.gz&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;2) locate&lt;/b&gt;:&amp;nbsp;&amp;nbsp; locate uses a database created by an updatedb     to efficiently locate files. Works great, assuming your     database is updated often enough to be reasonable upto date.     Most boxes using locate have the updatedb occuring in cron.&amp;nbsp; On my ubuntu box, I got a long list of files when I tried to locate&amp;nbsp; command.&amp;nbsp;&amp;nbsp; RTFM locate &lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Tahoma,Book Antiqua,Times New Roman,Times;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Tahoma,Book Antiqua,Times New Roman,Times;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Tahoma,Book Antiqua,Times New Roman,Times;"&gt;$locate locate&lt;br /&gt;
/etc/alternatives/locate&lt;br /&gt;
/etc/alternatives/locate.1.gz&lt;br /&gt;
/etc/beagle/blocate.conf&lt;br /&gt;
/etc/cron.daily/mlocate&lt;br /&gt;
/usr/bin/blocate&lt;br /&gt;
/usr/bin/locate&lt;br /&gt;
/usr/bin/mlocate&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;3)&amp;nbsp; find: &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/b&gt; find is perhaps one of the most powerful commands     there is.&amp;nbsp;&amp;nbsp; However, find is slow compared to locate as it&amp;nbsp; recursively search the paths supplied to&amp;nbsp; it.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Tahoma,Book Antiqua,Times New Roman,Times;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Tahoma,Book Antiqua,Times New Roman,Times;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Tahoma,Book Antiqua,Times New Roman,Times;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Tahoma,Book Antiqua,Times New Roman,Times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The syntax of find is specified like this.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;find path-list expression&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-size: small;"&gt;It may look rather cryptic.&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-size: small;"&gt;Even though the man page lists only three  parts for the command as above,&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-size: small;"&gt;for simplicity  we can imagine  that  find  syntax  is havng  four fields.  &lt;/span&gt;             
                  &lt;/pre&gt;&lt;table bgcolor="#38b0de" border="1" cellpadding="5"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td align="center"&gt;1&lt;/td&gt;                     &lt;td align="center"&gt;2&lt;/td&gt;                     &lt;td align="center"&gt;3&lt;/td&gt;                     &lt;td align="center"&gt;4&lt;/td&gt;                   &lt;/tr&gt;
&lt;tr&gt;                     &lt;td align="center"&gt;find                     &lt;/td&gt;&lt;td align="center"&gt;starting point                     &lt;/td&gt;&lt;td align="center"&gt;find which files                     &lt;/td&gt;&lt;td align="center"&gt;action on result&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&amp;nbsp;                 &lt;br /&gt;
&lt;span style="font-family: Tahoma,Book Antiqua,Times New Roman,Times;"&gt;You can formulate your find command based on the above table. For example,&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Tahoma,Book Antiqua,Times New Roman,Times;"&gt;&amp;nbsp; if you want to find all&amp;nbsp; avi files in a folder named movies&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;table bgcolor="#38b0de" border="1" cellpadding="5"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td align="center"&gt;1&lt;/td&gt;                     &lt;td align="center"&gt;2&lt;/td&gt;                     &lt;td align="center"&gt;3&lt;/td&gt;                     &lt;td align="center"&gt;4&lt;/td&gt;                   &lt;/tr&gt;
&lt;tr&gt;                     &lt;td align="center"&gt;find                     &lt;/td&gt;&lt;td align="center"&gt;&amp;nbsp;movies &lt;/td&gt;&lt;td align="center"&gt;-name "*.avi" &lt;/td&gt;&lt;td align="center"&gt;&amp;nbsp;-print &lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt; &lt;/table&gt;&lt;tablebgcolor="#38b0de" border="1" cellpadding="5"&gt;&lt;span style="font-family: Tahoma,Book Antiqua,Times New Roman,Times;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Tahoma,Book Antiqua,Times New Roman,Times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $find&amp;nbsp; movies &amp;nbsp; -name "*.avi"&amp;nbsp; -print&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &lt;span style="font-family: Tahoma,Book Antiqua,Times New Roman,Times;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Tahoma,Book Antiqua,Times New Roman,Times;"&gt;Here are some examples you can try&lt;br /&gt;
&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Tahoma,Book Antiqua,Times New Roman,Times;"&gt;&lt;i&gt;a) to find all directories on the system whose permissions of     777&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ &amp;nbsp;      &lt;span style="color: blue;"&gt;find / \( -type d -a -perm -777 \)     -print&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;b) find all core files in home directories and remove     them&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ &amp;nbsp;&amp;nbsp;      &lt;span style="color: blue;"&gt;find /home -name core -exec rm {}     \;&lt;/span&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mand.&lt;/i&gt;&lt;/span&gt;&lt;i&gt;&lt;br /&gt;
&lt;br /&gt;
c) find all files owned by a particular user no matter whose home     directory they are in:&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $&amp;nbsp;      &lt;span style="color: blue;"&gt;find /home -user &lt;usernmae&gt;     -print&lt;/usernmae&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;d) find all files that have been modified&lt;/i&gt; (or had their     modification time changed) in the last 30 days:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $      &lt;span style="color: blue;"&gt;find / -mtime -30 -print&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;e) find all tmp files older than 30 days and remove:&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;      &lt;span style="color: blue;"&gt;$ find /dirpath \( -name \*.tmp -a -mtime     +30 \) -exec rm {} \;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Tahoma,Book Antiqua,Times New Roman,Times;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Tahoma,Book Antiqua,Times New Roman,Times;"&gt;The man page of find has several other option that you can try.&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Tahoma,Book Antiqua,Times New Roman,Times;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/tablebgcolor="#38b0de"&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128089761558623137-299127863387608628?l=unixlab.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Scpwhp_MKEFt3IjDxs4qEN43OQU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Scpwhp_MKEFt3IjDxs4qEN43OQU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Scpwhp_MKEFt3IjDxs4qEN43OQU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Scpwhp_MKEFt3IjDxs4qEN43OQU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/unixlab/~4/GAZ0Od0c2xY" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixlab/~3/GAZ0Od0c2xY/searching-ubuntu-filesytem-from-command.html</link><author>noreply@blogger.com (UbuntuGuru)</author><thr:total>0</thr:total><feedburner:origLink>http://unixlab.blogspot.com/2011/02/searching-ubuntu-filesytem-from-command.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4128089761558623137.post-8447535946465627055</guid><pubDate>Sat, 05 Feb 2011 17:17:00 +0000</pubDate><atom:updated>2011-02-05T22:52:00.299+05:30</atom:updated><title>Watch your BIOS settings with dmdeicode and biosdecode</title><description>&amp;nbsp; &amp;nbsp; The &lt;b&gt;Desktop Management Interface&lt;/b&gt; (DMI) generates a standard framework&amp;nbsp; for managing and tracking components in a desktop, notebook or server components , by abstracting these components from the software that manages them. Modern mother boards are compatible with this standard. For a lay user it means that the BIOS settings can be watched from your OS. DMI standards are published by  &lt;a href="http://en.wikipedia.org/wiki/Distributed_Management_Task_Force" title="Distributed Management Task Force"&gt;Distributed Management Task Force&lt;/a&gt; (DMTF) into desktop-management standards. They also provide a related standard named &lt;br /&gt;
&amp;nbsp;SMBIOS (System Management BIOS ).&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; On linux systems , you can watch various system parameters using dmidecode command. You&amp;nbsp; have to be superuser to display dmi information.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; #dmidecode&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; As you run it, dmidecode will try to locate the DMI table.&amp;nbsp; It will print a long list of information. A sample entry is shown below.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; Base Board Information&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Manufacturer: Intel Corporation&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Product Name: DG35EC&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Version: AAE29266-205&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Serial Number: BTEC8270055Y&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Asset Tag: Base Board Asset Tag&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Features:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Board is a hosting board&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Board is replaceable&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Location In Chassis: Base Board Chassis Location&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Chassis Handle: 0x0007&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Type: Unknown&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Contained Object Handles: 0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you look closely , each record has&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; · A handle. This is a unique identifier, which allows records to reference each other. For example, processor records usually reference cache mem‐&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ory records using their handles.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; · A type. The SMBIOS specification defines different types of elements a computer can be made of. In this example, the type is 2, which means that&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the record contains "Base Board Information".&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; · A&amp;nbsp; size.&amp;nbsp; Each&amp;nbsp; record&amp;nbsp; has&amp;nbsp; a 4-byte header (2 for the handle, 1 for the type, 1 for the size), the rest is used by the record data. This value&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; doesn’t take text strings into account (these are placed at the end of the record), so the actual length of the record may&amp;nbsp; be&amp;nbsp; (and&amp;nbsp; is&amp;nbsp; often)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; greater than the displayed value.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; · Decoded values. The information presented of course depends on the type of record. Here, we learn about the board’s manufacturer, model, version&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and serial number.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; There is also a related command named biosdecode which prints&amp;nbsp; a shorter description. On my desktop , biosdecode provided&lt;br /&gt;
&lt;br /&gt;
# biosdecode&lt;br /&gt;
ACPI 1.0 present.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; OEM Identifier: INTEL &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; RSD Table 32-bit Address: 0x7F6FD038&lt;br /&gt;
PNP BIOS 1.0 present.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Event Notification: Not Supported&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Real Mode 16-bit Code Address: F000:AF46&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Real Mode 16-bit Data Address: 0040:0000&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 16-bit Protected Mode Code Address: 0x000FAF51&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 16-bit Protected Mode Data Address: 0x00000400&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; OEM Device Identifier: SST2400&lt;br /&gt;
SMBIOS 2.4 present.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Structure Table Length: 1551 bytes&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Structure Table Address: 0x000E33F0&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Number Of Structures: 33&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Maximum Structure Size: 152 bytes&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128089761558623137-8447535946465627055?l=unixlab.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/cavZ05io-WSPilDUwrKG7AjT3c8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/cavZ05io-WSPilDUwrKG7AjT3c8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/cavZ05io-WSPilDUwrKG7AjT3c8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/cavZ05io-WSPilDUwrKG7AjT3c8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/unixlab/~4/djEXrlmi63U" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixlab/~3/djEXrlmi63U/watch-your-bios-settings-with-dmicode.html</link><author>noreply@blogger.com (Fermi Level)</author><thr:total>1</thr:total><feedburner:origLink>http://unixlab.blogspot.com/2011/02/watch-your-bios-settings-with-dmicode.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4128089761558623137.post-959931477070452493</guid><pubDate>Fri, 04 Feb 2011 14:44:00 +0000</pubDate><atom:updated>2011-02-04T20:15:38.944+05:30</atom:updated><title>What is your favorite   command on terminal ?</title><description>&amp;nbsp; I&amp;nbsp; am an avid terminal user and try to work directly on $ prompt as far as possible.&amp;nbsp; If you are a command line geek, the following command can display&amp;nbsp; the 10 commands that you use most often.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; $&amp;nbsp;  history | awk '{print $2}' | sort | uniq -c | sort -rn | head -10&lt;br /&gt;
&lt;br /&gt;
Here is my output.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; 73 sudo&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 56 ls&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 46 cd&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23 ifconfig&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20 dmesg&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11 ps&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10 ssh&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10 lsusb&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9 vi&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8 wget&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;If you like this , please post your&amp;nbsp; list of commands.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128089761558623137-959931477070452493?l=unixlab.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/wQLB2el1J6MHNzZhOSrvRtlLTnM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/wQLB2el1J6MHNzZhOSrvRtlLTnM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/wQLB2el1J6MHNzZhOSrvRtlLTnM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/wQLB2el1J6MHNzZhOSrvRtlLTnM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/unixlab/~4/xIWNS4GNuNE" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixlab/~3/xIWNS4GNuNE/what-is-your-favorite-command-on.html</link><author>noreply@blogger.com (Fermi Level)</author><thr:total>4</thr:total><feedburner:origLink>http://unixlab.blogspot.com/2011/02/what-is-your-favorite-command-on.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4128089761558623137.post-5872070243407608684</guid><pubDate>Thu, 03 Feb 2011 09:22:00 +0000</pubDate><atom:updated>2011-02-03T14:54:36.870+05:30</atom:updated><title>Manipulate images with  ImageMagick</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="long_text" id="result_box"&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="Adjust the quality of an image from Console"&gt;&amp;nbsp;&lt;/span&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="DaniMelo en comandos DaniMelo in command"&gt;&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="Si queremos modificar o convertir imágenes desde el terminal de tu Linux, debemos instalar el siguiente paquete: If we change or convert images from the terminal in your Linux, you need to install the following package:"&gt;Images can be easily manipulated from terminal with image magic package.&amp;nbsp; On ubuntu systems , imagemagick&amp;nbsp; can be installed as below.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="long_text" id="result_box"&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="Si queremos modificar o convertir imágenes desde el terminal de tu Linux, debemos instalar el siguiente paquete: If we change or convert images from the terminal in your Linux, you need to install the following package:"&gt;&amp;nbsp;&lt;/span&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="sudo apt-get install imagemagick"&gt;sudo apt-get install imagemagick &lt;/span&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="Para redimensionar imágenes ejecutamos el siguiente comando: To resize images run the following command:"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="long_text" id="result_box"&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="Para redimensionar imágenes ejecutamos el siguiente comando: To resize images run the following command:"&gt;Here are some tricks that I&amp;nbsp;&amp;nbsp; use with imagemagick. &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="long_text" id="result_box"&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="Para redimensionar imágenes ejecutamos el siguiente comando: To resize images run the following command:"&gt;&amp;nbsp;&amp;nbsp; 1)&amp;nbsp; Create a thumb nail.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="long_text" id="result_box"&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="Para redimensionar imágenes ejecutamos el siguiente comando: To resize images run the following command:"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ convert screenshot.png&amp;nbsp;&amp;nbsp; -resize 64x64&amp;nbsp; resized_sceenshot.png&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="long_text" id="result_box"&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="Para redimensionar imágenes ejecutamos el siguiente comando: To resize images run the following command:"&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if you want to preserve the aspect ratio&amp;nbsp;&amp;nbsp; put a !&amp;nbsp; after the size.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="long_text" id="result_box"&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="Para redimensionar imágenes ejecutamos el siguiente comando: To resize images run the following command:"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span class="long_text" id="result_box"&gt;&lt;span style="background-color: white;" title="Para redimensionar imágenes ejecutamos el siguiente comando: To resize images run the following command:"&gt;$ convert screenshot.png&amp;nbsp;&amp;nbsp; -resize 64x64\!&amp;nbsp; resized_sceenshot.png&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="long_text" id="result_box"&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="Para redimensionar imágenes ejecutamos el siguiente comando: To resize images run the following command:"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="long_text" id="result_box"&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="Para redimensionar imágenes ejecutamos el siguiente comando: To resize images run the following command:"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="long_text" id="result_box"&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="Para redimensionar imágenes ejecutamos el siguiente comando: To resize images run the following command:"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 2) &lt;/span&gt;&lt;/span&gt;Add a border to an image&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; $ convert screenshot.png&amp;nbsp; -bordercolor SkyBlue&amp;nbsp;&amp;nbsp;&amp;nbsp; -border 10x10&amp;nbsp;&amp;nbsp; screenshot_border.png&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; You can try different&amp;nbsp; colors and border size&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/b&gt;3)&amp;nbsp; Convert an image to black &amp;amp; white&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $ convert -type Grayscale screenshot.png&amp;nbsp; screenshot_bw.png&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/b&gt;4)&amp;nbsp; Add a label over the image.&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;span class="long_text" id="result_box"&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="Para redimensionar imágenes ejecutamos el siguiente comando: To resize images run the following command:"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ convert screenshot.png -gravity south&amp;nbsp; -stroke '#000C' -strokewidth 2 -annotate 0 'http://unixlab.blogspot.com'&amp;nbsp; -stroke none&amp;nbsp; -fill white&amp;nbsp; -annotate 0 'http://unixlab.blogspot.com'&amp;nbsp; &amp;nbsp; screenshot_labelled.png&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="long_text" id="result_box"&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="Para redimensionar imágenes ejecutamos el siguiente comando: To resize images run the following command:"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="long_text" id="result_box"&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="Para redimensionar imágenes ejecutamos el siguiente comando: To resize images run the following command:"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5)&amp;nbsp; Generate labels from text&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="long_text" id="result_box"&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="Para redimensionar imágenes ejecutamos el siguiente comando: To resize images run the following command:"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;      $ convert -background lightblue -fill blue \
          -font Candice -pointsize 72 label:Unixlab \
          label.gif&lt;/code&gt;&lt;/pre&gt;&lt;span class="long_text" id="result_box"&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="Para redimensionar imágenes ejecutamos el siguiente comando: To resize images run the following command:"&gt;&lt;br /&gt;
Imagemagick offers lot of other possibilities . See&amp;nbsp; &lt;a href="http://www.imagemagick.org/Usage"&gt;this site&amp;nbsp;&lt;/a&gt; for more examples.&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="long_text" id="result_box"&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="Para redimensionar imágenes ejecutamos el siguiente comando: To resize images run the following command:"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128089761558623137-5872070243407608684?l=unixlab.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Od9I2F8tshveLmq2YkPW_-hDJ58/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Od9I2F8tshveLmq2YkPW_-hDJ58/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Od9I2F8tshveLmq2YkPW_-hDJ58/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Od9I2F8tshveLmq2YkPW_-hDJ58/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/unixlab/~4/TgRF8VdyFHk" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixlab/~3/TgRF8VdyFHk/manipulate-images-with-image-magic.html</link><author>noreply@blogger.com (Fermi Level)</author><thr:total>0</thr:total><feedburner:origLink>http://unixlab.blogspot.com/2011/02/manipulate-images-with-image-magic.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4128089761558623137.post-4206453839795044769</guid><pubDate>Wed, 02 Feb 2011 18:01:00 +0000</pubDate><atom:updated>2011-02-02T23:34:17.927+05:30</atom:updated><title>Head and Tail Commands</title><description>&lt;span class="long_text" id="result_box"&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="Head and Tail Commands"&gt;&amp;nbsp;&lt;/span&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="Steven en comandos Steven in command"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="Hoy vamos a comentar dos comandos que nos resultarán muy útiles al trabajar con archivos grandes basados en texto."&gt;Today we will discuss two commands that we be very helpful when working with large files based on text. &lt;/span&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="Today we will discuss two commands that we be very helpful when working with large files based on text."&gt;&amp;nbsp; &lt;/span&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="Se trata de los comandos head y tail ."&gt;These are the commands head and tail.&amp;nbsp; &lt;/span&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="These are the commands head and tail."&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="En ocasiones tenemos que abrir archivos de texto con un tamaño considerable cuando en realidad queremos consultar unas pocas lineas."&gt;Sometimes we have to open text files with a considerable size when in fact we see a few lines.&amp;nbsp; &lt;/span&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="Sometimes we have to open text files with a considerable size when in fact we see a few lines."&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="Por ejemplo, un caso seria al comprobar un log o un archivo xml."&gt;For example, a case would be to check a log or an XML file. &lt;/span&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="For example, a case would be to check a log or an XML file."&gt;For example, a case Would Be to check a log or an XML file. &lt;br /&gt;
&amp;nbsp; &lt;/span&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="El comando head muestra sólo las primeras lineas del archivo."&gt;&lt;/span&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="The head command displays only the first lines of the file."&gt;The head command displays only the first lines of the file. &lt;/span&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" title="Por defecto mostrará las primeras 10 lineas."&gt;By default show the first 10 lines&amp;nbsp;&lt;/span&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" title="By default show the first 10 lines."&gt; &lt;/span&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" title="Lo usamos así: We use it like this:"&gt;We use it like this: We use it like this: &lt;br /&gt;
&lt;/span&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" title="head archivo.txt"&gt;head file.txt &lt;br /&gt;
&lt;/span&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" title="O bien indicamos cuantas lineas deseamos consultar, 15 en este ejemplo: Or want to see that many lines, 15 in this example:"&gt;Or want to see that many lines, 15 in this example:&amp;nbsp; &lt;br /&gt;
&lt;/span&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" title="head -15 archivo.txt"&gt;head -15 file.txt &lt;br /&gt;
&lt;/span&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="Para realizar la acción contraria existe el comando tail ."&gt;To perform the opposite action there is the tail command. &lt;/span&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" title="Lo que hace tail es mostrar las últimas lineas de un archivo."&gt;What makes the tail is to show the last lines of a file.&amp;nbsp; &lt;/span&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="What makes the tail is to show the last lines of a file."&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="Es ideal por ejemplo para consultar los últimos cambios en un log."&gt;&amp;nbsp;&lt;/span&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" title="It is ideal for example to see the latest changes in a log."&gt;It is ideal for example to see the latest changes file in a log. &lt;/span&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" title="Por defecto, igual que head, muestra 10 lineas: By default, like head, display 10 lines:"&gt;By default, like head, display 10 lines:&amp;nbsp; &lt;/span&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" title="tail archivo.txt"&gt;tail file.txt &lt;br /&gt;
&lt;/span&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="En caso de querer consultar las últimas 15 lineas: If you wish to view the last 15 lines:"&gt;If you wish to view the last 15 lines:&amp;nbsp; &lt;/span&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" title="tail -15 archivo.txt"&gt;tail -15 file.txt &lt;br /&gt;
&lt;/span&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" title="Combinados con el comando grep (para buscar palabras en archivos) head y tail forman un gran equipo."&gt;&amp;nbsp;&lt;/span&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="Combined with the grep command (to find words in files) head and tail are a great team."&gt;Combined with the grep command (to find words in files) head and tail are a great team.&amp;nbsp;&lt;/span&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="De hecho, la idea original de este post ha surgido al leer el twitter de @julian_sanchez donde comenta que está ahorrando mucho tiempo al utilizar estos comandos."&gt;&lt;/span&gt;&lt;span onmouseout="this.style.backgroundColor='#fff'" onmouseover="this.style.backgroundColor='#ebeff9'" style="background-color: white;" title="In fact, the original idea of this post has come from reading the twitter @ julian_sanchez where he says he is saving time by using these commands."&gt; &lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128089761558623137-4206453839795044769?l=unixlab.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/G0I18iibVWg5MbBJEtZgcOAhkBU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/G0I18iibVWg5MbBJEtZgcOAhkBU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/G0I18iibVWg5MbBJEtZgcOAhkBU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/G0I18iibVWg5MbBJEtZgcOAhkBU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/unixlab/~4/Wrl90TeijdQ" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixlab/~3/Wrl90TeijdQ/head-and-tail-commands.html</link><author>noreply@blogger.com (Fermi Level)</author><thr:total>0</thr:total><feedburner:origLink>http://unixlab.blogspot.com/2011/02/head-and-tail-commands.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4128089761558623137.post-6560084020501727224</guid><pubDate>Wed, 02 Feb 2011 09:09:00 +0000</pubDate><atom:updated>2011-02-02T14:39:10.570+05:30</atom:updated><title>How to eject a stuck   CD/DVD</title><description>&amp;nbsp; Some times&amp;nbsp; CD/DVD drives get stuck and will not eject even if&amp;nbsp; you press the eject button on the front panel.&amp;nbsp; The is especially true when any application that was&amp;nbsp; using the CD drive has gone astray.&amp;nbsp; You can try the following&amp;nbsp; steps to get out of the situation.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; Open a terminal&amp;nbsp; and become&amp;nbsp; root.&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; $ sudo&amp;nbsp; su&lt;br /&gt;
&amp;nbsp; #&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; Try eject&amp;nbsp; command.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; # eject&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; If some application of&amp;nbsp; is using cdrom you will get a message like&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;                 &lt;code&gt;umount: /media/cdrom: device is busy&lt;/code&gt;             &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;To eject the CD you may have to stop the application.&amp;nbsp; First,&amp;nbsp; let us find out who&amp;nbsp; is using the CD drive.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #fuser&amp;nbsp; /media/cdrom&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; /media/cdrom:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5929c&amp;nbsp; 6018c&amp;nbsp; 6020c&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;You can kill all processes&amp;nbsp; accessing&amp;nbsp; using /media/cdrom&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # fuser -km /media/cdrom&amp;nbsp; &lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;nbsp;Then try&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #eject&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4128089761558623137-6560084020501727224?l=unixlab.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/MVaLeYxuOG3M_pWWR2elnUqH9dU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MVaLeYxuOG3M_pWWR2elnUqH9dU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/MVaLeYxuOG3M_pWWR2elnUqH9dU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MVaLeYxuOG3M_pWWR2elnUqH9dU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/unixlab/~4/JSLktWvnvZQ" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/unixlab/~3/JSLktWvnvZQ/how-to-eject-stuck-cddvd.html</link><author>noreply@blogger.com (Fermi Level)</author><thr:total>1</thr:total><feedburner:origLink>http://unixlab.blogspot.com/2011/02/how-to-eject-stuck-cddvd.html</feedburner:origLink></item></channel></rss>

