<?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-818886522097136715</id><updated>2011-11-28T06:33:46.715+05:30</updated><title type='text'>Linux Pandits</title><subtitle type='html'>HI Guys, 

My blog is to help all the Linux Administrators all around the world ....I will update my blogs everyday with new configuration thus making each and every Linux Administrators life easy</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://linuxpandits.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://linuxpandits.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>LINUX PANDIT</name><uri>http://www.blogger.com/profile/14779340728984773352</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>18</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-818886522097136715.post-7994915477640326602</id><published>2008-01-29T17:34:00.001+05:30</published><updated>2008-01-29T17:34:52.188+05:30</updated><title type='text'>Find Other Web Sites Hosted on a Web Server</title><content type='html'>Came across a amazing site &lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.yougetsignal.com/tools/web-sites-on-web-server/"&gt;YouGetSignal.com - Find Other Web Sites Hosted on a Web Server&lt;/a&gt; &lt;br /&gt;&lt;p style="text-align: right; font-size: 8px"&gt;Blogged with &lt;a href="http://www.flock.com/blogged-with-flock" title="Flock" target="_new"&gt;Flock&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/818886522097136715-7994915477640326602?l=linuxpandits.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxpandits.blogspot.com/feeds/7994915477640326602/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=818886522097136715&amp;postID=7994915477640326602' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/7994915477640326602'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/7994915477640326602'/><link rel='alternate' type='text/html' href='http://linuxpandits.blogspot.com/2008/01/find-other-web-sites-hosted-on-web.html' title='Find Other Web Sites Hosted on a Web Server'/><author><name>LINUX PANDIT</name><uri>http://www.blogger.com/profile/14779340728984773352</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-818886522097136715.post-3552039031928321322</id><published>2008-01-29T17:08:00.001+05:30</published><updated>2008-01-29T17:08:39.976+05:30</updated><title type='text'>CHROOT command</title><content type='html'>The chroot command changes the 'root' to another location. This command is used to create a sandbox for the users. Once a new root is declared via chroot, any reference that a user makes to '/' will resolve to the new directory. &lt;br /&gt;&lt;br /&gt;This is a very good idea to restrict users working under the real root filesystem. &lt;br /&gt;&lt;br /&gt;Eg:- chroot /home/sushanth&lt;br /&gt;&lt;br /&gt;This command changes the root of my server to /home/sushanth. &lt;br /&gt;&lt;br /&gt;This means &lt;br /&gt;&lt;br /&gt;vi /test &lt;br /&gt;&lt;br /&gt;will cause test file to open under /home/sushanth&lt;br /&gt;&lt;p style="text-align: right; font-size: 8px"&gt;Blogged with &lt;a href="http://www.flock.com/blogged-with-flock" title="Flock" target="_new"&gt;Flock&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/818886522097136715-3552039031928321322?l=linuxpandits.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxpandits.blogspot.com/feeds/3552039031928321322/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=818886522097136715&amp;postID=3552039031928321322' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/3552039031928321322'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/3552039031928321322'/><link rel='alternate' type='text/html' href='http://linuxpandits.blogspot.com/2008/01/chroot-command.html' title='CHROOT command'/><author><name>LINUX PANDIT</name><uri>http://www.blogger.com/profile/14779340728984773352</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-818886522097136715.post-6137345102340332982</id><published>2008-01-29T16:54:00.001+05:30</published><updated>2008-01-29T16:54:37.931+05:30</updated><title type='text'>To determine if a new PCI or USB hardware has been added in the system</title><content type='html'>If my goal is to see if a PCI or USB piece of hardware has been detected, you may be able to use the following commands&lt;br /&gt;&lt;br /&gt;lspci and lsusb commands &lt;br /&gt;&lt;br /&gt;Cheers !&lt;br /&gt;   &lt;p style="text-align: right; font-size: 8px"&gt;Blogged with &lt;a href="http://www.flock.com/blogged-with-flock" title="Flock" target="_new"&gt;Flock&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/818886522097136715-6137345102340332982?l=linuxpandits.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxpandits.blogspot.com/feeds/6137345102340332982/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=818886522097136715&amp;postID=6137345102340332982' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/6137345102340332982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/6137345102340332982'/><link rel='alternate' type='text/html' href='http://linuxpandits.blogspot.com/2008/01/to-determine-if-new-pci-or-usb-hardware.html' title='To determine if a new PCI or USB hardware has been added in the system'/><author><name>LINUX PANDIT</name><uri>http://www.blogger.com/profile/14779340728984773352</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-818886522097136715.post-6744308488872696511</id><published>2008-01-28T14:27:00.000+05:30</published><updated>2008-01-28T15:18:38.775+05:30</updated><title type='text'>Password protecting webpages</title><content type='html'>Our task is to control the access the particular website. &lt;br /&gt;&lt;br /&gt;1. cd /etc/httpd/conf&lt;br /&gt;&lt;br /&gt;2. vi httpd.conf&lt;br /&gt;&lt;br /&gt;3. Change the line that says &lt;br /&gt;   AllowOverride None&lt;br /&gt;   to &lt;br /&gt;   AllowOverride AuthConfig&lt;br /&gt;&lt;br /&gt;4. While doing the above changes on the httpd.conf file be sure not to change the first ocurance change the second ocurrance. &lt;br /&gt;&lt;br /&gt;5. Before doing any changes take a backup of httpd.conf file &lt;br /&gt;&lt;br /&gt;6. You should now identify the folders under your webserver you would like to protect. &lt;br /&gt;&lt;br /&gt;7. On a Linux server the actual directory path would be &lt;br /&gt;   /var/www/html/test&lt;br /&gt;   So on the web browser it would be &lt;br /&gt;   http://www.test.com/test&lt;br /&gt;&lt;br /&gt;8. Once you identify which directory you will have to protect then inside that directory create one file .htaccess&lt;br /&gt;&lt;br /&gt;9. vi .htaccess&lt;br /&gt;   AuthName "Login to the website"&lt;br /&gt;   AuthType Basic&lt;br /&gt;   AuthUserFile /var/www/html/test/.htpasswd&lt;br /&gt;   Require user sushanth&lt;br /&gt;&lt;br /&gt;10. Note that AuthName requires quotes and whatever is in the quotes will be displayed on the login window. &lt;br /&gt;&lt;br /&gt;11. Also be sure to include the user login names of the people who want to access the web site, next to the Require user line. In the above example is added my name. &lt;br /&gt;&lt;br /&gt;12. Now create .htpasswd file in the same folder, in my case under test. &lt;br /&gt;&lt;br /&gt;13. cd /var/www/html/test&lt;br /&gt;&lt;br /&gt;14. htpasswd -cmb .htpasswd sushanth test123&lt;br /&gt;&lt;br /&gt;15. Note that you must use your own name and password (replace sushanth and test123) and that the option cmb does the following: First it forces Creating of a new .htpasswd file. Since this is your first time adding a user it is necessary. Next the m option forces encryption and b allows you to include the user name and password immediately. In my case I created a new .htpasswd file, then added the user sushanth and her password test123. &lt;br /&gt;&lt;br /&gt;16. Restart the apache services&lt;br /&gt;&lt;br /&gt;17. test the website &lt;br /&gt;    www.test.com/test&lt;br /&gt;&lt;br /&gt;18. There may come a time when you need to delete users from the access. You can do this easily enough by again editing the .htaccess file and running a command to delete the user from the .htpasswd file. &lt;br /&gt;&lt;br /&gt;19. First, edit the .htaccess file and remove the user you do not wish to allow access to and save the file.&lt;br /&gt;&lt;br /&gt;20. Second, delete the user from the .htpasswd file by typing this command at the prompt:   htpasswd D sushanth&lt;br /&gt;The option D is for delete. It should prompt you that user sushanth was deleted.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/818886522097136715-6744308488872696511?l=linuxpandits.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxpandits.blogspot.com/feeds/6744308488872696511/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=818886522097136715&amp;postID=6744308488872696511' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/6744308488872696511'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/6744308488872696511'/><link rel='alternate' type='text/html' href='http://linuxpandits.blogspot.com/2008/01/password-protecting-webpages.html' title='Password protecting webpages'/><author><name>LINUX PANDIT</name><uri>http://www.blogger.com/profile/14779340728984773352</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-818886522097136715.post-8675210059481609325</id><published>2008-01-13T16:44:00.000+05:30</published><updated>2008-01-13T16:51:24.294+05:30</updated><title type='text'>Redirecting Website Using Apache Web Server</title><content type='html'>There are many methods to redirect a website or a webpage to another domain. &lt;br /&gt;&lt;br /&gt;I have explained 2 options. &lt;br /&gt;&lt;br /&gt;1. Use Apache Module (mod_rewrite)&lt;br /&gt;&lt;br /&gt;In the Httpd.conf file &lt;br /&gt;&lt;br /&gt;RewriteEngine On &lt;br /&gt;RewriteRule /.* http://www.newdomain.com/&lt;br /&gt;&lt;br /&gt;2. Use Apache Module (mod_alias)&lt;br /&gt;&lt;br /&gt;In the Httpd.conf file &lt;br /&gt;&lt;br /&gt;^Redirect domain &lt;br /&gt;   Redirect / http://www.newdomain.com/&lt;br /&gt;&lt;br /&gt;^Redirect page &lt;br /&gt;   Redirect /webpage.html http://www.newdomain.com/new_webpage.html/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/818886522097136715-8675210059481609325?l=linuxpandits.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxpandits.blogspot.com/feeds/8675210059481609325/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=818886522097136715&amp;postID=8675210059481609325' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/8675210059481609325'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/8675210059481609325'/><link rel='alternate' type='text/html' href='http://linuxpandits.blogspot.com/2008/01/redirecting-website-using-apache-web.html' title='Redirecting Website Using Apache Web Server'/><author><name>LINUX PANDIT</name><uri>http://www.blogger.com/profile/14779340728984773352</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-818886522097136715.post-527041349411229864</id><published>2008-01-13T16:03:00.000+05:30</published><updated>2008-01-13T16:06:25.815+05:30</updated><title type='text'>Error: Unable To Eject, Last Error: Invalid Argument</title><content type='html'>Error: Unable To Eject, Last Error: Invalid Argument&lt;br /&gt;&lt;br /&gt;When we get this error, this means some user is accessing the CD-Rom. &lt;br /&gt;&lt;br /&gt;Type the following command &lt;br /&gt;&lt;br /&gt;#fuser /dev/cdrom&lt;br /&gt;&lt;br /&gt;This command will tell the administrator, the processes that have a open file or are otherwise accessing. &lt;br /&gt;&lt;br /&gt;#fuser -uik /dev/cdrom&lt;br /&gt;&lt;br /&gt;This command will show the Process ID and the use who owns it. This helps the administrator the interactively kill the process so as to eject the CD-ROM.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/818886522097136715-527041349411229864?l=linuxpandits.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxpandits.blogspot.com/feeds/527041349411229864/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=818886522097136715&amp;postID=527041349411229864' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/527041349411229864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/527041349411229864'/><link rel='alternate' type='text/html' href='http://linuxpandits.blogspot.com/2008/01/error-unable-to-eject-last-error.html' title='Error: Unable To Eject, Last Error: Invalid Argument'/><author><name>LINUX PANDIT</name><uri>http://www.blogger.com/profile/14779340728984773352</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-818886522097136715.post-6173749315171391307</id><published>2008-01-13T15:44:00.000+05:30</published><updated>2008-01-13T15:49:42.008+05:30</updated><title type='text'>Creating A Boot Disk For RedHat Linux</title><content type='html'>"mkbootdisk" command in order to use this you only need to know the kernel version of the operating system to write to the floppy. &lt;br /&gt;You can get the kernel version of the operating system by using "uname -r"&lt;br /&gt;&lt;br /&gt;To create a boot disk for the Linux operating system&lt;br /&gt;&lt;br /&gt;#mkbootdisk 2.4.20-80 &lt;br /&gt;&lt;br /&gt;or &lt;br /&gt;&lt;br /&gt;#mkbootdisk 'uname -r'&lt;br /&gt;&lt;br /&gt;The mkbootdisk command collects info from /etc/fstab and /boot/grub/grub.conf. &lt;br /&gt;&lt;br /&gt;In order to work out the root filesystem any required kernel command line arguments and the drivers which will be needed to generate the ramdisk image.&lt;br /&gt;&lt;br /&gt;One useful but this command is not widely used &lt;br /&gt;&lt;br /&gt;#mkbootdisk --iso option, which make the bootable for CD-ROM image.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/818886522097136715-6173749315171391307?l=linuxpandits.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxpandits.blogspot.com/feeds/6173749315171391307/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=818886522097136715&amp;postID=6173749315171391307' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/6173749315171391307'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/6173749315171391307'/><link rel='alternate' type='text/html' href='http://linuxpandits.blogspot.com/2008/01/creating-boot-disk-for-redhat-linux.html' title='Creating A Boot Disk For RedHat Linux'/><author><name>LINUX PANDIT</name><uri>http://www.blogger.com/profile/14779340728984773352</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-818886522097136715.post-864842402792451394</id><published>2008-01-13T11:23:00.000+05:30</published><updated>2008-01-13T11:50:57.932+05:30</updated><title type='text'>Adding New Hard Disk On Linux Box</title><content type='html'>Linux stores all the known disk partition in /proc/partitions file &lt;br /&gt;&lt;br /&gt;The Entire hard disk is represented by a entry with minor number 0, the partitions on the drive are sequentially numbered after that. &lt;br /&gt;&lt;br /&gt;We have added a new hard disk and it is represented as /dev/hdb &lt;br /&gt;&lt;br /&gt;Partitioning the new disk :&lt;br /&gt;&lt;br /&gt;The first steo after adding the new disk is to partition it in preparation of the adding a filesystem to it. &lt;br /&gt;&lt;br /&gt;#fdisk /dev/hdb &lt;br /&gt;&lt;br /&gt;Make the Hard Disk as primary partition &lt;br /&gt;&lt;br /&gt;Enter all the default values &lt;br /&gt;&lt;br /&gt;Once done type "p" and check for the details &lt;br /&gt;&lt;br /&gt;Then to save the changes type "w"&lt;br /&gt;&lt;br /&gt;To verify the new partition &lt;br /&gt;&lt;br /&gt;#cat /proc/partitions&lt;br /&gt;&lt;br /&gt;Putting the directory structure on the newly formatted hard disk &lt;br /&gt;&lt;br /&gt;#mkfs -t ext3 /dev/hdb1&lt;br /&gt;&lt;br /&gt;#mkdir /mnt/hdb &lt;br /&gt;&lt;br /&gt;To automatically mount the partition &lt;br /&gt;&lt;br /&gt;#vi /etc/fstab &lt;br /&gt;&lt;br /&gt;/dev/hdb1 /mnt/hdb1 ext3 defaults 1 2&lt;br /&gt;&lt;br /&gt;Mount the partition &lt;br /&gt;&lt;br /&gt;#mount -a&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/818886522097136715-864842402792451394?l=linuxpandits.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxpandits.blogspot.com/feeds/864842402792451394/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=818886522097136715&amp;postID=864842402792451394' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/864842402792451394'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/864842402792451394'/><link rel='alternate' type='text/html' href='http://linuxpandits.blogspot.com/2008/01/adding-new-hard-disk-on-linux-box.html' title='Adding New Hard Disk On Linux Box'/><author><name>LINUX PANDIT</name><uri>http://www.blogger.com/profile/14779340728984773352</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-818886522097136715.post-158507351407143760</id><published>2007-12-16T16:43:00.000+05:30</published><updated>2007-12-16T16:45:18.673+05:30</updated><title type='text'>What is "Force User" in SAMBA ?</title><content type='html'>[uniqname]&lt;br /&gt;    comment = Unique comment&lt;br /&gt;    path = /path/to/the/stuff&lt;br /&gt;    public = no&lt;br /&gt;    writable = yes&lt;br /&gt;    printable = no&lt;br /&gt;    valid users = user1,user2,user3&lt;br /&gt;    force user = sushanth&lt;br /&gt;&lt;br /&gt;The 'force user' directive means that at the point of connection the real&lt;br /&gt;users identity is lost and the user now is 'sushanth'.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/818886522097136715-158507351407143760?l=linuxpandits.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxpandits.blogspot.com/feeds/158507351407143760/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=818886522097136715&amp;postID=158507351407143760' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/158507351407143760'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/158507351407143760'/><link rel='alternate' type='text/html' href='http://linuxpandits.blogspot.com/2007/12/what-is-force-user-in-samba.html' title='What is &quot;Force User&quot; in SAMBA ?'/><author><name>LINUX PANDIT</name><uri>http://www.blogger.com/profile/14779340728984773352</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-818886522097136715.post-3669943679603386600</id><published>2007-11-06T00:45:00.001+05:30</published><updated>2007-11-06T00:52:40.910+05:30</updated><title type='text'>Configuring Disk Quota</title><content type='html'>To implement file quota we need to edit /etc/fstab file and add the usrquota and grpquota option to the partition for which you want to enable quotas&lt;br /&gt;&lt;br /&gt;#vi /etc/fstab &lt;br /&gt;&lt;br /&gt;/dev/VolGroup00/LogVol00 /ext3 defaults,usrquota,grpquota 11&lt;br /&gt;&lt;br /&gt;save the file &lt;br /&gt;&lt;br /&gt;Remount the filesystem &lt;br /&gt;&lt;br /&gt;#mount -o remount &lt;br /&gt;&lt;br /&gt;or if we have entered more than one filesystem in the fstab file then to remount all the filesystem &lt;br /&gt;&lt;br /&gt;#mount -a remount &lt;br /&gt;&lt;br /&gt;Run quotacheck command to check for an errors on the filesystem with quota check &lt;br /&gt;&lt;br /&gt;#quotacheck -augmv&lt;br /&gt;&lt;br /&gt;Syntax info are as follows:&lt;br /&gt;&lt;br /&gt;a= perform quotacheck on all filesystems&lt;br /&gt;m= the filesystem should not be mounted as read-only mode &lt;br /&gt;u &amp; g= tells to check for users and groups&lt;br /&gt;&lt;br /&gt;Turn on the quota &lt;br /&gt;&lt;br /&gt;#quotaon -augmv &lt;br /&gt;&lt;br /&gt;Apply the quota for a particular user &lt;br /&gt;&lt;br /&gt;#edquota -u sushanth &lt;br /&gt;&lt;br /&gt;Apply quota for particular group &lt;br /&gt;&lt;br /&gt;#edquota -r susgrp&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/818886522097136715-3669943679603386600?l=linuxpandits.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxpandits.blogspot.com/feeds/3669943679603386600/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=818886522097136715&amp;postID=3669943679603386600' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/3669943679603386600'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/3669943679603386600'/><link rel='alternate' type='text/html' href='http://linuxpandits.blogspot.com/2007/11/configuring-disk-quota.html' title='Configuring Disk Quota'/><author><name>LINUX PANDIT</name><uri>http://www.blogger.com/profile/14779340728984773352</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-818886522097136715.post-8581620699934626376</id><published>2007-11-05T21:19:00.000+05:30</published><updated>2007-11-05T21:38:38.540+05:30</updated><title type='text'>Disk Space Management Using LVM</title><content type='html'>Before starting this task it is necessary to install the LVM package &lt;br /&gt;&lt;br /&gt;Linux Kernel 2.4.x has the LVM inbuilt. &lt;br /&gt;&lt;br /&gt;In this blog we will focus on how to create an LVM layout and then mount it under the home directory &lt;br /&gt;&lt;br /&gt;My root partition is sda1 and sda2 is my swap &lt;br /&gt;&lt;br /&gt;To start partitioning run fdisk on /dev/sda&lt;br /&gt;&lt;br /&gt;#fdisk /dev/sda &lt;br /&gt;Enter p to create a new primary partition , accept all the default values for the start and end cylinders.&lt;br /&gt;&lt;br /&gt;The next step is to change the partition into LVM. This means that we need to change the disk system ID into 8e as a partition type. &lt;br /&gt;&lt;br /&gt;The above mentioned task can be done using fdisk command&lt;br /&gt;&lt;br /&gt;Now we will create a volume group. &lt;br /&gt;&lt;br /&gt;Volume group is nothing but two or more physical volumes together form a volume group.To bring our disk under the volume group we will have to configure our physical volumes. &lt;br /&gt;&lt;br /&gt;#pvcreate /dev/sda (this command will initialise the physical volume)&lt;br /&gt;&lt;br /&gt;We will now create a volume group which uses this physical volume &lt;br /&gt;&lt;br /&gt;# vgcreate home2 /dev/sda (home2 is the volume group)&lt;br /&gt;&lt;br /&gt;In this manner we can have multiple physical volume under volume group home2&lt;br /&gt;&lt;br /&gt;Now we have created the volume group, now we will create logical volumes. We can have many logical volumes under one volume group. Or we can use one complete logical group has one Logical volume. &lt;br /&gt;&lt;br /&gt;#lvcreate -n downloads --size 1G home2&lt;br /&gt;&lt;br /&gt;The above mentioned command will create a logical volume as download with 1GB space under volume group home2&lt;br /&gt;&lt;br /&gt;-n is used to name the logical volume. &lt;br /&gt;&lt;br /&gt;Before we can use the Logical Volume, we need to format it and then mount it. &lt;br /&gt;&lt;br /&gt;We will create a directory under /mnt as mystuff. &lt;br /&gt;&lt;br /&gt;Now we will format the logical volume (/dev/home2/download)&lt;br /&gt;&lt;br /&gt;#mkfs ext3 /dev/home2/download&lt;br /&gt;&lt;br /&gt;Once the formatting is over we will mount the logical volume on to the /mnt/mystuff&lt;br /&gt;&lt;br /&gt;#mount /dev/home2/download /mnt/mystuff&lt;br /&gt;&lt;br /&gt;To make a permanent entry &lt;br /&gt;&lt;br /&gt;#vi /etc/fstab &lt;br /&gt;&lt;br /&gt;/dev/home2/download /mnt/mystuff ext3 defaults 12&lt;br /&gt;&lt;br /&gt;save the file&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/818886522097136715-8581620699934626376?l=linuxpandits.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxpandits.blogspot.com/feeds/8581620699934626376/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=818886522097136715&amp;postID=8581620699934626376' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/8581620699934626376'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/8581620699934626376'/><link rel='alternate' type='text/html' href='http://linuxpandits.blogspot.com/2007/11/disk-space-management-using-lvm.html' title='Disk Space Management Using LVM'/><author><name>LINUX PANDIT</name><uri>http://www.blogger.com/profile/14779340728984773352</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-818886522097136715.post-9205635715130191244</id><published>2007-11-05T21:14:00.000+05:30</published><updated>2007-11-05T21:18:39.951+05:30</updated><title type='text'>Mount NTFS partition on a Linux Machine from Command Prompt</title><content type='html'>Check the Kernel Version &lt;br /&gt;&lt;br /&gt;#uname -r&lt;br /&gt;&lt;br /&gt;Install the following rpm &lt;br /&gt;&lt;br /&gt;#rpm -ivh kernel-ntfs.rpm &lt;br /&gt;&lt;br /&gt;The rpm is available at www.linux-ntfs.org&lt;br /&gt;&lt;br /&gt;#modprobe ntfs&lt;br /&gt;&lt;br /&gt;Mount the NTFS partition &lt;br /&gt;&lt;br /&gt;#mount -t ntfs /dev/hdb /mnt/ntfs&lt;br /&gt;&lt;br /&gt;(create a directory ntfs under mnt directory)&lt;br /&gt;&lt;br /&gt;Make the mount permanent by making an entry in the /etc/fstab &lt;br /&gt;&lt;br /&gt;#vi /etc/fstab &lt;br /&gt;&lt;br /&gt;/dev/hdb /mnt/ntfs ntfs defaults 00&lt;br /&gt;&lt;br /&gt;save the file&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/818886522097136715-9205635715130191244?l=linuxpandits.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxpandits.blogspot.com/feeds/9205635715130191244/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=818886522097136715&amp;postID=9205635715130191244' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/9205635715130191244'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/9205635715130191244'/><link rel='alternate' type='text/html' href='http://linuxpandits.blogspot.com/2007/11/mount-ntfs-partition-on-linux-machine.html' title='Mount NTFS partition on a Linux Machine from Command Prompt'/><author><name>LINUX PANDIT</name><uri>http://www.blogger.com/profile/14779340728984773352</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-818886522097136715.post-2889443066802550308</id><published>2007-10-30T14:10:00.000+05:30</published><updated>2007-10-30T14:22:41.177+05:30</updated><title type='text'>NFS Configuration</title><content type='html'>We will configure NFS, whereby we will mount /test directory on the other machine &lt;br /&gt;&lt;br /&gt;NFS Server Configuration:&lt;br /&gt;&lt;br /&gt;Create a Directory which we need to Mount using NFS &lt;br /&gt;&lt;br /&gt;#mkdir /test &lt;br /&gt;&lt;br /&gt;Start the following services :&lt;br /&gt;&lt;br /&gt;#service portmap start&lt;br /&gt;&lt;br /&gt;#service nfs start&lt;br /&gt;&lt;br /&gt;#service nfslock start &lt;br /&gt;&lt;br /&gt;Edit the following file:&lt;br /&gt;&lt;br /&gt;#vi /etc/exportfs&lt;br /&gt;&lt;br /&gt;/test xxx.xxx.xxx.xxx(ro,sync,no_root_squash)&lt;br /&gt;&lt;br /&gt;(xxx.xxx.xxx.xxx replace it with NFS client IP address)&lt;br /&gt;&lt;br /&gt;save the file &lt;br /&gt;&lt;br /&gt;#export -avr &lt;br /&gt;&lt;br /&gt;NFS Client Configuration:&lt;br /&gt;&lt;br /&gt;Start the following services&lt;br /&gt;&lt;br /&gt;#service nfs start&lt;br /&gt;&lt;br /&gt;#service nfslock start&lt;br /&gt;&lt;br /&gt;#service portmap start&lt;br /&gt;&lt;br /&gt;Create a directory:&lt;br /&gt;&lt;br /&gt;#mkdir test1 &lt;br /&gt;&lt;br /&gt;#mount xxx.xxx.xxx.xxx:/test /test1&lt;br /&gt;&lt;br /&gt;(xxx.xxx.xxx.xxx replace it with NFS server IP Address)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/818886522097136715-2889443066802550308?l=linuxpandits.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxpandits.blogspot.com/feeds/2889443066802550308/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=818886522097136715&amp;postID=2889443066802550308' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/2889443066802550308'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/2889443066802550308'/><link rel='alternate' type='text/html' href='http://linuxpandits.blogspot.com/2007/10/nfs-configuration.html' title='NFS Configuration'/><author><name>LINUX PANDIT</name><uri>http://www.blogger.com/profile/14779340728984773352</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-818886522097136715.post-4293617201305482068</id><published>2007-10-30T13:33:00.000+05:30</published><updated>2007-10-30T14:08:50.122+05:30</updated><title type='text'>Squid Proxy Configuration</title><content type='html'>The SQUID is a Linux based utility that can be used to distribute internet to all the computers within the network &lt;br /&gt;&lt;br /&gt;Squid configuration file : squid.conf&lt;br /&gt;&lt;br /&gt;Location: /etc/squid&lt;br /&gt;&lt;br /&gt;Edit the squid.conf file &lt;br /&gt;&lt;br /&gt;#vi squid.conf &lt;br /&gt;&lt;br /&gt;(Search for the default acl list and add the following)&lt;br /&gt;&lt;br /&gt;acl mynetwork src xxx.xxx.xxx.xxxx / xxx.xxx.xxx.xxx (subnet)&lt;br /&gt;acl mynetwork src xxx.xxx.xxx.xxx / xxx.xxx.xxx.xxx (for individual IP)&lt;br /&gt;&lt;br /&gt;Then add acl (access control list) to the "http_access list" with the following line &lt;br /&gt;&lt;br /&gt;http_access allow mynetwork &lt;br /&gt;&lt;br /&gt;Default port is always 3128 &lt;br /&gt;&lt;br /&gt;You can comment this line and add any specific port we require &lt;br /&gt;&lt;br /&gt;http_port 3128&lt;br /&gt;&lt;br /&gt;Once the above mentioned changes has been done, save the file &lt;br /&gt;&lt;br /&gt;Restart the squid service &lt;br /&gt;&lt;br /&gt;#/etc/rc.d/init.d/squid restart&lt;br /&gt;&lt;br /&gt;or we can use the following command &lt;br /&gt;&lt;br /&gt;#squid -z&lt;br /&gt;&lt;br /&gt;#squid &lt;br /&gt;&lt;br /&gt;One the client system , just all the proxy IP address (Squid Server IP address) and port 3128 or any other port specified in squid.conf file&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/818886522097136715-4293617201305482068?l=linuxpandits.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxpandits.blogspot.com/feeds/4293617201305482068/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=818886522097136715&amp;postID=4293617201305482068' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/4293617201305482068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/4293617201305482068'/><link rel='alternate' type='text/html' href='http://linuxpandits.blogspot.com/2007/10/squid-proxy-configuration.html' title='Squid Proxy Configuration'/><author><name>LINUX PANDIT</name><uri>http://www.blogger.com/profile/14779340728984773352</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-818886522097136715.post-3393960274226994158</id><published>2007-10-21T22:08:00.001+05:30</published><updated>2007-10-21T23:39:32.869+05:30</updated><title type='text'>Changing Kernel Parameters</title><content type='html'>To Display all the available Kernel Parameters&lt;br /&gt;&lt;br /&gt;# sudo sysctl -a | sort | more &lt;br /&gt;&lt;br /&gt;Each Kernel parameters are in a field = value format &lt;br /&gt;&lt;br /&gt;For Example:&lt;br /&gt;&lt;br /&gt;Kernel.threads-max = 16379&lt;br /&gt;&lt;br /&gt;Decreasing the PID value will improve the performance &lt;br /&gt;&lt;br /&gt;To change the parameter &lt;br /&gt;&lt;br /&gt;# sudo sysctl -w kernel.threads-max=16000&lt;br /&gt;&lt;br /&gt;The above command will change the parameter temporarily, once the machine reboots the parameters will come back to its previous value.&lt;br /&gt;&lt;br /&gt;To make the new changes permanently , Edit the following &lt;br /&gt;&lt;br /&gt;# /etc/sysctl.conf&lt;br /&gt;&lt;br /&gt;Enter in the parameter changes &lt;br /&gt;&lt;br /&gt;For example:&lt;br /&gt;&lt;br /&gt;#vi /etc/sysctl.conf&lt;br /&gt;&lt;br /&gt;kernel.threads-max=16000&lt;br /&gt;&lt;br /&gt;save the file&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/818886522097136715-3393960274226994158?l=linuxpandits.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxpandits.blogspot.com/feeds/3393960274226994158/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=818886522097136715&amp;postID=3393960274226994158' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/3393960274226994158'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/3393960274226994158'/><link rel='alternate' type='text/html' href='http://linuxpandits.blogspot.com/2007/10/changing-kernel-parameters.html' title='Changing Kernel Parameters'/><author><name>LINUX PANDIT</name><uri>http://www.blogger.com/profile/14779340728984773352</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-818886522097136715.post-2878927027132268597</id><published>2007-10-18T01:22:00.000+05:30</published><updated>2007-10-18T01:23:14.034+05:30</updated><title type='text'>Change Linux Server date from GST to GMT</title><content type='html'>Edit the following :&lt;br /&gt;&lt;br /&gt;# vi /etc/sysconfig/clock&lt;br /&gt;Zone="GMT0"&lt;br /&gt;UTC=true&lt;br /&gt;ARC=false&lt;br /&gt;:wq!&lt;br /&gt;&lt;br /&gt;Delete file name localtime&lt;br /&gt;&lt;br /&gt;#cd /etc&lt;br /&gt;&lt;br /&gt;#rm -i localtime&lt;br /&gt;&lt;br /&gt;Create a softlink&lt;br /&gt;&lt;br /&gt;#ln -s /usr/share/zoneinfo/GMT0 /etc/localtime&lt;br /&gt;&lt;br /&gt;Now check the date&lt;br /&gt;&lt;br /&gt;Synchronise hardware clock with system clock&lt;br /&gt;&lt;br /&gt;#hwclock --show&lt;br /&gt;&lt;br /&gt;#hwclock --set --date="today's date time"&lt;br /&gt;&lt;br /&gt;eg:&lt;br /&gt;&lt;br /&gt;#hwclock --set --date="02/19/207 18:10:00"&lt;br /&gt;&lt;br /&gt;#hwclock --show&lt;br /&gt;&lt;br /&gt;#date&lt;br /&gt;&lt;br /&gt;Synchronise hardware clock to system clock&lt;br /&gt;&lt;br /&gt;#hwclock --hctosys&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/818886522097136715-2878927027132268597?l=linuxpandits.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxpandits.blogspot.com/feeds/2878927027132268597/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=818886522097136715&amp;postID=2878927027132268597' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/2878927027132268597'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/2878927027132268597'/><link rel='alternate' type='text/html' href='http://linuxpandits.blogspot.com/2007/10/change-linux-server-date-from-gst-to_18.html' title='Change Linux Server date from GST to GMT'/><author><name>LINUX PANDIT</name><uri>http://www.blogger.com/profile/14779340728984773352</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-818886522097136715.post-2730987000580005722</id><published>2007-10-17T00:52:00.000+05:30</published><updated>2007-10-17T01:13:20.285+05:30</updated><title type='text'>Compile and Install a New Linux Kernel</title><content type='html'>Download the latest kernel from www.kernel.org&lt;br /&gt;&lt;br /&gt;#wget http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.19.tar.gz&lt;br /&gt;&lt;br /&gt;#tar zxvf linux-2.4.19.tar.gz&lt;br /&gt;&lt;br /&gt;#cd linux-2.4.19&lt;br /&gt;&lt;br /&gt;Now you have to configure the kernel options &lt;br /&gt;   This is place where you select all the features you want to compile into the kernel. If you have an existing configuration from the older kernel, copy the old .config file  to the top level of your source and use make oldconfig instead of menuconfig. This oldconfig process will carry over your previous settings and prompt you if, there are new features not covered by the earlier .config file. &lt;br /&gt;   We will presently follow a technique whereby we are just Compiling and Installing a new Kernel.&lt;br /&gt;&lt;br /&gt;#make menuconfig&lt;br /&gt;&lt;br /&gt;Now you will have to build all the dependencies for your chosen configuration.&lt;br /&gt;&lt;br /&gt;#make dep&lt;br /&gt;&lt;br /&gt;Now we can compile the actual Kernel &lt;br /&gt;&lt;br /&gt;#make bzImage&lt;br /&gt;&lt;br /&gt;The resulting kernel file is : arch/i386/boot/bzImage&lt;br /&gt;&lt;br /&gt;Now you have to load the modules &lt;br /&gt;&lt;br /&gt;#make modules&lt;br /&gt;&lt;br /&gt;Install the modules&lt;br /&gt;&lt;br /&gt;#make modules_install&lt;br /&gt;&lt;br /&gt;Due to some reason you want to re-compile the whole kernel once again. You can use make command to delete intermediate file. &lt;br /&gt;make mrproper command will delete he .config file &lt;br /&gt;&lt;br /&gt;Task are as follows:&lt;br /&gt;&lt;br /&gt;make mrproper &lt;br /&gt;make menuconfig &lt;br /&gt;make dep &lt;br /&gt;make clean &lt;br /&gt;make bzImage &lt;br /&gt;make modules &lt;br /&gt;make modules_install &lt;br /&gt;&lt;br /&gt;Once the task is completed, now we have to boot from the new kernel. I take into consideration that LILO is installed in boot sector. &lt;br /&gt;&lt;br /&gt;Before changing its better practice to take a backup &lt;br /&gt;&lt;br /&gt;#cp arch/i386/boot/bzImage/vmlinuz-2.4.19&lt;br /&gt;&lt;br /&gt;#cp system.map /boot&lt;br /&gt;&lt;br /&gt;Now once the above mentioned steps are done we can tell the LILO about the new kernel &lt;br /&gt;&lt;br /&gt;Edit the following lilo.conf file &lt;br /&gt;&lt;br /&gt;#vi /etc/lilo.conf&lt;br /&gt;&lt;br /&gt;image=/boot/vmlinuz-2.4.19&lt;br /&gt;label="Linux 2.4.19"&lt;br /&gt;&lt;br /&gt;:wq!&lt;br /&gt;&lt;br /&gt;To apply the changes and boot from the new kernel &lt;br /&gt;&lt;br /&gt;# lilo -v &lt;br /&gt;&lt;br /&gt;Reboot the server.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/818886522097136715-2730987000580005722?l=linuxpandits.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxpandits.blogspot.com/feeds/2730987000580005722/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=818886522097136715&amp;postID=2730987000580005722' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/2730987000580005722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/2730987000580005722'/><link rel='alternate' type='text/html' href='http://linuxpandits.blogspot.com/2007/10/compile-and-install-new-linux-kernel.html' title='Compile and Install a New Linux Kernel'/><author><name>LINUX PANDIT</name><uri>http://www.blogger.com/profile/14779340728984773352</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-818886522097136715.post-4435597668903655908</id><published>2007-10-10T22:21:00.000+05:30</published><updated>2007-10-17T13:56:23.119+05:30</updated><title type='text'>Network Bonding Configuration</title><content type='html'>&lt;span style="font-family: verdana;"&gt;1. #/etc/sysconfig/network-scripts&lt;br /&gt;&lt;br /&gt;2. create a file&lt;br /&gt;    # touch ifcfg-bond0&lt;br /&gt;&lt;br /&gt;3. Edit the file&lt;br /&gt;    #vi ifcfg-bond0&lt;br /&gt;&lt;br /&gt;4. Enter in the details&lt;br /&gt;    DEVICE=bond0&lt;br /&gt;    USERCTL=no&lt;br /&gt;    ONBOOT=yes&lt;br /&gt;    BROADCAST=xxx.xxx.xxx.xxx&lt;br /&gt;    NETWORK=xxx.xxx.xxx.xxx&lt;br /&gt;    NETMASK=xxx.xxx.xxx.xxx&lt;br /&gt;    GATEWAY=xxx.xxx.xxx.xxx&lt;br /&gt;    IPADDR=xxx.xxx.xxx.xxx&lt;br /&gt;&lt;br /&gt;5. Edit ifcfg-eth0&lt;br /&gt;    #vi ifcfg-eth0&lt;br /&gt;&lt;br /&gt;6. Enter in the details&lt;br /&gt;    DEVICE=eth0&lt;br /&gt;    USERCTL=no&lt;br /&gt;    ONBOOT=yes&lt;br /&gt;    MASTER=bond0&lt;br /&gt;    SLAVE=yes&lt;br /&gt;    BOOTPROTO=none&lt;br /&gt;&lt;br /&gt;7. Edit ifcfg-eth1&lt;br /&gt;    #vi ifcfg-eth1&lt;br /&gt;&lt;br /&gt;8. Enter in the details&lt;br /&gt;    DEVICE=eth1&lt;br /&gt;    USERCTL=no&lt;br /&gt;    ONBOOT=yes&lt;br /&gt;    MASTER=bond0&lt;br /&gt;    SLAVE=yes   &lt;br /&gt;    BOOTPROTO=none&lt;br /&gt;&lt;br /&gt;if the operating system is RHEL 32-bit then edit the following&lt;br /&gt;&lt;br /&gt;1. #vi /etc/modules.conf&lt;br /&gt;    alias bond0 bonding&lt;br /&gt;    options bonding miimon=100 mode=0&lt;br /&gt;&lt;br /&gt;if the operating system is RHEL 64-bit then edit the following&lt;br /&gt;&lt;br /&gt;1. #vi /etc/modprobe.com&lt;br /&gt;    alias bond0 bonding&lt;br /&gt;    options bonding miimon=100 mode=0&lt;br /&gt;&lt;br /&gt;Restart the network services&lt;br /&gt;&lt;br /&gt;# service network restart&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/818886522097136715-4435597668903655908?l=linuxpandits.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxpandits.blogspot.com/feeds/4435597668903655908/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=818886522097136715&amp;postID=4435597668903655908' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/4435597668903655908'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/818886522097136715/posts/default/4435597668903655908'/><link rel='alternate' type='text/html' href='http://linuxpandits.blogspot.com/2007/10/network-bonding-configuration.html' title='Network Bonding Configuration'/><author><name>LINUX PANDIT</name><uri>http://www.blogger.com/profile/14779340728984773352</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
