<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8498867271087223494</id><updated>2012-02-16T19:29:57.793+05:30</updated><title type='text'>System/Network Administrator's Blog for Linux</title><subtitle type='html'>This blog can be helpful who are interested in Linux,having basic knowledge of Linux Operating System &amp;amp; want to follow different Linux Based Services

It contains direct justified hand&amp;#39;s on exercise without making more concentration on Theory.

Suggestions are welcomed.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://nishithvyas.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://nishithvyas.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Nishith Vyas.</name><uri>http://www.blogger.com/profile/05856051335663380707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-rCcpM26Gx8E/TfZEy30oUzI/AAAAAAAAAuo/ozJ-EeuoO_A/s220/DSC01834.1.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>21</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8498867271087223494.post-5603157875924819975</id><published>2012-01-23T11:42:00.008+05:30</published><updated>2012-01-23T12:05:44.164+05:30</updated><title type='text'>LVM In Linux</title><content type='html'>&lt;span class="Apple-style-span"&gt;&lt;b&gt;Practical steps to "Extend/Reduce" LVM Partition in RedHat/CentOS 5x &amp;amp; Fedora Linux upto version 12 only.&lt;/b&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;meta equiv="content-type" content="text/html; charset=utf-8"&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;b&gt;############&lt;/b&gt;&lt;/span&gt;To Extend LVM Partition:&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: verdana; "&gt;&lt;b&gt;############&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;meta equiv="content-type" content="text/html; charset=utf-8"&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: verdana; "&gt;&lt;b&gt;Note&lt;/b&gt;: No need to unmount the partition.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: verdana; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: verdana; "&gt;In my case, I want to extend my LVM partition to 200MB on LV0, the command is,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: verdana; "&gt;&lt;b&gt;Command:1&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: verdana; "&gt;lvextend -L 200M /dev/vg0/lv0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: verdana; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;b&gt;Command:2&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;fsck /dev/vg0/lv0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;b&gt;Command:3&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;e2fsck -f /dev/vg0/lv0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;b&gt;Command:4                   &lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: verdana; "&gt; (Used to get output of the said extended partition)&lt;/span&gt;&lt;/div&gt;&lt;meta equiv="content-type" content="text/html; charset=utf-8"&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;lvdisplay /dev/vg0/lv0  &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;df -kh&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;meta equiv="content-type" content="text/html; charset=utf-8"&gt;&lt;b&gt;############To Reduce LVM Partition:&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 153); font-family: verdana; "&gt;&lt;b&gt;############&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;meta equiv="content-type" content="text/html; charset=utf-8"&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;b&gt;Note&lt;/b&gt;: Unmount the said partition first before reducing.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: verdana; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;In my case, I have mounted "lv0" on "google0" directory, the command would be,&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;b&gt;&lt;meta equiv="content-type" content="text/html; charset=utf-8"&gt;Command:1&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;umount /google0  /dev/vg0/lv0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;b&gt;&lt;meta equiv="content-type" content="text/html; charset=utf-8"&gt;Command:2&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;e2fsck -f /dev/vg0/lv0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;b&gt;&lt;meta equiv="content-type" content="text/html; charset=utf-8"&gt;Command:3&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;resize2fs /dev/vg0/lv0 50M   (I have reduced LVM Partition size from 150 MB to 50 MB)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;b&gt;&lt;meta equiv="content-type" content="text/html; charset=utf-8"&gt;Command:4&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;lvreduce /dev/vg0/lv0 -L 50M&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;b&gt;&lt;meta equiv="content-type" content="text/html; charset=utf-8"&gt;Command:5&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;mount /dev/vg0/lv0  /google0/     (Remount LV0 on google0 directory)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;&lt;meta equiv="content-type" content="text/html; charset=utf-8"&gt;&lt;b&gt;Command:6    &lt;/b&gt;                         &lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: verdana; "&gt;  (Used to get output of the said reduced partition)&lt;/span&gt;&lt;/div&gt;&lt;meta equiv="content-type" content="text/html; charset=utf-8"&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;lvdisplay /dev/vg0/lv0&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"&gt;df -kh&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/8498867271087223494-5603157875924819975?l=nishithvyas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nishithvyas.blogspot.com/feeds/5603157875924819975/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishithvyas.blogspot.com/2012/01/lvm-in-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/5603157875924819975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/5603157875924819975'/><link rel='alternate' type='text/html' href='http://nishithvyas.blogspot.com/2012/01/lvm-in-linux.html' title='LVM In Linux'/><author><name>Nishith Vyas.</name><uri>http://www.blogger.com/profile/05856051335663380707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-rCcpM26Gx8E/TfZEy30oUzI/AAAAAAAAAuo/ozJ-EeuoO_A/s220/DSC01834.1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8498867271087223494.post-7340128056746503309</id><published>2011-06-29T13:23:00.003+05:30</published><updated>2011-06-29T13:27:48.839+05:30</updated><title type='text'>Backup an entire hard disk using "dd" command</title><content type='html'>&lt;span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;&lt;p style="margin-top: 14px; margin-bottom: 14px; padding-top: 0px; padding-bottom: 0px; "&gt;&lt;span style="font-size:85%;"&gt;The "dd" command is one of the original Unix utilities and should be in everyone's tool box. It can strip headers, extract parts of binary files and write into the middle of floppy disks; it is used by the Linux kernel Makefiles to make&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;a href="http://www.debianhelp.co.uk/ddcommand.htm#" class="kLink" id="KonaLink1" style="text-decoration: underline ! important; color: rgb(0, 153, 0) ! important; cursor: pointer; border-width: 0px ! important; border-style: none ! important; border-color: transparent ! important; background-image: none ! important; background-color: transparent ! important; margin: 0px; padding: 0px ! important; text-transform: none ! important; display: inline ! important; font-variant: normal; top: 0px; right: 0px; bottom: 0px; left: 0px; outline-style: none; position: static; font-weight: inherit ! important; font-size: inherit ! important;"&gt;&lt;span style="color: rgb(0, 153, 0) !important; font-family: inherit !important; font-weight: inherit !important; font-size: inherit !important; position: static; color:#009900;" &gt;&lt;span class="kLink" style="border-top-width: 0px ! important; border-top-style: none ! important; border-left-width: 0px ! important; border-left-style: none ! important; border-right-width: 0px ! important; border-right-style: none ! important; border-bottom: 1px solid rgb(0, 153, 0); padding: 0px 0px 1px ! important; color: rgb(0, 153, 0) ! important; background-image: none; background-color: transparent; width: auto ! important; float: none ! important; display: inline ! important; font-weight: inherit ! important; font-size: inherit ! important; position: static;"&gt;boot&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="kLink" style="border-top-width: 0px ! important; border-top-style: none ! important; border-left-width: 0px ! important; border-left-style: none ! important; border-right-width: 0px ! important; border-right-style: none ! important; border-bottom: 1px solid rgb(0, 153, 0); padding: 0px 0px 1px ! important; color: rgb(0, 153, 0) ! important; background-image: none; background-color: transparent; width: auto ! important; float: none ! important; display: inline ! important; font-weight: inherit ! important; font-size: inherit ! important; position: static;"&gt;images&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;. It can be used to copy and convert magnetic tape formats, convert between ASCII and EBCDIC, swap bytes, and force to upper and lower case.&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;For blocked I/O, the dd command has no competition in the standard tool set. One could write a custom utility to do specific I/O or formatting but, as dd is already available almost everywhere, it makes sense to use it.&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Like most well-behaved commands, dd reads from its standard input and writes to its standard output, unless a command line specification has been given. This allows dd to be used in pipes, and remotely with the rsh remote shell command.&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Unlike most commands, dd uses a keyword=value format for its parameters. This was reputedly modeled after IBM System/360 JCL, which had an elaborate DD 'Dataset Definition' specification for I/O devices.&lt;span class="Apple-converted-space"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Using "dd" you can create backups of an entire&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;a href="http://www.debianhelp.co.uk/ddcommand.htm#" class="kLink" id="KonaLink2" style="text-decoration: underline ! important; color: rgb(0, 153, 0) ! important; cursor: pointer; border-width: 0px ! important; border-style: none ! important; border-color: transparent ! important; background-image: none ! important; background-color: transparent ! important; margin: 0px; padding: 0px ! important; text-transform: none ! important; display: inline ! important; font-variant: normal; top: 0px; right: 0px; bottom: 0px; left: 0px; outline-style: none; position: static; font-weight: inherit ! important; font-size: inherit ! important;"&gt;&lt;span style="color: rgb(0, 153, 0) !important; font-family: inherit !important; font-weight: inherit !important; font-size: inherit !important; position: static; color:#009900;" &gt;&lt;span class="kLink" style="border-top-width: 0px ! important; border-top-style: none ! important; border-left-width: 0px ! important; border-left-style: none ! important; border-right-width: 0px ! important; border-right-style: none ! important; border-bottom: 1px solid rgb(0, 153, 0); padding: 0px 0px 1px ! important; color: rgb(0, 153, 0) ! important; background-image: none; background-color: transparent; width: auto ! important; float: none ! important; display: inline ! important; font-weight: inherit ! important; font-size: inherit ! important; position: static;"&gt;harddisk&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;or just a parts of it. This is also useful to quickly copy installations to similar machines. It will only work on disks that are exactly the same in disk geometry, meaning they have to the same model from the same brand.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color:#CC0066;"&gt;Full Hard&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;a href="http://www.debianhelp.co.uk/ddcommand.htm#" class="kLink" id="KonaLink3" style="text-decoration: underline ! important; color: rgb(0, 153, 0) ! important; cursor: pointer; border-width: 0px ! important; border-style: none ! important; border-color: transparent ! important; background-image: none ! important; background-color: transparent ! important; margin: 0px; padding: 0px ! important; text-transform: none ! important; display: inline ! important; font-variant: normal; top: 0px; right: 0px; bottom: 0px; left: 0px; outline-style: none; position: static; font-weight: inherit ! important; font-size: inherit ! important;"&gt;&lt;span style="color: rgb(0, 153, 0) !important; font-family: inherit !important; font-weight: inherit !important; font-size: inherit !important; position: static; color:#009900;" &gt;&lt;span class="kLink" style="border-top-width: 0px ! important; border-top-style: none ! important; border-left-width: 0px ! important; border-left-style: none ! important; border-right-width: 0px ! important; border-right-style: none ! important; border-bottom-width: 1px; border-bottom-style: solid; padding: 0px 0px 1px ! important; color: rgb(0, 153, 0) ! important; background-image: none; background-color: transparent; width: auto ! important; float: none ! important; display: inline ! important; font-weight: inherit ! important; font-size: inherit ! important; position: static;"&gt;Disk&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="kLink" style="border-top-width: 0px ! important; border-top-style: none ! important; border-left-width: 0px ! important; border-left-style: none ! important; border-right-width: 0px ! important; border-right-style: none ! important; border-bottom-width: 1px; border-bottom-style: solid; padding: 0px 0px 1px ! important; color: rgb(0, 153, 0) ! important; background-image: none; background-color: transparent; width: auto ! important; float: none ! important; display: inline ! important; font-weight: inherit ! important; font-size: inherit ! important; position: static;"&gt;copy &lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;dd if=/dev/hdx of=/dev/hdy&lt;br /&gt;dd if=/dev/hdx of=/path/to/image&lt;br /&gt;dd if=/dev/hdx | gzip &amp;gt; /path/to/image.gz&lt;br /&gt;&lt;br /&gt;Hdx could be hda,&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;a href="http://www.debianhelp.co.uk/ddcommand.htm#" class="kLink" id="KonaLink4" style="text-decoration: underline ! important; color: rgb(0, 153, 0) ! important; cursor: pointer; border-width: 0px ! important; border-style: none ! important; border-color: transparent ! important; background-image: none ! important; background-color: transparent ! important; margin: 0px; padding: 0px ! important; text-transform: none ! important; display: inline ! important; font-variant: normal; top: 0px; right: 0px; bottom: 0px; left: 0px; outline-style: none; position: static; font-weight: inherit ! important; font-size: inherit ! important;"&gt;&lt;span style="color: rgb(0, 153, 0) !important; font-family: inherit !important; font-weight: inherit !important; font-size: inherit !important; position: static; color:#009900;" &gt;&lt;span class="kLink" style="border-top-width: 0px ! important; border-top-style: none ! important; border-left-width: 0px ! important; border-left-style: none ! important; border-right-width: 0px ! important; border-right-style: none ! important; border-bottom-width: 1px; border-bottom-style: solid; padding: 0px 0px 1px ! important; color: rgb(0, 153, 0) ! important; background-image: none; background-color: transparent; width: auto ! important; float: none ! important; display: inline ! important; font-weight: inherit ! important; font-size: inherit ! important; position: static;"&gt;hdb&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;etc. In the second example gzip is used to compress the image if it is really just a backup.&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#CC0066;"&gt;&lt;b&gt;Restore Backup of&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;a href="http://www.debianhelp.co.uk/ddcommand.htm#" class="kLink" id="KonaLink5" style="text-decoration: underline ! important; color: rgb(0, 153, 0) ! important; cursor: pointer; border-width: 0px ! important; border-style: none ! important; border-color: transparent ! important; background-image: none ! important; background-color: transparent ! important; margin: 0px; padding: 0px ! important; text-transform: none ! important; display: inline ! important; font-variant: normal; top: 0px; right: 0px; bottom: 0px; left: 0px; outline-style: none; position: static; font-weight: inherit ! important; font-size: inherit ! important;"&gt;&lt;span style="color: rgb(0, 153, 0) !important; font-family: inherit !important; font-weight: inherit !important; font-size: inherit !important; position: static; color:#009900;" &gt;&lt;span class="kLink" style="border-top-width: 0px ! important; border-top-style: none ! important; border-left-width: 0px ! important; border-left-style: none ! important; border-right-width: 0px ! important; border-right-style: none ! important; border-bottom-width: 1px; border-bottom-style: solid; padding: 0px 0px 1px ! important; color: rgb(0, 153, 0) ! important; background-image: none; background-color: transparent; width: auto ! important; float: none ! important; display: inline ! important; font-weight: inherit ! important; font-size: inherit ! important; position: static;"&gt;hard&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="kLink" style="border-top-width: 0px ! important; border-top-style: none ! important; border-left-width: 0px ! important; border-left-style: none ! important; border-right-width: 0px ! important; border-right-style: none ! important; border-bottom-width: 1px; border-bottom-style: solid; padding: 0px 0px 1px ! important; color: rgb(0, 153, 0) ! important; background-image: none; background-color: transparent; width: auto ! important; float: none ! important; display: inline ! important; font-weight: inherit ! important; font-size: inherit ! important; position: static;"&gt;disk&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;copy&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;dd if=/path/to/image of=/dev/hdx&lt;br /&gt;&lt;br /&gt;gzip -dc /path/to/image.gz | dd of=/dev/hdx&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#CC0066;"&gt;&lt;b&gt;MBR backup&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In order to backup only the first few bytes containing the MBR and the partition table you can use dd as well.&lt;br /&gt;&lt;br /&gt;dd if=/dev/hdx of=/path/to/image count=1 bs=512&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#CC0066;"&gt;&lt;b&gt;MBR restore&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;dd if=/path/to/image of=/dev/hdx&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 14px; margin-bottom: 14px; padding-top: 0px; padding-bottom: 0px;"&gt;&lt;span style="font-size:85%;"&gt;Add "count=1 bs=446" to exclude the partition table from being written to disk. You can manually restore the table.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 14px; margin-bottom: 14px; padding-top: 0px; padding-bottom: 0px;"&gt;Another popular tools are: "Clonezilla, Mondo Rescue"&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-top: 14px; margin-bottom: 14px; padding-top: 0px; padding-bottom: 0px;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-top: 14px; margin-bottom: 14px; padding-top: 0px; padding-bottom: 0px;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-top: 14px; margin-bottom: 14px; padding-top: 0px; padding-bottom: 0px;"&gt;&lt;span style="font-size:85%;"&gt;Regards,&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 14px; margin-bottom: 14px; padding-top: 0px; padding-bottom: 0px; font-weight: bold;"&gt;&lt;span style="font-size:85%;"&gt;Nishith N.Vyas&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 14px; margin-bottom: 14px; padding-top: 0px; padding-bottom: 0px; "&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&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/8498867271087223494-7340128056746503309?l=nishithvyas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nishithvyas.blogspot.com/feeds/7340128056746503309/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishithvyas.blogspot.com/2011/06/backup-entire-hard-disk-using-dd.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/7340128056746503309'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/7340128056746503309'/><link rel='alternate' type='text/html' href='http://nishithvyas.blogspot.com/2011/06/backup-entire-hard-disk-using-dd.html' title='Backup an entire hard disk using &quot;dd&quot; command'/><author><name>Nishith Vyas.</name><uri>http://www.blogger.com/profile/05856051335663380707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-rCcpM26Gx8E/TfZEy30oUzI/AAAAAAAAAuo/ozJ-EeuoO_A/s220/DSC01834.1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8498867271087223494.post-939263341488180870</id><published>2011-05-23T15:36:00.004+05:30</published><updated>2011-05-23T15:51:11.118+05:30</updated><title type='text'>Zombie Process Understanding.</title><content type='html'>&lt;span style="font-family:arial;"&gt;&lt;span style="font-weight: bold;"&gt;A zombie&lt;/span&gt; process is a process that has completed  execution but still has an entry in the process table, allowing the  process that started it to read its exit status.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;When a process ends, all of the memory and resources associated with it  are deallocated so they can be used by other processes.&lt;br /&gt;&lt;br /&gt;However, the  process's entry in the process table remains. The parent is sent a&lt;span style="font-weight: bold;"&gt;  SIGCHLD&lt;/span&gt; signal indicating that a &lt;span style="font-weight: bold;"&gt;child has died&lt;/span&gt;; the handler for this  signal will typically&lt;span style="font-weight: bold;"&gt; execute the wait &lt;/span&gt;system call, which reads the &lt;span style="font-weight: bold;"&gt;exit  status&lt;/span&gt; and &lt;span style="font-weight: bold;"&gt;removes the zombie.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The zombie's process ID and entry in the  process table can then be reused. However, if a parent ignores the &lt;span style="font-weight: bold;"&gt; SIGCHLD&lt;/span&gt;, the zombie will be left in the process table.&lt;br /&gt;&lt;br /&gt;In some  situations this may be desirable, for example if the parent creates  another child process it ensures that it will not be allocated the same  process ID.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;If you have zombie processes it means those zombies have not been waited for by their parent.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;To remove zombies from a system&lt;/span&gt;, the &lt;span style="font-weight: bold;"&gt;SIGCHLD &lt;/span&gt;signal can be sent to the  parent manually, using the kill command. If the parent process still  refuses to reap the zombie, the next step would be to remove the parent  process. When a process loses its parent, init becomes its new parent.  Init periodically executes the wait system call to reap any zombies with  init as parent.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;How to find "zombie" process in Linux ?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Execute&lt;span style="font-weight: bold;"&gt; "top" &lt;/span&gt;command &amp;amp; read top left corner to check zombie process. If you are unable to identify the process, press &lt;span style="font-weight: bold;"&gt;"z"&lt;/span&gt; &amp;amp; you will get&lt;span style="color: rgb(255, 0, 0);"&gt; "red"&lt;/span&gt; colored identification for easy understanding.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;How to kill "zombie" process in Linux ?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;code style="font-family: arial;"&gt;Run this command.&lt;br /&gt;ps aux | awk '{ print $8 " " $2 }' | grep -w Z&lt;/code&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Output would be&lt;/span&gt;,&lt;br /&gt;&lt;/span&gt;&lt;pre style="font-family: arial;"&gt;Z 3456&lt;br /&gt;Z 2107&lt;br /&gt;Z 1708&lt;br /&gt;&lt;/pre&gt;&lt;span style="font-family:arial;"&gt;Use "Kill command" for all three processes as given below.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;kill -9 3456&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;kill -9 2107&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;kill -9 1708&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;That's it.&lt;/span&gt; &lt;span style="font-family:arial;"&gt;Enjoy Linux&lt;/span&gt;.&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8498867271087223494-939263341488180870?l=nishithvyas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nishithvyas.blogspot.com/feeds/939263341488180870/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishithvyas.blogspot.com/2011/05/zombie-process-understanding.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/939263341488180870'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/939263341488180870'/><link rel='alternate' type='text/html' href='http://nishithvyas.blogspot.com/2011/05/zombie-process-understanding.html' title='Zombie Process Understanding.'/><author><name>Nishith Vyas.</name><uri>http://www.blogger.com/profile/05856051335663380707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-rCcpM26Gx8E/TfZEy30oUzI/AAAAAAAAAuo/ozJ-EeuoO_A/s220/DSC01834.1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8498867271087223494.post-7815437381029477108</id><published>2011-05-03T19:36:00.004+05:30</published><updated>2011-05-03T19:48:38.242+05:30</updated><title type='text'>Commands to check "Disk Usage" in Linux</title><content type='html'>&lt;span style="color: rgb(255, 0, 0);font-family:Verdana, Arial, Helvetica, sans-serif;font-size:-1;"  &gt;&lt;b&gt;'du' = Finding the "disk usage"&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:-1;"&gt;&lt;b&gt;&lt;br /&gt;du&lt;/b&gt;&lt;br /&gt;                  Typing the above at the prompt gives you a list of directories                    that exist in the current directory along with their sizes.                    The last line of the output gives you the total size of the                    current directory including its subdirectories. The size given                    includes the sizes of the files and the directories that exist                    in the current directory as well as all of its subdirectories.                    Note that by default the sizes given are in kilobytes.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:-1;"&gt;&lt;b&gt;du /home/nishith&lt;/b&gt;&lt;br /&gt;                  The above command would give you the directory size of the directory                    /home/nishith&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:-1;"&gt;&lt;b&gt;du -h&lt;/b&gt;&lt;br /&gt;                  This command gives you a better output than the default one.                    The option '-h' stands for &lt;i&gt;human readable format&lt;/i&gt;. So                    the sizes of the files / directories are this time suffixed                    with a 'k' if its kilobytes and 'M' if its Megabytes and 'G'                    if its Gigabytes.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:-1;"&gt;&lt;b&gt;du -ah&lt;/b&gt;&lt;br /&gt;                  This command would display in its output, not only the directories                    but also all the files that are present in the current directory.                    Note that 'du' always counts all files and directories while                    giving the final size in the last line. But the '-a' &lt;i&gt;displays&lt;/i&gt;                    the filenames along with the directory names in the output.                    '-h' is once again human readable format.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:-1;"&gt;&lt;b&gt;du -c&lt;/b&gt;&lt;br /&gt;                  This gives you a &lt;i&gt;grand total&lt;/i&gt; as the last line of the                    output. So if your directory occupies 100MB the last 2 lines                    of the output would be&lt;br /&gt;                 &lt;br /&gt;                  100M .&lt;br /&gt;                  100M total&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:-1;"&gt;The first line would be the default last line of the 'du' output                    indicating the total size of the directory and another line                    displaying the same size, followed by the string '&lt;i&gt;total&lt;/i&gt;'.                    This is helpful in case you this command along with the grep                    command to only display the final total size of a directory                    as shown below.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:-1;"&gt;&lt;b&gt;du -ch | grep total&lt;/b&gt;&lt;br /&gt;                  This would have only one line in its output that displays the                    total size of the current directory including all the subdirectories.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:-1;"&gt;&lt;b&gt;du -s&lt;/b&gt;&lt;br /&gt;                  This displays a summary of the directory size. It is the simplest                    way to know the total size of the current directory.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:-1;"&gt;du -S&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:-1;"&gt;&lt;br /&gt;                  This would display the size of the current directory excluding                    the size of the subdirectories that exist within that directory.                    So it basically shows you the total size of &lt;i&gt;all the files&lt;/i&gt;                    that exist in the current directory.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:-1;"&gt;du --exclude=mp3&lt;/span&gt;&lt;/b&gt;&lt;span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:-1;"&gt;&lt;br /&gt;                  The above command would display the size of the current directory                    along with all its subdirectories, &lt;i&gt;&lt;b&gt;but&lt;/b&gt;&lt;/i&gt; it would                    exclude all the files having the given pattern present in their                    file names. Thus in the above case if there happens to be any                    mp3 files within the current directory or any of its subdirectories,                    their size &lt;i&gt;would not be included&lt;/i&gt; while calculating the                    total directory size.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:Verdana, Arial, Helvetica, sans-serif;font-size:-1;"  &gt;&lt;b&gt;'df' = Finding the "disk free" space&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:-1;"&gt;&lt;b&gt;&lt;br /&gt;df&lt;/b&gt;&lt;br /&gt;                  Typing the above, outputs a table consisting of 6 columns. All                    the columns are very easy to understand. Remember that the 'Size',                    'Used' and 'Avail' columns use kilobytes as the unit. The 'Use%'                    column shows the usage as a percentage which is also very useful.&lt;br /&gt;                  &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:-1;"&gt;&lt;b&gt;df -h&lt;/b&gt;&lt;br /&gt;                  Displays the same output as the previous command but the '-h'                    indicates &lt;i&gt;human readable format&lt;/i&gt;. Hence instead of kilobytes                    as the unit the output would have 'M' for Megabytes and 'G'                    for Gigabytes.&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:-1;"&gt;&lt;b&gt;Example :&lt;br /&gt;                  &lt;/b&gt;&lt;br /&gt;                  I have my Linux installed on /dev/hda1 and I have mounted my                    Windows partitions as well (by default every time Linux boots).                    So 'df' by default shows me the disk usage of my Linux as well                    as Windows partitions. And I am only interested in the disk                    usage of the Linux partitions. This is what I use :&lt;br /&gt;                 &lt;br /&gt;                  &lt;b&gt;$ df -h | grep /dev/sda1 | cut -c 41-43&lt;/b&gt;&lt;br /&gt;                 &lt;br /&gt;                  This command displays the following on my machine&lt;br /&gt;                 &lt;br /&gt;                  &lt;b&gt;78%&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;Please Note: You can find your drive letter by typing "fdisk -l / df -kh" command line.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Thanks,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Nishith N.Vyas&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:-1;"&gt;                   &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8498867271087223494-7815437381029477108?l=nishithvyas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nishithvyas.blogspot.com/feeds/7815437381029477108/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishithvyas.blogspot.com/2011/05/commands-to-check-disk-usage-in-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/7815437381029477108'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/7815437381029477108'/><link rel='alternate' type='text/html' href='http://nishithvyas.blogspot.com/2011/05/commands-to-check-disk-usage-in-linux.html' title='Commands to check &quot;Disk Usage&quot; in Linux'/><author><name>Nishith Vyas.</name><uri>http://www.blogger.com/profile/05856051335663380707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-rCcpM26Gx8E/TfZEy30oUzI/AAAAAAAAAuo/ozJ-EeuoO_A/s220/DSC01834.1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8498867271087223494.post-9179314341142922447</id><published>2011-04-29T13:37:00.004+05:30</published><updated>2011-04-29T13:45:02.837+05:30</updated><title type='text'>Kickstart installation guide for CentOS 5.5</title><content type='html'>&lt;span style=";font-family:verdana;font-size:100%;"  &gt;This guide explain how to install and configure kickstart server for network based deployments of CentOS, from an NFS share.&lt;br /&gt;&lt;br /&gt;The instructions should work the same on RedHat and Fedora.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Requirement&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;  * CentOS 5.5 DVD&lt;br /&gt;  * Static IP address for the Kickstart/DHCP server&lt;br /&gt;  * /data partition or any other&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Installation Steps:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; 1. Login to the CentOS server using Root account.&lt;br /&gt;&lt;br /&gt;2. Mount the CentOS DVD. Command would be : mount /dev/cdrom  /media&lt;br /&gt;&lt;br /&gt;3. Move to the CentOS RPM folder inside the DVD: cd /media/CentOS&lt;br /&gt;&lt;br /&gt;4. Run the command bellow to install the TFTP-Server:&lt;br /&gt;rpm -ivh xinetd-2.3.14-10.el5.i386.rpm&lt;br /&gt;    rpm -ivh tftp-server-0.49-2.el5.centos.i386.rpm&lt;br /&gt;&lt;br /&gt;(If you get dependency error, download all necessary packages using "yum")&lt;br /&gt;&lt;br /&gt;5. Run the command bellow to install the DHCP server:&lt;br /&gt;    rpm -ivh dhcp-3.0.5-23.el5.i386.rpm&lt;br /&gt;&lt;br /&gt;6. Create new folder for the Kickstart server:&lt;br /&gt;    mkdir -p /data/kickstart&lt;br /&gt;&lt;br /&gt;7. Edit using "vi", the file /etc/xinetd.d/tftp and change the following settings:&lt;br /&gt;    From:&lt;br /&gt;    disable = yes &lt;span style="font-weight: bold;"&gt;To:&lt;/span&gt; disable = no&lt;br /&gt;From:&lt;br /&gt;    server_args = -s /tftpboot &lt;span style="font-weight: bold;"&gt;To:&lt;/span&gt; server_args = -s /data/kickstart&lt;br /&gt;&lt;br /&gt;8. Run the command bellow to start the TFTP server:&lt;br /&gt;    /sbin/service xinetd start&lt;br /&gt;&lt;br /&gt;9. Run the command bellow to start the TFTP server run at startup:&lt;br /&gt;    chkconfig xinetd on&lt;br /&gt;&lt;br /&gt;10. Edit using "vi", the file /etc/dhcpd.conf and add the following lines:&lt;br /&gt;    ddns-update-style none;&lt;br /&gt;    allow bootp;&lt;br /&gt;    allow booting;&lt;br /&gt;    subnet 10.1.1.0 netmask 255.255.255.0 {&lt;br /&gt;    option routers 10.1.1.254;&lt;br /&gt;    option domain-name-servers 10.1.1.2;&lt;br /&gt;    next-server 10.1.1.1;&lt;br /&gt;    filename "pxelinux.0";&lt;br /&gt;    range dynamic-bootp 10.1.1.200 10.1.1.210;&lt;br /&gt;    }Note 1: Replace 10.1.1.0 with the correct network ID.&lt;br /&gt;    Note 2: Replace 255.255.255.0 with the correct subnet mask.&lt;br /&gt;    Note 3: Replace 10.1.1.254 with the correct default gateway.&lt;br /&gt;    Note 4: Replace 10.1.1.1 with the Kickstart server IP address.&lt;br /&gt;    Note 5: Replace 10.1.1.200 with the first IP of the DHCP pool.&lt;br /&gt;    Note 6: Replace 10.1.1.210 with the last IP of the DHCP pool.&lt;br /&gt;    Note 7: Replace 10.1.1.2 with the correct DNS server.&lt;br /&gt;&lt;br /&gt;11. Start the DHCP server&lt;br /&gt;    service dhcpd start or /etc/init.d/dhcpd start&lt;br /&gt;&lt;br /&gt;12. Run the command bellow to start the DHCP server run at startup:&lt;br /&gt;    chkconfig dhcpd on&lt;br /&gt;&lt;br /&gt;13. Copy Boot Files&lt;br /&gt;    cp /usr/lib/syslinux/{pxelinux.0,menu.c32,memdisk,mboot.c32,chain.c32} /data/kickstart&lt;br /&gt;&lt;br /&gt;14. Create a folder for the PXE menu files:&lt;br /&gt;    mkdir -p /data/kickstart/pxelinux.cfg&lt;br /&gt;&lt;br /&gt;15. Move to the CentOS DVD root folder:&lt;br /&gt;    cd /media&lt;br /&gt;&lt;br /&gt;16. Copy vmlinuz and initrd.img from the DVD to the images directory:&lt;br /&gt;    cp /media/images/pxeboot/{vmlinuz,initrd.img} /data/kickstart/images&lt;br /&gt;&lt;br /&gt;17. Create the CentOS DVD structure:&lt;br /&gt;    cp -r CentOS /data/kickstart/&lt;br /&gt;    cp -r isolinux /data/kickstart/&lt;br /&gt;    cp -r repodata /data/kickstart/&lt;br /&gt;    cp -r images /data/kickstart/&lt;br /&gt;&lt;br /&gt;18. Create using "vi", the file /data/kickstart/pxelinux.cfg/default with the following content:&lt;br /&gt;    default menu.c32&lt;br /&gt;    prompt 0&lt;br /&gt;    MENU TITLE PXE Menu&lt;br /&gt;    LABEL CentOS&lt;br /&gt;    MENU LABEL CentOS&lt;br /&gt;    KERNEL images/vmlinuz&lt;br /&gt;    append initrd=images/initrd.img vga=normal network ks=nfs:10.1.1.1:/data/kickstart/ks.cfg textNote: Replace 10.1.1.1 with the Kickstart server IP address.&lt;br /&gt;19. Create an unattended installation script /data/kickstart/ks.cfg&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Note:&lt;/span&gt; Make sure the file starts with the following lines:&lt;br /&gt;    install&lt;br /&gt;    nfs --server=10.1.1.1 --dir=/data/kickstartNote 1: Replace 10.1.1.1 with the Kickstart server IP address.&lt;br /&gt;   &lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Note:&lt;/span&gt; Make sure the lines beginning with “cdrom” and “url” does not exist on the file.&lt;br /&gt;    &lt;span style="font-weight: bold;"&gt;&lt;br /&gt;Note:&lt;/span&gt; To review ks.cfg file options, see the link:&lt;br /&gt;    http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5.4/html/Installation_Guide/s1-kickstart2-options.html&lt;br /&gt;&lt;br /&gt;20. Edit using "vi", the file /etc/exports and add the following line:&lt;br /&gt;    /data/kickstart *(ro,no_root_squash)&lt;br /&gt;&lt;br /&gt;21. Start the NFS service:&lt;br /&gt;    service portmap start&lt;br /&gt;    service nfs start&lt;br /&gt;    chkconfig nfs on&lt;br /&gt;&lt;br /&gt;That' it.&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8498867271087223494-9179314341142922447?l=nishithvyas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nishithvyas.blogspot.com/feeds/9179314341142922447/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishithvyas.blogspot.com/2011/04/kickstart-installation-guide-for-centos.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/9179314341142922447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/9179314341142922447'/><link rel='alternate' type='text/html' href='http://nishithvyas.blogspot.com/2011/04/kickstart-installation-guide-for-centos.html' title='Kickstart installation guide for CentOS 5.5'/><author><name>Nishith Vyas.</name><uri>http://www.blogger.com/profile/05856051335663380707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-rCcpM26Gx8E/TfZEy30oUzI/AAAAAAAAAuo/ozJ-EeuoO_A/s220/DSC01834.1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8498867271087223494.post-386672236086869557</id><published>2011-04-20T11:21:00.011+05:30</published><updated>2011-04-22T17:37:02.179+05:30</updated><title type='text'>Alert "Disk Usage" on your email id</title><content type='html'>&lt;span class="Apple-style-span"&gt;Hello,&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span"&gt;&lt;b&gt;Below shell script shows "Hard Disk Usage" on your email address on regular basis.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step:1&lt;/b&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;Make a file &amp;amp; named "disk-alert" &amp;amp; copy below contents in it.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;######################################################################&lt;/div&gt;&lt;div&gt;&lt;div&gt;# set admin email so that you can get email&lt;/div&gt;&lt;div&gt;ADMIN="abc@xyz.com"&lt;span class="Apple-style-span"&gt;    &lt;span class="Apple-style-span"&gt; (Mention Your Mail Id Here)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;# set alert level 90% is default&lt;span class="Apple-style-span"&gt; &lt;span class="Apple-style-span"&gt;(Set Usage Level as per the need)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;ALERT=90&lt;/div&gt;&lt;div&gt;df -H | grep -vE '^Filesystem|tmpfs|cdrom' | awk '{ print $5 " " $1 }' | while read output;&lt;/div&gt;&lt;div&gt;do&lt;/div&gt;&lt;div&gt;  #echo $output&lt;/div&gt;&lt;div&gt;  usep=$(echo $output | awk '{ print $1}' | cut -d'%' -f1  )&lt;/div&gt;&lt;div&gt;  partition=$(echo $output | awk '{ print $2 }' )&lt;/div&gt;&lt;div&gt;  if [ $usep -ge $ALERT ]; then&lt;/div&gt;&lt;div&gt;    echo "Running out of space \"$partition ($usep%)\" on $(hostname) as on $(date)" |&lt;/div&gt;&lt;div&gt;     mail -s "Alert: Almost out of disk space $usep" $ADMIN&lt;/div&gt;&lt;div&gt;  fi&lt;/div&gt;&lt;div&gt;done&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;meta equiv="content-type" content="text/html; charset=utf-8"&gt;######################################################################&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Step:2&lt;/b&gt;&lt;/div&gt;&lt;div&gt;Edit "crontab" &amp;amp; make below setting.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;crontab -e&lt;/div&gt;&lt;div&gt;&lt;div&gt;59 23 * * * /root/script/diskalert&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Save &amp;amp; Exit (:wq)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Step:3&lt;/b&gt;&lt;/div&gt;&lt;div&gt;service crond start&lt;/div&gt;&lt;div&gt;service sendmail start&lt;/div&gt;&lt;div&gt;chkconfig crond on&lt;/div&gt;&lt;div&gt;chkconfig sendmail on&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Please Note : &lt;/b&gt;You can use any other mail service in your network as per the availability.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Conclusion:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;This shell script will give you "Disk Usage" output on the mentioned email id on daily basis @ 23 Hrs:59 Minutes&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Note: Thanks to "cyberciti.biz" to make such a nice effort to make my post more powerful.&lt;br /&gt;&lt;/div&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/8498867271087223494-386672236086869557?l=nishithvyas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nishithvyas.blogspot.com/feeds/386672236086869557/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishithvyas.blogspot.com/2011/04/alert-disk-usage-on-your-email-id.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/386672236086869557'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/386672236086869557'/><link rel='alternate' type='text/html' href='http://nishithvyas.blogspot.com/2011/04/alert-disk-usage-on-your-email-id.html' title='Alert &quot;Disk Usage&quot; on your email id'/><author><name>Nishith Vyas.</name><uri>http://www.blogger.com/profile/05856051335663380707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-rCcpM26Gx8E/TfZEy30oUzI/AAAAAAAAAuo/ozJ-EeuoO_A/s220/DSC01834.1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8498867271087223494.post-8601290257574915417</id><published>2010-09-27T15:07:00.013+05:30</published><updated>2010-09-27T15:25:41.399+05:30</updated><title type='text'>Faster Internet Browsing Thru. Local DNS Cache</title><content type='html'>&lt;span style=";font-family:arial;font-size:100%;"  &gt;&lt;span style="font-family: arial;"&gt;A local DNS cache can help for faster browsing since you’re caching the DNS request instead of attempting that request multiple times. The internet speed will not get any faster, but the browsing speed will improve, because on each website there are usually quite a few DNS requests for which the local DNS cache will be used, bringing the query time to almost 0.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;To see how fast your current domain name servers (DNS) are, open a terminal execute below command.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;pre  class="linux-code" style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;code&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-size:100%;"&gt;]# dig y&lt;/span&gt;&lt;span style="font-size:100%;"&gt;ahoo.com&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You Should get something like this.&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;*************************************************************************&lt;br /&gt;; &lt;&lt;&gt;&gt; DiG 9.6.1-P1 &lt;&lt;&gt;&gt; yahoo.com&lt;br /&gt;;; global options: +cmd&lt;br /&gt;;; Got answer:&lt;br /&gt;;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 42045 ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0&lt;br /&gt;&lt;br /&gt;;; QUESTION SECTION: ;yahoo.com.   IN A &lt;br /&gt;&lt;br /&gt;;; ANSWER SECTION: yahoo.com.  20142 IN A 69.147.114.224 yahoo.com.  20142 IN A 209.131.36.159 yahoo.com.  20142 IN A 209.191.93.53  &lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;;; Query time: 50 msec&lt;/span&gt;&lt;br /&gt;;; SERVER: 208.67.220.220#53(208.67.220.220)&lt;br /&gt;;; WHEN: Wed Dec  9 13:21:48 2009&lt;br /&gt;;; MSG SIZE  rcvd: 75&lt;/code&gt;&lt;br /&gt;&lt;code&gt;*************************************************************************&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;N&lt;span style="font-family: arial;"&gt;otice the "Query time" in bold. It's usually somewhere near 50 msec. (it depends on your domain name servers).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;Run this one more time. If the query time decreases to less than 5&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;msec, it means your internet service provider DNS already uses some&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;caching method and you do not need to follow this how-to. If the&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;response time is almost the same and you are using a cable (broadband)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;internet connection, you can use this guide to cache the DNS for faster&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;internet browsing.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-family: arial;"&gt;Now, Let's Start The Practical.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-family: arial;"&gt;Manually configuring the local DNS cache&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;span style="font-family: arial;font-size:85%;" &gt;1. Install DNSMasq:&lt;/span&gt;  &lt;span style=";font-family:arial;font-size:100%;"  &gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;yum install dnsmasq&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2. Edit "Dnsmasq" configuration file.&lt;br /&gt;vim /etc/dnsmasq.conf&lt;br /&gt;&lt;br /&gt;3. &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: arial;"&gt;N&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: arial;"&gt;ow search for "listen-address" (it's on line 90 on my Ubuntu Karmic installation), remove the "#" character in front of "listen-address" and add "127.0.0.1" after the "=" (all without the quotes). Basically, this is how the "listen-address" line should look like after editing it :&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;code&gt;&lt;span style="font-family: arial;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;listen-address=127.0.0.1&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;font-size:85%;" &gt;&lt;span style="font-family: arial;"&gt;4. &lt;/span&gt;You can also edit the cache size if you want. Search for this in the same file: "#cache-size=150" (it's on line 432 on my Ubuntu Karmic installation), remove the "#" character in front of the line (this uncomments it) and change "150" with the size you want for you DNS cache. This is how the line should look after editing it :&lt;/span&gt;&lt;code&gt;&lt;span style="font-family: arial;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;cache-size=500&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;font-size:85%;" &gt;Note :- "500" can be any number you want.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;font-size:85%;" &gt;5. Edit "/etc/resolv.conf" file &amp;amp; modify First Line.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:85%;" &gt;&lt;span style="font-family: arial;"&gt;nameserver 127.0.0.1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;font-size:100%;" &gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-weight: bold;"&gt;nameserver ISP_DNS1&lt;br /&gt;nameserver ISP_DNS2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: arial;"&gt;6. Finally "service network restart" &amp;amp; "service dnsmasq restart"&lt;br /&gt;&lt;br /&gt;7. &lt;/span&gt;&lt;span style="font-weight: bold; font-family: arial;"&gt;Testing&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;To see the performance improvement, open a terminal and type:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;font-size:100%;" &gt;dig yahoo.com&lt;br /&gt;&lt;/span&gt;&lt;pre style="font-family: arial;" class="source-code"&gt;&lt;span style="font-size:100%;"&gt;&lt;code&gt;************************************************************&lt;br /&gt;; &lt;&lt;&gt;&gt; DiG 9.6.1-P2 &lt;&lt;&gt;&gt; yahoo.com&lt;br /&gt;;; global options: +cmd&lt;br /&gt;;; Got answer:&lt;br /&gt;;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 57501&lt;br /&gt;;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0&lt;br /&gt;&lt;br /&gt;;; QUESTION SECTION:&lt;br /&gt;;yahoo.com.   IN A&lt;br /&gt;&lt;br /&gt;;; ANSWER SECTION:&lt;br /&gt;yahoo.com.  20982 IN A 209.131.36.159&lt;br /&gt;yahoo.com.  20982 IN A 69.147.114.224&lt;br /&gt;yahoo.com.  20982 IN A 209.191.93.53&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;;; Query time: 0 msec&lt;/span&gt;&lt;br /&gt;;; SERVER: 127.0.0.1#53(127.0.0.1)&lt;br /&gt;;; WHEN: Wed Dec  9 14:43:41 2009&lt;br /&gt;;; MSG SIZE  rcvd: 75&lt;br /&gt;&lt;/code&gt;&lt;/span&gt;&lt;span&gt;&lt;span style="font-size:100%;"&gt;&lt;code&gt;************************************************************&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);font-size:85%;" &gt;&lt;span style="font-family: arial;"&gt;0 msec. query time, because the domains are now cached.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;That's it.&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;span style="font-family: arial;font-size:100%;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8498867271087223494-8601290257574915417?l=nishithvyas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nishithvyas.blogspot.com/feeds/8601290257574915417/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishithvyas.blogspot.com/2010/09/faster-internet-browsing-thru-local-dns.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/8601290257574915417'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/8601290257574915417'/><link rel='alternate' type='text/html' href='http://nishithvyas.blogspot.com/2010/09/faster-internet-browsing-thru-local-dns.html' title='Faster Internet Browsing Thru. Local DNS Cache'/><author><name>Nishith Vyas.</name><uri>http://www.blogger.com/profile/05856051335663380707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-rCcpM26Gx8E/TfZEy30oUzI/AAAAAAAAAuo/ozJ-EeuoO_A/s220/DSC01834.1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8498867271087223494.post-4044095956751861342</id><published>2010-09-21T12:31:00.003+05:30</published><updated>2010-09-21T12:34:54.206+05:30</updated><title type='text'>Limit CPU Usage Per Process in Linux</title><content type='html'>&lt;span style="font-family: arial;"&gt;This practical is tested successfully on Fedora 11 i386 &amp;amp; CentOS 5.4 Only.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;&lt;/span&gt;&lt;span style="font-family: arial;"&gt;Download "cpulimit" setup file first.&lt;br /&gt;&lt;br /&gt; wget '&lt;/span&gt;&lt;a style="font-family: arial;" href="http://downloads.sourceforge.net/cpulimit/cpulimit-1.1.tar.gz" target="_blank"&gt;http://downloads.sourceforge.&lt;wbr&gt;net/cpulimit/cpulimit-1.1.tar.&lt;wbr&gt;gz&lt;/a&gt;&lt;span style="font-family: arial;"&gt;'&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;&lt;br /&gt;Extract it &amp;amp; go inside the directory.&lt;br /&gt; tar -zxvf cpulimit-1.1.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt; cd cpulimit-1.1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;&lt;br /&gt; make&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt; cp cpulimit /usr/local/sbin/&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt; rm -rf cpulimit*&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial; font-weight: bold;"&gt;&lt;br /&gt;Command to run cpulimit.&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;span style="font-family: arial;"&gt; To limit CPU usage of the process called firefox to 30%, enter:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt; # cpulimit -e firefox -l 30&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;&lt;br /&gt;To limit CPU usage of the process to 30% by using its PID, enter:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt; # cpulimit -p 1313 -l 30&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt; To find out PID of the process use any of the following:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;&lt;br /&gt;# ps aux | less&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;&lt;br /&gt;# ps aux | grep firefox&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;&lt;br /&gt;# pgrep -u nnv php-cgi&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;&lt;br /&gt;# pgrep lighttpd&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;&lt;br /&gt;You can also use absolute path name of the executable, enter:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt; # cpulimit -P /opt/firefox/firebox -l 30&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt; Where,&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;span style="font-family: arial;"&gt;     * -p : Process PID.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;     * -e : Process name.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;     * -l : percentage of CPU allowed from 0 to 100.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;     * -P: absolute path name of the executable program file.&lt;/span&gt;&lt;br /&gt; &lt;span style="font-family: arial;color:#888888;" &gt;&lt;br /&gt;Thanks,&lt;br /&gt;Nishith N.Vyas.&lt;br /&gt;Call : +91 9879597301&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8498867271087223494-4044095956751861342?l=nishithvyas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nishithvyas.blogspot.com/feeds/4044095956751861342/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishithvyas.blogspot.com/2010/09/limit-cpu-usage-per-process-in-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/4044095956751861342'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/4044095956751861342'/><link rel='alternate' type='text/html' href='http://nishithvyas.blogspot.com/2010/09/limit-cpu-usage-per-process-in-linux.html' title='Limit CPU Usage Per Process in Linux'/><author><name>Nishith Vyas.</name><uri>http://www.blogger.com/profile/05856051335663380707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-rCcpM26Gx8E/TfZEy30oUzI/AAAAAAAAAuo/ozJ-EeuoO_A/s220/DSC01834.1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8498867271087223494.post-2648270880368928404</id><published>2010-09-21T12:16:00.005+05:30</published><updated>2010-09-21T12:18:43.719+05:30</updated><title type='text'>Root Filesystem Definition.</title><content type='html'>&lt;p style="font-family: arial; color: rgb(0, 0, 0);"&gt;&lt;span style="font-size:100%;"&gt; The root filesystem is the &lt;a href="http://www.linfo.org/filesystem.html"&gt;filesystem&lt;/a&gt; that is contained on the same &lt;a href="http://www.linfo.org/partition.html"&gt;partition&lt;/a&gt; on which the &lt;a href="http://www.linfo.org/root_directory.html"&gt;root directory&lt;/a&gt; is located, and it is the filesystem on which all the other filesystems are mounted (i.e., logically attached to the system) as the system is &lt;a href="http://www.linfo.org/boot.html"&gt;booted up&lt;/a&gt; (i.e., started up).  &lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: arial; color: rgb(0, 0, 0);"&gt;&lt;span style="font-size:100%;"&gt; A partition is a logically independent section of a hard disk drive (HDD). A filesystem is a hierarchy of directories (also referred to as a &lt;a href="http://www.linfo.org/directory_tree.html"&gt;directory tree&lt;/a&gt;) that is used to organize files on a computer system. On &lt;a href="http://www.linfo.org/linuxdef.html"&gt;Linux&lt;/a&gt; and and other &lt;a href="http://www.linfo.org/unix-like.html"&gt;Unix-like&lt;/a&gt; &lt;a href="http://www.linfo.org/operating_systems_list.html"&gt;operating systems&lt;/a&gt;, the directories start with the root directory, which contains a series of subdirectories, each of which, in turn, contains further subdirectories, etc. A variant of this definition is the part of the entire hierarchy of directories (i.e., of the directory tree) that is located on a single partition or disk. &lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: arial; color: rgb(0, 0, 0);"&gt;&lt;span style="font-size:100%;"&gt; The exact contents of the root filesystem will vary according to the computer, but they will include the files that are necessary for booting the system and for bringing it up to such a state that the other filesystems can be mounted as well as tools for fixing a broken system and for recovering lost files from backups. The contents will include the root directory together with a minimal set of subdirectories and files including /boot, /dev, /etc, &lt;a href="http://www.linfo.org/bin.html"&gt;/bin&lt;/a&gt;, &lt;a href="http://www.linfo.org/sbin.html"&gt;/sbin&lt;/a&gt; and sometimes /tmp (for temporary files).  &lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: arial; color: rgb(0, 0, 0);"&gt;&lt;span style="font-size:100%;"&gt; Only the root filesystem is available when a system is brought up in single user mode. Single user mode is a way of booting a damaged system that has very limited capabilities so that repairs can be made to it. After repairs have been completed, the other filesystems that are located on different partitions or on different media can then be mounted on (i.e., attached to) the root filesystem in order to restore full system functionality. The directories on which they are mounted are called &lt;a href="http://www.linfo.org/mount_point.html"&gt;mount points&lt;/a&gt;. &lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: arial; color: rgb(0, 0, 0);"&gt;&lt;span style="font-size:100%;"&gt; The root filesystem should generally be small, because it contains critical files and a small, infrequently modified filesystem has a better chance of not becoming corrupted. A corrupted root filesystem will generally mean that the system becomes unbootable (i.e., unstartable) from the HDD, and must be booted by special means (e.g., from a boot floppy). &lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: arial; color: rgb(0, 0, 0);"&gt;&lt;span style="font-size:100%;"&gt; A filesystem can be mounted anywhere in the directory tree; it does not necessarily need to be mounted on the root filesystem. For example, it is possible (and very common) to have one filesystem mounted at a mount point on the root filesystem, and another filesystem mounted at a mount point contained in that filesystem. &lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8498867271087223494-2648270880368928404?l=nishithvyas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nishithvyas.blogspot.com/feeds/2648270880368928404/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishithvyas.blogspot.com/2010/09/root-filesystem-definition.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/2648270880368928404'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/2648270880368928404'/><link rel='alternate' type='text/html' href='http://nishithvyas.blogspot.com/2010/09/root-filesystem-definition.html' title='Root Filesystem Definition.'/><author><name>Nishith Vyas.</name><uri>http://www.blogger.com/profile/05856051335663380707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-rCcpM26Gx8E/TfZEy30oUzI/AAAAAAAAAuo/ozJ-EeuoO_A/s220/DSC01834.1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8498867271087223494.post-3047098146721734596</id><published>2010-05-15T13:53:00.008+05:30</published><updated>2010-05-15T14:20:38.119+05:30</updated><title type='text'>"rsync" configuration in Linux/Unix</title><content type='html'>&lt;span style="font-family: arial;"&gt;What "rsync" can do ?&lt;br /&gt;&lt;br /&gt;"rsync" can perform differential uploads and downloads (synchronization) of files across the network, transferring only data that has changed. The&lt;span style="font-weight: bold;"&gt; rsync remote-update protocol &lt;/span&gt;allows rsync to transfer just the differences between two sets of files across the network connection.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Hand's ON Practical &lt;/span&gt;:-&lt;br /&gt;&lt;br /&gt;Recommended : Install "rsync" on both linux or unix machines. (only for redhat/fedora)&lt;br /&gt;yum install rsync&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial; font-weight: bold;"&gt;Note: Always use rsync over ssh&lt;/span&gt; &lt;p style="font-family: arial;"&gt;Since rsync does not provide any security while transferring data it is recommended that you use rsync over ssh . This allows a secure remote connection. Now let us see some examples of rsync.&lt;/p&gt;&lt;span style="font-family: arial;font-size:100%;" &gt;&lt;span style="font-weight: bold;"&gt;Task&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;1&lt;/span&gt;: Copy file from a local computer to a remote server&lt;/span&gt;&lt;span style="font-family: arial;"&gt;. Copy file from "/data/office.tar.gz" to a remote server called "192.168.1.1"&lt;/span&gt;&lt;br /&gt; &lt;code style="font-family: arial;"&gt;&lt;br /&gt;$ rsync -v -e ssh &lt;/code&gt;&lt;span style="font-family: arial;"&gt;/data/office.tar.gz&lt;/span&gt;&lt;code style="font-family: arial;"&gt;   rohit@192.168.1.1:/home/nishith&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3 style="font-family: arial;"&gt;Task 2: &lt;span style="font-weight: normal;font-size:100%;" &gt;Copy file from a remote server to a local computer&lt;/span&gt;&lt;/h3&gt;&lt;span style="font-family: arial;"&gt;Copy file "/home/nishith/data.txt" from a remote server "192.168.1.1" to a local computer "/tmp" directory:&lt;/span&gt;&lt;br /&gt; &lt;code style="font-family: arial;"&gt;$ rsync -v -e ssh nishith@192.168.1.1:/home/nishith/data.txt  /tmp&lt;br /&gt;&lt;br /&gt;Give Password:&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;h3 style="font-family: arial;"&gt;Task: &lt;span style="font-weight: normal;font-size:100%;" &gt;Synchronize a local directory with a remote directory&lt;/span&gt;&lt;/h3&gt; &lt;p style="font-family: arial; text-align: left;"&gt;&lt;span style="font-size:100%;"&gt;&lt;code&gt;$&lt;span style="font-size:130%;"&gt; rsync -r -a -v -e "ssh -l nishith" --delete 192.168.1.1:/home/nishith/ /data &lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;h3 style="font-family: arial;"&gt;Task: Synchronize a remote directory with a local directory&lt;/h3&gt; &lt;p style="font-family: arial;"&gt;&lt;code&gt;$&lt;span style="font-size:130%;"&gt; rsync -r -a -v -e "ssh -l nishith" --delete /data 192.168.1.1:/home/nishith/ &lt;/span&gt;&lt;/code&gt;&lt;/p&gt; &lt;h3 style="font-family: arial;"&gt;Task: Synchronize a local directory with a remote rsync server&lt;/h3&gt; &lt;p style="font-family: arial;"&gt;&lt;code&gt;$ rsync -r -a -v --delete rsync://192.168.1.1/data /home/nishith/&lt;/code&gt;&lt;/p&gt;&lt;span style="font-family: arial;"&gt;&lt;br /&gt;"rsync" command common options.&lt;/span&gt; &lt;ul style="font-family: arial;"&gt;&lt;li&gt;&lt;strong&gt;--delete&lt;/strong&gt; : delete files that don't exist on sender (system)&lt;/li&gt;&lt;li&gt;&lt;strong&gt;-v&lt;/strong&gt; : Verbose (try &lt;strong&gt;-vv&lt;/strong&gt; for more detailed information)&lt;/li&gt;&lt;li&gt;&lt;strong&gt;-e "ssh options"&lt;/strong&gt; : specify the ssh as remote shell&lt;/li&gt;&lt;li&gt;&lt;strong&gt;-a&lt;/strong&gt; : archive mode&lt;/li&gt;&lt;li&gt;&lt;strong&gt;-r&lt;/strong&gt;  : recurse into directories&lt;/li&gt;&lt;li&gt;&lt;strong&gt;-z&lt;/strong&gt; : compress file data&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8498867271087223494-3047098146721734596?l=nishithvyas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nishithvyas.blogspot.com/feeds/3047098146721734596/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishithvyas.blogspot.com/2010/05/rsync-configuration-in-linuxunix.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/3047098146721734596'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/3047098146721734596'/><link rel='alternate' type='text/html' href='http://nishithvyas.blogspot.com/2010/05/rsync-configuration-in-linuxunix.html' title='&quot;rsync&quot; configuration in Linux/Unix'/><author><name>Nishith Vyas.</name><uri>http://www.blogger.com/profile/05856051335663380707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-rCcpM26Gx8E/TfZEy30oUzI/AAAAAAAAAuo/ozJ-EeuoO_A/s220/DSC01834.1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8498867271087223494.post-5162688035358883256</id><published>2010-05-15T13:49:00.004+05:30</published><updated>2010-05-15T13:53:12.763+05:30</updated><title type='text'>Use "Iptables" for ssh &amp; http connections per IP Address.</title><content type='html'>&lt;pre style="font-family: arial;"&gt;&lt;span style="font-weight: bold; color: rgb(0, 204, 204);"&gt;Allow "3 ssh" connections per client host:&lt;/span&gt;&lt;br /&gt;/sbin/iptables  -A INPUT -p tcp --syn --dport 22 -m connlimit --connlimit-above 3 -j REJECT&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 204, 204);"&gt;Allow "20 http" connections per IP (MaxClients is set to 60 in httpd.conf)&lt;/span&gt;&lt;br /&gt;/sbin/iptables -A INPUT -p tcp --syn --dport 80 -m connlimit --connlimit-above 20 -j REJECT --reject-with tcp-reset&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8498867271087223494-5162688035358883256?l=nishithvyas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nishithvyas.blogspot.com/feeds/5162688035358883256/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishithvyas.blogspot.com/2010/05/use-iptables-for-ssh-http-connections.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/5162688035358883256'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/5162688035358883256'/><link rel='alternate' type='text/html' href='http://nishithvyas.blogspot.com/2010/05/use-iptables-for-ssh-http-connections.html' title='Use &quot;Iptables&quot; for ssh &amp; http connections per IP Address.'/><author><name>Nishith Vyas.</name><uri>http://www.blogger.com/profile/05856051335663380707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-rCcpM26Gx8E/TfZEy30oUzI/AAAAAAAAAuo/ozJ-EeuoO_A/s220/DSC01834.1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8498867271087223494.post-6764832015180672430</id><published>2010-05-15T13:00:00.003+05:30</published><updated>2010-05-15T13:05:18.593+05:30</updated><title type='text'>Mount a remote folder through SSH</title><content type='html'>&lt;h2 style="font-family: arial;"&gt;&lt;span style="font-size:100%;"&gt;Subject : Mount a remote folder through SSH Service.&lt;br /&gt;&lt;/span&gt;&lt;/h2&gt; &lt;pre style="font-family: arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;"&gt;Command is&lt;/span&gt; :&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;$ sshfs user@server:/path/to/folder   /mount/point&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Syntax :&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;$sshfs nishith@192.168.1.21:/home/nishith   /data/&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt; &lt;p style="font-family: arial;"&gt;&lt;span style="font-size:100%;"&gt;You can mount a remote directory locally via SSH! You'll first need to install below programs however:&lt;/span&gt;&lt;/p&gt; &lt;ul style="font-family: arial;"&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;FUSE that allows to implement filesystems in userspace programs. (yum install fuse)&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;sshfs client that uses FUSE&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:100%;"&gt;&lt;code&gt;sftp&lt;/code&gt; (secure ftp - comes with OpenSSH, and is on your system already) to access the remote host.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt; &lt;p style="font-family: arial;"&gt;&lt;span style="font-size:100%;"&gt;And that's it, now you can use&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;&lt;code style="font-weight: bold;"&gt;sshfs&lt;/code&gt; to mount remote directories via SSH.&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: arial;"&gt;&lt;span style="font-size:100%;"&gt;To Unmount, use&lt;code&gt;&lt;/code&gt;:&lt;/span&gt;&lt;/p&gt; &lt;pre style="font-family: arial; color: rgb(255, 0, 0);"&gt;&lt;span style="font-size:100%;"&gt;fusermount -u "mount point"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Regards,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); font-weight: bold;"&gt;Nishith Vyas&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8498867271087223494-6764832015180672430?l=nishithvyas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nishithvyas.blogspot.com/feeds/6764832015180672430/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishithvyas.blogspot.com/2010/05/mount-remote-folder-through-ssh.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/6764832015180672430'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/6764832015180672430'/><link rel='alternate' type='text/html' href='http://nishithvyas.blogspot.com/2010/05/mount-remote-folder-through-ssh.html' title='Mount a remote folder through SSH'/><author><name>Nishith Vyas.</name><uri>http://www.blogger.com/profile/05856051335663380707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-rCcpM26Gx8E/TfZEy30oUzI/AAAAAAAAAuo/ozJ-EeuoO_A/s220/DSC01834.1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8498867271087223494.post-6793785386080514956</id><published>2010-05-03T08:54:00.004+05:30</published><updated>2010-05-03T08:58:39.957+05:30</updated><title type='text'>Login as a root from GUI RHEL6 BETA</title><content type='html'>&lt;p style="font-family: arial;"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;WARNING :- Its not at all good to login as root from GUI. It’ DANGEROUS. BUT if some one wants to know that how to login as a root from GUI then follow the instructions.&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;In RHEL6 Beta You cannot login as a root from GUI. By Default, Only Normal users are allowed in GUI Mode.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: arial;"&gt;&lt;span style="font-size:85%;"&gt;Follow these steps and you will able to login as a root from GUI on RHEL6 Beta.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: arial;"&gt;&lt;span style="font-size:85%;"&gt;Main Configurable File is "/etc/pam.d/".&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: arial;"&gt;&lt;span style="font-size:85%;"&gt;Have a look of below steps.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: arial;"&gt;&lt;span style="font-size:85%;"&gt;Open your Terminal from Applications -&gt; System Tools -&gt; Terminal&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: arial;"&gt;&lt;span style="font-size:85%;"&gt;Now Login as a root  from your terminal&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: arial;"&gt;&lt;span style="font-size:85%;"&gt;Step 1 :- [user@localhost]$ su – root&lt;br /&gt;Password:-&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: arial;"&gt;&lt;span style="font-size:85%;"&gt;Step 2:- Now go to your /etc/pam.d/ directory.&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: arial;"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;[root@localhost]# cd /etc/pam.d/&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: arial;"&gt;&lt;span style="font-size:85%;"&gt;Then first take a backup of gdm file&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: arial;"&gt;&lt;span style="font-size:85%;"&gt;cp gdm gdm.bkp ( always take backup if anything goes wrong you can correct it by original file)&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: arial;"&gt;&lt;span style="font-size:85%;"&gt;Step 3 :- Now Open gdm file in your favorite editor. I am using vi as my editor.&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: arial;"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;[root@localhost]#&lt;/strong&gt;  vi gdm&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: arial;"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;Find and Comment or remove this line into your gdm file&lt;br /&gt;auth required pam_succeed_if.so user != root quiet&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-family: arial;"&gt;&lt;span style="font-size:85%;"&gt;Step 4 :- Save &amp;amp; Exit From that File.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: arial;"&gt;&lt;span style="font-size:85%;"&gt;Step 5 :- Here is the additional file that you need to edit and that file name is gdm-password. Open "gdm-password" file in your favorite editor. I am using vi as my editor.&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: arial;"&gt;&lt;span style="font-size:85%;"&gt;Then first take a backup of gdm-password file&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: arial;"&gt;&lt;span style="font-size:85%;"&gt;cp gdm-password gdm-password.bkp ( always take backup if anything goes wrong you can correct it by original file)&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: arial;"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;[root@localhost]#&lt;/strong&gt;&lt;strong&gt; vi gdm-password&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="font-family: arial;"&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;Find and Comment or remove this line into your gdm file&lt;br /&gt;auth required pam_succeed_if.so user != root quiet&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;Step 6 :- Save &amp;amp; Exit from File. Now Logout and Try to Login as a root user. Now you are able to Login as a root user from GUI in RHEL6 Beta.&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt; &lt;/p&gt; &lt;p style="font-family: arial;"&gt;&lt;span style="font-size:85%;"&gt;Thanks,&lt;/span&gt;&lt;/p&gt;&lt;p style="font-family: arial;"&gt;&lt;span style="font-size:85%;"&gt;RHEL6 Beta Edition.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: arial;"&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/8498867271087223494-6793785386080514956?l=nishithvyas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nishithvyas.blogspot.com/feeds/6793785386080514956/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishithvyas.blogspot.com/2010/05/login-as-root-from-gui-rhel6-beta.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/6793785386080514956'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/6793785386080514956'/><link rel='alternate' type='text/html' href='http://nishithvyas.blogspot.com/2010/05/login-as-root-from-gui-rhel6-beta.html' title='Login as a root from GUI RHEL6 BETA'/><author><name>Nishith Vyas.</name><uri>http://www.blogger.com/profile/05856051335663380707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-rCcpM26Gx8E/TfZEy30oUzI/AAAAAAAAAuo/ozJ-EeuoO_A/s220/DSC01834.1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8498867271087223494.post-7276236460584881131</id><published>2010-03-25T14:50:00.004+05:30</published><updated>2010-03-25T15:05:06.408+05:30</updated><title type='text'>Mirroring entire directory with "mirrordir" command</title><content type='html'>&lt;span style="font-family: arial; color: rgb(255, 102, 0); font-weight: bold;"&gt;Note :- "mirrordir" setup has been tested on CentOS / RHEL 5x versions only. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-family: arial;"&gt;Introduction :&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;    mirrordir copies files that are different between the directories control and mirror to the directory mirror. Files whose modification times or sizes differ are copied. File permissions, ownerships, modification times, access times (only if --access-times is used), sticky bits, and device types are duplicated. Symlinks are duplicated without any translation. Symlink modification and access times (of the symlink itself, not the file it points to) are not preserved. Hard linked files are merely copied. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;&lt;span style="font-weight: bold;"&gt;mirrordir&lt;/span&gt; command supports strong stream cipher encryption and Diffie-Hellman key exchanges with several possible key sizes.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Hand's On Exercise :&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;yum install mirrordir&lt;br /&gt;&lt;br /&gt;Create a new directory named "backup"&lt;br /&gt;cd /&lt;br /&gt;mkdir backup&lt;br /&gt;&lt;br /&gt;Now, mirror existing data onto "backup" directory.For Example, We will take backup of "nishith" directory.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;mirrordir -v nishith nvbkup&lt;/span&gt;&lt;br /&gt;Output is as shown below.&lt;br /&gt;&lt;br /&gt;mirrordir: ---verbose--- copying file: /nvbkup/file5&lt;br /&gt;mirrordir: ---verbose--- copying file: /nvbkup/file1&lt;br /&gt;mirrordir: ---verbose--- copying file: /nvbkup/file2&lt;br /&gt;mirrordir: ---verbose--- copying file: /nvbkup/file3&lt;br /&gt;mirrordir: ---verbose--- copying file: /nvbkup/file4&lt;br /&gt;mirrordir: ---verbose--- all hardlinks located&lt;br /&gt;mirrordir: Total mirrored: 5kB&lt;br /&gt;&lt;br /&gt;If you rerun the "mirrordir" command, only the updated files are copied.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;&lt;span style="font-weight: bold;"&gt;mirrordir -v nishith nvbkup&lt;/span&gt;&lt;br /&gt;Output is as shown below.&lt;br /&gt;&lt;br /&gt;mirrordir: ---verbose--- copying file: /nvbkup/file6&lt;br /&gt;mirrordir: ---verbose--- copying file: /nvbkup/file1&lt;br /&gt;mirrordir: ---verbose--- all hardlinks located&lt;br /&gt;mirrordir: Total mirrored: 5kB&lt;br /&gt;&lt;br /&gt;For More Information, "man mirrordir"&lt;br /&gt;&lt;br /&gt;You can use "cron" script for automated backup of your data directories.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8498867271087223494-7276236460584881131?l=nishithvyas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nishithvyas.blogspot.com/feeds/7276236460584881131/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishithvyas.blogspot.com/2010/03/mirroring-entire-directory-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/7276236460584881131'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/7276236460584881131'/><link rel='alternate' type='text/html' href='http://nishithvyas.blogspot.com/2010/03/mirroring-entire-directory-with.html' title='Mirroring entire directory with &quot;mirrordir&quot; command'/><author><name>Nishith Vyas.</name><uri>http://www.blogger.com/profile/05856051335663380707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-rCcpM26Gx8E/TfZEy30oUzI/AAAAAAAAAuo/ozJ-EeuoO_A/s220/DSC01834.1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8498867271087223494.post-7838494741816444797</id><published>2010-02-09T14:03:00.009+05:30</published><updated>2010-10-08T08:08:40.382+05:30</updated><title type='text'></title><content type='html'>&lt;h2  style="text-align: center; margin-left: 40px; color: rgb(153, 51, 0); font-weight: bold;font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;HOWTO- Apache "httpd" authentication in Linux&lt;/span&gt;&lt;/h2&gt;&lt;br /&gt;&lt;span style=";font-family:arial;font-size:100%;"  &gt;Create a directory on "apache" document root,which is "/var/www/html"&lt;/span&gt;&lt;br /&gt;&lt;div  style="margin-left: 40px; color: rgb(0, 0, 0);font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;mkdir /var/www/html/nishith&lt;br /&gt;cd /var/www/html/nishith&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Create simple "index.html" page. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;eof&gt;&lt;/eof&gt;Now, Open "/etc/httpd/conf/httpd.conf" file and &lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;add/modify &lt;/span&gt;following lines.&lt;br /&gt;&lt;br /&gt;&lt;directory&gt;Options Indexes Includes &lt;/directory&gt;&lt;br /&gt;&lt;directory&gt;        AllowOverride AuthConfig &lt;/directory&gt;&lt;br /&gt;&lt;directory&gt;        &lt;/directory&gt;&lt;br /&gt;&lt;directory&gt;Create ".htaccess" file in "/var/www/html/nishith/.htaccess" &amp;amp; add below lines.&lt;br /&gt; AuthType Basic&lt;br /&gt; AuthName "My Private Page"&lt;br /&gt; AuthUserFile /etc/httpd/conf/.htaccess&lt;br /&gt; require valid-user&lt;br /&gt;&lt;/directory&gt;&lt;br /&gt;&lt;br /&gt;Now, Create/Add new user to access&lt;span style="font-weight: bold;"&gt; "/var/www/html/nishith"&lt;/span&gt; page&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;htpasswd  -mc  /etc/httpd/conf/htpasswd  nishith &lt;/span&gt;&lt;br /&gt;New password:&lt;br /&gt;Re-type new password:&lt;br /&gt;Adding password for user nishith&lt;br /&gt;&lt;br /&gt;View the content of "htpasswd" file&lt;br /&gt;cat /etc/httpd/conf/htpasswd&lt;br /&gt;nishith:$apr1$akwCX...$c3uo.k4oHIQNzlSEDQYMh0&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Note&lt;/span&gt;:-&lt;br /&gt;To add few more user we should use only -m, the -c option will create the file always, but as the file exist so do not use -cm option once the file was created.&lt;br /&gt;&lt;br /&gt;htpasswd -m /etc/httpd/conf/htpasswd alex&lt;br /&gt;New password:&lt;br /&gt;Re-type new password:&lt;br /&gt;Adding password for user alex&lt;br /&gt;&lt;br /&gt;cat /etc/httpd/conf/htpasswd&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;nishith:$apr1$akwCX...$c3uo.k4oHIQNzlSEDQYMh0 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;alex:$apr1$70g94/..$m8QyD4gQisd265nLW7pbR0 &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Finally, access your webpage in your browser by typing,&lt;br /&gt;http://ip address/nishith           (from remote pc)&lt;br /&gt;&lt;br /&gt;OR&lt;br /&gt;&lt;br /&gt;http://localhost/nishith                   ( from local pc only)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 102, 255);"&gt;That's it.&lt;/span&gt;&lt;br /&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/8498867271087223494-7838494741816444797?l=nishithvyas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nishithvyas.blogspot.com/feeds/7838494741816444797/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishithvyas.blogspot.com/2010/02/howto-apache-httpd-authentication-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/7838494741816444797'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/7838494741816444797'/><link rel='alternate' type='text/html' href='http://nishithvyas.blogspot.com/2010/02/howto-apache-httpd-authentication-in.html' title=''/><author><name>Nishith Vyas.</name><uri>http://www.blogger.com/profile/05856051335663380707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-rCcpM26Gx8E/TfZEy30oUzI/AAAAAAAAAuo/ozJ-EeuoO_A/s220/DSC01834.1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8498867271087223494.post-3087068760678810160</id><published>2010-02-09T13:43:00.007+05:30</published><updated>2010-02-09T13:55:49.928+05:30</updated><title type='text'>Increase "swap" space in Linux</title><content type='html'>&lt;span style="font-family: arial;"&gt;&lt;span style="font-weight: bold; color: rgb(255, 153, 0);"&gt;How to increase "swap" memory in Linux.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1) Create a new hard drive partition. I will use&lt;span style="font-weight: bold;"&gt; "/dev/sda"&lt;/span&gt; for this practical.&lt;br /&gt;&lt;br /&gt;To verify your hard drive identity, use &lt;span style="font-weight: bold;"&gt;"fdisk -l" &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2) Follow these steps.&lt;br /&gt;&lt;br /&gt;- fdisk /dev/sda&lt;br /&gt;Press "n" for new partition.&lt;br /&gt;You'll get First Cylinder Name :- Press Enter&lt;br /&gt;You'll get Last Cylinder Name :- type "+500M"                     (Adding 500MB as a swap space)&lt;br /&gt;&lt;br /&gt;- Press "t" to assign "swap" id for a newly created partition. Here,redhat uses "82" as a swap id.&lt;br /&gt;- Press "w" to write changes to disk &amp;amp; exit.&lt;br /&gt;&lt;br /&gt;3) Use "partprobe" command&lt;br /&gt;&lt;br /&gt;4) mkfs.ext3 /dev/sda6                  Making File System on a newly created partition,i.e.&lt;span style="font-weight: bold;"&gt; /dev/sda6&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5) mkswap /dev/sda6                     Make this partition as a "swap"&lt;br /&gt;&lt;br /&gt;6) swapon /dev/sda6                      Enable "swap" partition.&lt;br /&gt;&lt;br /&gt;7) Use "top" command to check the total memory size.&lt;br /&gt;&lt;br /&gt;8) Make permanent entry of "swap" space during reboot, Write a new line in "/etc/fstab"&lt;br /&gt;     /dev/sda6    swap    swap    defaults   0   0&lt;br /&gt;&lt;br /&gt;save &amp;amp; exit (:wq)&lt;br /&gt;&lt;br /&gt;9) Reboot Linux &amp;amp; Check.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(153, 153, 153);"&gt;That's it&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8498867271087223494-3087068760678810160?l=nishithvyas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nishithvyas.blogspot.com/feeds/3087068760678810160/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishithvyas.blogspot.com/2010/02/increase-swap-space-in-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/3087068760678810160'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/3087068760678810160'/><link rel='alternate' type='text/html' href='http://nishithvyas.blogspot.com/2010/02/increase-swap-space-in-linux.html' title='Increase &quot;swap&quot; space in Linux'/><author><name>Nishith Vyas.</name><uri>http://www.blogger.com/profile/05856051335663380707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-rCcpM26Gx8E/TfZEy30oUzI/AAAAAAAAAuo/ozJ-EeuoO_A/s220/DSC01834.1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8498867271087223494.post-2593368757011221537</id><published>2010-02-09T09:02:00.006+05:30</published><updated>2010-02-09T12:28:02.671+05:30</updated><title type='text'>Software RAID in Linux (RHEL,CentOS)</title><content type='html'>&lt;span style="font-weight: bold;font-family:arial;" &gt;This RAID Practical is tested on RHEL &amp;amp; CentOS 5x&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="font-weight: bold;"&gt;Remember&lt;/span&gt; :-&lt;br /&gt;For RAID 5, minimum 3 physical partitions.&lt;br /&gt;For RAID 0, minimum 2 physical partitions.(Disk data striping across both drives)&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:arial;"&gt;For RAID 1, minimum 2 physical partitions.(Disk Mirroring)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:arial;"&gt;* Use &lt;span style="font-weight: bold;"&gt;fdisk /dev/sd*&lt;/span&gt; OR &lt;span style="font-weight: bold;"&gt;fdisk /dev/hd*&lt;/span&gt; command to create more then two (whatever you need) partitions. &lt;/span&gt;&lt;span style="font-family:arial;"&gt;(where sd*/hd* means sda,sdb,hda,hdb......)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: bold;"&gt;(sd : SATA/SCSI Drive ; hd : IDE Drive)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;* To check your drive identity, use "fdisk -l" &amp;amp; check the partition identity.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:arial;"&gt;I am taking "sda" as physical drive &amp;amp; creating 4 partitions. So, the command will be&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;fdisk /dev/sda&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;br /&gt;(Note : Create 4 partitions, 250MB each for practical purpose only,which is necessary to create data redundancy. In real world,you can assign whatever size available in your server/desktop)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Press "n" for new partition.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Press "t" to change the partition id.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;Select the partition to want to assign "RAID" id.&lt;/span&gt;&lt;br /&gt;Press "L" to select from the available list. In our case, select &lt;span style="font-weight: bold;"&gt;"fd"&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Press "w" to write changes to disk &amp;amp; exit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;* use &lt;span style="font-weight: bold;"&gt;"partprobe"&lt;/span&gt; command&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Now, to create RAID 5,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="font-weight: bold;"&gt;mdadm -C /dev/md0 -a yes -l 5 -n 4 /dev/sda{2,3,4,5}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;(&lt;span style="font-weight: bold;"&gt; -l&lt;/span&gt; means RAID Level which is 5 here)&lt;br /&gt;( &lt;span style="font-weight: bold;"&gt;-n&lt;/span&gt; means number of physical drives,which is 4 here)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="font-weight: bold;"&gt;mkfs.ext3 /dev/md0    &lt;/span&gt;        (To make file system)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="font-weight: bold;"&gt;mdadm --detail /dev/md0&lt;/span&gt;           (To check whether RAID has created or not)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Create a directory,i.e.&lt;span style="font-weight: bold;"&gt; "data1"&lt;/span&gt; on "/" partition.&amp;amp; mount &lt;span style="font-weight: bold;"&gt;/dev/md0&lt;/span&gt; on it.  The commnd is&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;mount /dev/md0 /data&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Finally, mount RAID drives permanently during Linux Reboot,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;/etc/fstab, make following entry.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:arial;" &gt;/dev/md0     /data    ext3    defaults    0   0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 255, 255);font-family:arial;" &gt;That's it.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8498867271087223494-2593368757011221537?l=nishithvyas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nishithvyas.blogspot.com/feeds/2593368757011221537/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishithvyas.blogspot.com/2010/02/software-raid-in-linux-rhelcentos.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/2593368757011221537'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/2593368757011221537'/><link rel='alternate' type='text/html' href='http://nishithvyas.blogspot.com/2010/02/software-raid-in-linux-rhelcentos.html' title='Software RAID in Linux (RHEL,CentOS)'/><author><name>Nishith Vyas.</name><uri>http://www.blogger.com/profile/05856051335663380707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-rCcpM26Gx8E/TfZEy30oUzI/AAAAAAAAAuo/ozJ-EeuoO_A/s220/DSC01834.1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8498867271087223494.post-8473115460833028187</id><published>2010-02-05T14:34:00.000+05:30</published><updated>2010-02-05T15:06:56.183+05:30</updated><title type='text'>"User Quota" in Linux</title><content type='html'>&lt;span style="font-family: arial;"&gt;Please Note:&lt;br /&gt;I have tested this practical on RedHat/CentOS 5x &amp;amp; Fedora 7 linux platform.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 153);"&gt;This article will show you how to create "User Quota"  in Linux.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1) First,Create a user named "eric" &amp;amp; give password.(You can create with any name you like)&lt;br /&gt;    useradd eric&lt;br /&gt;    passwd eric&lt;br /&gt;&lt;br /&gt;2) Open "/etc/fstab" file to enable userquota on your system&lt;br /&gt;   vim  /etc/fstab&lt;br /&gt;&lt;br /&gt;3) Write down below word,indicated in "bold red"&lt;br /&gt;   /home/  swap  ext3  default,&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;usrquota&lt;/span&gt; 0 0&lt;br /&gt;  Save &amp;amp; Exit (:wq)&lt;br /&gt;&lt;br /&gt;4) Then, use below command to activate "User Quota"&lt;br /&gt;    mount -o,remount /home&lt;br /&gt;&lt;br /&gt;5) Now, follow all command step by step given below.&lt;br /&gt;&lt;br /&gt;- quotacheck -cvu /home&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: arial;"&gt;-  cd to "/home/" directory &amp;amp; you'll find "aquota.user" file. If not found, create it manually.&lt;br /&gt;    touch auota.user&lt;br /&gt;- quotaon /home&lt;br /&gt;- edquota -u &lt;user name&gt; ; in our case,the name is "eric"&lt;br /&gt;It'll open a file,which shown all numeric "0" entries.&lt;br /&gt;&lt;br /&gt;Now, Please understand the quota f&lt;/span&gt;&lt;span style="font-family: arial;"&gt;ile give below.&lt;br /&gt;&lt;br /&gt;/home mount point   soft  hard   soft  hard&lt;br /&gt;/dev/sda6 0               0       0         0      0&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Note :&lt;/span&gt; First "soft &amp;amp; hard" columns are used to restrict quota in "file size"&lt;br /&gt;             For Example User can't create file more then 100KB.&lt;br /&gt; &lt;br /&gt;            &lt;/span&gt;&lt;span style="font-family: arial;"&gt;Second "soft &amp;amp; hard" columns are used to restrict quota in "file numbers"&lt;br /&gt;             For Example User can't create file more then 70.&lt;br /&gt;&lt;br /&gt;Practically,it can be implemented as given below&lt;br /&gt;/dev/sda6 0 30 100 50 70&lt;br /&gt;&lt;br /&gt;100 = File Max. size 100 KB Only.&lt;br /&gt;70 = File Max. number 70 Only.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Note :&lt;/span&gt;&lt;br /&gt;If user is exceeding soft limit, the Quota System of Linux will send a warning message to "eric" user.&lt;br /&gt;&lt;br /&gt;Finally, use "mount -a" command.&lt;br /&gt;&lt;br /&gt;Login with "eric" user &amp;amp; try to create file in it's home directory,which is "/home/eric"&lt;br /&gt;&lt;br /&gt;dd  if=/dev/zero  of=/home/eric/example.txt  bs=100 count=70&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To check the quota of "eric" user; use&lt;br /&gt;repquota  /home&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: arial;"&gt;&lt;br /&gt;That's it.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8498867271087223494-8473115460833028187?l=nishithvyas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nishithvyas.blogspot.com/feeds/8473115460833028187/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishithvyas.blogspot.com/2010/02/user-quota-in-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/8473115460833028187'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/8473115460833028187'/><link rel='alternate' type='text/html' href='http://nishithvyas.blogspot.com/2010/02/user-quota-in-linux.html' title='&quot;User Quota&quot; in Linux'/><author><name>Nishith Vyas.</name><uri>http://www.blogger.com/profile/05856051335663380707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-rCcpM26Gx8E/TfZEy30oUzI/AAAAAAAAAuo/ozJ-EeuoO_A/s220/DSC01834.1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8498867271087223494.post-1729754636836275636</id><published>2010-02-04T13:07:00.000+05:30</published><updated>2010-02-04T13:22:21.685+05:30</updated><title type='text'>Squid Guard Configuration.</title><content type='html'>&lt;span style="font-weight: bold;"&gt;1. Unpack the source&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;tar xvzf squidGuard-1.2.1.tar.gz&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2. Compiling&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Let's assume it is squidGuard-1.2.1 we are trying to install:&lt;br /&gt;cd squidGuard-1.2.1&lt;br /&gt;./configure&lt;br /&gt;make&lt;br /&gt;&lt;br /&gt;If no errors occurred squidGuard is now installed in /usr/local/. There are a couple of option you can use when running ./configure. For example:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;Installing in a different location &lt;/span&gt;&lt;br /&gt; &lt;br /&gt;./configure --prefix=/some/other/directory&lt;br /&gt;BerkeleyDB not in /usr/local/BerkeleyDB installed&lt;br /&gt;&lt;br /&gt;./configure  --with-db=/directory/of/BerkeleyDB/installation&lt;br /&gt;When installed from the sources the BerkeleyDB will be located in /usr/local/BerkeleyDBx.y with x.y denoting the version number.&lt;br /&gt;Annotation: Make sure that the shared library of your BerkeleyDB installation is known by your system (check /etc/ld.so.conf, add your BerkeleyDB library path if it is not already there and run ldconfig).&lt;br /&gt;&lt;br /&gt;See all ./configure options&lt;br /&gt;./configure --help&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3. Installing&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;  &lt;/span&gt; make install&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;4. Installing the blacklists&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Download the “Black List” file from &lt;span style="font-weight: bold;"&gt;http://www.squidguard.org/blacklists.html&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Copy your blacklists into the desired blacklist directory (default: /usr/local/squidGuard/db) and unpack them. In the table below we assume that the default location is used. Make sure that you have the proper permissions to write to that directory.&lt;br /&gt;&lt;br /&gt;cp /path/to/your/blacklist.tar.gz /usr/local/squidGuard/db cd /usr/local/squidGuard/db gzip -d blacklist.tar.gz tar xfv blacklist.tar&lt;br /&gt;&lt;br /&gt;Now the blacklists should be ready to use.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Congratulation.!!!!&lt;/span&gt;&lt;br /&gt;You have just completed the installation of squidGuard. The next step is to configure the software according to your needs. After this you should verify your installation before you finally modify your squid configuration to work with squidGuard.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Basic Configuration of squidGuard &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Once SquidGuard is successfully installed, you want to configure the software according to your needs. A sample configuration has been installed in the default directory  /usr/local/squidGuard (or whatever directory you pointed your installation to).Below you find three examples for the basic configuration of SquidGuard.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;1. Most simple configurationMost simple config uration: one category, one rule for all &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;CONFIG FILE FOR SQUIDGUARD&lt;br /&gt;***************************************************************************&lt;br /&gt;dbhome /usr/local/squidGuard/db&lt;br /&gt;logdir /usr/local/squidGuard/logs&lt;br /&gt;dest porn {       &lt;br /&gt;   domainlist porn/domains       &lt;br /&gt;urllist porn/urls       &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;acl {       &lt;br /&gt;default {               &lt;br /&gt;pass !porn all               &lt;br /&gt;redirect http://localhost/block.html&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;***************************************************************************&lt;br /&gt;Make always sure that the very first line of your squidGuard.conf is not empty!The entries have the following meaning:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;dbhome = &lt;/span&gt;Location of the blacklists&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;logdir =&lt;/span&gt; Location of the logfiles&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;dest =&lt;/span&gt; Definition of a category to block. You can enter the domain and url file along with a regular expression list (talk about regular expressions later on).&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;acl =&lt;/span&gt; The actual blocking defintion. In our example only the default is displayed. You can have more than one acl in place. The category porn you defined in dest is blocked by the expression !porn. You have to add the identifier all after the blocklist or your users will not be able to surf anyway.The redirect directive is madatory! You must tell SquidGuard which page to display instead of the blocked one.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;2.  Choosing more than one category to block &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;First you define your categories. Just like you did above for porn. For example:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Defining three categories for blocking &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;dest adv {       &lt;br /&gt;   domainlist      adv/domains       &lt;br /&gt;   urllist         adv/urls&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;dest porn {       &lt;br /&gt;   domainlist      porn/domains       &lt;br /&gt;   urllist         porn/urls&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;dest warez {       &lt;br /&gt;   domainlist      warez/domains       &lt;br /&gt;   urllist         warez/urls&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Now your acl looks like that:&lt;br /&gt;acl {       &lt;br /&gt;   default {&lt;br /&gt;      pass    !adv !porn !warez all               &lt;br /&gt;      redirect http://localhost/block.html&lt;br /&gt;      }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;3. White listing&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Sometimes there is a demand to allow specific URLs and domains although they are part of the blocklists for a good reason. In this case you want to whitelist these domains and URLs.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Defining a whitelist &lt;/span&gt;&lt;br /&gt;dest white {       &lt;br /&gt;   domainlist      white/domains       &lt;br /&gt;   urllist         white/urls&lt;br /&gt;}&lt;br /&gt;acl {       &lt;br /&gt;default {&lt;br /&gt;pass    white !adv !porn !warez all               &lt;br /&gt;redirect http://localhost/block.html&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;In this example we assumed that your whitelists are located in a directory called white whithin the blacklist directory you specified with dbhome.&lt;br /&gt;&lt;br /&gt;Make sure that your white identifier is the first in the row of the pass directive. It must not have an exclamation mark in front (otherwise all entries belonging to white will be blocked, too).&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;4. Initializing the blacklists&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Before you start up your squidGuard you should initialize the blacklists i.e. convert them from the textfiles to db files. Using the db format will speed up the checking and blocking.&lt;br /&gt;The initialization is performed by the following command:&lt;br /&gt;Initializing the b lacklists&lt;br /&gt;* squidGuard -C all&lt;br /&gt;* chown -R &lt;squiduser&gt; /usr/local/squidGuard/db/*&lt;br /&gt;&lt;br /&gt;The second command ensures that your squid is able to access the blacklists. Please for &lt;squiduser&gt; the uid of your squid.&lt;br /&gt;Depending on the size of your blacklists and the power of your computer this may take a while. If anything is running fine you should see something like the following output in your logfile:&lt;br /&gt;&lt;br /&gt;2006-01-29 12:16:14 [31977] squidGuard 1.2.0p2 started (1138533256.959)2006-01-29 12:16:14 [31977] db update done2006-01-29 12:16:14 [31977] squidGuard stopped (1138533374.571)&lt;br /&gt;&lt;br /&gt;If you look into the directories holding the files domains and urls you see that additional files have been created: domains.db and urls.db. These new files must not be empty!&lt;br /&gt;Only those files are converted you specified to block or whitelist in your squidGuard.conf file.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Verification of your squidGuard Configuration&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now that you have installed and configured your squidGuard you just check a couple of things before going online.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 0, 204); font-weight: bold;"&gt;1. Permissions&lt;/span&gt;&lt;br /&gt;Ensure that the blacklist and db files belong to your squid user. If squid cannot access (or modify) them blocking will not work.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 204);"&gt;2. SquidGuard dry-run&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To verify that your configuration is working run the following command (changed to reflect your configuration):&lt;br /&gt;Dry-run squidGuard&lt;br /&gt;echo "http://www.example.com 10.0.0.1/ - - GET" | squidGuard -c /tmp/test.cfg -d&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 204);"&gt;3.&lt;/span&gt;&lt;span style="color: rgb(102, 0, 204);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt; If the redirector works properly you should see the redirection URL for the blocked site. For sites not being part of your blacklists the output should end with:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;2007-03-25 16:18:05 [30042] squidGuard ready for requests (1174832285.085)2007-03-25 16:18:05 [30042] squidGuard stopped (1174832285.089)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(102, 0, 204);"&gt;4. &lt;/span&gt;Some remarks about the different entries of the echoed line:&lt;br /&gt;&lt;br /&gt;* The first entry is the URL you want to test.&lt;br /&gt;* The second entry is the client IP address. If you configured access control based on IP &lt;br /&gt;   addresses make sure to test allowed and not allowed IP addresses to ensure proper working.&lt;br /&gt;* In the third entry (the first - ) you can specify a username. This is only of importance if you&lt;br /&gt;   have access control based on user names. Make sure to check different names with different&lt;br /&gt;   access to verify your configuration.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 51, 0);"&gt;Finalizing the installation by configuring squid&lt;/span&gt;&lt;br /&gt;If everything is working properly add the following line to your squid.conf (assuming that your squidGuard is installed in &lt;span style="font-weight: bold;"&gt;/usr/local; &lt;/span&gt;make sure to change the paths to match your installation accordingly):&lt;br /&gt;&lt;br /&gt;url_rewrite_program /usr/local/bin/squidGuard -c /usr/local/squidGuard/squidGuard.conf&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 51); font-weight: bold;"&gt;EOF&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/squiduser&gt;&lt;/squiduser&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8498867271087223494-1729754636836275636?l=nishithvyas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nishithvyas.blogspot.com/feeds/1729754636836275636/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishithvyas.blogspot.com/2010/02/squid-guard-configuration.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/1729754636836275636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/1729754636836275636'/><link rel='alternate' type='text/html' href='http://nishithvyas.blogspot.com/2010/02/squid-guard-configuration.html' title='Squid Guard Configuration.'/><author><name>Nishith Vyas.</name><uri>http://www.blogger.com/profile/05856051335663380707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-rCcpM26Gx8E/TfZEy30oUzI/AAAAAAAAAuo/ozJ-EeuoO_A/s220/DSC01834.1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8498867271087223494.post-390485778745428540</id><published>2010-02-03T12:41:00.001+05:30</published><updated>2010-02-03T12:41:49.834+05:30</updated><title type='text'>Who Created Linux</title><content type='html'>In 1991 Linus Torvalds was studying UNIX at a university, where he was using a special educational experimental purpose operating system called Minix (a small version of UNIX to be used in the academic environment). However, Minix had its limitations and Linus felt he could create something better. Therefore, he developed his own version of Minix, known as Linux. Linux was Open Source right from the start.&lt;br /&gt;&lt;br /&gt;Linux is a kernel developed by Linus. The kernel was bundled with system utilities and libraries from the GNU project to create a usable operating system. Sometimes people refer to Linux as GNU/Linux because it has system utilities and libraries from the GNU project. Linus Torvalds is credited for creating the Linux Kernel, not the entire Linux operating system[1].&lt;br /&gt;&lt;br /&gt;Linux distribution = Linux kernel + GNU system utilities and libraries + Installation scripts + Management utilities etc.&lt;br /&gt;&lt;br /&gt;Please note that Linux is now packaged for different uses in Linux distributions, which contain the sometimes modified kernel along with a variety of other software packages tailored to different requirements such as:&lt;br /&gt;&lt;br /&gt;   1. Server&lt;br /&gt;   2. Desktop&lt;br /&gt;   3. Workstation&lt;br /&gt;   4. Routers&lt;br /&gt;   5. Various embedded devices&lt;br /&gt;   6. Mobile phones&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8498867271087223494-390485778745428540?l=nishithvyas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nishithvyas.blogspot.com/feeds/390485778745428540/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishithvyas.blogspot.com/2010/02/who-created-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/390485778745428540'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/390485778745428540'/><link rel='alternate' type='text/html' href='http://nishithvyas.blogspot.com/2010/02/who-created-linux.html' title='Who Created Linux'/><author><name>Nishith Vyas.</name><uri>http://www.blogger.com/profile/05856051335663380707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-rCcpM26Gx8E/TfZEy30oUzI/AAAAAAAAAuo/ozJ-EeuoO_A/s220/DSC01834.1.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8498867271087223494.post-3224187951648214961</id><published>2010-02-03T12:34:00.001+05:30</published><updated>2010-02-03T12:34:43.366+05:30</updated><title type='text'></title><content type='html'>You can use Linux as a server operating system or as a stand alone operating system on your PC. As a server operating system it provides different services/network resources to a client. A server operating system must be:&lt;br /&gt;&lt;br /&gt;    * Stable&lt;br /&gt;    * Robust&lt;br /&gt;    * Secure&lt;br /&gt;    * High performance &lt;br /&gt;&lt;br /&gt;Linux offers all of the above characteristics plus it is free and open source. It is an excellent operating system for:&lt;br /&gt;&lt;br /&gt;    * Desktop computer&lt;br /&gt;    * Web server&lt;br /&gt;    * Software development workstation&lt;br /&gt;    * Network monitoring workstation&lt;br /&gt;    * Workgroup server&lt;br /&gt;    * Killer network services such as DHCP, Firewall, Router, FTP, SSH, Mail, Proxy, Proxy Cache server etc.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8498867271087223494-3224187951648214961?l=nishithvyas.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://nishithvyas.blogspot.com/feeds/3224187951648214961/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://nishithvyas.blogspot.com/2010/02/you-can-use-linux-as-server-operating.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/3224187951648214961'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8498867271087223494/posts/default/3224187951648214961'/><link rel='alternate' type='text/html' href='http://nishithvyas.blogspot.com/2010/02/you-can-use-linux-as-server-operating.html' title=''/><author><name>Nishith Vyas.</name><uri>http://www.blogger.com/profile/05856051335663380707</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-rCcpM26Gx8E/TfZEy30oUzI/AAAAAAAAAuo/ozJ-EeuoO_A/s220/DSC01834.1.JPG'/></author><thr:total>0</thr:total></entry></feed>
