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

<channel>
	<title>Sheron&#039;s Blog</title>
	<atom:link href="http://lgjsheron.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://lgjsheron.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Wed, 30 Mar 2011 10:36:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='lgjsheron.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Sheron&#039;s Blog</title>
		<link>http://lgjsheron.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://lgjsheron.wordpress.com/osd.xml" title="Sheron&#039;s Blog" />
	<atom:link rel='hub' href='http://lgjsheron.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Linux create your own GnuPG private and public key</title>
		<link>http://lgjsheron.wordpress.com/2011/03/30/linux-create-your-own-gnupg-private-and-public-key/</link>
		<comments>http://lgjsheron.wordpress.com/2011/03/30/linux-create-your-own-gnupg-private-and-public-key/#comments</comments>
		<pubDate>Wed, 30 Mar 2011 10:36:17 +0000</pubDate>
		<dc:creator>SG</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://lgjsheron.wordpress.com/?p=431</guid>
		<description><![CDATA[GNU gpg is encryption and signing tool. The GNU Privacy Guard (GnuPG or GPG) is a free software replacement for the PGP suite of cryptographic software. GnuPG encrypts messages using asymmetric keypairs individually generated by GnuPG users. The resulting public keys can be exchanged with other users in a variety of ways, such as Internet [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lgjsheron.wordpress.com&amp;blog=12348564&amp;post=431&amp;subd=lgjsheron&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>GNU gpg is encryption and signing tool.  The GNU Privacy Guard (GnuPG or GPG) is a free software replacement for the PGP suite of cryptographic software.  GnuPG encrypts messages using asymmetric keypairs individually generated by GnuPG users. The resulting public keys can be exchanged with other users in a variety of ways, such as Internet key servers. They must always be exchanged carefully to prevent identity spoofing by corrupting public key ↔ &#8216;owner&#8217; identity correspondences. It is also possible to add a cryptographic digital signature to a message, so the message integrity and sender can be verified, if a particular correspondence relied upon has not been corrupted.</p>
<p><strong>How do I create my own GnuPG private and public key<strong> </strong></strong></p>
<ol>
<li>Login to your shell account</li>
<li>Use gpg command to create the keys</li>
<pre>$ gpg --gen-key</pre>
<p>Output:</p>
<pre>gpg (GnuPG) 1.4.1; Copyright (C) 2005 Free Software Foundation, Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See the file COPYING for details.

gpg: directory `/home/sheron/.gnupg' created
gpg: new configuration file `/home/sheron/.gnupg/gpg.conf' created
gpg: WARNING: options in `/home/sheron/.gnupg/gpg.conf' are not yet active during this run
gpg: keyring `/home/sheron/.gnupg/secring.gpg' created
gpg: keyring `/home/sheron/.gnupg/pubring.gpg' created
Please select what kind of key you want:
   (1) DSA and Elgamal (default)
   (2) DSA (sign only)
   (5) RSA (sign only)
Your selection? Press [Enter] Key
DSA keypair will have 1024 bits.
ELG-E keys may be between 1024 and 4096 bits long.
What keysize do you want? (2048) Press [Enter] Key
Requested keysize is 2048 bits
Please specify how long the key should be valid.
         0 = key does not expire
        = key expires in n days
      w = key expires in n weeks
      m = key expires in n months
      y = key expires in n years
Key is valid for? (0) Press [Enter] Key
Key does not expire at all
Is this correct? (y/N) y

You need a user ID to identify your key; the software constructs the user ID
from the Real Name, Comment and Email Address in this form:
    "Heinrich Heine (Der Dichter) "

Real name: sheron
Email address: lgjsheron@gmail.com
Comment:[Enter] key
You selected this USER-ID:
    "sheron"

Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O
You need a Passphrase to protect your secret key.

Enter passphrase: [Enter password twice]
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
.+++++....+++++++++++++++..++++++++++..++++++++++...++++++++++++++++++++.+++++++++++++++++++++++++++++++++++.+++++..++++++++++++++++++++.++++++++++..+++++.+++++.+++++&gt;+++++....+++++&gt;.+++++...................................................................+++++^^^^^^^^^^^
gpg: /home/sheron/.gnupg/trustdb.gpg: trustdb created
gpg: key 8E19F126 marked as ultimately trusted
public and secret key created and signed.

gpg: checking the trustdb
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0  valid:   1  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 1u
pub   1024D/8E19F126 2007-02-10
      Key fingerprint = A7AF E25D 3E8D 6946 37CC  8CCE 12C4 8DC1 8E19 F126
uid                  sheron
sub   2048g/032824B9 2007-02-10</pre>
<li> Now keys generated, you can list your own key using:</li>
<pre>$ gpg -K</pre>
<p>OR</p>
<pre>$ gpg --list-keys</pre>
<p>Output:</p>
<pre>/home/sheron/.gnupg/pubring.gpg
------------------------------
pub   1024D/CA7A8402 2007-02-10
uid    sheron
sub   2048g/0A7B4F93 2007-02-10
</pre>
<p>Let us try to understand the line</p>
<p>pub 1024D/CA7A8402 2007-02-10:</p>
<p>pub : Public key<br />
1024D : The number of bits in the key<br />
CA7A8402 : The key ID<br />
2007-02-10 : The date of key creation<br />
sheron : The user real name<br />
&lt;lgjsheron@gmail.com&gt;      :The email id</p>
<p>Most important is the key ID i.e. CA7A8402.</p>
<p>Make sure you use powerful passphrase to protect keys and not the easy one.</p>
<li>To list secret key, type the command:</li>
<pre>$ gpg --list-secret-keys</pre>
<p>Output:</p>
<pre>/home/sheron/.gnupg/secring.gpg
------------------------------
sec   1024D/CA7A8402 2007-02-10
uid                 sheron
ssb   2048g/0A7B4F93 2007-02-10</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lgjsheron.wordpress.com/431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lgjsheron.wordpress.com/431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lgjsheron.wordpress.com/431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lgjsheron.wordpress.com/431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lgjsheron.wordpress.com/431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lgjsheron.wordpress.com/431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lgjsheron.wordpress.com/431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lgjsheron.wordpress.com/431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lgjsheron.wordpress.com/431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lgjsheron.wordpress.com/431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lgjsheron.wordpress.com/431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lgjsheron.wordpress.com/431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lgjsheron.wordpress.com/431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lgjsheron.wordpress.com/431/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lgjsheron.wordpress.com&amp;blog=12348564&amp;post=431&amp;subd=lgjsheron&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lgjsheron.wordpress.com/2011/03/30/linux-create-your-own-gnupg-private-and-public-key/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>0.000000 0.000000</georss:point>
		<geo:lat>0.000000</geo:lat>
		<geo:long>0.000000</geo:long>
		<media:content url="http://0.gravatar.com/avatar/29bc52b0aec22a6ecfa6afb3ab1eb80a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Sheron</media:title>
		</media:content>
	</item>
		<item>
		<title>How to install firefox 4 in ubuntu using PPA</title>
		<link>http://lgjsheron.wordpress.com/2011/03/25/how-to-install-firefox-4-in-ubuntu-using-ppa/</link>
		<comments>http://lgjsheron.wordpress.com/2011/03/25/how-to-install-firefox-4-in-ubuntu-using-ppa/#comments</comments>
		<pubDate>Fri, 25 Mar 2011 14:04:52 +0000</pubDate>
		<dc:creator>SG</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://lgjsheron.wordpress.com/?p=428</guid>
		<description><![CDATA[Go to Applications &#62; Ubuntu Software Center from the top panel go to Edit &#62; Software Sources and click the ‘Other Software’ tab.Press ‘Add’ button and then paste the following line ppa:mozillateam/firefox-stable After adding the PPA you will be prompted to update your sources. Once the update is done you can head to System &#62; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lgjsheron.wordpress.com&amp;blog=12348564&amp;post=428&amp;subd=lgjsheron&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Go to Applications &gt; Ubuntu Software Center from the top panel go  to Edit &gt; Software Sources and click the ‘Other Software’ tab.Press  ‘Add’ button and then paste the following line</p>
<pre>ppa:mozillateam/firefox-stable</pre>
<p>After adding the PPA you will be prompted to update your sources.</p>
<p>Once the update is done you can head to System &gt; Administration &gt; Update Manager to perform an upgrade.</p>
<p><strong>Install firefox 4 using terminal</strong></p>
<p>Go to Applications &gt; Terminal in the terminal just enter the following commands</p>
<pre>sudo add-apt-repository ppa:mozillateam/firefox-stable

sudo apt-get update

sudo apt-get upgrade</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lgjsheron.wordpress.com/428/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lgjsheron.wordpress.com/428/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lgjsheron.wordpress.com/428/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lgjsheron.wordpress.com/428/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lgjsheron.wordpress.com/428/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lgjsheron.wordpress.com/428/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lgjsheron.wordpress.com/428/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lgjsheron.wordpress.com/428/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lgjsheron.wordpress.com/428/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lgjsheron.wordpress.com/428/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lgjsheron.wordpress.com/428/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lgjsheron.wordpress.com/428/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lgjsheron.wordpress.com/428/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lgjsheron.wordpress.com/428/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lgjsheron.wordpress.com&amp;blog=12348564&amp;post=428&amp;subd=lgjsheron&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lgjsheron.wordpress.com/2011/03/25/how-to-install-firefox-4-in-ubuntu-using-ppa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>0.000000 0.000000</georss:point>
		<geo:lat>0.000000</geo:lat>
		<geo:long>0.000000</geo:long>
		<media:content url="http://0.gravatar.com/avatar/29bc52b0aec22a6ecfa6afb3ab1eb80a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Sheron</media:title>
		</media:content>
	</item>
		<item>
		<title>The Beginner’s Guide to Linux Disk Utilities</title>
		<link>http://lgjsheron.wordpress.com/2011/03/24/the-beginner%e2%80%99s-guide-to-linux-disk-utilities/</link>
		<comments>http://lgjsheron.wordpress.com/2011/03/24/the-beginner%e2%80%99s-guide-to-linux-disk-utilities/#comments</comments>
		<pubDate>Thu, 24 Mar 2011 19:12:45 +0000</pubDate>
		<dc:creator>SG</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://lgjsheron.wordpress.com/?p=424</guid>
		<description><![CDATA[Knowing how to check the condition of your hard disk is useful to determine when to replace your hard disk. In today’s article, we will show you some Linux disk utilities to diagnose the health of your hard disk. Image by Scoobay S.M.A.R.T System Most modern ATA and SCSI hard disks have a Self-Monitoring, Analysis, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lgjsheron.wordpress.com&amp;blog=12348564&amp;post=424&amp;subd=lgjsheron&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Knowing how to check the condition of your hard disk is useful to  determine when to replace your hard disk. In today’s article, we will  show you some Linux disk utilities to diagnose the health of your hard  disk.</p>
<p><em>Image by <a href="http://www.flickr.com/photos/scoobay/3163954667/sizes/z/in/photostream/" target="_blank">Scoobay</a></em></p>
<h3>S.M.A.R.T System</h3>
<p>Most modern <a href="http://en.wikipedia.org/wiki/Serial_ATA" target="_blank">ATA</a> and <a href="http://en.wikipedia.org/wiki/SCSI" target="_blank">SCSI</a> hard disks have a Self-Monitoring, Analysis, and Reporting Technology  (SMART) system. SMART hard disks internally monitor their own health and  performance.</p>
<p>The SMART tool assesses the condition of your hard disk based on: the  throughput of the hard disk, the seek errors rate of the magnetic  heads, and other attributes that your hard disk manufacturer built into  their hard disk.</p>
<p>Most implementations of SMART systems allow users to perform  self-tests to monitor the performance and reliability of their hard  disks. The simplest way to perform a SMART system test with Ubuntu is  using the ‘Disk Utility’ under the ‘System’ &gt; ‘Administration’ menu.</p>
<p><a href="http://www.howtogeek.com/wp-content/uploads/2010/12/Disk-Utility-Big.png" target="_blank"><br />
<img src="http://www.howtogeek.com/wp-content/uploads/2010/12/Disk-Utility-Small.png" alt="" width="650" height="484" /><br />
</a></p>
<p>The disk utility lets you see the model, serial number, firmware, and  the overall health assessment of the hard disk, as well as whether a  SMART system is enabled on the hard disk.</p>
<p><img src="http://www.howtogeek.com/wp-content/uploads/2010/12/drive_info.png" alt="" width="650" height="297" /></p>
<p>The ‘SMART data’ button lets you see the SMART features of your hard disk.</p>
<p><img src="http://www.howtogeek.com/wp-content/uploads/2010/12/smart_data_btn.png" alt="" width="327" height="139" /></p>
<p><img src="http://www.howtogeek.com/wp-content/uploads/2010/12/smart_information.png" alt="" width="650" height="543" /></p>
<p>The ‘Run Self-test’ button lets you initiate a short,extended, or a conveyance self-test on the hard disk.</p>
<p><img src="http://www.howtogeek.com/wp-content/uploads/2010/12/run_self_test_btn.png" alt="" width="291" height="188" /></p>
<p><img src="http://www.howtogeek.com/wp-content/uploads/2010/12/run_smart_test.png" alt="" width="392" height="322" /></p>
<p>When you execute these tests, you’ll see a progress meter, letting  you see how far through the test is and what the estimated time of  completion is.</p>
<p><img src="http://www.howtogeek.com/wp-content/uploads/2010/12/test_progress.png" alt="" width="336" height="233" /></p>
<p>The ‘Attributed section’ lets you see the errors and self-test information.<br />
<img src="http://www.howtogeek.com/wp-content/uploads/2010/12/attribte_tbl.png" alt="" width="650" height="365" /></p>
<h3>File System Check</h3>
<p>There some other tools, beside the Disk Utility GUI, that we can use  to diagnose the health of our hard disk. The File System Check (FSCK),  that only comes as a command line tool, is one of the tools that we  often use to check the condition of our hard disk.</p>
<p>You can use the ‘Check Filesystem’ feature of the ‘Disk Utility’ to  perform the same check,if you are not a command line geek like us.</p>
<p><img src="http://www.howtogeek.com/wp-content/uploads/2010/12/check_file_sytem.png" alt="" width="312" height="289" /></p>
<p>Of course, there are some situations where we <em>have</em> to use the command line tool to check our file system. For example when we are using a <a href="http://en.wikipedia.org/wiki/Headless_system" target="_blank">headless system</a>, when our Linux box fails to boot, or when we simply want to show off our command line Kungfu skills to our friends.</p>
<p>At first, the FSCK command line tool looks like something that only a  computer geek can handle; But you will find that FSCK is a very easy  tool to use. There is one thing to note before you run FSCK; You need to  unmount the file system using the <a href="http://linux.die.net/man/8/umount" target="_blank">‘umount’ </a> command. Fixing a mounted file system with FSCK could end up creating more damage than the original problem.</p>
<pre>sudo umount /dev/sdb</pre>
<p>The FSCK command is pretty straightforward:</p>
<pre>sudo fsck -t ext4 /dev/sdb </pre>
<p>This command checks an ext4 file system (/dev/sdb) for  inconsistencies. You should replace /dev/sdb with your own partition.  You can run the ‘fdisk’ command to find out your system partitions:</p>
<pre>sudo fdisk -l</pre>
<h3>Scheduled File System Checks</h3>
<p>If you’re using Ubuntu, you will notice that Ubuntu runs an FSCK  session when you boot your system from time to time. If you find this  scheduled check annoying, you can re-schedule the scan using the  ‘tune2fs’ command. Here’s how it typically looks like:</p>
<p><img src="http://www.howtogeek.com/wp-content/uploads/2010/12/tune2fs_cli.png" alt="" width="613" height="460" /></p>
<p>The mount count parameter tells us that Ubuntu scans our hard disk after 33 disk mounts.</p>
<p><img src="http://www.howtogeek.com/wp-content/uploads/2010/12/mount_count1.png" alt="" width="615" height="233" /></p>
<p>We can configure the mount count using the ‘-c’ option:</p>
<pre>sudo tune2fs -c 35 /dev/sda1</pre>
<p>This command will re-configure Ubuntu to scan our hard disk after 35 hard disk mounts when the system boots.</p>
<p><em>Note: change ‘/dev/sda1/’ with your own partition </em></p>
<h3>Bad Blocks</h3>
<p>A bad sector is a <a href="http://en.wikipedia.org/wiki/Disk_sector" target="_blank">sector</a> on a computer’s disk drive that cannot be used due to permanent damage  (or an OS inability to successfully access it), such as physical damage  to the disk surface.</p>
<p>There are two ways to detect bad sectors in Linux: you can use the  Disk Utility GUI, or if you are a command line geek like us, you can use  the badblocks command to check your hard disk for bad sectors:</p>
<pre>sudo badblocks -v /dev/sdb1</pre>
<p>Badblock will give us the number of bad sectors in our hard disk.</p>
<pre>
zainul@zainul-laptop:~$ sudo badblocks -v /dev/sdb1
Checking blocks 0 to 97683200
Checking for bad blocks (read-only test): 3134528 done, 3:27 elapsed
3134560 done, 8:33 elapsed
3134561 done, 10:15 elapsed
3134562 done, 11:57 elapsed
3134563 done, 13:39 elapsed
done
Pass completed, 5 bad blocks found.
</pre>
<p>You have two options when you see bad blocks. You can either look for  a new hard disk, or mark these bad blocks as unusable hard disk  sectors. This involves two steps:</p>
<p>First we have to write the location of the bad sectors into a flat file.</p>
<pre>sudo badblocks /dev/sdb &gt; /home/zainul/bad-blocks</pre>
<p>After that, we need to feed the flat file into the FSCK command to mark these bad sectors as ‘unusable’ sectors.</p>
<pre>sudo fsck -l bad-blocks /dev/sdb</pre>
<hr />
<p>FSCK, Badblocks, and Disk Utility are some of the disk utilities that  we often use to scan our hard disks. Do share with the other fellow  readers if you know other Linux disk utilities to scan hard disks.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lgjsheron.wordpress.com/424/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lgjsheron.wordpress.com/424/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lgjsheron.wordpress.com/424/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lgjsheron.wordpress.com/424/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lgjsheron.wordpress.com/424/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lgjsheron.wordpress.com/424/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lgjsheron.wordpress.com/424/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lgjsheron.wordpress.com/424/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lgjsheron.wordpress.com/424/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lgjsheron.wordpress.com/424/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lgjsheron.wordpress.com/424/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lgjsheron.wordpress.com/424/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lgjsheron.wordpress.com/424/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lgjsheron.wordpress.com/424/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lgjsheron.wordpress.com&amp;blog=12348564&amp;post=424&amp;subd=lgjsheron&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lgjsheron.wordpress.com/2011/03/24/the-beginner%e2%80%99s-guide-to-linux-disk-utilities/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>0.000000 0.000000</georss:point>
		<geo:lat>0.000000</geo:lat>
		<geo:long>0.000000</geo:long>
		<media:content url="http://0.gravatar.com/avatar/29bc52b0aec22a6ecfa6afb3ab1eb80a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Sheron</media:title>
		</media:content>

		<media:content url="http://www.howtogeek.com/wp-content/uploads/2010/12/Disk-Utility-Small.png" medium="image" />

		<media:content url="http://www.howtogeek.com/wp-content/uploads/2010/12/drive_info.png" medium="image" />

		<media:content url="http://www.howtogeek.com/wp-content/uploads/2010/12/smart_data_btn.png" medium="image" />

		<media:content url="http://www.howtogeek.com/wp-content/uploads/2010/12/smart_information.png" medium="image" />

		<media:content url="http://www.howtogeek.com/wp-content/uploads/2010/12/run_self_test_btn.png" medium="image" />

		<media:content url="http://www.howtogeek.com/wp-content/uploads/2010/12/run_smart_test.png" medium="image" />

		<media:content url="http://www.howtogeek.com/wp-content/uploads/2010/12/test_progress.png" medium="image" />

		<media:content url="http://www.howtogeek.com/wp-content/uploads/2010/12/attribte_tbl.png" medium="image" />

		<media:content url="http://www.howtogeek.com/wp-content/uploads/2010/12/check_file_sytem.png" medium="image" />

		<media:content url="http://www.howtogeek.com/wp-content/uploads/2010/12/tune2fs_cli.png" medium="image" />

		<media:content url="http://www.howtogeek.com/wp-content/uploads/2010/12/mount_count1.png" medium="image" />
	</item>
		<item>
		<title>Install Google Reader Indicator for Ubuntu</title>
		<link>http://lgjsheron.wordpress.com/2011/03/24/install-google-reader-indicator-for-ubuntu/</link>
		<comments>http://lgjsheron.wordpress.com/2011/03/24/install-google-reader-indicator-for-ubuntu/#comments</comments>
		<pubDate>Thu, 24 Mar 2011 19:06:56 +0000</pubDate>
		<dc:creator>SG</dc:creator>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://lgjsheron.wordpress.com/?p=421</guid>
		<description><![CDATA[Google Reader Indicator, you can use it to take a quick look at your unread Google Reader items. Install Google Reader Indicator $ sudo add-apt-repository ppa:atareao/atareao $ sudo apt-get update $ sudo apt-get install google-reader-indicator<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lgjsheron.wordpress.com&amp;blog=12348564&amp;post=421&amp;subd=lgjsheron&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Google Reader Indicator, you can use it to take a quick look at your unread Google Reader items.</p>
<div><a href="http://lh5.ggpht.com/_1QSDkzYY2vc/TROOzGHxmbI/AAAAAAAACgg/BbNh549aEg0/s800/simple-2.png"><img src="http://lh5.ggpht.com/_1QSDkzYY2vc/TROOzGHxmbI/AAAAAAAACgg/BbNh549aEg0/s800/simple-2.png" border="0" alt="Install Google Reader Indicator for Ubuntu" width="354" height="81" /></a></div>
<p>Install Google Reader Indicator</p>
<pre>$ sudo add-apt-repository ppa:atareao/atareao
$ sudo apt-get update
$ sudo apt-get install google-reader-indicator</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lgjsheron.wordpress.com/421/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lgjsheron.wordpress.com/421/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lgjsheron.wordpress.com/421/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lgjsheron.wordpress.com/421/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lgjsheron.wordpress.com/421/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lgjsheron.wordpress.com/421/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lgjsheron.wordpress.com/421/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lgjsheron.wordpress.com/421/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lgjsheron.wordpress.com/421/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lgjsheron.wordpress.com/421/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lgjsheron.wordpress.com/421/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lgjsheron.wordpress.com/421/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lgjsheron.wordpress.com/421/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lgjsheron.wordpress.com/421/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lgjsheron.wordpress.com&amp;blog=12348564&amp;post=421&amp;subd=lgjsheron&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lgjsheron.wordpress.com/2011/03/24/install-google-reader-indicator-for-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>0.000000 0.000000</georss:point>
		<geo:lat>0.000000</geo:lat>
		<geo:long>0.000000</geo:long>
		<media:content url="http://0.gravatar.com/avatar/29bc52b0aec22a6ecfa6afb3ab1eb80a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Sheron</media:title>
		</media:content>

		<media:content url="http://lh5.ggpht.com/_1QSDkzYY2vc/TROOzGHxmbI/AAAAAAAACgg/BbNh549aEg0/s800/simple-2.png" medium="image">
			<media:title type="html">Install Google Reader Indicator for Ubuntu</media:title>
		</media:content>
	</item>
		<item>
		<title>LibreCAD: open source 2D CAD software</title>
		<link>http://lgjsheron.wordpress.com/2011/03/24/librecad-open-source-2d-cad-software/</link>
		<comments>http://lgjsheron.wordpress.com/2011/03/24/librecad-open-source-2d-cad-software/#comments</comments>
		<pubDate>Thu, 24 Mar 2011 19:05:05 +0000</pubDate>
		<dc:creator>SG</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://lgjsheron.wordpress.com/?p=418</guid>
		<description><![CDATA[LibreCAD is a free open source 2D CAD drawing software, formerly known as CADuntu. It&#8217;s based on the community edition of QCad ported to Qt4 and works natively on OSX, Windows and Linux. And it can easily be installed in Ubuntu, getting a PPA for Lucid, Maverick and Natty. Install LibreCAD in Ubuntu: For Ubuntu [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lgjsheron.wordpress.com&amp;blog=12348564&amp;post=418&amp;subd=lgjsheron&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>LibreCAD is a free open source 2D CAD drawing software, formerly known as CADuntu. It&#8217;s based on the community edition of QCad ported to Qt4 and works natively on OSX, Windows and Linux. And it can easily be installed in Ubuntu, getting a PPA for Lucid, Maverick and Natty.<br />
<img src="http://lh3.ggpht.com/_1QSDkzYY2vc/TQ0C86HS53I/AAAAAAAACes/H1pSgvD8IxI/s400/librecad.png" alt="LibreCAD: open source 2D CAD software" /><br />
Install LibreCAD in Ubuntu:</p>
<p>For Ubuntu 10.04:</p>
<pre>
sudo add-apt-repository ppa:showard314/librecad
sudo apt-get update
sudo apt-get install librecad
</pre>
<p>For Ubuntu 10.10 and 11.04:</p>
<pre>
sudo add-apt-repository ppa:showard314/ppa
sudo apt-get update
sudo apt-get install librecad
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lgjsheron.wordpress.com/418/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lgjsheron.wordpress.com/418/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lgjsheron.wordpress.com/418/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lgjsheron.wordpress.com/418/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lgjsheron.wordpress.com/418/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lgjsheron.wordpress.com/418/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lgjsheron.wordpress.com/418/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lgjsheron.wordpress.com/418/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lgjsheron.wordpress.com/418/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lgjsheron.wordpress.com/418/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lgjsheron.wordpress.com/418/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lgjsheron.wordpress.com/418/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lgjsheron.wordpress.com/418/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lgjsheron.wordpress.com/418/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lgjsheron.wordpress.com&amp;blog=12348564&amp;post=418&amp;subd=lgjsheron&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lgjsheron.wordpress.com/2011/03/24/librecad-open-source-2d-cad-software/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>0.000000 0.000000</georss:point>
		<geo:lat>0.000000</geo:lat>
		<geo:long>0.000000</geo:long>
		<media:content url="http://0.gravatar.com/avatar/29bc52b0aec22a6ecfa6afb3ab1eb80a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Sheron</media:title>
		</media:content>

		<media:content url="http://lh3.ggpht.com/_1QSDkzYY2vc/TQ0C86HS53I/AAAAAAAACes/H1pSgvD8IxI/s400/librecad.png" medium="image">
			<media:title type="html">LibreCAD: open source 2D CAD software</media:title>
		</media:content>
	</item>
		<item>
		<title>How To Configure Ubuntu To Open The Applications Menu With Windows Key</title>
		<link>http://lgjsheron.wordpress.com/2011/03/24/how-to-configure-ubuntu-to-open-the-applications-menu-with-windows-key/</link>
		<comments>http://lgjsheron.wordpress.com/2011/03/24/how-to-configure-ubuntu-to-open-the-applications-menu-with-windows-key/#comments</comments>
		<pubDate>Thu, 24 Mar 2011 19:00:05 +0000</pubDate>
		<dc:creator>SG</dc:creator>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://lgjsheron.wordpress.com/?p=414</guid>
		<description><![CDATA[Most of the  keyboards today come with the Windows key on them.In Windows it is used for open Startmenu. You can add similar function in Ubuntu by using the following Command. $ gconftool-2 –set /apps/metacity/global_keybindings/panel_main_menu –type string “Super_L”<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lgjsheron.wordpress.com&amp;blog=12348564&amp;post=414&amp;subd=lgjsheron&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Most of the  keyboards today come with the Windows key on them.In  Windows it is used for open Startmenu. You can add similar function in  Ubuntu by using the following Command.</p>
<pre>
$ gconftool-2 –set /apps/metacity/global_keybindings/panel_main_menu –type  string “Super_L”
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lgjsheron.wordpress.com/414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lgjsheron.wordpress.com/414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lgjsheron.wordpress.com/414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lgjsheron.wordpress.com/414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lgjsheron.wordpress.com/414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lgjsheron.wordpress.com/414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lgjsheron.wordpress.com/414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lgjsheron.wordpress.com/414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lgjsheron.wordpress.com/414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lgjsheron.wordpress.com/414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lgjsheron.wordpress.com/414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lgjsheron.wordpress.com/414/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lgjsheron.wordpress.com/414/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lgjsheron.wordpress.com/414/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lgjsheron.wordpress.com&amp;blog=12348564&amp;post=414&amp;subd=lgjsheron&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lgjsheron.wordpress.com/2011/03/24/how-to-configure-ubuntu-to-open-the-applications-menu-with-windows-key/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>0.000000 0.000000</georss:point>
		<geo:lat>0.000000</geo:lat>
		<geo:long>0.000000</geo:long>
		<media:content url="http://0.gravatar.com/avatar/29bc52b0aec22a6ecfa6afb3ab1eb80a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Sheron</media:title>
		</media:content>
	</item>
		<item>
		<title>Searching filesystem from command line</title>
		<link>http://lgjsheron.wordpress.com/2011/03/24/searching-filesystem-from-command-line/</link>
		<comments>http://lgjsheron.wordpress.com/2011/03/24/searching-filesystem-from-command-line/#comments</comments>
		<pubDate>Thu, 24 Mar 2011 18:49:34 +0000</pubDate>
		<dc:creator>SG</dc:creator>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://lgjsheron.wordpress.com/?p=409</guid>
		<description><![CDATA[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. 1) whereis This command can search for  the binary, source, and manual page files for a comand $ whereis  whereis whereis: /usr/bin/whereis /usr/share/man/man1/whereis.1.gz 2) locate:   locate uses [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lgjsheron.wordpress.com&amp;blog=12348564&amp;post=409&amp;subd=lgjsheron&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>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.</p>
<p><strong>1) whereis</strong><br />
This command can search for  the binary, source, and manual page files for a comand</p>
<pre>$ whereis  whereis
whereis: /usr/bin/whereis /usr/share/man/man1/whereis.1.gz
</pre>
<p><strong>2) locate</strong>:   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.  On my ubuntu box, I got a  long list of files when I tried to locate  command.   RTFM locate</p>
<pre>$locate locate
/etc/alternatives/locate
/etc/alternatives/locate.1.gz
/etc/beagle/blocate.conf
/etc/cron.daily/mlocate
/usr/bin/blocate
/usr/bin/locate
/usr/bin/mlocate
</pre>
<p><strong>3)  find: </strong> find is perhaps one of the most powerful commands      there is.   However, find is slow compared to locate as it   recursively search the paths supplied to  it.</p>
<p>The syntax of find is specified like this.</p>
<pre> 
find path-list expression

It may look rather cryptic. 
Even though the man page lists only three  parts for the command as above, 
for simplicity  we can imagine  that  find  syntax  is havng  four fields.
</pre>
<table border="1" cellpadding="5" bgcolor="#38b0de">
<tbody>
<tr>
<td align="center">1</td>
<td align="center">2</td>
<td align="center">3</td>
<td align="center">4</td>
</tr>
<tr>
<td align="center">find</td>
<td align="center">starting point</td>
<td align="center">find which files</td>
<td align="center">action on result</td>
</tr>
</tbody>
</table>
<p>You can formulate your find command based on the above table. For example,<br />
if you want to find all  avi files in a folder named movies</p>
<table border="1" cellpadding="5" bgcolor="#38b0de">
<tbody>
<tr>
<td align="center">1</td>
<td align="center">2</td>
<td align="center">3</td>
<td align="center">4</td>
</tr>
<tr>
<td align="center">find</td>
<td align="center">movies</td>
<td align="center">-name &#8220;*.avi&#8221;</td>
<td align="center">-print</td>
</tr>
</tbody>
</table>
<pre>$find  movies   -name "*.avi"  -print
</pre>
<p>Here are some examples you can try</p>
<p>a) to find all directories on the system whose permissions of     777</p>
<pre>$        find / \( -type d -a -perm -777 \)     -print
</pre>
<p>b) find all core files in home directories and remove them</p>
<pre>$         find /home -name core -exec rm {}     \;
</pre>
<p>mand</p>
<p>c) find all files owned by a particular user no matter whose home directory they are in:</p>
<pre>$       find /home -user      -print
</pre>
<p>d) find all files that have been modified (or had their modification time changed) in the last 30 days:</p>
<pre>$      find / -mtime -30 -print
</pre>
<p>e) find all tmp files older than 30 days and remove</p>
<pre>$ find /dirpath \( -name \*.tmp -a -mtime     +30 \) -exec rm {} \;
</pre>
<p>The man page of find has several other option that you can try.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lgjsheron.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lgjsheron.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lgjsheron.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lgjsheron.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lgjsheron.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lgjsheron.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lgjsheron.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lgjsheron.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lgjsheron.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lgjsheron.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lgjsheron.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lgjsheron.wordpress.com/409/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lgjsheron.wordpress.com/409/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lgjsheron.wordpress.com/409/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lgjsheron.wordpress.com&amp;blog=12348564&amp;post=409&amp;subd=lgjsheron&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lgjsheron.wordpress.com/2011/03/24/searching-filesystem-from-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>0.000000 0.000000</georss:point>
		<geo:lat>0.000000</geo:lat>
		<geo:long>0.000000</geo:long>
		<media:content url="http://0.gravatar.com/avatar/29bc52b0aec22a6ecfa6afb3ab1eb80a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Sheron</media:title>
		</media:content>
	</item>
		<item>
		<title>Overview of Xrandr</title>
		<link>http://lgjsheron.wordpress.com/2011/03/24/overview-of-xrandr/</link>
		<comments>http://lgjsheron.wordpress.com/2011/03/24/overview-of-xrandr/#comments</comments>
		<pubDate>Thu, 24 Mar 2011 18:40:59 +0000</pubDate>
		<dc:creator>SG</dc:creator>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://lgjsheron.wordpress.com/?p=406</guid>
		<description><![CDATA[I bought a new monitor at home and added a second monitor in the office, so I had a lot to do with the graphics of my Linux setup. What do you use in these cases? My preferred tool for all these operations is certainly xrandr. In particular I’m used to use it from the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lgjsheron.wordpress.com&amp;blog=12348564&amp;post=406&amp;subd=lgjsheron&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I bought a new monitor at home and added a second monitor in the  office, so I had a lot to do with the graphics of my Linux setup. What do you use in these cases? My preferred tool for all these operations is certainly xrandr.</p>
<p>In  particular I’m used to use it from the command line version and after  doing some tests using the syntax that i’ve found in the startup of the  graphic environment.</p>
<p>In this article we will see some common use case.</p>
<p>The  X Resize, Rotate and Reflect Extension (RandR) allows clients to  dynamically change X screens, so as to resize, rotate and reflect the  root window of a screen. The initial X11 design did not anticipate the  need for dynamic resizing and it was necessary to restart the X server  to bring about the changes. However, changing the screen resolution on  the fly without changing the desktop size had been available under  XFree86 since the beginning. RandR extension framework brought the  ability to change display characteristics without restarting the X  session. The extension framework allows laptops and handheld computers  to change their screen size to drive external monitors at different  resolutions than their built in screens.</p>
<p>If one’s desktop  environment doesn’t provide a graphical tool for interfacing with this  functionality, the xrandr command line tool may be used.</p>
<p>Most  Linux distributions have the xrandr package in their repository, so you  can install it using your package manager for ubuntu:</p>
<pre>aptitude install libxrandr2</pre>
<h3>Version</h3>
<p>First check what version you are using:</p>
<pre>#xrandr -v
 
xrandr program version       1.3.3
Server reports RandR version 1.3</pre>
<p>In my example I will always use the version 1.3, some features may not work on former version.</p>
<h3>Query</h3>
<p>To find out what monitors are connected you can use the query command with the following:</p>
<pre>#xrandr -q
 
Screen 0: minimum 320 x 200, current 1440 x 900, maximum 4096 x 4096
VGA-0 connected 1440x900+0+0 (normal left inverted right x axis y axis) 476mm x 268mm
   1920x1080      60.0 +
   1600x1200      65.0     60.0
   1680x1050      69.9     60.0
   1600x1024      60.2
   1400x1050      74.8     70.0     60.0     60.0
   1280x1024      75.0     60.0
   1440x900       75.0*    59.9
   1280x960       60.0
   1360x768       60.0     59.8
   1280x800       74.9     59.8
   1152x864       75.0     75.0     70.0     60.0
   1280x768       74.9     59.9
   1024x768       75.1     75.0     70.1     60.0
   832x624        74.6
   800x600        72.2     75.0     60.3     56.2
   848x480        60.0
   640x480        72.8     75.0     72.8     75.0     66.7     60.0     59.9     59.9
   720x400        70.1
DVI-0 connected 1440x900+0+0 (normal left inverted right x axis y axis) 476mm x 268mm
   1920x1080      60.0 +
   1600x1200      65.0     60.0
   1680x1050      69.9     60.0
   1600x1024      60.2
   1400x1050      74.8     70.0     60.0     60.0
   1280x1024      75.0     60.0
   1440x900       75.0*    59.9
   1280x960       60.0
   1360x768       60.0     59.8
   1280x800       74.9     59.8
   1152x864       75.0     75.0     70.0     60.0
   1280x768       74.9     59.9
   1024x768       75.1     75.0     70.1     60.0
   832x624        74.6
   800x600        72.2     75.0     60.3     56.2
   848x480        60.0
   640x480        72.8     75.0     72.8     75.0     66.7     60.0     59.9     59.9
   720x400        70.1
LVDS connected (normal left inverted right x axis y axis)
   1024x768       60.0 +   60.0
   1360x768       59.8
   800x600        60.3     59.9
   848x480        59.7
   720x480        59.7
   640x480        59.9     59.4
S-video disconnected (normal left inverted right x axis y axis)</pre>
<p>In  my output you can see that I connected both VGA and DVI (I am still  doing tests with my new monitor) and that LVDS (laptop screen) is  switched off and the S-video is not connected.</p>
<p>You can also see that with this simple command you can see all the resolution and refresh rate supported by the screens.</p>
<h3>Basic use with screens</h3>
<p>The basic use to give command to screens is <code>xrandr --output SCREEN COMANDO</code>, so for example to turn off the VGA screen you can use:</p>
<pre>xrandr --output VGA-0 --off</pre>
<p>Turning  off an output media is useful sometimes, for example i’ve at work a  screen with resolution 1600×1200 while my laptop screen is 1680×1050, i  use the laptop in a docking station with the lid closed so turning off  LVDS help in getting a good resolution on the screen.</p>
<h3>Change the resolution of a screen</h3>
<p>To change resolution size, you can use xrandr and the –mode option:</p>
<pre>xrandr --output DVI-0 --mode 1440x900 --refresh 75</pre>
<p>With this command you’ll switch your DVI screen at 1440×900 resolution and with a refresh rate of 75.</p>
<h3>Cloning a screen</h3>
<p>Assumed  to attach a VGA output to your laptop and you want to clone your main  screen, so what appears on the laptop screen is also shown on the  external screen, nothing more easy with xrandr:</p>
<pre> xrandr --output LVDS --auto --output VGA --auto --same-as LVDS</pre>
<p>In general use <code>$ xrandr -q</code> to discover the appropriate output names for your configuration. The  –auto option will select the preferred resolution for each output, this  is identified with a plus (+) in the <code>$ xrandr -q</code> listing and is normally the best resolution available.</p>
<h3>2 screen side by side</h3>
<p>it’s  possible to create a virtual desktop putting 2 screen side by side, it  is possible to set screen locations as –left-of, –right-of, –above and  –below. Assuming displays sizes of the LVDS 1024×768 and the VGA  1200×1600 you can use one of these 2 commands:</p>
<pre>$  xrandr --output LVDS --auto --output VGA --auto --right-of LVDS
and
$  xrandr --output LVDS --mode 1024x768 --pos 0x0 --output VGA  --mode 1600x1200 --pos 1024x0</pre>
<p>They will give the same result, so i suggest using the first version, –right-of it’s much more easy to rembember and to use.</p>
<h3>Automate it on login</h3>
<p>You  can automate your xrandr operation putting them in the directory  /etc/X11/Xsession.d/, so for example you could add a file:  /etc/X11/Xsession.d/45custom_xrandr-settings</p>
<pre># If an external monitor is connected, place it with xrandr
 
# External output may be "VGA" or "VGA-0" or "DVI-0" or "TMDS-1"
EXTERNAL_OUTPUT="VGA"
INTERNAL_OUTPUT="LVDS"
# EXTERNAL_LOCATION may be one of: left, right, above, or below
EXTERNAL_LOCATION="right"
 
case "$EXTERNAL_LOCATION" in
       left|LEFT)
               EXTERNAL_LOCATION="--left-of $INTERNAL_OUTPUT"
               ;;
       right|RIGHT)
               EXTERNAL_LOCATION="--right-of $INTERNAL_OUTPUT"
               ;;
       top|TOP|above|ABOVE)
               EXTERNAL_LOCATION="--above $INTERNAL_OUTPUT"
               ;;
       bottom|BOTTOM|below|BELOW)
               EXTERNAL_LOCATION="--below $INTERNAL_OUTPUT"
               ;;
       *)
               EXTERNAL_LOCATION="--left-of $INTERNAL_OUTPUT"
               ;;
esac
 
xrandr |grep $EXTERNAL_OUTPUT | grep " connected "
if [ $? -eq 0 ]; then
    xrandr --output $INTERNAL_OUTPUT --auto --output $EXTERNAL_OUTPUT --auto $EXTERNAL_LOCATION
    # Alternative command in case of trouble:
    # (sleep 2; xrandr --output $INTERNAL_OUTPUT --auto --output $EXTERNAL_OUTPUT --auto $EXTERNAL_LOCATION) &amp;amp;
else
    xrandr --output $INTERNAL_OUTPUT --auto --output $EXTERNAL_OUTPUT --off
fi</pre>
<h3>GUIs</h3>
<p>Several graphical frontends are available for xrandr (all using GTK):</p>
<ul>
<li> <a rel="nofollow" href="http://gitweb.freedesktop.org/?p=xorg/app/grandr.git">Grandr</a></li>
<li> <a rel="nofollow" href="http://www.albertomilone.com/urandr.html">URandR</a></li>
<li> <a rel="nofollow" href="http://christian.amsuess.com/tools/arandr/">ARandR</a></li>
<li> <a rel="nofollow" href="http://sourceforge.net/projects/zarfy/">Zarfy</a> — A GUI to libxrandr. It presents the user with visual representaion of   active displays on an interactive map of the screen memory. Features   free postioning, configuration saving, scripting for R&amp;R and an   alternate gui for switching between monitors.</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lgjsheron.wordpress.com/406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lgjsheron.wordpress.com/406/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lgjsheron.wordpress.com/406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lgjsheron.wordpress.com/406/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lgjsheron.wordpress.com/406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lgjsheron.wordpress.com/406/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lgjsheron.wordpress.com/406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lgjsheron.wordpress.com/406/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lgjsheron.wordpress.com/406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lgjsheron.wordpress.com/406/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lgjsheron.wordpress.com/406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lgjsheron.wordpress.com/406/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lgjsheron.wordpress.com/406/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lgjsheron.wordpress.com/406/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lgjsheron.wordpress.com&amp;blog=12348564&amp;post=406&amp;subd=lgjsheron&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lgjsheron.wordpress.com/2011/03/24/overview-of-xrandr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>0.000000 0.000000</georss:point>
		<geo:lat>0.000000</geo:lat>
		<geo:long>0.000000</geo:long>
		<media:content url="http://0.gravatar.com/avatar/29bc52b0aec22a6ecfa6afb3ab1eb80a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Sheron</media:title>
		</media:content>
	</item>
		<item>
		<title>How to password-protect GRUB</title>
		<link>http://lgjsheron.wordpress.com/2011/03/24/how-to-password-protect-grub/</link>
		<comments>http://lgjsheron.wordpress.com/2011/03/24/how-to-password-protect-grub/#comments</comments>
		<pubDate>Thu, 24 Mar 2011 18:33:36 +0000</pubDate>
		<dc:creator>SG</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://lgjsheron.wordpress.com/?p=403</guid>
		<description><![CDATA[Password-protecting the bootloader is one method you may employ to enhance the physical security profile of your computer. GRUB, the GRand Unified Bootloader, is the default bootloader on virtually all Linux distributions, but on a significant number, the installer does not have support for setting a GRUB password. This article presents the step involved in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lgjsheron.wordpress.com&amp;blog=12348564&amp;post=403&amp;subd=lgjsheron&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Password-protecting the bootloader is one method you may employ to enhance the physical security profile of your computer. GRUB, the <strong>GR</strong>and <strong>U</strong>nified <strong>B</strong>ootloader,  is the default bootloader on virtually all Linux distributions, but on a  significant number, the installer does not have support for setting a  GRUB password. This article presents the step involved in  password-enabling GRUB – on a running system.</p>
<p>Before we go through the steps involved in setting a password for  GRUB, it’s best to understand why this is even necessary. Principally,  we password-enable GRUB to:</p>
<ol>
<li>Prevent Access To Single User Mode — If an attacker can boot into single user mode, he becomes the root user.</li>
<li>Prevent Access To the GRUB Console — If the machine uses GRUB as its  boot loader, an attacker can use the edit the command’s interface to  change its configuration or to gather information using the cat command.</li>
</ol>
<p>If  your distribution’s installer has support for setting a GRUB password,  the process involved should be similar to the one shown in the image  below, which was taken from a similar Fedora 13 tutorial. Just check “Use a boot loader password” and the installer will prompt for a password.</p>
<div id="attachment_5489">
<p><img title=" " src="http://linuxbsdos.com/wp-content/uploads/2010/05/Fedinstall9-549x412.png" alt="GRUB password" width="549" height="412" /></p>
<p>Specifying boot loader password</p>
</div>
<p>If your distribution’s installer does not have support for setting a  password for GRUB, you can still do it after installation. The process  involved in this exercise is the same across distributions. However, for  this article, an installation of Fedora 13 was used. Here are the steps involved:</p>
<ol>
<li>From a shell terminal, run the <strong><em>grub-md5-crypt</em></strong> command. The password that’s requested will be the one that’ll be used  to protect GRUB. It should not be the same as that of any user account  on the system, certainly not the same as the root password. Note the md5  hash generated. You will need it in the next step.
<div id="attachment_5605">
<p><img title=" " src="http://linuxbsdos.com/wp-content/uploads/2010/06/grubhash.png" alt="GRUB hash" width="375" height="192" />Generate the md5 hash for password-protecting GRUB</p>
</div>
</li>
<li>Edit <strong>/etc/grub.conf</strong> as shown in the image. Just add another line below the “timeout” line and type in <strong><em>password –md5 (md5 hash generated from step 1)</em></strong> as shown in the image. Save the file. Reboot and try to access other features of GRUB by pressing the “p” key. Did it work?
<div id="attachment_5606">
<p><img title=" " src="http://linuxbsdos.com/wp-content/uploads/2010/06/grubconf-524x412.png" alt="GRUB.conf" width="524" height="412" /></p>
</div>
</li>
<li>
<div id="attachment_5606">
<p>Edit grub.conf</p>
</div>
</li>
</ol>
<p>Complete this simple process, and you would have taken a small but significant towards enhancing the physical security profile of your computer</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lgjsheron.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lgjsheron.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lgjsheron.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lgjsheron.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lgjsheron.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lgjsheron.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lgjsheron.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lgjsheron.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lgjsheron.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lgjsheron.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lgjsheron.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lgjsheron.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lgjsheron.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lgjsheron.wordpress.com/403/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lgjsheron.wordpress.com&amp;blog=12348564&amp;post=403&amp;subd=lgjsheron&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lgjsheron.wordpress.com/2011/03/24/how-to-password-protect-grub/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>0.000000 0.000000</georss:point>
		<geo:lat>0.000000</geo:lat>
		<geo:long>0.000000</geo:long>
		<media:content url="http://0.gravatar.com/avatar/29bc52b0aec22a6ecfa6afb3ab1eb80a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Sheron</media:title>
		</media:content>

		<media:content url="http://linuxbsdos.com/wp-content/uploads/2010/05/Fedinstall9-549x412.png" medium="image">
			<media:title type="html"> </media:title>
		</media:content>

		<media:content url="http://linuxbsdos.com/wp-content/uploads/2010/06/grubhash.png" medium="image">
			<media:title type="html"> </media:title>
		</media:content>

		<media:content url="http://linuxbsdos.com/wp-content/uploads/2010/06/grubconf-524x412.png" medium="image">
			<media:title type="html"> </media:title>
		</media:content>
	</item>
		<item>
		<title>How to reset Gnome-panel</title>
		<link>http://lgjsheron.wordpress.com/2011/03/24/how-to-reset-gnome-panel/</link>
		<comments>http://lgjsheron.wordpress.com/2011/03/24/how-to-reset-gnome-panel/#comments</comments>
		<pubDate>Thu, 24 Mar 2011 18:28:26 +0000</pubDate>
		<dc:creator>SG</dc:creator>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://lgjsheron.wordpress.com/?p=400</guid>
		<description><![CDATA[If your gnome panel goes haywire after tinkering , here is an easy tip to reset it back to normal gconftool-2 --recursive-unset /apps<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lgjsheron.wordpress.com&amp;blog=12348564&amp;post=400&amp;subd=lgjsheron&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If your gnome panel goes haywire after tinkering , here is an easy tip to reset it back to normal</p>
<pre> gconftool-2 --recursive-unset /apps</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lgjsheron.wordpress.com/400/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lgjsheron.wordpress.com/400/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lgjsheron.wordpress.com/400/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lgjsheron.wordpress.com/400/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lgjsheron.wordpress.com/400/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lgjsheron.wordpress.com/400/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lgjsheron.wordpress.com/400/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lgjsheron.wordpress.com/400/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lgjsheron.wordpress.com/400/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lgjsheron.wordpress.com/400/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lgjsheron.wordpress.com/400/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lgjsheron.wordpress.com/400/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lgjsheron.wordpress.com/400/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lgjsheron.wordpress.com/400/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=lgjsheron.wordpress.com&amp;blog=12348564&amp;post=400&amp;subd=lgjsheron&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://lgjsheron.wordpress.com/2011/03/24/how-to-reset-gnome-panel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>0.000000 0.000000</georss:point>
		<geo:lat>0.000000</geo:lat>
		<geo:long>0.000000</geo:long>
		<media:content url="http://0.gravatar.com/avatar/29bc52b0aec22a6ecfa6afb3ab1eb80a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Sheron</media:title>
		</media:content>
	</item>
	</channel>
</rss>
