<?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-3417169946022348274</id><updated>2012-01-26T09:45:32.399-08:00</updated><category term='UNIX'/><category term='3D 2D Translation'/><category term='File System'/><category term='server configuration'/><category term='Color Model Conversion'/><category term='OOPS Lab'/><category term='PL SQL DBMS lab'/><category term='c/c++ tutorial Debugging'/><category term='Clipping Algorithm'/><category term='Computer Graphics lab'/><category term='Class Diagram'/><category term='Shared Libraries'/><category term='Compiler Lab'/><category term='Christian'/><category term='Oracle Solaris'/><category term='vncviewer'/><category term='job'/><category term='Booting Problem'/><category term='Question Bank'/><category term='Internet Programming'/><category term='Backup'/><category term='Calendar Aptitude Question  Answer'/><category term='Linux Basic'/><category term='Remote Procedure Caller'/><category term='Web technology | Java script'/><category term='Overview of Linux System'/><category term='Networking'/><category term='Linux support'/><category term='Stock Maintenance  System'/><category term='NIS Network Information Service'/><category term='Operating system lab'/><category term='Linux Configuration'/><category term='Computer Architecture'/><category term='Linux shell programming'/><category term='Logical  Volume Management'/><category term='Health'/><category term='awk command'/><category term='System Software Lab'/><category term='Circle Ellipse drawing Algorithm'/><category term='Cluster'/><category term='C Turtorial'/><category term='Java program'/><category term='Payroll Application processing System'/><category term='Visual programming Lab'/><category term='Samba Server configuration'/><category term='Ethernet'/><category term='php'/><category term='Nokia'/><category term='Flight Ticket Reservation System'/><category term='linux su'/><category term='PL/SQL function and procedure'/><category term='Data structure'/><category term='Software component lab'/><category term='Aptitude question Ans'/><category term='Tourist'/><category term='Sequence Diagram'/><category term='Photoshop Tutorial'/><category term='Activity Diagram'/><category term='Student Mark Analysis System'/><category term='Knowledge'/><category term='Medical Expert system'/><category term='Luster'/><category term='Basic command'/><category term='Use case Dig'/><category term='Yum Server Configuration'/><category term='Component Dig'/><category term='Linux'/><category term='Linux scenario'/><category term='kernel'/><category term='Unix C Program'/><category term='Linux Basic command'/><category term='Collaboration Diagram'/><category term='Interview Question'/><category term='Bash Script'/><category term='Deployment dig'/><category term='Shell Scripting'/><category term='Tricks | Tips'/><category term='Environmental Science And Engineering'/><category term='Network Lab'/><category term='Trouble Shooting'/><category term='web Hosting'/><title type='text'>Student CPU</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.studentcpu.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default?start-index=101&amp;max-results=100'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>850</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-174668705979634244</id><published>2012-01-09T03:10:00.000-08:00</published><updated>2012-01-09T03:10:08.320-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux support'/><title type='text'>Difference Server Type Hardware Configuration Data Center</title><content type='html'>&lt;b&gt;RACK Server:  &lt;/b&gt;&lt;br /&gt;1) Rack server is typically measured by U’s scale in vertically.&lt;br /&gt;Like 1U, 2U, 3U.&lt;br /&gt;&lt;b&gt;BLADE Server: &lt;/b&gt;&lt;br /&gt;Blade server an additional level innovation of RACK Server.&lt;br /&gt;It has two parts.&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;a)&lt;/b&gt;&lt;/span&gt; Blade carrier&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;b)&lt;/b&gt;&lt;/span&gt; Blade Server&lt;br /&gt;Blade server typically placed inside the Blade Carrier by together they form blade system.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Advantages&lt;/b&gt;&lt;br /&gt;Hot Plugging like, Network ports, Power Connection, Switches are modular design.&lt;br /&gt;There is no need to plug manually. Just we have to insert the blade server into blade carrier.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-174668705979634244?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/174668705979634244/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2012/01/difference-server-type-hardware.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/174668705979634244'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/174668705979634244'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2012/01/difference-server-type-hardware.html' title='Difference Server Type Hardware Configuration Data Center'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-8662787264772079439</id><published>2012-01-09T00:21:00.000-08:00</published><updated>2012-01-09T03:35:50.379-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux support'/><title type='text'>How To Configure RSH – Remote Shell</title><content type='html'>&lt;b&gt;&lt;span style="font-size: large;"&gt;1)&lt;/span&gt;&lt;/b&gt; Enable rsh&lt;br /&gt;#vim /etc/xinetd.d/rsh&lt;br /&gt;Replace &lt;br /&gt;disable=yes into disable=&lt;b&gt;no&lt;/b&gt;&lt;br /&gt;wait = yes into wait=&lt;b&gt;no&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="font-size: large;"&gt;2)&lt;/span&gt;&lt;/b&gt; Enable rexec&lt;br /&gt;#vim /etc/xinetd.d/rexec&lt;br /&gt;Replace&lt;span class="fullpost"&gt;&lt;br /&gt;disable=yes into disable=&lt;b&gt;no&lt;/b&gt;&lt;br /&gt;wait=yes into disable=&lt;b&gt;no&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="font-size: large;"&gt;3)&lt;/span&gt;&lt;/b&gt;Enable rlogin&lt;br /&gt;#vim /etc/xinetd.d/rlogin&lt;br /&gt;disable=yes into disable=&lt;b&gt;no&lt;/b&gt;&lt;br /&gt;wait=yes into wait=&lt;b&gt;no&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="font-size: large;"&gt;4)&lt;/span&gt;&lt;/b&gt; Enable securetty&lt;br /&gt;Add rsh,rlogin.rexec into the &lt;b&gt;/etc/securetty&lt;/b&gt;&lt;br /&gt;/etc/securetty&lt;br /&gt;Enable the service for login with tty devices.&lt;br /&gt;&lt;b&gt;&lt;span style="font-size: large;"&gt;5)&lt;/span&gt;&lt;/b&gt; PAM - Pluggable Authentication Module.&lt;br /&gt;Purpose&lt;br /&gt;1) Authentication condition.&lt;br /&gt;2) Define the Session Module.&lt;br /&gt;#vim /etc/pam.d/rsh&lt;br /&gt;Replace&lt;br /&gt;auth required pam_rhosts.so into&lt;br /&gt;auth &lt;b&gt;sufficient&lt;/b&gt; pam_rhosts.so&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="font-size: large;"&gt;6)&lt;/span&gt;&lt;/b&gt; Add the trusted Host List&lt;br /&gt;#vim /root/.rhosts&lt;br /&gt;List of hosts Login without password or server admin granted "TRUSTED" &lt;br /&gt;rsh/rlogin Remote access without supplying Password.&lt;br /&gt;&lt;br /&gt;Finally trying from the Client Machine, using rsh,rlogin,to verify rsh- Remote shell.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-8662787264772079439?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/8662787264772079439/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2012/01/how-to-configure-rsh-remote-shell.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/8662787264772079439'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/8662787264772079439'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2012/01/how-to-configure-rsh-remote-shell.html' title='How To Configure RSH – Remote Shell'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-5925716896699691705</id><published>2012-01-09T00:12:00.000-08:00</published><updated>2012-01-09T00:15:50.891-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Shell Scripting'/><title type='text'>Compare Time stamp In Shell Script year, Month day, Hour, Minute, Second</title><content type='html'>Linux How To Compare the timestamp&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size: large;"&gt;1)&lt;/span&gt;&lt;/strong&gt; Using Date command we can compare&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size: large;"&gt;2)&lt;/span&gt;&lt;/strong&gt; In these format i used just simple numberical comparsion and it'wll work for timestamp comparsion.&lt;br /&gt;Year-Month-day-Hour-Minute-second.&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size: large;"&gt;3)&lt;/span&gt;&lt;/strong&gt;syntax&lt;br /&gt;Date1=`date +%Y%m%d%H%m%S`;&lt;br /&gt;Date2=`date +%Y%m%d%H%m%S`;&lt;span class="fullpost"&gt;&lt;br /&gt;if(Date1 Condition Date2)&lt;br /&gt;date +&lt;br /&gt;%y - Year in Two Digit&lt;br /&gt;%Y - year in Four Digit&lt;br /&gt;%m - month in Numberic&lt;br /&gt;%d - Date&lt;br /&gt;%H- Hours&lt;br /&gt;%h - Month in String&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color: magenta; font-size: large;"&gt;For Example&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;current_time=`date +%Y%m%d%H%M%S`;&lt;br /&gt;Year-Month-Date-Hour- Minute-Second&lt;br /&gt;if [ "$login_time" -lt "$current_time" ]; then&lt;br /&gt;How To Compare&amp;nbsp; Time stamp in Shell Script.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-5925716896699691705?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/5925716896699691705/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2012/01/compare-time-stamp-in-shell-script-year.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/5925716896699691705'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/5925716896699691705'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2012/01/compare-time-stamp-in-shell-script-year.html' title='Compare Time stamp In Shell Script year, Month day, Hour, Minute, Second'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-7248528922185317291</id><published>2011-12-27T08:37:00.000-08:00</published><updated>2011-12-27T08:40:10.420-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='kernel'/><title type='text'>How To Create initrd Image Temporary File System initrd</title><content type='html'>&lt;span style="font-size: large;"&gt;&lt;b&gt;1)&lt;/b&gt;&lt;/span&gt;initrd is a image file.&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;2)&lt;/b&gt;&lt;/span&gt;initialize Ram Disk Image.&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;3)&lt;/b&gt;&lt;/span&gt;initrd is temporary file system used in the boot Process of the Linux Kernel.&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;4)&lt;/b&gt;&lt;/span&gt;initrd contain basic executable files utilities and Essential Drivers, that leads kernel to mount root File system.&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;5)&lt;/b&gt;&lt;/span&gt;In these temporary file system it contain directory, bin,etc,init,dev,lib,loopfs,proc,sys,sysroot File is init.&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;6)&lt;/b&gt;&lt;/span&gt;This initrd image Contain the Same version &amp;amp; Number of kernel&lt;br /&gt;Example &lt;br /&gt;initrd Image initrd-2.6.9-5.EL.img&lt;br /&gt;kernel vmlinuz-2.6.9-5.EL&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;How To Extract Initrd File.&lt;/b&gt;&lt;br /&gt;#gunzip &amp;lt; /boot/initrd.img | cpio -i &lt;br /&gt;cpio -i It will Extract the Image.&lt;br /&gt;-o Create the Image&lt;br /&gt;-v Verbose.&lt;br /&gt;1) Copying files from Archive&lt;br /&gt;2) Extracting Files from Archive&lt;br /&gt;#ls /etc/*.conf | cpio -o --forma=tar &amp;gt; conf.tar&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-7248528922185317291?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/7248528922185317291/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/12/temporary-file-system-initrd-how-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/7248528922185317291'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/7248528922185317291'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/12/temporary-file-system-initrd-how-to.html' title='How To Create initrd Image Temporary File System initrd'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-8232028953544462842</id><published>2011-11-14T09:38:00.000-08:00</published><updated>2011-11-14T09:41:23.959-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Backup'/><title type='text'>Difference Between Incremental Backup Differential Backup Rotational Backup</title><content type='html'>&lt;b&gt;Incremental Backup&lt;/b&gt;: Backup of files that's are NEW or CHANGED Since Last Backup.&lt;br /&gt;Backup Time: It will take the least time.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Differential Backup&lt;/b&gt;: Backup of the files, which are NEW or CHANGED Since LAST FULL  Backup.&lt;br /&gt;Backup Time : It will take more time compare to Incremental Backup.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Comparison : Incremental  Vs Differential&lt;/b&gt;&lt;br /&gt;&lt;span class="fullpost"&gt;Differential Backup it is middle stage between Full Backup &amp;amp; Differential Backup.&lt;br /&gt;Main Difference is Incremental take backup from&lt;span style="color: magenta;"&gt; Last Backup&lt;/span&gt;. Differential take backup from&lt;b&gt; &lt;span style="color: magenta;"&gt;LAST FULL Backup&lt;/span&gt;&lt;/b&gt;,&lt;br /&gt;&lt;br /&gt;&lt;b&gt;FULL BACKUP&lt;/b&gt;: Complete Backup of everything.&lt;br /&gt;Backup Time: It will take more time rather than DIFFERENTIAL BAKUP.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-8232028953544462842?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/8232028953544462842/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/11/difference-between-incremental-backup.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/8232028953544462842'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/8232028953544462842'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/11/difference-between-incremental-backup.html' title='Difference Between Incremental Backup Differential Backup Rotational Backup'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-5976051680142993376</id><published>2011-11-10T10:39:00.000-08:00</published><updated>2011-11-12T07:18:33.914-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Trouble Shooting'/><category scheme='http://www.blogger.com/atom/ns#' term='kernel'/><title type='text'>Compile Kernel Install Remove Kernel Driver Module</title><content type='html'>Purpose- Reason For Kernel Compilation&lt;br /&gt;Advantages&lt;br /&gt;1) It is easy to Add New Features.&lt;br /&gt;2) For new Hardware if it does not have proper&lt;br /&gt;kernel Module, then we can rebuilt the kernel through Kernel compilation.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;How To Compile Linux Kernel Source code.&lt;/b&gt;&lt;br /&gt;1) Go to the Linux Kernel Directory&lt;span class="fullpost"&gt;/usr/src/kernels/2.6.9-5.EL-i686&lt;br /&gt;Type #make menuconfig&lt;br /&gt;2) Configure &amp;amp; compile the Kernel Source Code&lt;br /&gt;For Example To Add Driver&amp;nbsp; for Key board Choose the Following Sub Menu from the #make menuconfig.&lt;br /&gt;&lt;span style="color: magenta;"&gt;-&lt;/span&gt;make menuconfig &lt;b&gt;&lt;span style="color: magenta;"&gt;-&lt;/span&gt;&lt;/b&gt; Device Drivers&lt;b&gt;&lt;span style="color: magenta;"&gt; -&lt;/span&gt;&lt;/b&gt; Input Device Support &lt;b&gt;&lt;span style="color: magenta;"&gt;-&lt;/span&gt;&lt;/b&gt; Keyboard - Choose the Keyboard,&lt;br /&gt;3)#make menuconfig. It will build their Kernel Driver Modules Under /lib/module/`uname –r`&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Linux Kernel Important Directories&lt;/strong&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="font-size: large;"&gt;1)&lt;/span&gt;&lt;/b&gt;/lib/modules/`uname -r` - Kernel Driver Modules&lt;br /&gt;/lib/modules/2.6.9-5.EL/kernel/drivers/ - Contain the Linux Kernel Driver.&lt;br /&gt;&lt;b&gt;&lt;span style="font-size: large;"&gt;2)&lt;/span&gt;&lt;/b&gt; /usr/src/kernels/2.6.18-128.el5/ Contain the Linux Kernel Source.&lt;br /&gt;&lt;b&gt;&lt;span style="font-size: large;"&gt;3)&lt;/span&gt;&lt;/b&gt;/usr/include/linux - It contain the List of Header Files&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;/lib/modules/2.6.9-5.EL/kernel/drivers/net/&lt;/span&gt; - Network Driver Modules&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;/lib/modules/2.6.9-5.EL/kernel/drivers/inpu&lt;/span&gt;t – Keyboard, Mouse Driver Modules &lt;br /&gt;&lt;br /&gt;&lt;b&gt;How To Find Module Dependencies List Modules&lt;/b&gt;&lt;br /&gt;lsmod&amp;nbsp; List Modules  Get the Information From the /proc/modules.&lt;br /&gt;depmod list the dependencies module.&lt;br /&gt;depmod -v  List Which module is depend on the other module.&lt;br /&gt;For Example: via-velocity.ko it is Network Module  located Under /lib/modules/version/kernel/drivers/net/filename.ko&lt;br /&gt;&lt;span style="color: magenta;"&gt;/lib/modules/2.6.9-5.EL/kernel/drivers/net/via-velocity.k&lt;/span&gt;o needs "crc_ccitt": &lt;b&gt;/lib/modules/2.6.9-5.EL/kernel/lib/crc-ccitt.ko&lt;/b&gt;&lt;br /&gt;.ko it is kernel Modules&lt;br /&gt;&lt;br /&gt;&lt;b&gt;How To &lt;a href="http://www.studentcpu.com/2010/11/etho-device-not-found-redhat-linux-eth0.html" target="_blank"&gt;&lt;i&gt;Install Or Remove&lt;/i&gt;&lt;/a&gt; The Module Loading / Unloading Module&lt;/b&gt;&lt;br /&gt;modprobe - Install/remove the Module&lt;br /&gt;insmod - Insert The Module&lt;br /&gt;rmmod - Remove The Module&lt;br /&gt;&lt;b&gt;Compression Between modprobe And insmod/rmmod&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="font-size: large;"&gt;1)&lt;/span&gt;&lt;/b&gt; For modprobe there is no need to mention any path. It is automatically install the module. But Insmod , rmmod we have to mention the Path.&lt;br /&gt;Example:&lt;br /&gt;#insmod kernel/drivers/net/wireless/airo.ko&lt;br /&gt;&lt;b&gt;&lt;span style="font-size: large;"&gt;2)&lt;/span&gt;&lt;/b&gt; Using Single Command we will Install &amp;amp; Remove Module for modprobe. We had separate command like insmod , rmmod.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-5976051680142993376?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/5976051680142993376/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/11/compile-kernel-install-remove-kernel.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/5976051680142993376'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/5976051680142993376'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/11/compile-kernel-install-remove-kernel.html' title='Compile Kernel Install Remove Kernel Driver Module'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-894085850064493183</id><published>2011-11-10T07:34:00.000-08:00</published><updated>2011-11-10T09:38:44.985-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Shared Libraries'/><title type='text'>/usr/bin/ld Cannot Find Library Path Linkage Problem</title><content type='html'>&lt;b&gt;STUDY &lt;/b&gt;: Open Source Application MakeFile Important Environment Variable.&lt;br /&gt;&lt;span style="color: magenta;"&gt;CFLAGS&lt;/span&gt;  &amp;nbsp; &amp;nbsp; - C Compiler Flags.&lt;br /&gt;&lt;span style="color: magenta;"&gt;LDFLAGS&lt;/span&gt; &amp;nbsp;- Library Path&lt;br /&gt;&lt;span style="color: magenta;"&gt;CC C &lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- Compiler Command.&lt;br /&gt;&lt;span style="color: magenta;"&gt;-L &lt;/span&gt;- User Define Library path Example&lt;span style="font-size: x-small;"&gt; -L /usr/X11R6/lib/.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: magenta;"&gt;-l &lt;/span&gt;&amp;nbsp;- Search from Common Library Path(/lib) &lt;span style="font-size: x-small;"&gt;-lX11.&lt;/span&gt;&lt;br /&gt;#gcc -L &lt;b&gt;/folder/contain/&lt;a href="http://www.studentcpu.com/2011/10/how-configure-shared-library-difference.html" target="_blank"&gt;&lt;em&gt;library&lt;/em&gt;&lt;/a&gt;/path/event/&lt;/b&gt; -levent.&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;When I try to install Open Source Application I got the Following &lt;b&gt;ERROR MESSAGE&lt;/b&gt;:&lt;br /&gt;/usr/bin/ld: cannot find -lX11&lt;br /&gt;collect2: ld returned 1 exit status&lt;br /&gt;make: *** [eterm] Error 1&lt;br /&gt;&lt;br /&gt;&lt;b&gt;REASON :&lt;/b&gt; This type of issue Happened when it does not find the Proper Libraries in the Default Path(lib)&amp;nbsp; or (-L) Specified Location.&lt;/span&gt;&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;div style="background-color: black; color: lime; line-height: 18pt; width: 550px;"&gt;&lt;b&gt;FULL ERROR MESSAGE : &lt;/b&gt;cc -o eterm main.o init.o close.o font.o gc.o api.o sink.o select.o serial.o print.o tot_compose.o -O2 -Wall -fomit-frame-pointer -march=i386 -s &lt;b&gt;&lt;span style="font-size: large;"&gt;-L /usr/X11/lib&lt;/span&gt;&lt;/b&gt;  libansi.a libvt.a libsie.a libtel.a libwy.a &lt;b&gt;&lt;span style="font-size: large;"&gt;-lX11&lt;/span&gt;&lt;/b&gt; -L ../../OPT/MLT-Display-Lib/ -liscdisp -lstdc++ -L ../../opt/getval -lgetval&lt;br /&gt;/usr/bin/ld: cannot find &lt;b&gt;-lX11&lt;/b&gt;&lt;br /&gt;collect2: ld returned 1 exit status&lt;br /&gt;make: *** [eterm] Error 1&lt;/div&gt;&lt;br /&gt;&lt;b&gt;SOLUTION:&lt;/b&gt; &lt;br /&gt;1) We have to install the Proper Library Package.&lt;br /&gt;2) Or if it is already installed, we need to Link the Correct Library Path with -L and -l Option.&lt;br /&gt;&lt;div style="background-color: black; color: lime; line-height: 18pt; width: 400px;"&gt;....-march=i386 -s&lt;span style="color: magenta;"&gt;&lt;b&gt; -L /usr/X11/lib &lt;/b&gt;&lt;/span&gt;.... libtel.a libwy.a &lt;b&gt;&lt;span style="color: magenta;"&gt;-lX11&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;From the Above Statement it tries to find the Library X11 from /usr/X11/lib.&lt;br /&gt;&amp;nbsp;But it can't find, Because &amp;nbsp;X11 Located in /usr/X11R6/lib/.&lt;br /&gt;So we have to replace from /usr/&lt;b&gt;X11&lt;/b&gt;/lib to /usr/&lt;b&gt;X11R6&lt;/b&gt;/lib. Change this Variable (LDFLAGS) in Makefile.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;How To Find Out,Whether &lt;a href="http://www.studentcpu.com/2011/10/how-configure-shared-library-difference.html" target="_blank"&gt;&lt;i&gt;Library Package&lt;/i&gt;&lt;/a&gt; Is Already Install Or Not.&lt;/b&gt;&lt;br /&gt;METHOD 1&lt;br /&gt;#gcc program.c -lgetval&lt;br /&gt;&lt;span style="font-size: small;"&gt;1)&lt;/span&gt;-lgetval is Library.&lt;br /&gt;2) It is located under Default Library Path /lib&lt;br /&gt;3) To find #locate getval | grep lib &lt;br /&gt;File is located under /lib/libgetval.so&lt;br /&gt;METHOD 2&lt;br /&gt;#gcc graphics.h -L /usr/X11/lib –lX11&lt;br /&gt;1) We have to Search Xll library path under /usr/X11/lib&lt;br /&gt;2) #find /usr/X11/lib –name X11*&lt;br /&gt;3) If it is not located,  we have to search whether is it located in any another Path. Like&lt;br /&gt;4)#find / -name X11*&lt;br /&gt;5)if it is locate then change –L Correct Directory Path or&lt;br /&gt;&amp;nbsp;6)if it can't find anywhere else, Then we have to install particular library.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Similar Error Message&lt;/b&gt;:&lt;br /&gt;/usr/bin/ld: cannot find -l&lt;b&gt;&lt;span style="color: magenta;"&gt;z&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;/usr/bin/ld: cannot find -l&lt;b&gt;&lt;span style="color: magenta;"&gt;c&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;/usr/bin/ld: cannot find -l&lt;b&gt;&lt;span style="color: magenta;"&gt;gcc_s_32&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;/usr/bin/ld: cannot find -l&lt;b&gt;&lt;span style="color: magenta;"&gt;Xaw&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;/usr/bin/ld: cannot find -l&lt;b&gt;&lt;span style="color: magenta;"&gt;Imlib2&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;/usr/bin/ld: cannot find -l&lt;b&gt;&lt;span style="color: magenta;"&gt;perl&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-894085850064493183?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/894085850064493183/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/11/usrbinld-cannot-find-library-path.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/894085850064493183'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/894085850064493183'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/11/usrbinld-cannot-find-library-path.html' title='/usr/bin/ld Cannot Find Library Path Linkage Problem'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-7045796865021304687</id><published>2011-11-08T10:24:00.000-08:00</published><updated>2011-12-13T14:06:50.044-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Basic command'/><title type='text'>Sed Command Search Replace Delete Add Line Tricks and Tips</title><content type='html'>sed -e "expression script"&lt;br /&gt;-i to edit in place" Edit and save"&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Sed How to Replace slash / And backslash \ character&lt;/b&gt;&lt;br /&gt;Slash &lt;b&gt;&lt;span style="color: blue;"&gt;/ &lt;/span&gt;&lt;/b&gt;represent as Normal &lt;b&gt;&lt;span style="color: blue;"&gt;/&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;backslash &lt;b style="color: #cc0000;"&gt;\&lt;/b&gt; represent as&lt;span class="fullpost"&gt;&lt;span style="color: #444444;"&gt;   &lt;/span&gt;&lt;b style="color: #cc0000;"&gt;\\&lt;/b&gt;&lt;br /&gt;Example:&lt;br /&gt;# cat sedlinux.txt &lt;br /&gt;hi/kumar&lt;span style="font-size: large;"&gt;\&lt;/span&gt;kumar/&lt;br /&gt;a)sed 's:&lt;b style="color: #cc0000;"&gt;\\&lt;/b&gt;:&lt;b&gt;&lt;span style="color: blue;"&gt;/&lt;/span&gt;:&lt;/b&gt;g' sedlinux.txt [ &lt;b&gt;change back slash \ into slash / &lt;/b&gt;]&lt;br /&gt;hi&lt;b style="color: black;"&gt;/&lt;/b&gt;kumar&lt;span style="font-size: large;"&gt;&lt;b style="color: #444444;"&gt;/&lt;/b&gt;&lt;/span&gt;kumar&lt;b style="color: black;"&gt;/&lt;/b&gt;&lt;br /&gt;b)sed 's:/:\\:g' sedlinux.txt [ &lt;b&gt;change  slash / into back slash \ &lt;/b&gt;]&lt;br /&gt;hi&lt;span style="font-size: large;"&gt;\&lt;/span&gt;kumar&lt;span style="font-size: large;"&gt;\&lt;/span&gt;kumar&lt;span style="font-size: large;"&gt;\&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;#sed 's:/var/www/html:/home/username:g' filename&lt;br /&gt;|Replace /var/www/html to /home/username &lt;br /&gt;#sed -n '1~3p' filename | Print Every 3rd Line 1st,1+3 4th,7th line.&lt;br /&gt;#sed -n '0~2p' filename | Print Every 2nd LIne 0st,2nd,4th,6th,&lt;br /&gt;&lt;br /&gt;#sed '3i New Line' filename.txt | It will add New Line On 3rd Line.&lt;br /&gt;#sed -n '0~2i word' file | Add the new line in 0,2,4,6 th Line.&lt;br /&gt;&lt;br /&gt;To delete the line with matching Character&lt;br /&gt;&lt;div style="background-color: black; color: lime; line-height: 18pt; width: 400px;"&gt;#sed -i '/matchword/d' phone.txt &lt;br /&gt;#sed -i '/^$/d' phone.txt&amp;nbsp; - ^$ it will delete the empty lines &lt;br /&gt;#sed '0~2d' filename -&amp;nbsp; d Delete Line - 0,2,4,6 &lt;/div&gt;&lt;br /&gt;Replace every second occurrence in the line.&lt;br /&gt;#sed ‘s/&lt;b&gt;Search_Word&lt;u&gt;/&lt;/u&gt;Replace_Word&lt;/b&gt;/2’ filename&lt;br /&gt;Sed Replace with variable&lt;br /&gt;#sed “s/$&lt;b&gt;Search_Variable&lt;/b&gt;/$&lt;b&gt;Replace_Variable&lt;/b&gt;/g” filename&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-7045796865021304687?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/7045796865021304687/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/11/sed-search-replace-delete-add-line.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/7045796865021304687'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/7045796865021304687'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/11/sed-search-replace-delete-add-line.html' title='Sed Command Search Replace Delete Add Line Tricks and Tips'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-704920671288061356</id><published>2011-11-08T03:28:00.000-08:00</published><updated>2011-11-08T09:27:25.896-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Trouble Shooting'/><title type='text'>Recover Deleted Log Files without Third Part Software Linux.</title><content type='html'>&lt;b&gt;CONDITION:&lt;/b&gt;&lt;br /&gt;1)without rebooting server.&lt;br /&gt;2)we can get Only the Log files in this method.&lt;br /&gt;&lt;br /&gt;LOG FILES  are Generated In Two ways&lt;br /&gt;1)syslog Daemon.&lt;span class="fullpost"&gt;&lt;br /&gt;Example : -maillog,cron,var-log-message,&lt;br /&gt;2)Using File Descriptor Without syslog Daemon &lt;br /&gt;Example : http, &lt;br /&gt;Note : Using File Descriptor (Input,Output,Error redirection) Generate Log Files.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;STUDY:&lt;/b&gt;&lt;br /&gt;#cat /proc/"Process ID"/fd List out the file descriptor file which are used by these specific Process ID.&lt;br /&gt;&lt;br /&gt;Using syslog Daemon Recovering Log Files&lt;br /&gt;&lt;b&gt;&lt;span style="font-size: large;"&gt;1)&lt;/span&gt;&lt;/b&gt;Find the Process Id Of the syslog Daemon&lt;br /&gt;#ps -ef | grep syslog&lt;br /&gt;&lt;b&gt;&lt;span style="font-size: large;"&gt;2)&lt;/span&gt;&lt;/b&gt;List out the Specific Process ID File Descriptor Files.&lt;br /&gt;#ll /proc/"PID of syslog"/fd/&lt;br /&gt;For Example if PID is 1947 then,&lt;br /&gt;# ll /proc/1947/fd/&lt;br /&gt;lrwx------  1 root root 64 Nov  4 12:38 0 -&amp;gt; socket:[4341]&lt;br /&gt;l-wx------  1 root root 64 Nov  4 12:38 1 -&amp;gt; /var/log/messages&lt;br /&gt;l-wx------  1 root root 64 Nov  4 12:38 2 -&amp;gt; /var/log/secure&lt;br /&gt;l-wx------  1 root root 64 Nov  4 12:38 3 -&amp;gt; /var/log/maillog&lt;br /&gt;l-wx------  1 root root 64 Nov  4 12:38 4 -&amp;gt; /var/log/cron&lt;br /&gt;l-wx------  1 root root 64 Nov  4 12:38 5 -&amp;gt; /var/log/spooler&lt;br /&gt;l-wx------  1 root root 64 Nov  4 12:38 6 -&amp;gt; /var/log/boot.log&lt;br /&gt;l-wx------  1 root root 64 Nov  4 12:38 7 -&amp;gt; /var/log/news/news.crit&lt;br /&gt;l-wx------  1 root root 64 Nov  4 12:38 8 -&amp;gt; /var/log/news/news.err&lt;br /&gt;l-wx------  1 root root 64 Nov  4 12:38 9 -&amp;gt; /var/log/news/news.notice&lt;br /&gt;&lt;b&gt;&lt;span style="font-size: large;"&gt;3)&lt;/span&gt;&lt;/b&gt;Even Though we deleted that file, it has some soft link access. Using these features.&lt;br /&gt;we can recover these  file.&lt;br /&gt;For example : if we want to recover /var/log/cron file. then&lt;br /&gt;l-wx------  1 root root 64 Nov  4 12:38 &lt;b&gt;4 &lt;/b&gt;-&amp;gt; /var/log/cron&lt;br /&gt;#cp -var 4 /tmp/cron.backup&lt;br /&gt;&lt;br /&gt;Recover Log file for Specific Service Which are Not maintain by syslog Daemon&lt;br /&gt;&lt;b&gt;&lt;span style="font-size: large;"&gt;1) &lt;/span&gt;&lt;/b&gt;This is also the same Method. But  find out the Particular service Process Id rather than syslog Daemon PID. For Example http Service.&lt;br /&gt;#ps -ef | grep http&lt;br /&gt;# lsof -p "PID of http" | grep log&lt;br /&gt;&lt;b&gt;&lt;span style="font-size: large;"&gt;2) &lt;/span&gt;&lt;/b&gt;Remaining Same as the Above Method.&lt;br /&gt;#ls /proc/"PID of http"/fd&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-704920671288061356?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/704920671288061356/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/11/recover-deleted-log-files-without-third.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/704920671288061356'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/704920671288061356'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/11/recover-deleted-log-files-without-third.html' title='Recover Deleted Log Files without Third Part Software Linux.'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-5459991421996081977</id><published>2011-11-08T03:16:00.000-08:00</published><updated>2011-11-08T09:21:28.937-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ethernet'/><title type='text'>Device eth0 has different MAC address than expected</title><content type='html'>While I am changing My hard Disk from One Mother Board to Another Mother Board.&lt;br /&gt;I got the following error message. it was booting perfectly. But while I restart the Network I got the Following Error message.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Error Message : &lt;/b&gt;#service network restart&lt;br /&gt;Bringing up interface eth0:  Device eth0 has different MAC address than expected, ignoring.&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;b&gt;REASON :&lt;/b&gt; Because In the /etc/sysconfig/network-script/ifconfig-eth0  file MAC Address  Assign as the Old Mother Board Ether net Mac Address. so While I restart Network service  /etc/sysconfig/nework-script/ifconfig-eth0 Mac Address and Physical MAC Address Both Are different. Due to that We got the Above Error Message.&lt;br /&gt;&lt;b&gt;SOLUTION :&lt;/b&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;1) &lt;/b&gt;&lt;/span&gt;get the Local Mother Board MAC Address.&lt;br /&gt;# dmesg | grep  "Ethernet Address"&lt;br /&gt;eth0: Ethernet Address: &lt;b&gt;00:0D:61:90:AE:4A&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="font-size: large;"&gt;2)&lt;/span&gt;&lt;/b&gt;Update these Ethernet MAC   Address into that corresponding file/etc/sysconfig/network-scripts/ifcfg-eth0&lt;br /&gt;&lt;b&gt;&lt;span style="font-size: large;"&gt;3)&lt;/span&gt;&lt;/b&gt;Then restart the Network Service.It will work Perfectly.&lt;br /&gt;Bringing up interface eth0:  Device eth0 has different MAC address than expected, ignoring.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-5459991421996081977?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/5459991421996081977/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/11/device-eth0-has-different-mac-address.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/5459991421996081977'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/5459991421996081977'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/11/device-eth0-has-different-mac-address.html' title='Device eth0 has different MAC address than expected'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-1015512182243841321</id><published>2011-11-08T03:09:00.000-08:00</published><updated>2011-11-08T09:22:40.123-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Booting Problem'/><title type='text'>Booting Error Message | Grub Loading Stage2 Read Error</title><content type='html'>After I change the Linux Hard disk, &lt;br /&gt;While  booting Linux OS .  I got the following Error message. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;ERROR MESSAGE&lt;/b&gt;:  Grub Loading Stage2 Read Error&lt;br /&gt;&lt;br /&gt;&lt;b&gt;REASON:&lt;/b&gt;  Hard Disk Cable is not Connected Properly.&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;SOLUTION-&lt;/b&gt; : change the Hard disk cable Or Remove and Plug it Again then try it.&lt;br /&gt;Grub Loading Stage1 &amp;amp; Grub  Loading stage2  Error Message. Maximum  80% it will solve  by through changing the cable. If we get &lt;b&gt;grub &amp;gt;  &lt;/b&gt;shell then only we should re install the grub boot loader. To reinstall Grub Boot loader Refer this Link.&lt;a href="http://www.studentcpu.com/2011/01/repair-recover-corrupt-mbr-grub-boot.html" target="_blank"&gt; &lt;b&gt;&lt;i&gt;Reinstall Grub Boot Loader&lt;/i&gt;&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-1015512182243841321?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/1015512182243841321/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/11/grub-loading-stage2-read-error-booting.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/1015512182243841321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/1015512182243841321'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/11/grub-loading-stage2-read-error-booting.html' title='Booting Error Message | Grub Loading Stage2 Read Error'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-5945593021296239490</id><published>2011-10-28T02:10:00.000-07:00</published><updated>2011-11-10T09:39:38.940-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Shared Libraries'/><title type='text'>How Configure Shared Library Difference Between .a .so</title><content type='html'>Whenever we install the Open source Application or Software Read me file Instruct us to add directory of shared Library to $LD_LIBRARY_PATH Environment Variable to /etc/.bashrc file.&lt;br /&gt;$LD_LIBRARY_PATH - Environment Variable for Shared Library Loader.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Difference Between Shared Library Files .a .so&lt;/b&gt;&lt;br /&gt;Libraries are linked Either statically or Dynamically.&lt;br /&gt;&lt;b&gt;.so&lt;/b&gt; files are&lt;span style="color: magenta;"&gt; DYNAMIC &lt;/span&gt;library files.&lt;br /&gt;which are loaded /unloaded and linked to an Executable at&lt;b&gt; runtime.&lt;/b&gt;&lt;br /&gt;&lt;b&gt;.a &lt;/b&gt;files are &lt;span style="color: magenta;"&gt;STATIC &lt;/span&gt;library that get linked to code at a &lt;b&gt;compile Ti&lt;/b&gt;&lt;b&gt;me&lt;/b&gt;.&lt;br /&gt;To check the Shared library Dependency we can use ldd command.&lt;br /&gt;It is an ar archive&lt;br /&gt;&lt;br /&gt;Shared Library Files Configure Important command.&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;b&gt;ldd-&lt;/b&gt; List Dynamic Dependency.&lt;br /&gt;# ldd /usr/bin/w – These are Dynamic Dependency files for w binary files.&lt;br /&gt;libproc-3.2.3.so =&amp;gt; /lib/libproc-3.2.3.so (0x00cb5000)&lt;br /&gt;libc.so.6 =&amp;gt; /lib/tls/libc.so.6 (0x00b8a000)&lt;br /&gt;/lib/ld-linux.so.2 (0x00b6d000)&lt;br /&gt;&lt;br /&gt;lddconfig - Configure Dynamic Link Library.&lt;br /&gt;How to Configure Shared Library permanently . &lt;br /&gt;Add New Library Path into /etc/ld.so.conf (or) We have to add Any Library Path could be place in any file,whose name end with *.conf file Inside /etc/ld.so.conf.d/ like /etc/ld.so.conf.d/myapp.conf&lt;br /&gt;Activates the Path&lt;br /&gt;#ldconfig&lt;br /&gt;For confirmation (or) Verification&lt;br /&gt;#ldconfig -v | grep "New Library Path"&lt;br /&gt;&lt;br /&gt;ldconfig - configure dynamic linker run time bindings.&lt;br /&gt;Common Library Path.&lt;br /&gt;/usr/lib  Standard System Libraries.&lt;br /&gt;/usr/X11R6/lib/          X11 Libraries.&lt;br /&gt;How to Compile the Program with Shared Library for X server Program&lt;br /&gt;#gcc -Wall program.c -o output &lt;b&gt;&lt;span style="color: magenta;"&gt;-L /usr/X11R6/lib -l X11&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;-L share Library Directory &lt;br /&gt;-l Search&lt;br /&gt;-Wall Warning Message&lt;br /&gt;#&lt;b&gt;ld &lt;/b&gt;- GNU Linker&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-5945593021296239490?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/5945593021296239490/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/10/how-configure-shared-library-difference.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/5945593021296239490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/5945593021296239490'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/10/how-configure-shared-library-difference.html' title='How Configure Shared Library Difference Between .a .so'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-4530719842199785958</id><published>2011-10-18T03:35:00.000-07:00</published><updated>2011-10-18T03:36:56.667-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Basic'/><title type='text'>Install Font in  Redhat Linux Simple 4 Step</title><content type='html'>&lt;span style="color: magenta;"&gt;1)&lt;/span&gt;Download the Font which one you want ot install.&lt;br /&gt;&lt;span style="color: magenta;"&gt;2)&lt;/span&gt;open Nautilus window  and type "fonts:///"&lt;br /&gt;&lt;span style="color: magenta;"&gt;3)&lt;/span&gt;Drag the Font into that Nautilus Window (Fonts:///)&lt;br /&gt;&lt;span style="color: magenta;"&gt;4)&lt;/span&gt;Immediately you can't see that font' here.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Verification&lt;/b&gt;&lt;br /&gt;1)Just Log out then Log in, &lt;br /&gt;2)For then check whether that font is Take the effect or Not.&lt;br /&gt;Note: System-&amp;gt;Preference-&amp;gt; Fonts&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-4530719842199785958?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/4530719842199785958/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/10/install-font-in-redhat-linux-simple-4.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/4530719842199785958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/4530719842199785958'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/10/install-font-in-redhat-linux-simple-4.html' title='Install Font in  Redhat Linux Simple 4 Step'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-4365876387844806349</id><published>2011-10-14T00:30:00.000-07:00</published><updated>2011-10-14T00:35:20.704-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Booting Problem'/><title type='text'>Backup Restore MBR And Partition Table Linux</title><content type='html'>&lt;b style="color: magenta;"&gt;1)&lt;/b&gt;Master Boot sector it is 512 bytes&lt;br /&gt;&lt;b style="color: magenta;"&gt;2)&lt;/b&gt;Locate at the First Sector in Hard Disk or Storage Device&lt;br /&gt;&lt;b style="color: magenta;"&gt;3)&lt;/b&gt;MBR Total Size 512 Bytes&lt;br /&gt;Bootstrap  = 446 bytes&lt;br /&gt;Partition Table = 64 bytes&lt;br /&gt;Signature  = 2 bytes &lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Backup Only Master Boot Sector Not Partition Table&lt;/b&gt;&lt;br /&gt;#dd if=/dev/sda of=/tmp/mbr.bak&lt;span style="color: white;"&gt; &lt;/span&gt;&lt;span style="color: magenta;"&gt;bs=512&lt;/span&gt;&lt;span style="color: white;"&gt; &lt;/span&gt;count=1&lt;br /&gt;Restore&lt;br /&gt;#dd if=/tmp/mbr.bak of=/dev/sdb &lt;span style="color: magenta;"&gt;bs=446&lt;/span&gt; count=1&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Backup Only the Partition Not Master Boot Sectore MBR&lt;/b&gt;&lt;br /&gt;#dd if=/dev/sda of=/tmp/part.bak bs=512 count=1&lt;br /&gt;Restore&lt;span class="fullpost"&gt;&lt;br /&gt;#dd if=/tmp/part.bak of=/dev/sdb bs=1&lt;b&gt; &lt;span style="color: magenta;"&gt;count=64&lt;/span&gt;&lt;/b&gt; &lt;span style="color: magenta;"&gt;skip=446 seek=446&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;How to Create the Boot Load in MBR Refer the Link &lt;a href="http://www.studentcpu.com/2011/01/repair-recover-corrupt-mbr-grub-boot.html" target="_blank"&gt;Restore Recreate Lost MBR Grub Boot Loader Linux&lt;/a&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-4365876387844806349?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/4365876387844806349/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/10/backup-restore-mbr-partition-table.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/4365876387844806349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/4365876387844806349'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/10/backup-restore-mbr-partition-table.html' title='Backup Restore MBR And Partition Table Linux'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-2236134220641401461</id><published>2011-10-13T23:23:00.000-07:00</published><updated>2011-10-14T00:03:24.289-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Solaris'/><title type='text'>Create New Partition Slice | Backup the Partition Table In Unix</title><content type='html'>After Adding the New Disk To detect Unix OS Refer Following Method. &lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;How To ADD New Device &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;1)METHOD 1 &lt;br /&gt;a)init 0 &lt;br /&gt;b)ok Prompt type setenv auto-boot? False &lt;br /&gt;&lt;div style="color: #666666;"&gt;c)Power Off Workstation &lt;/div&gt;&lt;div style="color: #666666;"&gt;d)Install New Disk &lt;/div&gt;&lt;span style="color: #666666;"&gt;e)Power On Workstatio&lt;/span&gt;n &lt;br /&gt;f)Ok Prompt type setenv auto-boot? True &lt;br /&gt;g)boot -r &lt;br /&gt;2)METHOD 2 &lt;br /&gt;a)touch /reconfigure &lt;br /&gt;b)reboot &lt;br /&gt;3)METHOD 3 &lt;br /&gt;a)devfsadm -c device_class &lt;br /&gt;Fore Example Hard&amp;nbsp; Disk&amp;nbsp; &lt;br /&gt;#devfsadm -c disk &lt;br /&gt;Method 3 Is Simple and Best Method To ADD New Device.&lt;br /&gt;&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;Create the Partition Slice In Unix Operating System. &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;Using Format Disk Utility we can create the table in Unix Operating System &lt;br /&gt;-bash-3.00# &lt;b&gt;&lt;span style="color: magenta;"&gt;format&lt;/span&gt;&lt;/b&gt;&amp;nbsp; [ it will show the List of disk ]&lt;br /&gt;Searching for disks...done &lt;br /&gt;AVAILABLE DISK SELECTIONS: &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0. c0d0 &lt;default 2085="" 255="" 2="" 63="" alt="" cyl="" hd="" sec=""&gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0 &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1. c0d1 &lt;default 128="" 2044="" 2="" 32="" alt="" cyl="" hd="" sec=""&gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /pci@0,0/pci-ide@1,1/ide@0/cmdk@1,0 &lt;br /&gt;Specify disk (enter its number):&lt;b style="color: magenta;"&gt;2&lt;/b&gt;&amp;nbsp;&amp;nbsp; [ Choose the Disk ]&lt;br /&gt;format&amp;gt;&lt;b&gt; &lt;span style="color: magenta;"&gt;part &lt;/span&gt;&lt;/b&gt;&lt;br /&gt;WARNING - This disk may be in use by an application that has &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; modified the fdisk table. Ensure that this disk isS &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; not currently in use before proceeding to use fdisk. &lt;br /&gt;format&amp;gt; &lt;b&gt;&lt;span style="color: magenta;"&gt;fdisk&lt;/span&gt;&lt;/b&gt;&amp;nbsp; [ Prepare Disk For Creating The Partition ] &lt;br /&gt;No fdisk table exists. The default partition for the disk is: &lt;br /&gt;&amp;nbsp; a 100% "SOLARIS System" partition &lt;br /&gt;Type "y" to accept the default partition,&amp;nbsp; otherwise type "n" to edit the &lt;br /&gt;&amp;nbsp;partition table. &lt;br /&gt;&lt;br /&gt;format&amp;gt; &lt;b&gt;&lt;span style="color: magenta;"&gt;part&lt;/span&gt; &lt;/b&gt;[ Used For create the Partition ] &lt;br /&gt;PARTITION MENU: &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - change `0' partition &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - change `1' partition &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - change `2' partition &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - change `3' partition &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - change `4' partition &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - change `5' partition &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - change `6' partition &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - change `7' partition &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select - select a predefined table &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; modify - modify a predefined partition table &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name&amp;nbsp;&amp;nbsp; - name the current table &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print&amp;nbsp; - display the current table &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; label&amp;nbsp; - write partition map and label to the disk &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; !&lt;cmd&gt; - execute &lt;cmd&gt;, then return &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quit &lt;br /&gt;Oracle Solaris&amp;nbsp; we can create the 7 Slice. &lt;br /&gt;In the second partition it show the whole Hard disk size &lt;br /&gt;partition&amp;gt; &lt;b&gt;&lt;span style="color: magenta;"&gt;print &lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Current partition table (original): &lt;br /&gt;Total disk cylinders available: 4092 + 2 (reserved cylinders) &lt;br /&gt;Part&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Tag&amp;nbsp;&amp;nbsp;&amp;nbsp; Flag&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cylinders&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Blocks &lt;br /&gt;&amp;nbsp; 0 unassigned&amp;nbsp;&amp;nbsp;&amp;nbsp; wm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (0/0/0)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 &lt;br /&gt;&amp;nbsp; 1 unassigned&amp;nbsp;&amp;nbsp;&amp;nbsp; wm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (0/0/0)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 &lt;br /&gt;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; backup&amp;nbsp;&amp;nbsp;&amp;nbsp; wu&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 - 4091&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7.99GB&amp;nbsp;&amp;nbsp;&amp;nbsp; (4092/0/0) 16760832 &lt;br /&gt;&amp;nbsp; 3 unassigned&amp;nbsp;&amp;nbsp;&amp;nbsp; wm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (0/0/0)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 &lt;br /&gt;&amp;nbsp; 4 unassigned&amp;nbsp;&amp;nbsp;&amp;nbsp; wm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (0/0/0)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 &lt;br /&gt;&amp;nbsp; 5 unassigned&amp;nbsp;&amp;nbsp;&amp;nbsp; wm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (0/0/0)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 &lt;br /&gt;&amp;nbsp; 6 unassigned&amp;nbsp;&amp;nbsp;&amp;nbsp; wm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (0/0/0)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 &lt;br /&gt;&amp;nbsp; 7 unassigned&amp;nbsp;&amp;nbsp;&amp;nbsp; wm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (0/0/0)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 &lt;br /&gt;&amp;nbsp; 8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; boot&amp;nbsp;&amp;nbsp;&amp;nbsp; wu&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 -&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.00MB&amp;nbsp;&amp;nbsp;&amp;nbsp; (1/0/0)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4096 &lt;br /&gt;&amp;nbsp; 9 alternates&amp;nbsp;&amp;nbsp;&amp;nbsp; wm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 -&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.00MB&amp;nbsp;&amp;nbsp;&amp;nbsp; (2/0/0)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8192 &lt;br /&gt;partition&amp;gt; &lt;b style="color: magenta;"&gt;0&amp;nbsp;&lt;/b&gt; [Create the Partition 0 ]&lt;br /&gt;Part&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Tag&amp;nbsp;&amp;nbsp;&amp;nbsp; Flag&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cylinders&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Blocks &lt;br /&gt;&amp;nbsp; 0 unassigned&amp;nbsp;&amp;nbsp;&amp;nbsp; wm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (0/0/0)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;br /&gt;Enter partition id tag[unassigned]:&amp;nbsp; &lt;br /&gt;Enter partition permission flags[wm]:&amp;nbsp; &lt;br /&gt;Enter new starting cyl[0]:&amp;nbsp; &lt;br /&gt;Enter partition size[0b, 0c, 0e, 0.00mb, 0.00gb]: &lt;b&gt;&lt;span style="color: magenta;"&gt;3g&lt;/span&gt;&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;After create the all the slice print the Partition using print (or) pr command &lt;br /&gt;partition&amp;gt; &lt;b&gt;&lt;span style="color: magenta;"&gt;pr&lt;/span&gt;&amp;nbsp;&lt;/b&gt;&amp;nbsp; [Print the Partition Table]&lt;br /&gt;Current partition table (unnamed): &lt;br /&gt;Total disk cylinders available: 4092 + 2 (reserved cylinders)&amp;nbsp;&lt;/cmd&gt;&lt;/cmd&gt;&lt;/default&gt;&lt;/default&gt;&lt;br /&gt;&lt;pre&gt;Part&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Tag&amp;nbsp;&amp;nbsp;&amp;nbsp; Flag&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cylinders&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Size&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Blocks&lt;br /&gt;&lt;br /&gt;&amp;nbsp; 0 unassigned&amp;nbsp;&amp;nbsp;&amp;nbsp; wm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 - 1535&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.00GB&amp;nbsp;&amp;nbsp;&amp;nbsp; (1536/0/0)&amp;nbsp; 6291456&lt;br /&gt;&lt;br /&gt;&amp;nbsp; 1 unassigned&amp;nbsp;&amp;nbsp;&amp;nbsp; wm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 -&amp;nbsp; 255&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 512.00MB&amp;nbsp;&amp;nbsp;&amp;nbsp; (256/0/0)&amp;nbsp;&amp;nbsp; 1048576&lt;br /&gt;&lt;br /&gt;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; backup&amp;nbsp;&amp;nbsp;&amp;nbsp; wu&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 - 4091&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7.99GB&amp;nbsp;&amp;nbsp;&amp;nbsp; (4092/0/0) 16760832&lt;br /&gt;&lt;br /&gt;&amp;nbsp; 3 unassigned&amp;nbsp;&amp;nbsp;&amp;nbsp; wm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 -&amp;nbsp; 255&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 512.00MB&amp;nbsp;&amp;nbsp;&amp;nbsp; (256/0/0)&amp;nbsp;&amp;nbsp; 1048576&lt;br /&gt;&lt;br /&gt;&amp;nbsp; 4 unassigned&amp;nbsp;&amp;nbsp;&amp;nbsp; wm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (0/0/0)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;br /&gt;&lt;br /&gt;&amp;nbsp; 5 unassigned&amp;nbsp;&amp;nbsp;&amp;nbsp; wm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 -&amp;nbsp; 255&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 512.00MB&amp;nbsp;&amp;nbsp;&amp;nbsp; (256/0/0)&amp;nbsp;&amp;nbsp; 1048576&lt;br /&gt;&lt;br /&gt;&amp;nbsp; 6 unassigned&amp;nbsp;&amp;nbsp;&amp;nbsp; wm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 -&amp;nbsp; 255&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 512.00MB&amp;nbsp;&amp;nbsp;&amp;nbsp; (256/0/0)&amp;nbsp;&amp;nbsp; 1048576&lt;br /&gt;&lt;br /&gt;&amp;nbsp; 7 unassigned&amp;nbsp;&amp;nbsp;&amp;nbsp; wm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 -&amp;nbsp; 255&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 512.00MB&amp;nbsp;&amp;nbsp;&amp;nbsp; (256/0/0)&amp;nbsp;&amp;nbsp; 1048576&lt;br /&gt;&lt;br /&gt;&amp;nbsp; 8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; boot&amp;nbsp;&amp;nbsp;&amp;nbsp; wu&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 -&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.00MB&amp;nbsp;&amp;nbsp;&amp;nbsp; (1/0/0)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4096&lt;br /&gt;&lt;br /&gt;&amp;nbsp; 9 alternates&amp;nbsp;&amp;nbsp;&amp;nbsp; wm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 -&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.00MB&amp;nbsp;&amp;nbsp;&amp;nbsp; (2/0/0)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8192&lt;/pre&gt;Finally save the table using name command. &lt;br /&gt;partition&amp;gt; &lt;b&gt;&lt;span style="color: magenta;"&gt;name&lt;/span&gt;&lt;/b&gt;&amp;nbsp; [Create the Table name for Partition]&lt;br /&gt;Enter table name (remember quotes): Partition-table- name&lt;br /&gt;Finally write the table using label command &lt;br /&gt;partition&amp;gt; &lt;b&gt;&lt;span style="color: magenta;"&gt;label&lt;/span&gt;&lt;/b&gt; - [ Save the Partition To Disk ]. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;How To Backup The Hard Disk Partition Table - Import To New Hard Disk&lt;/b&gt;&lt;/span&gt; &lt;br /&gt;prtvtoc - Print the Volume of Table content &lt;br /&gt;fmthard - Update the Vtoc(Volume Table of Content). &lt;br /&gt;a)prtvtoc /dev/rdsk/c3d0t0&lt;b style="color: magenta;"&gt;s2&lt;/b&gt; &amp;gt; /tmp/c3t0d0.vtoc &lt;br /&gt;b)fmthard -s /tmp/c3t0d0.vtoc /dev/rdsk/c4d1to&lt;new-disk&gt;&lt;b style="color: magenta;"&gt;s2 &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;We can import the hard disk Directly in single Hard Disk&lt;br /&gt;a)prtvtoc /dev/rdsk/cxtxdx&lt;b style="color: magenta;"&gt;s2&lt;/b&gt; | fmthard -s - /dev/rdsk/cxtxdx&lt;b style="color: magenta;"&gt;s2&lt;/b&gt;&amp;nbsp;&lt;/new-disk&gt;&lt;br /&gt;&lt;new-disk&gt; Note - For backup and Restore we have to Mention the Slice 2 &lt;/new-disk&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;new-disk&gt;&lt;br /&gt;&lt;b style="color: magenta;"&gt;Error Message&lt;/b&gt; : &lt;br /&gt;-bash-3.00# fmthard -s /tmp/c0d1s2.vtoc /dev/rdsk/c1d1s2 &lt;br /&gt;fmthard: Partition 2 specifies the full disk and is not equal &lt;br /&gt;full size of disk.&amp;nbsp; The full disk capacity is 16760832 sectors. &lt;br /&gt;fmthard: Partition 2 specified as 16764928 sectors starting at 0 &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; does not fit. The full disk contains 16760832 sectors. &lt;br /&gt;fmthard:&amp;nbsp; New volume table of contents now in place &lt;br /&gt;&lt;br /&gt;While Update the vtoc if we get any error message even though both Hard Disk are the same disk space. To Resolve that issue. Just create the one partition In the new disk. then try it, it will work perfectly. &lt;/new-disk&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-2236134220641401461?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/2236134220641401461/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/10/new-partition-slice-backup-partition.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/2236134220641401461'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/2236134220641401461'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/10/new-partition-slice-backup-partition.html' title='Create New Partition Slice | Backup the Partition Table In Unix'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-7932911561826450467</id><published>2011-10-13T14:18:00.000-07:00</published><updated>2012-01-09T00:00:49.681-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Shell Scripting'/><title type='text'>Shell Scripting Important Syntax for loop Switch Case</title><content type='html'>Important&amp;nbsp; If Condition, For Loop While Loop&lt;br /&gt;&lt;b&gt;if Condition&lt;/b&gt; : Syntax&lt;br /&gt;If { condition }&lt;br /&gt;then {statement}&lt;br /&gt;elif {condition }&lt;br /&gt;{statement }&lt;br /&gt;fi&lt;br /&gt;Example&lt;br /&gt;If [ $a ==10 ]&lt;br /&gt;then&lt;br /&gt;echo “value is Ten”&lt;br /&gt;else&lt;br /&gt;echo “Value is not Ten”&lt;br /&gt;&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;&lt;b&gt;For Loop&lt;/b&gt;- Method -1&lt;br /&gt;For ( ( c=1;c&amp;lt;=5;c++))&lt;br /&gt;do&lt;br /&gt;echo “ Welcome $c times “&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;Method 2&lt;br /&gt;for c in 1 2 3 4 5&lt;br /&gt;do&lt;br /&gt;echo "welcome $c Times"&lt;br /&gt;done&lt;br /&gt;Method 3&lt;br /&gt;for c in {1..5}&lt;br /&gt;do&lt;br /&gt;echo "welcome $c Times"&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;Number comparison in shell script&lt;br /&gt;--eq&lt;br /&gt;--ne&lt;br /&gt;--lt&lt;br /&gt;--gt&lt;br /&gt;-ge&lt;br /&gt;&lt;br /&gt;Read variable in shell script&lt;br /&gt;read { variable name }&lt;br /&gt;&lt;br /&gt;&lt;b&gt;While Loop Statement&lt;/b&gt;&lt;br /&gt;c=3;&lt;br /&gt;while [ $c -le 15 ]&lt;br /&gt;do&lt;br /&gt;echo "Welcome $c times"&lt;br /&gt;((c++))&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Switch case Example&lt;/b&gt;&lt;br /&gt;Check=1&lt;br /&gt;Case $check in&lt;br /&gt;1) echo “redhat;;&lt;br /&gt;2) echo “ubunut” ;;&lt;br /&gt;*) echo “none”&lt;br /&gt;esac&lt;br /&gt;Trigger the Back Ground Process to foreground&lt;br /&gt;Process Id Vary from 0 to 65535&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Shell Script How To Do The Addition With Variable&lt;/b&gt;&lt;br /&gt;S=$((10+$i))  just like for loop for ((;;))&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-7932911561826450467?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/7932911561826450467/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/12/shell-scripting-important-syntax-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/7932911561826450467'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/7932911561826450467'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/12/shell-scripting-important-syntax-for.html' title='Shell Scripting Important Syntax for loop Switch Case'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-4658404083516399891</id><published>2011-10-10T04:35:00.000-07:00</published><updated>2011-10-14T04:39:24.491-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Yum Server Configuration'/><title type='text'>How To Install Vlc Player In Redhat Linux Using Yum</title><content type='html'>How to Create Repo File *.repo For vlc &lt;br /&gt;1)Repo file located under /etc/yum.repos.d/ with *.repo extension &lt;br /&gt;LINE 1)[name ] &lt;br /&gt;LINE 2)Name of the Repo &lt;br /&gt;LINE 3)BaseURL = Location of the Repo - /repodata/ *.xml.gz &lt;br /&gt;LINE 4)gpgcheck 1/0 Enable/Disable &lt;br /&gt;LINE 5)enabled &lt;br /&gt;&lt;br /&gt;create vlc.repo file under /etc/yum.repos.d/ &lt;br /&gt;LINE &lt;span style="color: magenta;"&gt;1)&lt;/span&gt;[vlc] &lt;br /&gt;LINE&lt;span style="color: magenta;"&gt; 2)&lt;/span&gt;name=vlc &lt;br /&gt;LINE &lt;span style="color: magenta;"&gt;3)&lt;/span&gt;baseurl=http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/ &lt;br /&gt;LINE &lt;span style="color: magenta;"&gt;4)&lt;/span&gt;enabled=1 &lt;br /&gt;LINE &lt;span style="color: magenta;"&gt;5)&lt;/span&gt;gpgcheck=0 &lt;br /&gt;2)yum install vlc &lt;br /&gt;So that, First it will download vlc packages. &lt;br /&gt;Then it will install the vlc player. &lt;br /&gt;&lt;br /&gt;Repo File BaseURL - http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/ &lt;span class="fullpost"&gt;&lt;br /&gt;1)It should have sub directory Name "&lt;span style="color: magenta;"&gt;repodata&lt;/span&gt;" &lt;br /&gt;2)Under Here it has file name with extension &lt;span style="color: magenta;"&gt;.xml.gz&lt;/span&gt; and &lt;span style="color: magenta;"&gt;.xml&lt;/span&gt;&lt;br /&gt;then only it should work perfectly&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;b&gt;For Example Base URL &lt;/b&gt;&lt;br /&gt;condor-Development - http://www.cs.wisc.edu/condor/yum/development/rhel5 &lt;br /&gt;VLC &amp;nbsp;&amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; - http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/ &lt;br /&gt;&lt;br /&gt;If we are not Give the Correct baseurl. For then, it will through Following error message. &lt;br /&gt;#yum install vlc &lt;br /&gt;http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/&lt;span style="color: magenta;"&gt;repodata/repomd.xml&lt;/span&gt;: [Errno 14] HTTP Error 404: Not Found &lt;br /&gt;Trying other mirror. &lt;br /&gt;http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS&lt;span style="color: magenta;"&gt;/repodata/primary.xml.gz&lt;/span&gt;: [Errno 14] HTTP Error 404: Not Found &lt;br /&gt;Trying other mirror. &lt;br /&gt;Error: failure: repodata/primary.xml.gz from vlc: [Errno 256] No more mirrors to try &lt;br /&gt;&lt;br /&gt;Becuase - &lt;br /&gt;&lt;b&gt;repodata/repomd.xml&lt;/b&gt;-&lt;br /&gt;&lt;b&gt;repodata/primary.xml.gz&lt;/b&gt; &lt;br /&gt;Both of these files are not present here. &lt;br /&gt;Due to that&amp;nbsp; reason,it is through Error message.Install vlc player in Redhat Linux&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-4658404083516399891?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/4658404083516399891/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/10/how-to-install-vlc-player-in-redhat.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/4658404083516399891'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/4658404083516399891'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/10/how-to-install-vlc-player-in-redhat.html' title='How To Install Vlc Player In Redhat Linux Using Yum'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-965362811376339946</id><published>2011-09-29T06:28:00.000-07:00</published><updated>2011-12-19T08:40:57.859-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Trouble Shooting'/><category scheme='http://www.blogger.com/atom/ns#' term='Booting Problem'/><title type='text'>Check Linux Server Before Troubleshooting The Problem</title><content type='html'>&lt;b style="color: magenta;"&gt;1)&lt;/b&gt;Study About that Server&lt;br /&gt;Hard disk-Ethernet-RAM(Memory)-OS-Kernel-Version-Hostname.&lt;br /&gt;&lt;br /&gt;&lt;b style="color: magenta;"&gt;2)&lt;/b&gt;check status of iptables- firewall,selinux-&lt;br /&gt;top-free-df&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;b style="color: magenta;"&gt;3)&lt;/b&gt;Read the Log Message /var/log/message or dmesg&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;b style="color: magenta;"&gt;4)&lt;/b&gt;Backup of the Important configuraiton file&lt;br /&gt;/etc/fstab-/boot/grub/grub.conf&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;b style="color: magenta;"&gt;5)&lt;/b&gt;check the hard disk speed using hdparm&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;b style="color: magenta;"&gt;6)&lt;/b&gt;Most Of the problem resolved by through reading the error message,&lt;br /&gt;&lt;br /&gt;&lt;b style="color: magenta;"&gt;7)&lt;/b&gt;Read basic important entries in the file.&lt;br /&gt;hostname - fully Qualified Domain Name, Ethernet address eth0, and security limit /etc/security/limit.conf,ulimit -l&lt;br /&gt;&amp;nbsp;So that Read The Error Message Clearly and Slowly. Get the Logical idea Regarding what is reason for this problem.&lt;br /&gt;&lt;br /&gt;Some of the Comman Error Message And Solution.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;For Comman Booting Problem&lt;/b&gt; &lt;a href="http://www.studentcpu.com/search/label/Booting%20Problem" target="_blank"&gt;Common Booting Problem&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;NFS Error MESSAGE&lt;/b&gt; - &lt;a href="http://www.studentcpu.com/2011/01/mount-to-nfs-server-hostname-failedrpc.html" target="_blank"&gt; NFS ERROR: NFS Server Hostname failed:RPC Error: Program not registered&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;VNCVIEWER Error Message&lt;/b&gt;&amp;nbsp; &lt;a href="http://www.studentcpu.com/2011/01/vncviewer-unable-to-open-display.html" target="_blank"&gt;vncviewer unable to open display&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;SSH Error&amp;nbsp;&lt;/b&gt; &lt;a href="http://www.studentcpu.com/2011/09/must-be-owned-by-root-and-not-group-or.html" target="_blank"&gt; Must Be Owned By Root Not Group Or World &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Display Error&lt;/b&gt; &lt;a href="http://www.studentcpu.com/2011/08/failed-to-start-x-server-linux-display.html" target="_blank"&gt;Failed To Start The X Server &lt;/a&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;Ssh Login Error&lt;/b&gt; &lt;a href="http://www.studentcpu.com/2011/03/ssh-login-error-connect-to-host-ip-port.html" target="_blank"&gt;Connect To Host IP port 22: Connection Refused&lt;/a&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;Outlook Express &lt;/b&gt;&lt;a href="http://www.studentcpu.com/2010/03/outlook-express-configuration-error.html" target="_blank"&gt;Configuration Error message Error Number: 0x800CCC79 &lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-965362811376339946?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/965362811376339946/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/09/check-linux-server-before.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/965362811376339946'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/965362811376339946'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/09/check-linux-server-before.html' title='Check Linux Server Before Troubleshooting The Problem'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-1522092999006193763</id><published>2011-09-29T04:26:00.000-07:00</published><updated>2011-09-29T04:33:38.088-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cluster'/><title type='text'>How to Configure cluster.conf Active Active Cluster</title><content type='html'>#system-config-cluster Graphical Window Interface. &lt;br /&gt;we can create the cluster.conf file. &lt;br /&gt;&lt;br /&gt;&lt;b style="color: magenta;"&gt;1)&lt;/b&gt;Create the Failover Domain &lt;br /&gt;Creates Nodes with Priority. &lt;br /&gt;&lt;b style="color: magenta;"&gt;2)&lt;/b&gt;Create the Resource &lt;br /&gt;&lt;b style="color: magenta;"&gt;3)&lt;/b&gt;Create the the service. &lt;br /&gt;3.1)Add the Resource To the Service then&amp;nbsp; &lt;br /&gt;3.2)add Fail over Domain(nodes with priority). &lt;br /&gt;&lt;b style="color: magenta;"&gt;4)&lt;/b&gt;1 is Higher Priority. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;How to Read cluster.conf file in Fail over Domain. &lt;/b&gt;&lt;br /&gt;&lt;b style="color: magenta;"&gt;1)&lt;/b&gt; Check the service tag &lt;br /&gt;service it will try to start their service in theFail over domain. &lt;br /&gt;&lt;b style="color: magenta;"&gt;2.1)&lt;/b&gt;In the Failover domain which node has highest Priority. &lt;br /&gt;In that highest priority Node it will try to start their service. &lt;br /&gt;&lt;b style="color: magenta;"&gt;2.2)&lt;/b&gt;If the Highest Priority node is Down,&amp;nbsp; &lt;br /&gt;THEN -- It will check the next Lowest priority node. &lt;br /&gt;IF LOWEST PRIORTY&amp;nbsp; Node UP then --It will run that service at lowest priority node, &lt;br /&gt;when will&amp;nbsp; the Highest priority node is up. In that Time &lt;span class="fullpost"&gt;&lt;br /&gt;without Human interaction service will automatically migrate from the Lowest Priority Node to Highest Priority Node. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Example of Cluster.conf file &lt;/b&gt;&lt;br /&gt;&amp;lt;?xml version="1.0" ?&amp;gt; &lt;br /&gt;&amp;lt;cluster config_version="9" name="Test_cluster"&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;fence_daemon post_fail_delay="0" post_join_delay="3"/&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;clusternodes&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;clusternode name="hn1.redhat.com" nodeid="1" votes="1"&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;fence/&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/clusternode&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;clusternode name="hn2.redhat.com" nodeid="2" votes="1"&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;fence/&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/clusternode&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/clusternodes&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cman expected_votes="1" two_node="1"/&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;fencedevices/&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;rm&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;failoverdomains&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;failoverdomain name="first" ordered="1" restricted="0"&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;failoverdomainnode name="&lt;b style="color: magenta;"&gt;hn1.redhat.com&lt;/b&gt;" priority="1"/&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;failoverdomainnode name="&lt;b style="color: magenta;"&gt;hn2.redhat.com&lt;/b&gt;" priority="2"/&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/failoverdomain&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;failoverdomain name="second" ordered="1"&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;failoverdomainnode name="hn1.redhat.com" priority="2"/&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;failoverdomainnode name="hn2.redhat.com" priority="1"/&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/failoverdomain&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/failoverdomains&amp;gt; &lt;br /&gt;&lt;b style="color: magenta;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;resources&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ip address="151.8.18.55" monitor_link="1"/&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ip address="151.8.18.56" monitor_link="1"/&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/resources&amp;gt; &lt;/b&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;service autostart="1" domain="first" name="IP Address-55" recovery="relocate"&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ip ref="151.8.18.55"/&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/service&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;service autostart="1" domain="second" name="IP Address -56" recovery="relocate"&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ip ref="151.8.18.56"/&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/service&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/rm&amp;gt; &lt;br /&gt;&amp;lt;/cluster&amp;gt; &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Failover Domain &lt;/b&gt;&lt;br /&gt;1)hn1.redhat.com &lt;br /&gt;2)hn2.redhat.com &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Resource &lt;/b&gt;&lt;br /&gt;1)IP Address 151.8.18.55 &lt;br /&gt;2)IP Address 151.8.18.56 &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Service&amp;nbsp; &lt;/b&gt;&lt;br /&gt;1)IP Address -55 &lt;br /&gt;2)IP Address -56 &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Update The Cluster.conf file &lt;/b&gt;&lt;br /&gt;# ccs_tool update /etc/cluster/cluster.conf &lt;br /&gt;Config file updated from version 27 to 28 &lt;br /&gt;Update complete. &lt;br /&gt;&lt;br /&gt;# cman_tool nodes &lt;br /&gt;Node&amp;nbsp; Sts&amp;nbsp;&amp;nbsp; Inc&amp;nbsp;&amp;nbsp; Joined&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name &lt;br /&gt;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp; M&amp;nbsp;&amp;nbsp;&amp;nbsp; 632&amp;nbsp;&amp;nbsp; 2011-09-16 06:26:53&amp;nbsp; hn1.redhat.com &lt;br /&gt;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp; M&amp;nbsp;&amp;nbsp;&amp;nbsp; 636&amp;nbsp;&amp;nbsp; 2011-09-16 06:26:53&amp;nbsp; hn2.redhat.com &lt;br /&gt;&lt;br /&gt;#ip addr list -- Get the virtual Ip Address &lt;br /&gt;------------------------------------------------------ &lt;br /&gt;2: eth0: &amp;lt;BROADCAST,MULTICAST,UP,LOWER_UP&amp;gt; mtu 1500 qdisc pfifo_fast qlen 1000 &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; link/ether 08:00:27:06:76:c7 brd ff:ff:ff:ff:ff:ff &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; inet 151.8.18.53/16 brd 151.8.255.255 scope global eth0 &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; inet 151.8.18.55/16 scope global secondary eth0 &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; inet6 fe80::a00:27ff:fe06:76c7/64 scope link&amp;nbsp; &lt;br /&gt;&lt;br /&gt;# &lt;b&gt;clustat -l&lt;/b&gt; &lt;br /&gt;Cluster Status for Test_cluster @ Fri Sep 16 06:44:36 2011 &lt;br /&gt;Member Status: Quorate &lt;br /&gt;&amp;nbsp;Member Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID&amp;nbsp;&amp;nbsp; Status &lt;br /&gt;&amp;nbsp;------ ----&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ---- ------ &lt;br /&gt;&amp;nbsp;hn1.redhat.com&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 Online, Local, rgmanager &lt;br /&gt;&amp;nbsp;hn2.redhat.com&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 Online, rgmanager &lt;br /&gt;Service Information &lt;br /&gt;------- ----------- &lt;br /&gt;Service Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : service:File system Mounting &lt;br /&gt;&amp;nbsp; Current State&amp;nbsp;&amp;nbsp; : started (112) &lt;br /&gt;&amp;nbsp; Flags&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : none (0) &lt;br /&gt;&amp;nbsp; Owner&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : hn2.redhat.com &lt;br /&gt;&amp;nbsp; Last Owner&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : hn1.redhat.com &lt;br /&gt;&amp;nbsp; Last Transition : Fri Sep 16 06:19:27 2011 &lt;br /&gt;&lt;br /&gt;Service Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : service:IP Address &lt;br /&gt;&amp;nbsp; Current State&amp;nbsp;&amp;nbsp; : started (112) &lt;br /&gt;&amp;nbsp; Flags&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : none (0) &lt;br /&gt;&amp;nbsp; Owner&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : hn1.redhat.com &lt;br /&gt;&amp;nbsp; Last Owner&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : hn2.redhat.com &lt;br /&gt;&amp;nbsp; Last Transition : Fri Sep 16 06:27:18 2011 &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Relocate the Service &lt;/b&gt;&lt;br /&gt;-r Resource &lt;br /&gt;-m Node &lt;br /&gt;#clusvcadm -r service-name -m host-name &lt;br /&gt;# clusvcadm -r "IP Address-55" -m hn2.redhat.com &lt;br /&gt;Trying to relocate service:IP Address to hn2.redhat.com...Success &lt;br /&gt;service:IP Address is now running on hn2.redhat.com &lt;br /&gt;&lt;br /&gt;#watch clustat &lt;br /&gt;Update the Cluster Status &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Mount the NFS &lt;/b&gt;&lt;br /&gt;&amp;lt;/resource&amp;gt;&amp;lt;netfs export="/home/jkumar" force_unmount="0" fstype="nfs" host="151.8.18.46" mountpoint="/mnt" name="NFS" options=""/&amp;gt; &lt;br /&gt;Mount Disk &lt;br /&gt;&amp;lt;/filesystem&amp;gt;&amp;lt;fs device="/dev/sdb1" force_fsck="0" force_unmount="0" fsid="41420" fstype="ext3" mountpoint="/mnt1" name="sdb" options="" self_fence="0"/&amp;gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-1522092999006193763?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/1522092999006193763/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/09/how-to-configure-clusterconf-active.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/1522092999006193763'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/1522092999006193763'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/09/how-to-configure-clusterconf-active.html' title='How to Configure cluster.conf Active Active Cluster'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-9114421725644800757</id><published>2011-09-14T08:14:00.000-07:00</published><updated>2011-09-14T08:20:14.806-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux support'/><title type='text'>ssh Error - Must Be Owned By Root Not Group Or World</title><content type='html'># /etc/init.d/sshd start&lt;br /&gt;Starting sshd: /var/empty/sshd must be owned by root and not group or world-writable.                                                            [FAILED] &lt;br /&gt;&lt;b&gt;ERROR:&lt;/b&gt;Starting sshd: /var/empty/sshd must be owned by root and not group or world-writable. &lt;br /&gt;check the file permission for /var/empty&lt;br /&gt;If it is full permission then it won't work.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: black;"&gt;&lt;b&gt;REASON:&lt;/b&gt;&lt;/div&gt;/var/empty/sshd does not set the correct permission&lt;span class="fullpost"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;b&gt;SOLUTION&lt;/b&gt;&lt;br /&gt;1)we have to set the correct permission&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;span class="fullpost"&gt;#chmod go-w /var/empty&lt;br /&gt;we have to remove the writable permission for group file name /var/empty- then only it should start sshd service perfectly.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-9114421725644800757?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/9114421725644800757/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/09/must-be-owned-by-root-and-not-group-or.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/9114421725644800757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/9114421725644800757'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/09/must-be-owned-by-root-and-not-group-or.html' title='ssh Error - Must Be Owned By Root Not Group Or World'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-3100990243059378608</id><published>2011-09-14T07:53:00.000-07:00</published><updated>2011-09-14T07:57:43.180-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Booting Problem'/><title type='text'>Hard Disk Error - Currently Unreadable Pending Sectors  smartd</title><content type='html'>while I start the Linux system, Everyting Booting perfectly.&lt;br /&gt;All the Service and Run level script,&lt;br /&gt;But for  the login session,&lt;br /&gt;it is not giving any Login window, it just show the blue screen for long time.&lt;br /&gt;While I check the Log &lt;br /&gt;&lt;br /&gt;&lt;div style="color: black;"&gt;&lt;b&gt;LOG MESSAGE&lt;/b&gt;&lt;/div&gt;/var/log/message&lt;br /&gt;Sep  5 12:23:37 Hostname smartd[3407]: Device: /dev/sdb, 14 &lt;b&gt;Currently unreadable (pending) sectors &lt;/b&gt;&lt;br /&gt;Sep  5 12:23:37 Hostname smartd[3407]: Device: /dev/sdb, 16 O&lt;b&gt;ffline uncorrectable sectors&lt;/b&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;About Smartd&lt;/b&gt; - Self Monitoring Analysics and Reporting Technlology Daemon.&lt;br /&gt;1)used for checking IDE, SATA Hard Drivers.&lt;br /&gt;2)Monitoring Reliability of the hard drive and Predict Drive failures.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;SOLUTIION&lt;/b&gt;&lt;br /&gt;Disable the smartd service.&lt;br /&gt;Login into the single usermod then disable that service&lt;br /&gt;#chkconfig smartd off&lt;br /&gt;Then try it. It will work perfectly.&lt;br /&gt;&lt;b&gt;Note:&lt;/b&gt; if you still face any issue.&lt;br /&gt;Boot directly into run level 3 then try startX command.&lt;br /&gt;Booting Problem in&amp;nbsp; /dev/sda /dev/sdb Pending Sector - Offline uncorrectable sectors.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-3100990243059378608?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/3100990243059378608/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/09/currently-unreadable-pending-sectors.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/3100990243059378608'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/3100990243059378608'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/09/currently-unreadable-pending-sectors.html' title='Hard Disk Error - Currently Unreadable Pending Sectors  smartd'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-1280367702235286903</id><published>2011-09-06T07:41:00.000-07:00</published><updated>2011-12-27T09:22:22.718-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='kernel'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux scenario'/><title type='text'>Configure Kernel Source Code make menuconfig Upgrade New Kernel</title><content type='html'>&lt;b&gt;make menuconfig Features&lt;/b&gt;&lt;br /&gt;1)configure the Linux kernel Source Code,&lt;br /&gt;2)Allow to choose the Feature of the Linux kernel.&lt;br /&gt;3)make menuconfig target in the Linux kernel makefile.&lt;br /&gt;4)it is Located  under /usr/src/kernel/'uname -r'&lt;br /&gt;Example Path : /&lt;span style="color: red;"&gt;usr/src/kernels/&lt;b&gt;2.6.18-238.el5-x86_64&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;Under these path we have to enter the following command.&lt;br /&gt;#make menuconfig&lt;br /&gt;It will open the window here we can configure kernel Features.&lt;br /&gt;Dependencies are &lt;br /&gt;a)Linux Kernel Source&lt;br /&gt;b)Make tool&lt;br /&gt;3)C compiler&lt;br /&gt;4)ncurses - n curses Library&lt;br /&gt;&lt;br /&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:WordDocument&gt;   &lt;w:View&gt;Normal&lt;/w:View&gt;   &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;   &lt;w:TrackMoves/&gt;   &lt;w:TrackFormatting/&gt;   &lt;w:PunctuationKerning/&gt;   &lt;w:ValidateAgainstSchemas/&gt;   &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;   &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;   &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;   &lt;w:DoNotPromoteQF/&gt;   &lt;w:LidThemeOther&gt;EN-IN&lt;/w:LidThemeOther&gt;   &lt;w:LidThemeAsian&gt;X-NONE&lt;/w:LidThemeAsian&gt;   &lt;w:LidThemeComplexScript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;   &lt;w:Compatibility&gt;    &lt;w:BreakWrappedTables/&gt;    &lt;w:SnapToGridInCell/&gt;    &lt;w:WrapTextWithPunct/&gt;    &lt;w:UseAsianBreakRules/&gt;    &lt;w:DontGrowAutofit/&gt;    &lt;w:SplitPgBreakAndParaMark/&gt;    &lt;w:DontVertAlignCellWithSp/&gt;    &lt;w:DontBreakConstrainedForcedTables/&gt;    &lt;w:DontVertAlignInTxbx/&gt;    &lt;w:Word11KerningPairs/&gt;    &lt;w:CachedColBalance/&gt;   &lt;/w:Compatibility&gt;   &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;   &lt;m:mathPr&gt;    &lt;m:mathFont m:val="Cambria Math"/&gt;    &lt;m:brkBin m:val="before"/&gt;    &lt;m:brkBinSub m:val="--"/&gt;    &lt;m:smallFrac m:val="off"/&gt;    &lt;m:dispDef/&gt;    &lt;m:lMargin m:val="0"/&gt;    &lt;m:rMargin m:val="0"/&gt;    &lt;m:defJc m:val="centerGroup"/&gt;    &lt;m:wrapIndent m:val="1440"/&gt;    &lt;m:intLim m:val="subSup"/&gt;    &lt;m:naryLim m:val="undOvr"/&gt;   &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;  &lt;w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"  DefSemiHidden="true" DefQFormat="false" DefPriority="99"  LatentStyleCount="267"&gt;   &lt;w:LsdException Locked="false" Priority="0" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Normal"/&gt;   &lt;w:LsdException Locked="false" Priority="9" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="heading 1"/&gt;   &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/&gt;   &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/&gt;   &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/&gt;   &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/&gt;   &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/&gt;   &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/&gt;   &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/&gt;   &lt;w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/&gt;   &lt;w:LsdException Locked="false" Priority="39" Name="toc 1"/&gt;   &lt;w:LsdException Locked="false" Priority="39" Name="toc 2"/&gt;   &lt;w:LsdException Locked="false" Priority="39" Name="toc 3"/&gt;   &lt;w:LsdException Locked="false" Priority="39" Name="toc 4"/&gt;   &lt;w:LsdException Locked="false" Priority="39" Name="toc 5"/&gt;   &lt;w:LsdException Locked="false" Priority="39" Name="toc 6"/&gt;   &lt;w:LsdException Locked="false" Priority="39" Name="toc 7"/&gt;   &lt;w:LsdException Locked="false" Priority="39" Name="toc 8"/&gt;   &lt;w:LsdException Locked="false" Priority="39" Name="toc 9"/&gt;   &lt;w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/&gt;   &lt;w:LsdException Locked="false" Priority="10" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Title"/&gt;   &lt;w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/&gt;   &lt;w:LsdException Locked="false" Priority="11" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/&gt;   &lt;w:LsdException Locked="false" Priority="22" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Strong"/&gt;   &lt;w:LsdException Locked="false" Priority="20" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/&gt;   &lt;w:LsdException Locked="false" Priority="59" SemiHidden="false"   UnhideWhenUsed="false" Name="Table Grid"/&gt;   &lt;w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/&gt;   &lt;w:LsdException Locked="false" Priority="1" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/&gt;   &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Shading"/&gt;   &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"   UnhideWhenUsed="false" Name="Light List"/&gt;   &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Grid"/&gt;   &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 1"/&gt;   &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 2"/&gt;   &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 1"/&gt;   &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 2"/&gt;   &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 1"/&gt;   &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 2"/&gt;   &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 3"/&gt;   &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"   UnhideWhenUsed="false" Name="Dark List"/&gt;   &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Shading"/&gt;   &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful List"/&gt;   &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Grid"/&gt;   &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Shading Accent 1"/&gt;   &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"   UnhideWhenUsed="false" Name="Light List Accent 1"/&gt;   &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Grid Accent 1"/&gt;   &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/&gt;   &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/&gt;   &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/&gt;   &lt;w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/&gt;   &lt;w:LsdException Locked="false" Priority="34" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/&gt;   &lt;w:LsdException Locked="false" Priority="29" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Quote"/&gt;   &lt;w:LsdException Locked="false" Priority="30" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/&gt;   &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/&gt;   &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/&gt;   &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/&gt;   &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/&gt;   &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"   UnhideWhenUsed="false" Name="Dark List Accent 1"/&gt;   &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/&gt;   &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful List Accent 1"/&gt;   &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/&gt;   &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Shading Accent 2"/&gt;   &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"   UnhideWhenUsed="false" Name="Light List Accent 2"/&gt;   &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Grid Accent 2"/&gt;   &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/&gt;   &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/&gt;   &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/&gt;   &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/&gt;   &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/&gt;   &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/&gt;   &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/&gt;   &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"   UnhideWhenUsed="false" Name="Dark List Accent 2"/&gt;   &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/&gt;   &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful List Accent 2"/&gt;   &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/&gt;   &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Shading Accent 3"/&gt;   &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"   UnhideWhenUsed="false" Name="Light List Accent 3"/&gt;   &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Grid Accent 3"/&gt;   &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/&gt;   &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/&gt;   &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/&gt;   &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/&gt;   &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/&gt;   &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/&gt;   &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/&gt;   &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"   UnhideWhenUsed="false" Name="Dark List Accent 3"/&gt;   &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/&gt;   &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful List Accent 3"/&gt;   &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/&gt;   &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Shading Accent 4"/&gt;   &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"   UnhideWhenUsed="false" Name="Light List Accent 4"/&gt;   &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Grid Accent 4"/&gt;   &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/&gt;   &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/&gt;   &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/&gt;   &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/&gt;   &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/&gt;   &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/&gt;   &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/&gt;   &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"   UnhideWhenUsed="false" Name="Dark List Accent 4"/&gt;   &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/&gt;   &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful List Accent 4"/&gt;   &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/&gt;   &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Shading Accent 5"/&gt;   &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"   UnhideWhenUsed="false" Name="Light List Accent 5"/&gt;   &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Grid Accent 5"/&gt;   &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/&gt;   &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/&gt;   &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/&gt;   &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/&gt;   &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/&gt;   &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/&gt;   &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/&gt;   &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"   UnhideWhenUsed="false" Name="Dark List Accent 5"/&gt;   &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/&gt;   &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful List Accent 5"/&gt;   &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/&gt;   &lt;w:LsdException Locked="false" Priority="60" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Shading Accent 6"/&gt;   &lt;w:LsdException Locked="false" Priority="61" SemiHidden="false"   UnhideWhenUsed="false" Name="Light List Accent 6"/&gt;   &lt;w:LsdException Locked="false" Priority="62" SemiHidden="false"   UnhideWhenUsed="false" Name="Light Grid Accent 6"/&gt;   &lt;w:LsdException Locked="false" Priority="63" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/&gt;   &lt;w:LsdException Locked="false" Priority="64" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/&gt;   &lt;w:LsdException Locked="false" Priority="65" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/&gt;   &lt;w:LsdException Locked="false" Priority="66" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/&gt;   &lt;w:LsdException Locked="false" Priority="67" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/&gt;   &lt;w:LsdException Locked="false" Priority="68" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/&gt;   &lt;w:LsdException Locked="false" Priority="69" SemiHidden="false"   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/&gt;   &lt;w:LsdException Locked="false" Priority="70" SemiHidden="false"   UnhideWhenUsed="false" Name="Dark List Accent 6"/&gt;   &lt;w:LsdException Locked="false" Priority="71" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/&gt;   &lt;w:LsdException Locked="false" Priority="72" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful List Accent 6"/&gt;   &lt;w:LsdException Locked="false" Priority="73" SemiHidden="false"   UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/&gt;   &lt;w:LsdException Locked="false" Priority="19" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/&gt;   &lt;w:LsdException Locked="false" Priority="21" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/&gt;   &lt;w:LsdException Locked="false" Priority="31" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/&gt;   &lt;w:LsdException Locked="false" Priority="32" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/&gt;   &lt;w:LsdException Locked="false" Priority="33" SemiHidden="false"   UnhideWhenUsed="false" QFormat="true" Name="Book Title"/&gt;   &lt;w:LsdException Locked="false" Priority="37" Name="Bibliography"/&gt;   &lt;w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/&gt;  &lt;/w:LatentStyles&gt; &lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt; &lt;style&gt; /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;}&lt;/style&gt; &lt;![endif]--&gt;  &lt;br /&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;&lt;span lang="EN-US"&gt;How To Upgrade New Kernel.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;1)&lt;/b&gt;&lt;/span&gt; Download Kernel form the kernel.org, which one we need to install.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;2)&lt;/b&gt;&lt;/span&gt; Extract .tgz into Kernel Source Directory /usr/src/kernels. &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US"&gt;Ex tar kernel.tar.gz -C /usr/src/kernel&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;3)&lt;/b&gt;&lt;/span&gt; cd /usr/src/kernel/Kernel_Path_Name/&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US"&gt;#make menuconfig -&amp;gt; choose the Features Depends on Requirement&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US"&gt;#make Command Build the Kernel Module.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;4)&lt;/b&gt;&lt;/span&gt;Build vmlinuz Package&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US"&gt;#make bzImage -- it will Build the vmlinuz Package.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US"&gt;Root device is (3, 1)&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US"&gt;Setup is 12760 bytes (padded to 12800 bytes).&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US"&gt;System is 1995 kB&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US"&gt;CRC accf1f38&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US"&gt;Kernel: arch/x86/boot/bzImage is ready&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;(#55)&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US"&gt;Output Kernel File is &lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US"&gt;/usr/src/kernels/linux-2.6.30.4/arch/i386/boot/bzImage&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;4.1)&lt;/b&gt;&lt;/span&gt;Copy the bzimage into /boot directory in name of vmlinux-Kernel_version&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US"&gt;#cp /usr/src/kernels/linux-2.6.30.4/arch/i386/boot/bzImage /boot/vmlinuz-2.6.30.4&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;5)&lt;/b&gt;&lt;/span&gt; create initrd image using mkinitrd Command.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US"&gt;#make modules_install&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US"&gt;#mkinitrd&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;/boot/initrd-Kernel_version.img&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;Kernel_version&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US"&gt;If we are not making modules_intall then we will get the following Error Message.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US"&gt;# mkinitrd&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;/boot/initrd-2.6.30.4.img&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;2.6.30.4&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US"&gt;/lib/modules/2.6.30.4 is not a directory.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;6)&lt;/b&gt;&lt;/span&gt; Edit the grub.conf file with New Kernel and initrd image.&lt;/span&gt;&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span lang="EN-US"&gt;Then reboot the system from the New Updated Kernel.&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/3417169946022348274-1280367702235286903?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/1280367702235286903/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/09/configure-kernel-source-code-make.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/1280367702235286903'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/1280367702235286903'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/09/configure-kernel-source-code-make.html' title='Configure Kernel Source Code make menuconfig Upgrade New Kernel'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-796567706305487501</id><published>2011-09-05T08:10:00.000-07:00</published><updated>2011-09-05T08:12:10.011-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux support'/><title type='text'>Virtual Box Hangs Whole System While Booting</title><content type='html'>After Install the virtual Box in my Linux System.while I start the virtual box then it is going to hangs on my whole system.I can't use my Keyboard and Mouse. To again get back my system simply I have to restart the whole machine.&lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;b&gt;REASON &lt;/b&gt;&lt;/div&gt;Remove the Module kvm-intel,ksm,kvm,&lt;br /&gt;To List out moudule use #lsmod | grep kvm&lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;b&gt;SOLUTION&lt;/b&gt;&lt;/div&gt;kvm - Kernel based Virtual Machine.&lt;br /&gt;it is Virtualation Infrastruture for Linux kernel.&lt;br /&gt;ksm- Kernel Semepage Mergning.&lt;br /&gt;To run he virtualbox in the Linux system , we should remove the following module.&lt;span class="fullpost"&gt;&lt;br /&gt;#rmmod kvm&lt;br /&gt;#rmmod kvm-intel&lt;br /&gt;#rmmod ksm&lt;br /&gt;#modprobe -r kvm - To remove Permentaly&lt;br /&gt;Then try it. Your Virtual Box will be working without any issu.&lt;br /&gt;&lt;b&gt; Note&lt;/b&gt;: Before we install the virtual Box, We should install dmks-Dynamic Kernal Module.&lt;br /&gt;Virtual box going to hangs on the system while booting.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-796567706305487501?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/796567706305487501/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/09/virtual-box-hangs-whole-system-while.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/796567706305487501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/796567706305487501'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/09/virtual-box-hangs-whole-system-while.html' title='Virtual Box Hangs Whole System While Booting'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-4858103218881097910</id><published>2011-08-29T07:03:00.000-07:00</published><updated>2011-08-29T07:06:27.989-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux scenario'/><title type='text'>Failed To Start The X Server - Linux Display Error</title><content type='html'>When I changed Linux system Monitor I got the following Error message while booting Graphical User Interface.&lt;br /&gt;“&lt;span style="color: red;"&gt;Failed to start the X server (your graphical&lt;/span&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;interface). It is likely that it is not set&lt;/div&gt;&lt;div style="color: red;"&gt;up correctly. Would you like to view the X&lt;/div&gt;&lt;span style="color: red;"&gt;server output to diagnose the problem?&lt;/span&gt;”&lt;br /&gt;- Yes&lt;br /&gt;&lt;br /&gt;&lt;b style="color: blue;"&gt;PROBLEM&lt;/b&gt;: When We changed Linux System Monitor  the old screen resolution it is not supporable for New Monitor.Becuase Both Monitor Size is Different.&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style="color: blue;"&gt;SOLUTION&lt;/b&gt;:Change the screen Resolution. Which is adoptable for New Monitor.&lt;br /&gt;Log file: /var/log/xorg.o.log&lt;br /&gt;Config File /etc/X11/xorg.conf&lt;br /&gt;&lt;br /&gt;Then I got the following Message Box&lt;br /&gt;"&lt;span style="color: red;"&gt;Would you like to try to configure the x server&lt;/span&gt;? Note that you will need the root password for this. "I Enter yes.&lt;br /&gt;Finally it will open the "&lt;b&gt;Display setting&lt;/b&gt;"- Here we can configure the New screen resolution According to the New Monitor.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-4858103218881097910?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/4858103218881097910/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/08/failed-to-start-x-server-linux-display.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/4858103218881097910'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/4858103218881097910'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/08/failed-to-start-x-server-linux-display.html' title='Failed To Start The X Server - Linux Display Error'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-1474929507707221117</id><published>2011-08-12T01:50:00.000-07:00</published><updated>2011-10-28T02:45:56.477-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='awk command'/><title type='text'>Awk Command In Shell Script Print Field</title><content type='html'>&lt;b style="color: #990000;"&gt;Study&lt;/b&gt;: a)/etc/dhcpd.conf file it contains all the Nodes Ethernet Mac Address.&lt;br /&gt;b)awk Syntax - awk ' { print Argument }' &lt;br /&gt;Example #ls -l | awk ' { print $2 }'&lt;br /&gt;c)ether-wake Command Boot the Linux Server Remotely Using Mac Address.&lt;br /&gt;&lt;br /&gt;&lt;span class="fullpost"&gt; &lt;b style="color: #990000;"&gt;1)&lt;/b&gt;# cat /etc/dhcpd.conf | grep ethernet &lt;br /&gt;&lt;b&gt;hardware ethernet 00:a0:d1:e9:b9:1a&lt;/b&gt;;&lt;br /&gt;a)grep ethernet : grep Command It will filter the Particular Line which contain the string 'ethernet'.&lt;br /&gt;&lt;br /&gt;&lt;b style="color: #990000;"&gt;2)&lt;/b&gt;# cat /etc/dhcpd.conf | grep ethernet | awk '{print $3}'&lt;br /&gt;&lt;b&gt;00:a0:d1:e9:b9:1a&lt;/b&gt;&lt;br /&gt;b)awk '{print $3}' : It will the Print Third field.&lt;br /&gt;&lt;br /&gt;&lt;b style="color: #990000;"&gt;3)&lt;/b&gt;#cat /etc/dhcpd.conf | grep ethernet | awk '{ print  "ether-wake " $3 }'&lt;br /&gt;ether-wake $3: ether-wake 00:a0:d1:e9:b9:1a.&lt;span class="fullpost"&gt;&lt;br /&gt;Boot the Node which contain Mac Address 00:a0:d1:e9:b9:1a.&lt;br /&gt;&lt;br /&gt;&lt;b style="color: #990000;"&gt;4)&lt;/b&gt;cat /etc/dhcpd.conf | grep ethernet | awk '{ print  "ether-wake " $3 }' | sh&lt;br /&gt;Whenever try the above Command &lt;b&gt;Without&lt;/b&gt; | sh it will just print &lt;b&gt;it will not&lt;/b&gt; execute the command. &lt;br /&gt;like ether-wake 00:a0:d1:e9:b9:1a;&lt;br /&gt;When we try &lt;b&gt;with&lt;/b&gt; | sh then only &lt;b&gt;it will execute&lt;/b&gt; that command.&lt;br /&gt;sh It will execute the Command.&lt;br /&gt;&lt;br /&gt;Actual Command - mv $9 $9.new&lt;br /&gt;&lt;b style="color: #990000;"&gt;A)&lt;/b&gt;Note:Whenever we run the command Inside awk we have to put &lt;span style="color: blue;"&gt;Inside " "&lt;/span&gt;.&lt;br /&gt;Like:ls -l | awk '{ print &lt;span style="color: blue;"&gt;"&lt;/span&gt;mv "$9" "$9".new&lt;span style="color: blue;"&gt;"&lt;/span&gt; } '&lt;br /&gt;&lt;b style="color: #990000;"&gt;B)&lt;/b&gt;Note: also for Every &lt;span style="color: #990000;"&gt;separate Variable&lt;/span&gt;&lt;br /&gt;ls -l | awk '{ print &lt;span style="color: blue;"&gt;"&lt;/span&gt;mv &lt;span style="color: #990000;"&gt;"&lt;/span&gt;$9&lt;span style="color: #990000;"&gt;"&lt;/span&gt; &lt;span style="color: #990000;"&gt;"&lt;/span&gt;$9&lt;span style="color: #990000;"&gt;"&lt;/span&gt;.new&lt;span style="color: blue;"&gt;"&lt;/span&gt; } &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Some Examples with Awk Command&lt;/b&gt;&lt;br /&gt;&lt;span style="color: magenta;"&gt;1)&lt;/span&gt;Using Mac Address Boot the all the Linux system&lt;br /&gt;#cat /etc/dhcpd.conf | &lt;span style="color: blue;"&gt;grep ethernet&lt;/span&gt;&lt;span style="color: black;"&gt; |&lt;/span&gt; &lt;span style="color: #990000;"&gt;awk '{ print &lt;/span&gt; &lt;span style="color: magenta;"&gt;"ether-wake "$3""&lt;/span&gt;&lt;span style="color: #990000;"&gt;}' | sh&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;span class="fullpost"&gt;&lt;span style="color: #990000;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: magenta;"&gt;2)&lt;/span&gt;Get the what are the Process (or) Command  used for particular Directory or Partition&lt;br /&gt;# fuser -m /opt/ | awk '{ print "ps -ax | grep "$2"" }' | sh&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;span style="color: magenta;"&gt;3)&lt;/span&gt;Print the List of Folder In Specified Format&lt;br /&gt;# ls -l | awk '{  print "echo   -n ---"$9"&amp;gt;&amp;gt;scritp-output"  }' | sh&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;`&amp;nbsp; tilde &amp;nbsp;Symbol&lt;br /&gt;# awk ' { print $0 }'  &lt;br /&gt;$0 Whole Line&amp;nbsp; &amp;nbsp;$1 First Pattern&lt;br /&gt;With Sorting List Only Unique Word&lt;br /&gt;#cat a | sort | uniq&lt;br /&gt;Without Sorting List only the Unique Word &lt;br /&gt;# awk '!x[$0]++' &lt;br /&gt;List out Duplicate word (or) what are words are repeat more than one times&lt;br /&gt;# awk 'x[$0]++' a&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-1474929507707221117?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/1474929507707221117/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/08/awk-command-shell-script-print-field.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/1474929507707221117'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/1474929507707221117'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/08/awk-command-shell-script-print-field.html' title='Awk Command In Shell Script Print Field'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-9195989928135791570</id><published>2011-08-11T22:47:00.000-07:00</published><updated>2011-09-14T08:03:43.815-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Interview Question'/><title type='text'>Update Hosts File - Change Linux Server Hostname Without Reboot</title><content type='html'>&lt;b style="color: #990000;"&gt;Object&lt;/b&gt;: To change The Hostname into client system For Particular Range of the Hostname Using Shell script.&lt;br /&gt;&lt;b style="color: #990000;"&gt;Study&lt;/b&gt;:Without Rebooting the Linux Server We can change the Host name using Linux host name command&lt;br /&gt;#hostname serverhostname&lt;br /&gt;Now we are doing these Throught the Shell script.&lt;br /&gt;&lt;b style="color: #990000;"&gt;Scenario&lt;/b&gt; : Now we have 10 nodes with hostname like node1,node2.. node10.&lt;br /&gt;1)So using ssh connectivy&amp;nbsp; 'ssh node1' it will login.then&lt;br /&gt;2)hostname serverhostname - change their host name without reboot server&lt;br /&gt;&lt;div style="color: #990000;"&gt;&lt;b&gt;Shell Scripting&lt;/b&gt;&lt;/div&gt;for((i=1;i&amp;lt;=10;i++)); &lt;br /&gt;do&lt;br /&gt;ssh node&lt;span style="color: blue;"&gt;$i&lt;/span&gt; &lt;span style="color: #990000;"&gt;'&lt;/span&gt;hostname node&lt;span style="color: #990000;"&gt;'&lt;/span&gt;&lt;span style="color: blue;"&gt;$i&lt;/span&gt;&lt;span style="color: #990000;"&gt;'&lt;/span&gt;.redhat.in&lt;span style="color: #990000;"&gt;'&lt;/span&gt;;&lt;br /&gt;done&lt;span class="fullpost"&gt;&lt;br /&gt;we have to add Symbol ' ' the variable $i&lt;br /&gt;becuase it is already Inside the Phare of ' '&lt;br /&gt;&lt;div style="color: #990000;"&gt;&lt;b&gt;Wrong Format&lt;/b&gt;&lt;/div&gt;ssh node$i 'hostname node&lt;span style="color: blue;"&gt;$i&lt;/span&gt;.redhat.in';&lt;br /&gt;&lt;div style="color: #990000;"&gt;&lt;b&gt;Coorect Format&lt;/b&gt;&lt;/div&gt;ssh node$i 'hostname node&lt;span style="color: #990000;"&gt;'&lt;/span&gt;&lt;span style="color: blue;"&gt;$i&lt;/span&gt;&lt;span style="color: #990000;"&gt;'&lt;/span&gt;.redhat.in';&lt;br /&gt;How to change Linux server Hostname without Rebooting the Linux Server. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Update Hosts file Without Rebooting &lt;/b&gt;&lt;br /&gt;If we are adding any new host to the /etc/hosts file.Then to update this hostfile use hostname &lt;b&gt;-F&lt;/b&gt; filename&lt;br /&gt;#hostname -F /etc/hosts&lt;br /&gt;To update the hosts file /etc/hosts.&lt;br /&gt;hostname -d - Display Domain Name&lt;br /&gt;hostname -a - Alias &lt;br /&gt;hostname -i - IP Address&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-9195989928135791570?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/9195989928135791570/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/08/change-linux-server-hostname-without.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/9195989928135791570'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/9195989928135791570'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/08/change-linux-server-hostname-without.html' title='Update Hosts File - Change Linux Server Hostname Without Reboot'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-7326027990240604838</id><published>2011-08-11T03:01:00.000-07:00</published><updated>2012-01-12T00:43:29.140-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Luster'/><title type='text'>Check InfiniBand Speed Performance Information</title><content type='html'>&lt;strong&gt;InfiniBand Different Types&lt;/strong&gt;&lt;br /&gt;4X = 4 * Infiniband Link Rate 2.5 Gbits/sec, which is &lt;br /&gt;Equal to (2.5*4)10Gbits/sec, Full Duplex.&lt;br /&gt;SDR= Single Data Rate - 10Gbits/sec&lt;br /&gt;DDR = Double Data Rate - 20Gbits/sec&lt;br /&gt;QDR = Quad Data Rate- 40Gbits/sec&lt;br /&gt;&lt;br /&gt;Check the Infiniband OFED Version&lt;br /&gt;# ofed_info | head -n 1&lt;br /&gt;MLNX_OFED_LINUX-1.4 (OFED-1.4-mlnx8)&lt;br /&gt;&lt;br /&gt;InfiniBand Self Test&lt;br /&gt;# /usr/bin/hca_self_test.ofed&lt;br /&gt;---- Performing Adapter Device Self Test ----&lt;br /&gt;Number of CAs Detected ................. 1&lt;br /&gt;PCI Device Check ....................... &lt;b style="color: #cc0000;"&gt;PASS&lt;/b&gt;&lt;br /&gt;Kernel Arch ............................ x86_64&lt;span class="fullpost"&gt;&lt;br /&gt;Host Driver Version .................... MLNX_OFED_LINUX-1.5.3-1.0.0 (OFED-1.5.3-1.0.0): 1.5.3-2.6.18_194.el5 &lt;br /&gt;Host Driver RPM Check ..................&lt;b style="color: #e06666;"&gt; &lt;/b&gt;&lt;b style="color: #cc0000;"&gt;PASS&lt;/b&gt;&lt;br /&gt;Firmware on CA #0 HCA .................. v1.2.0&lt;br /&gt;Firmware Check on CA #0 (HCA) .......... NA&lt;br /&gt;REASON: NO required fw version&lt;br /&gt;Host Driver Initialization ............. &lt;b style="color: #cc0000;"&gt;PASS&lt;/b&gt;&lt;br /&gt;Number of CA Ports Active .............. 1&lt;br /&gt;Port State of Port # on CA #0 (HCA)..... UP 4X (IB)&lt;br /&gt;Error Counter Check on CA #0 (HCA)......&lt;span style="color: #cc0000;"&gt; &lt;b&gt;PASS&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;Kernel Syslog Check .................... PASSib_rdma_lat &lt;br /&gt;Node GUID on CA #0 (HCA) ............... 00PORT_ACTIVE:02:c9:02:00:2a:78:b8&lt;br /&gt;------------------ DONE ---------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Find the Infiniband  Speed Status of the host Topology&lt;br /&gt;# &lt;b&gt;/usr/sbin/iblinkinfo.pl&lt;/b&gt;&lt;br /&gt;Switch 0x000b8cffff006c98 MT47396 Infiniscale-III Mellanox Technologies:&lt;br /&gt;21    1[  ] ==( &lt;b style="color: #cc0000;"&gt;4X 2.5 Gbps Active/  LinkUp&lt;/b&gt;)==&amp;gt;      22    1[  ] "node1 HCA-1" ( )&lt;br /&gt;21    2[  ] ==( 4X 2.5 Gbps Active/  LinkUp)==&amp;gt;       2    1[  ] "node2 HCA-1" ( )&lt;br /&gt;21    3[  ] ==( 4X 2.5 Gbps Active/  LinkUp)==&amp;gt;       1    1[  ] "node3 HCA-1" ( )&lt;br /&gt;21    4[  ] ==( 4X 2.5 Gbps Active/  LinkUp)==&amp;gt;       3    1[  ] "node4 HCA-1" ( )&lt;br /&gt;21    5[  ] ==( 4X 2.5 Gbps Active/  LinkUp)==&amp;gt;       4    1[  ] "node5 HCA-1" ( )&lt;br /&gt;21    6[  ] ==( 4X 2.5 Gbps Active/  LinkUp)==&amp;gt;       5    1[  ] "node6 HCA-1" ( )&lt;br /&gt;Fine the Infniband host Topology&lt;br /&gt;#&lt;b&gt; ibhosts&lt;/b&gt; &lt;br /&gt;Ca      : 0x0002c902002a78d0 ports 1 "ib-node1 HCA-1"&lt;br /&gt;Ca      : 0x0002c902002a78d4 ports 1 "ib-node3 HCA-1"&lt;br /&gt;Ca      : 0x0002c902002a78bc ports 1 "ib-node7 HCA-1"&lt;br /&gt;Ca      : 0x0002c902002a79a0 ports 1 "ib-node5 HCA-1"&lt;br /&gt;Inifniband Hardware Swith Details.&lt;br /&gt;#&lt;b&gt; ibswitches &lt;/b&gt;&lt;br /&gt;Switch  : 0x000b8cffff0071cc ports 24 "MT47396 Infiniscale-III Mellanox Technologies" base port 0 lid 9 lmc 0&lt;br /&gt;&lt;br /&gt;Infiniband kernel can Configuration Information.&lt;br /&gt;# &lt;b&gt;/etc/infiniband/info&lt;/b&gt;&lt;br /&gt;prefix=/usr&lt;br /&gt;Kernel=&lt;b style="color: #cc0000;"&gt;2.6.18-194.el5&lt;/b&gt;&lt;br /&gt;Configure options: --with-core-mod --with-user_mad-mod --with-user_access-mod --with-addr_trans-mod --with-mthca-mod --with-mlx4-mod --with-mlx4_en-mod --with-mlx4_ib-mod --with-mlx4_vnic-mod --with-mlx4_fc-mod --with-cxgb3-mod --with-nes-mod --with-qib-mod --with-ipoib-mod --with-sdp-mod --with-srp-mod --with-rds-mod --with-iser-mod&lt;br /&gt;#&lt;b&gt; ibv_devinfo &lt;/b&gt;&lt;br /&gt;hca_id: mthca0&lt;br /&gt;transport:                      InfiniBand (0)&lt;br /&gt;fw_ver:                         1.2.0&lt;br /&gt;node_guid:                      0002:c902:002a:78b8&lt;br /&gt;sys_image_guid:                 0002:c902:002a:78bb&lt;br /&gt;vendor_id:                      0x02c9&lt;br /&gt;vendor_part_id:                 25204&lt;br /&gt;hw_ver:                         0xA0&lt;br /&gt;board_id:                       MT_03F0110001&lt;br /&gt;phys_port_cnt:                  1&lt;br /&gt;port:   1&lt;br /&gt;state: &lt;b&gt;                 &lt;span style="color: #cc0000;"&gt;PORT_ACTIVE (4)&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;max_mtu:                2048 (4)&lt;br /&gt;active_mtu:             2048 (4)&lt;br /&gt;sm_lid:                 1&lt;br /&gt;port_lid:               5&lt;br /&gt;port_lmc:               0x00&lt;br /&gt;link_layer:             IB&lt;br /&gt;Status of the Infiniband&lt;br /&gt;#&lt;b&gt; ibstatus&lt;/b&gt;&lt;br /&gt;Infiniband device 'mthca0' port 1 status:&lt;br /&gt;default gid:     fe80:0000:0000:0000:0002:c902:002a:78b9&lt;br /&gt;base lid:        0x5&lt;br /&gt;sm lid:          0x1&lt;br /&gt;state:           4: &lt;b style="color: #cc0000;"&gt;ACTIVE&lt;/b&gt;&lt;br /&gt;phys state:      5: &lt;b&gt;&lt;span style="color: #cc0000;"&gt;LinkUp&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;rate:            &lt;b style="color: #cc0000;"&gt;10 Gb/sec (4X)&lt;/b&gt;&lt;br /&gt;link_layer:      IB&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-7326027990240604838?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/7326027990240604838/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/08/check-infiniband-speed-performance.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/7326027990240604838'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/7326027990240604838'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/08/check-infiniband-speed-performance.html' title='Check InfiniBand Speed Performance Information'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-7889806239032383399</id><published>2011-08-01T12:56:00.000-07:00</published><updated>2011-08-01T13:00:08.519-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Luster'/><title type='text'>Create User Quota Luster File System</title><content type='html'>&lt;span style="color: #990000;"&gt;1)&lt;/span&gt;when ever we create the user, first create user in mds - Meta Data Server&lt;br /&gt;&lt;span style="color: #990000;"&gt;2)&lt;/span&gt;Then create same user&amp;nbsp; in the client system.&lt;br /&gt;&lt;span style="color: #990000;"&gt;3)&lt;/span&gt;Create the same user in mds and client with same User Id&lt;br /&gt;#useradd -u 1000 new &lt;br /&gt;If we create the same User id Then only it will work perfectly.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;HOW TO CREATE QUOTA IN THE LUSTER&lt;/b&gt;&lt;br /&gt;#lfs quotaon -ugf /home&lt;br /&gt;If quota is not enable then we will get the following message.if it is off&lt;br /&gt;# lfs quotaoff /home/&lt;br /&gt;# lfs quota /home/&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;user quotas are not enabled.&lt;/span&gt;&lt;br style="color: #990000;" /&gt;&lt;span style="color: #990000;"&gt; group quotas are not enabled.&lt;/span&gt;&lt;br /&gt;#&lt;b&gt;lfs quota /home&lt;/b&gt;-- list quota&lt;br /&gt;&lt;br /&gt;List quota For particular User&lt;br /&gt;#lfs quota &lt;b&gt;-u new&lt;/b&gt; -v /home/&lt;br /&gt;#useradd -g sg qtest&lt;br /&gt;&lt;div style="color: #990000;"&gt;&lt;b&gt;Set The Quota&lt;/b&gt;&lt;/div&gt;# lfs setquota -u new --block-softlimit 2048 --block-hardlimit 3048 /home/new/&lt;br /&gt;#lfs quotacheck /home -- update the quota&lt;br /&gt;&lt;b style="color: #990000;"&gt;To Verify the Quota&lt;/b&gt;&lt;br /&gt;[new@node1 ~]$ dd if=/dev/zero of=/home/new/onew.iso bs=1024KB count=2&lt;br /&gt;dd: writing `/home/new/onew.iso': Disk quota exceeded&lt;br /&gt;dd: closing output file `/home/new/onew.iso': Input/output error&lt;br /&gt;#lfs getstripe /home/username/file.img&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-7889806239032383399?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/7889806239032383399/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/08/create-user-quota-luster-file-system.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/7889806239032383399'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/7889806239032383399'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/08/create-user-quota-luster-file-system.html' title='Create User Quota Luster File System'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-2497594449314127282</id><published>2011-08-01T08:11:00.000-07:00</published><updated>2011-08-01T08:18:15.967-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Booting Problem'/><title type='text'>Operating System Not found  Linux Hard Disk Problem</title><content type='html'>&lt;b style="color: #990000;"&gt;&lt;span style="color: #cc0000;"&gt;Scenario &lt;/span&gt;:&lt;/b&gt; When I boot the Linux Operating System, I got the Following Error message - Operating System Not Found.&lt;br /&gt;1) I have the two hard disk, /dev/sda and /dev/sdb.&lt;br /&gt;2) When Both Hard disks are present it is booting Perfectly.&lt;br /&gt;a) When I remove the Second Hard disk /dev/sdb I got " Operating system not found"&lt;br /&gt;b) When I remove the First Hard disk I got "Grub"&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;&lt;span style="color: #cc0000;"&gt;Reason:&lt;/span&gt; &lt;/b&gt;&lt;/div&gt;1) Booting files /boot/grub/grub.conf are located in /dev/sda&lt;br /&gt;2) MBR Grub is located in /dev/sdb&lt;br /&gt;Some Other criteria&lt;br /&gt;1) Hard disk does not contain the any Operating System,&lt;br /&gt;Due to this only we got the following Error Message.&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;b&gt;Operating System Not Found&lt;/b&gt; -Error Message&lt;br /&gt;&lt;div style="color: #cc0000;"&gt;&lt;b&gt;Solution&lt;/b&gt;&lt;/div&gt;To resolve this problem First we have to change the grub MBR into First hard Disk.&lt;br /&gt;1) First I boot From Linux CD the Rescue mode.&lt;br /&gt;2) Rescue Mode mount Hard disk File system under /mnt/sysimage&lt;br /&gt;Try the following command to resolve&lt;br /&gt;#chroot /mnt/sysimage&lt;br /&gt;#grub&lt;br /&gt;grub&amp;gt;find /boot/grub/stage1&lt;br /&gt;If File you Got &lt;/span&gt;&lt;b&gt;"Error 15: File not found"&lt;/b&gt; then try&lt;br /&gt;&lt;span class="fullpost"&gt; grub&amp;gt;find /grub/stage1&lt;br /&gt;Then You will get like (hd0,0) or (hd0,4)&lt;br /&gt;grub&amp;gt;root(hd0,0)&lt;br /&gt;grub&amp;gt;setup(hd0,0)&lt;/span&gt;&lt;br /&gt;&lt;span class="fullpost"&gt;It will install grub Boot loader in (hd0,0)&lt;br /&gt;Then restart the server your system will be booting perfectly. Operating System not found. Grub Error-How to Resolve.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-2497594449314127282?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/2497594449314127282/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/08/operating-system-not-found-linux-hard.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/2497594449314127282'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/2497594449314127282'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/08/operating-system-not-found-linux-hard.html' title='Operating System Not found  Linux Hard Disk Problem'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-7060317867671830946</id><published>2011-07-30T12:03:00.000-07:00</published><updated>2011-09-14T07:58:57.385-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cluster'/><title type='text'>Cluster.conf File Example Node Resource Service Failover Domain</title><content type='html'>Storage OSS Server High Availblity Cluster Configuration /etc/cluster/cluster.conf file Example.&lt;br /&gt;&lt;b style="color: magenta;"&gt;1)&lt;/b&gt;It has Two Nodes – Ost3 and ost4 – FailoverdomainNode&lt;br /&gt;&lt;b style="color: magenta;"&gt;2)&lt;/b&gt;Two Failover Domain Name- OSS_Domain3- OSS_Domain4- failoverdomain name&lt;br /&gt;&lt;b style="color: magenta;"&gt;3)&lt;/b&gt;Six Resource Are there  Four Storage Two IP&lt;br /&gt;&lt;b&gt;Four Storage&lt;/b&gt;&lt;br /&gt;a)ost5   - device - /dev/dm-0 – Mount Point –ost5&lt;br /&gt;b)ost6 - device - /dev/dm-1– Mount Point –ost6&lt;br /&gt;c)ost7 - device - /dev/dm-2– Mount Point –ost7&lt;br /&gt;d)ost8 - device - /dev/dm-3– Mount Point –ost8&lt;br /&gt;&lt;b&gt;Two IP Resource&lt;/b&gt;&lt;br /&gt;a) ip address="20.0.1.207/16&lt;br /&gt;b) ip address="20.0.1.208/16&lt;br /&gt;&lt;b&gt;&lt;span style="color: magenta;"&gt;4)&lt;/span&gt;&lt;/b&gt;Two Service are There,&lt;br /&gt;Each Service Has three Reource [ Two storage one ip]&lt;br /&gt;These cluster Configured In Active - Passive Mode- &lt;a href="http://www.studentcpu.com/2011/07/high-availability-active-active-active.html" target="_blank"&gt;What is Active Passive Mode&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;/etc/cluster/cluster.conf File Example&lt;/b&gt;&lt;br /&gt;&amp;lt;?xml version="1.0"?&amp;gt;&lt;br /&gt;&amp;lt;cluster alias="OSSS" config_version="24" name="OSSS"&amp;gt;&lt;br /&gt;&amp;lt;fence_daemon post_fail_delay="0" post_join_delay="3"/&amp;gt;&lt;br /&gt;&amp;lt;clusternodes&amp;gt;&lt;br /&gt;&amp;lt;clusternode name="oss3" nodeid="1" votes="1"&amp;gt;&lt;span class="fullpost"&gt;&lt;br /&gt;&amp;lt;fence&amp;gt;&lt;br /&gt;&amp;lt;method name="1"&amp;gt;&lt;br /&gt;&amp;lt;device lanplus="" name="ipmi_oss3"/&amp;gt;&lt;br /&gt;&amp;lt;/method&amp;gt;&lt;br /&gt;&amp;lt;/fence&amp;gt;&lt;br /&gt;&amp;lt;/clusternode&amp;gt;&lt;br /&gt;&amp;lt;clusternode name="oss4" nodeid="2" votes="1"&amp;gt;&lt;br /&gt;&amp;lt;fence&amp;gt;&lt;br /&gt;&amp;lt;method name="1"&amp;gt;&lt;br /&gt;&amp;lt;device lanplus="" name="ipmi_oss4"/&amp;gt;&lt;br /&gt;&amp;lt;/method&amp;gt;&lt;br /&gt;&amp;lt;/fence&amp;gt;&lt;br /&gt;&amp;lt;/clusternode&amp;gt;&lt;br /&gt;&amp;lt;/clusternodes&amp;gt;&lt;br /&gt;&amp;lt;cman expected_votes="1" two_node="1"/&amp;gt;&lt;br /&gt;&amp;lt;fencedevices&amp;gt;&lt;br /&gt;&amp;lt;fencedevice agent="fence_ipmilan" ipaddr="30.0.1.203" login="root" name="ipmi_oss3" passwd="root123" option="off"/&amp;gt;&lt;br /&gt;&amp;lt;fencedevice agent="fence_ipmilan" ipaddr="30.0.1.204" login="root" name="ipmi_oss4" passwd="root123" option="off"/&amp;gt;&lt;br /&gt;&amp;lt;/fencedevices&amp;gt;&lt;br /&gt;&amp;lt;rm&amp;gt;&lt;br /&gt;&lt;div style="color: magenta;"&gt;&amp;lt;failoverdomains&amp;gt;&lt;/div&gt;&lt;div style="color: magenta;"&gt;&amp;lt;failoverdomain name="OSS_Domain3" ordered="1" restricted="1"&amp;gt;&lt;/div&gt;&lt;div style="color: magenta;"&gt;&amp;lt;failoverdomainnode name="oss3" priority="1"/&amp;gt;&lt;/div&gt;&lt;div style="color: magenta;"&gt;&amp;lt;failoverdomainnode name="oss4" priority="2"/&amp;gt;&lt;/div&gt;&lt;div style="color: magenta;"&gt;&amp;lt;/failoverdomain&amp;gt;&lt;/div&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;&amp;lt;failoverdomain name="OSS_Domain4" ordered="1" restricted="1"&amp;gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;&amp;lt;failoverdomainnode name="oss3" priority="2"/&amp;gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;&amp;lt;failoverdomainnode name="oss4" priority="1"/&amp;gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;&amp;lt;/failoverdomain&amp;gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;&amp;lt;/failoverdomains&amp;gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="color: blue;"&gt;&amp;lt;resources&amp;gt;&lt;/div&gt;&lt;div style="color: blue;"&gt;&amp;lt;lustrefs device="/dev/dm-0" force_fsck="0" force_unmount="0" mountpoint="/ost5" name="ost5" self_fence="1"/&amp;gt;&lt;/div&gt;&lt;div style="color: blue;"&gt;&amp;lt;lustrefs device="/dev/dm-1" force_fsck="0" force_unmount="0" mountpoint="/ost6" name="ost6" self_fence="1"/&amp;gt;&lt;/div&gt;&lt;div style="color: blue;"&gt;&amp;lt;lustrefs device="/dev/dm-2" force_fsck="0" force_unmount="0" mountpoint="/ost7" name="ost7" self_fence="1"/&amp;gt;&lt;/div&gt;&lt;div style="color: blue;"&gt;&amp;lt;lustrefs device="/dev/dm-3" force_fsck="0" force_unmount="0" mountpoint="/ost8" name="ost8" self_fence="1"/&amp;gt;&lt;/div&gt;&lt;div style="color: blue;"&gt;&lt;b&gt;&amp;lt;ip address="20.0.1.207/16" monitor_link="1"/&amp;gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="color: blue;"&gt;&lt;b&gt;&amp;lt;ip address="20.0.1.208/16" monitor_link="1"/&amp;gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="color: blue;"&gt;&amp;lt;/resources&amp;gt;&lt;/div&gt;&lt;div style="color: magenta;"&gt;&amp;lt;service autostart="1" domain="OSS_Domain3" name="lustre_1" recovery="relocate"&amp;gt;&lt;/div&gt;&lt;div style="color: magenta;"&gt;&amp;lt;lustrefs ref="ost5"/&amp;gt;&lt;/div&gt;&lt;div style="color: magenta;"&gt;&amp;lt;lustrefs ref="ost6"/&amp;gt;&lt;/div&gt;&lt;div style="color: magenta;"&gt;&amp;lt;ip ref="20.0.1.207/16"/&amp;gt;&lt;/div&gt;&lt;div style="color: magenta;"&gt;&amp;lt;/service&amp;gt;&lt;/div&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;&amp;lt;service autostart="1" domain="OSS_Domain4" name="lustre_2" recovery="relocate"&amp;gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;&amp;lt;lustrefs ref="ost7"/&amp;gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;&amp;lt;lustrefs ref="ost8"/&amp;gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;&amp;lt;ip ref="20.0.1.208/16"/&amp;gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;&amp;lt;/service&amp;gt;&lt;/b&gt;&lt;/div&gt;&amp;lt;/rm&amp;gt;&lt;br /&gt;&amp;lt;/cluster&amp;gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-7060317867671830946?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/7060317867671830946/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/07/clusterconf-file-example-node-resource.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/7060317867671830946'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/7060317867671830946'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/07/clusterconf-file-example-node-resource.html' title='Cluster.conf File Example Node Resource Service Failover Domain'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-310158445314179993</id><published>2011-07-30T11:46:00.000-07:00</published><updated>2011-07-30T12:21:45.595-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cluster'/><title type='text'>High Availability Active-Active Active-Passive Failover Domain.</title><content type='html'>Cluster High Availability It has Two Mode&lt;br /&gt;1) Active-Active Mode&lt;br /&gt;2) Active-Passive Mode&lt;br /&gt;&lt;br /&gt;Active- Active Mode&lt;br /&gt;&lt;b style="color: magenta;"&gt;1)&lt;/b&gt; Both Master server 1 and Master Server2 Both are Running Stages.&lt;br /&gt;&lt;b style="color: magenta;"&gt;2)&lt;/b&gt; Active – Active Mode has two Failover Domain&lt;br /&gt;&lt;br /&gt;&lt;b&gt;ACTIVE &amp;amp; ACTIVE MODE – Luster File system OSS &lt;/b&gt;&lt;br /&gt;---------------------------------------------------&lt;br /&gt;&amp;lt;failoverdomain name="OSS_Domain3" ordered="1" restricted="1"&amp;gt;&lt;br /&gt;&amp;lt;failoverdomainnode name="oss3" priority="1"/&amp;gt;&lt;br /&gt;&amp;lt;failoverdomainnode name="oss4" priority="2"/&amp;gt;&lt;span class="fullpost"&gt;&lt;br /&gt;&amp;lt;/failoverdomain&amp;gt;&lt;br /&gt;&amp;lt;failoverdomain name="OSS_Domain4" ordered="1" restricted="1"&amp;gt;&lt;br /&gt;&amp;lt;failoverdomainnode name="oss3" priority="2"/&amp;gt;&lt;br /&gt;&amp;lt;failoverdomainnode name="oss4" priority="1"/&amp;gt;&lt;br /&gt;&amp;lt;/failoverdomain&amp;gt;&lt;br /&gt;Active &amp;amp; Active OSS Node it has&lt;b style="color: magenta;"&gt; two failover domains&lt;/b&gt;,&lt;br /&gt;&lt;br /&gt;Active Passive Mode&lt;br /&gt;1) One master Server  Node 1 is Active and Master Server 2 is standby.&lt;br /&gt;So if one server 1 Is down, Another Server 2 replace instead of that server 1.&lt;br /&gt;2) Active passive Mode has one failover Domain.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;ACTIVE &amp;amp; PASSIVE MODE -Luster File system MDS&lt;/b&gt;&lt;br /&gt;------------------------------------------------&lt;br /&gt;&amp;lt;failoverdomain name="MDS_Domain" ordered="1" restricted="1"&amp;gt;&lt;br /&gt;&amp;lt;failoverdomainnode name="mds1" priority="1"/&amp;gt;&lt;br /&gt;&amp;lt;failoverdomainnode name="mds2" priority="1"/&amp;gt;&lt;br /&gt;&amp;lt;/failoverdomain&amp;gt;&lt;br /&gt;Active &amp;amp; Passive Node it has&lt;b style="color: magenta;"&gt; only one failover domain.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;High Availability Tag Field&lt;/b&gt;&lt;br /&gt;1)/etc/cluster/cluster.conf – Cluster Configuration File.&lt;br /&gt;2)Resource Start with &amp;lt;resource&amp;gt; and &amp;lt;/resource&amp;gt;&lt;br /&gt;Service it is like&lt;span style="color: magenta;"&gt; &lt;/span&gt;&lt;b&gt;&lt;span style="color: magenta;"&gt;IP Address&lt;/span&gt;,&lt;span style="color: #660000;"&gt; Storage- Mount Point&lt;/span&gt;, Linux Service Like&lt;span style="color: #4c1130;"&gt; http&lt;/span&gt;&lt;/b&gt;,&lt;br /&gt;&lt;div style="color: blue;"&gt;&amp;lt;ip address="20.0.1.207/16" monitor_link="1"/&amp;gt;&lt;/div&gt;&lt;div style="color: blue;"&gt;&amp;lt;lustrefs device="/dev/dm-0" force_fsck="0" force_unmount="0" mountpoint="/ost5" name="&lt;b style="color: #783f04;"&gt;ost5&lt;/b&gt;" self_fence="1"/&amp;gt;&lt;/div&gt;Service it will come with Name like &lt;b style="color: #783f04;"&gt;ost5&lt;/b&gt;&lt;br /&gt;3)Service start with &amp;lt;service&amp;gt; and &amp;lt;/service&amp;gt;tag&lt;br /&gt;Create New service. Add Resource using rousrce name to the service.&lt;br /&gt;&amp;lt;lustrefs ref=&lt;b style="color: #7f6000;"&gt;&lt;span style="color: black;"&gt;"&lt;/span&gt;&lt;span style="color: #783f04;"&gt;ost5&lt;/span&gt;&lt;/b&gt;"/&amp;gt;&lt;br /&gt;4) failoverdomain start and end with &amp;lt;failoverdomain&amp;gt; and&lt;br /&gt;&amp;lt;/failoverdomain&amp;gt;&lt;br /&gt;It has node name, &lt;span style="color: magenta;"&gt;&amp;lt;&lt;/span&gt;&lt;b style="color: magenta;"&gt;failoverdomainnode&lt;/b&gt;&lt;span style="color: magenta;"&gt; name="oss3" priority="2"/&amp;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/3417169946022348274-310158445314179993?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/310158445314179993/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/07/high-availability-active-active-active.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/310158445314179993'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/310158445314179993'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/07/high-availability-active-active-active.html' title='High Availability Active-Active Active-Passive Failover Domain.'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-1973925924148499444</id><published>2011-07-29T10:40:00.000-07:00</published><updated>2011-07-30T12:22:38.971-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Luster'/><title type='text'>MDS OSS Server Creation Luster File system</title><content type='html'>TO maintain the Luster File system, We have to create the MDS,OSS.&lt;br /&gt;&lt;b style="background-color: white;"&gt;MDS SERVER CREATION&lt;/b&gt; IP-10.0.0.10&lt;br /&gt;&lt;br /&gt;--mdt metadat Storage target&lt;br /&gt;--ost Obeject storage target&lt;br /&gt;--mgs  Configruating the management service,&lt;br /&gt;--fsname file system name&lt;br /&gt;1)MDS it will only communicate between the oss and client&lt;br /&gt;2)oss and client both are not pinging directly.&lt;br /&gt;client node and oss both are pinging through the mds.&lt;br /&gt;&lt;b&gt;Syntax For Creating MDS &lt;/b&gt;&lt;br /&gt;3)#&lt;b&gt;&lt;span style="color: lime;"&gt;mkfs.lustre&lt;/span&gt;&lt;span style="color: magenta;"&gt; --mdt&lt;/span&gt;&lt;span style="color: #660000;"&gt; --mgs&lt;/span&gt; &lt;span style="color: #783f04;"&gt;--fsname=lustre&lt;/span&gt;&lt;span style="background-color: white; color: orange;"&gt; /dev/sdb&lt;/span&gt;&lt;/b&gt; &lt;br /&gt;4)#mount -t lustre /dev/sdb /mnt/mdt/&lt;br /&gt;Note : while mounting take the another terminal try the following command&lt;br /&gt;#tail -f /var/log/message -- we can known what is going background,&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;OSS SERVER CREATION&lt;/b&gt; IP -10.0.0.101&lt;br /&gt;1)creation&lt;br /&gt;While creating oss we have to mention the mgsnode Server IP&lt;br /&gt;&lt;b&gt;#&lt;span style="color: lime;"&gt;mkfs.lustre&lt;/span&gt; &lt;span style="color: magenta;"&gt;--ost &lt;/span&gt;&lt;span style="color: orange;"&gt;--fsname=lustre&lt;/span&gt; &lt;span style="color: blue;"&gt;--mgsnode=10.0.0.10@tcp0&lt;/span&gt;&lt;span style="color: #7f6000;"&gt; /dev/sdb&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;if you want to reformat&lt;br /&gt;#mkfs.lustre --reformat --ost --fsname=lustre --mgsnode=10.0.0.10@tcp0 /dev/sdb&lt;br /&gt;--mgsnode set the NIDS of the mgs node&lt;br /&gt;2)mount -t lustre /dev/sdb /mnt/ost&lt;br /&gt;&lt;br /&gt;&lt;b&gt;CLIENT SIDE MOUNT OPTION&lt;/b&gt; -10.0.0.12&lt;br /&gt;mount -t lustre 10.0.0.10@tcp0:/lustre /home&lt;br /&gt;mount -t lustre mdsip:/lustre /home&lt;br /&gt;&lt;br /&gt;&lt;b&gt;VERIFY WHETHER IT IS MOUNTING PERFECTLY&lt;/b&gt;&lt;br /&gt;[root@node1 Lustre-1.8.5]# lfs df -h&lt;br /&gt;UUID                       bytes        Used   Available Use% Mounted on&lt;br /&gt;lustre-MDT0000_UUID         1.7G       83.2M        1.6G   4% /home[MDT:0]&lt;br /&gt;lustre-OST0000_UUID         2.0G       83.2M        1.8G   4% /home[OST:0]&lt;br /&gt;&lt;br /&gt;filesystem summary:         2.0G       83.2M        1.8G   4% /home&lt;br /&gt;These MDS, OSS Server Creation&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-1973925924148499444?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/1973925924148499444/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/07/mds-oss-server-creation-luster-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/1973925924148499444'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/1973925924148499444'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/07/mds-oss-server-creation-luster-file.html' title='MDS OSS Server Creation Luster File system'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-1416746096073485818</id><published>2011-07-29T10:21:00.000-07:00</published><updated>2011-08-01T13:00:47.568-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Luster'/><title type='text'>Create Luster File system In Redhat Linux - Installation</title><content type='html'>Linux+Cluster=Luster.&lt;br /&gt;To main the Luster file system, We have to Install the Following 6 rpm package in&lt;span style="color: magenta;"&gt; &lt;/span&gt;&lt;b&gt;&lt;span style="color: magenta;"&gt;Client&lt;/span&gt;,Object Storage Server(OSS),&lt;span style="color: #7f6000;"&gt;&lt;span style="color: #073763;"&gt;Meta Data Server(MDS&lt;/span&gt;)&lt;/span&gt;&lt;/b&gt;,&lt;br /&gt;&amp;nbsp;To Install rpm package, use rpm -ivh&lt;br /&gt;&lt;b&gt;-i&lt;/b&gt; install&lt;br /&gt;&lt;b&gt;-v&lt;/b&gt; verose&lt;br /&gt;&lt;b&gt;-h&lt;/b&gt; hash&lt;br /&gt;1)Even though we install the all package,&lt;span style="color: magenta;"&gt; e2fsprogs&lt;/span&gt; it is not install properly,&lt;br /&gt;To check use rpm -qa command , So using  rpm -Uvh update that package&lt;br /&gt;2)&lt;b&gt;Update the package&lt;/b&gt;&lt;br /&gt;# &lt;span style="color: magenta;"&gt;rpm -Uvh&lt;/span&gt; e2fsprogs-1.41.10.sun2&lt;br /&gt;&lt;b&gt;Packages Are &lt;/b&gt;&lt;br /&gt;1)e2fsprogs-1.41.10.sun2-0redhat.rhel5.x86_64.rpm&lt;br /&gt;2)kernel-2.6.18-194.17.1.el5_lustre.1.8.5.x86_64.rpm&lt;br /&gt;3)kernel-devel-2.6.18-194.17.1.el5_lustre.1.8.5.x86_64.rpm&lt;br /&gt;4)lustre-1.8.5-2.6.18_194.17.1.el5_lustre.1.8.5.x86_64.rpm&lt;br /&gt;5)lustre-ldiskfs-3.1.4-2.6.18_194.17.1.el5_lustre.1.8.5.x86_64.rpm&lt;br /&gt;6)lustre-modules-1.8.5-2.6.18_194.17.1.el5_lustre.1.8.5.x86_64.rpm&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Communcation Between Two Nodes&lt;/b&gt;,&lt;br /&gt;For the communcation between the two node, We have to edit the in the modeprobe.conf file&lt;br /&gt;1)we have to add entry in /etc/modprobe.conf&lt;br /&gt;&lt;b&gt;&lt;span style="color: #660000;"&gt;options&lt;/span&gt;&lt;span style="color: magenta;"&gt; lnet&lt;/span&gt;&lt;span style="color: #7f6000;"&gt; networks&lt;/span&gt;=&lt;span style="color: cyan;"&gt;tcp0(eth1)&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;#modprobe lnet [ update the driver]&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;List the Network&lt;/b&gt;&lt;br /&gt;# lctl list_nids&lt;br /&gt;IOC_LIBCFS_GET_NI error 100: Network is down&lt;br /&gt;&lt;br /&gt;&lt;b&gt;UP The Network&lt;/b&gt;&lt;br /&gt;# lctl network up&lt;br /&gt;&lt;br /&gt;&lt;b&gt;LNET configured&lt;/b&gt;&lt;br /&gt;# lctl list_nids&lt;br /&gt;10.0.0.11@tcp0&lt;br /&gt;Just like update the MDS, OSS and CLIENT,&lt;br /&gt;&lt;br /&gt;&lt;b&gt;To Check For Pinging Whether It is Pinging Or Not&lt;/b&gt;&lt;br /&gt;[root@mds ~]# lctl ping 10.0.0.9@tcp&lt;br /&gt;12345-0@lo&lt;br /&gt;12345-10.0.0.9@tcp&lt;br /&gt;These Are the Basic Luster Installation Step,&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-1416746096073485818?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/1416746096073485818/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/07/create-luster-file-system-in-redhat.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/1416746096073485818'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/1416746096073485818'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/07/create-luster-file-system-in-redhat.html' title='Create Luster File system In Redhat Linux - Installation'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-6289541505103172828</id><published>2011-07-20T00:38:00.000-07:00</published><updated>2011-09-14T08:10:50.526-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Yum Server Configuration'/><title type='text'>Yum Server Configuraiton In Simple 4 Step</title><content type='html'>Copy From the Media Disk to the Local /opt Directory&lt;br /&gt;&lt;b style="color: magenta;"&gt;1)&lt;/b&gt; cp -var&lt;b&gt; /media/RHEL_5.5\ x86_64\ DVD/Server/ /opt/rpm/&lt;/b&gt;&lt;br /&gt;&lt;b style="color: magenta;"&gt;2)&lt;/b&gt;Install &lt;span style="color: magenta;"&gt;createrepo&lt;/span&gt; rpm package.&lt;br /&gt;&lt;b&gt;rpm -ivh createrepo-0.4.11-3.el5.noarch.rpm&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style="color: magenta;"&gt;3)&lt;/b&gt;Using Createrepo Package create the repo package for /opt/rpm.&lt;br /&gt;&lt;b&gt;createrepo /opt/rpm/&lt;/b&gt;&lt;br /&gt;228/3116 - foomatic-3.0.2-38.3.el5.x86_64.rpm&lt;br /&gt;&lt;br /&gt;&lt;b style="color: magenta;"&gt;4)&lt;/b&gt;Edit the /etc/yum.repos.d/filename.repo&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;Before Edit the File&lt;/b&gt;&lt;/div&gt;1[c5-media]&lt;br /&gt;2name=CentOS-$releasever - Media&lt;br /&gt;3baseurl=file:///media/CentOS/&lt;br /&gt;4gpgcheck=1&lt;br /&gt;5enabled=0&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;After Edit the File&lt;/b&gt;&lt;/div&gt;1 [yumserver]&lt;br /&gt;2 name=yum serve&lt;br /&gt;3 baseurl=&lt;b&gt;file:///opt/rpm/&lt;/b&gt;&lt;br /&gt;4 gpgcheck=&lt;b&gt;0&lt;/b&gt;&lt;br /&gt;5 enabled=1&lt;br /&gt;Note : change Line 3,4,5 &lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;Verfiy whether Yum Install Sucessfully Or Not&lt;/b&gt;&lt;/div&gt;# yum clean all&lt;br /&gt;Loaded plugins: fastestmirror&lt;br /&gt;Cleaning up Everything&lt;br /&gt;Cleaning up list of fastest mirrors&lt;br /&gt;# yum list all&lt;br /&gt;--------------------------&lt;br /&gt;&lt;b&gt;Server : [ ######################################&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ]1223/2531&lt;/b&gt;&lt;br /&gt;we have to get the these type of Output that confirm Yum installed succefully for this Server.&lt;br /&gt;How to Configure Yum Server In Simple Step by step Installation Process&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-6289541505103172828?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/6289541505103172828/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/07/yum-server-configuraiton-step-by-step.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/6289541505103172828'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/6289541505103172828'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/07/yum-server-configuraiton-step-by-step.html' title='Yum Server Configuraiton In Simple 4 Step'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-3554390452736077953</id><published>2011-07-11T21:11:00.000-07:00</published><updated>2011-07-13T04:52:10.633-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Samba Server configuration'/><title type='text'>Samba Server Configuraiton In Simple 4 Step</title><content type='html'>Install Configure Samba Server GUI Mode.&lt;br /&gt;&lt;br /&gt;1)system-&amp;gt;Administrator -&amp;gt;server setting-&amp;gt;samba&lt;br /&gt;It will Open the PoP up window.&lt;br /&gt;File --&amp;gt; Add share&lt;br /&gt;&lt;br /&gt;2)&lt;b&gt;Basic(tab)&lt;/b&gt;&lt;br /&gt;Add share Directory&lt;br /&gt;2.1)Directory:&lt;br /&gt;2.2)share Name:&lt;br /&gt;2.3)Enable - writ ab, Vi sable &lt;br /&gt;&lt;br /&gt;3)&lt;b&gt;Access&lt;/b&gt;(tab)-Allow Access To everyone should be enable.&lt;br /&gt;4)&lt;b&gt;preference-&lt;/b&gt;&amp;gt;Server Setting-&amp;gt;security(tab)- &amp;gt; Authentication Mode:share&lt;br /&gt;&lt;div style="color: #660000;"&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;b&gt;Note: &lt;/b&gt;&lt;/span&gt;&lt;/div&gt;1)Disable the selinux &amp;amp; Iptables&lt;br /&gt;2)we have to Give the Full permission to that share directory&lt;br /&gt;&lt;div style="color: #990000;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="color: #990000;"&gt;&lt;b&gt;From the Windows system- &lt;/b&gt;&lt;/div&gt;1)start-&amp;gt;run-&amp;gt; \\LINUX SAMBA SERVER IP\&lt;br /&gt;Finally you can access that Linux directory from windows machine.&lt;br /&gt;To Install Command Line Interface - Refer the Link.-&lt;b&gt;&lt;i&gt;&lt;a href="http://www.studentcpu.com/search/label/Samba%20Server%20configuration" target="_blank"&gt;Samba Server Configuration In CLI mode&lt;/a&gt;&lt;/i&gt;&lt;/b&gt;.&lt;br /&gt;samba server Configuration In simple step by step Four step.&lt;br /&gt;Easy way to Configure In 4 Four step&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-3554390452736077953?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/3554390452736077953/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/07/samba-server-configuraiton-in-simple-4.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/3554390452736077953'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/3554390452736077953'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/07/samba-server-configuraiton-in-simple-4.html' title='Samba Server Configuraiton In Simple 4 Step'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-7611224276338620121</id><published>2011-06-02T22:24:00.000-07:00</published><updated>2011-06-02T22:26:04.518-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Shell Scripting'/><category scheme='http://www.blogger.com/atom/ns#' term='Booting Problem'/><title type='text'>Run Execute Shell Script While System Booting Startup</title><content type='html'>1)After write the shell script we have to place that shell script under /etc/init.d/.&lt;br /&gt;2)Then add the following line to that shell script at the begining &lt;br /&gt;#!/bin/bash&lt;br /&gt;# chkconfig: 2345 95 20&lt;br /&gt;# description: Some description&lt;br /&gt;3)add into chkconfig&lt;br /&gt;#chkconfig --add shellscript.sh&lt;br /&gt;NOTE: if we did STEP:2) then only we can add using chkconfig&lt;br /&gt;4)chkconfig shellscript.sh on&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;b style="color: magenta;"&gt;CONFIRMATION&lt;/b&gt;: To check if we go to /etc/rc.d/&lt;br /&gt;we have 6 run runlevel script directory &lt;span class="fullpost"&gt;&lt;br /&gt;rc0.d rc1.d rc2.d rc3.d rc4.d rc5.d rc6.d&lt;br /&gt;if go to that direcotry we can see the shell scrip name with  "S" &amp;amp; "K"&lt;br /&gt;S indicate start the script when it boots up,&lt;br /&gt;K metion  down cleanly when it is going shut down&lt;br /&gt;Soft Link syntax&lt;br /&gt;ln -s [SOURCE FILE] [DESTINATION FILE]&lt;br /&gt;For Manual Adding.&lt;br /&gt;ln -s /etc/init.d/script-daemon-name /etc/rc.d/rc5.d/S50cript-daemon-name&lt;br /&gt;ln -s /etc/init.d/script-daemon-name /etc/rc.d/rc5.d/K50script-daemon-name&lt;br /&gt;&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;How To Run Command while system Booting.&lt;/b&gt;&lt;/div&gt;We can run the command using /etc/rc.d/rc.local&lt;br /&gt;/etc/rc.d/rc.local - here what are command we put it will run while booting.&lt;br /&gt;Using these method we can run the command shell script as daemon while booting or start up of the system.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-7611224276338620121?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/7611224276338620121/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/06/run-execute-shell-script-booting.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/7611224276338620121'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/7611224276338620121'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/06/run-execute-shell-script-booting.html' title='Run Execute Shell Script While System Booting Startup'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-6435857354274625066</id><published>2011-06-02T03:25:00.000-07:00</published><updated>2011-06-02T03:25:32.500-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vncviewer'/><title type='text'>Remote Desktop Vncviewer Enable Disable command Line</title><content type='html'>IT IS ONLY FOR ENABLE THE CLIENT DESKTOP NOT FOR CONTROL&lt;br /&gt;&lt;br /&gt;Remote Desktop Enable Disable through Command Line To &lt;b style="color: magenta;"&gt;ACCESS&lt;/b&gt;&lt;br /&gt;ENABLE / DISABLE Remote Desktop&lt;br /&gt;1)Enable the remote Desktop through command line Interface To access from other system&lt;br /&gt;gconftool-2 -s -t bool /desktop/gnome/remote_access/enabled true&lt;br /&gt;a)true -enable b)false -disable&lt;br /&gt;&lt;br /&gt;Enable / Disable For &lt;b style="color: magenta;"&gt;CONFIRMATION&lt;/b&gt;&lt;br /&gt;2)gconftool-2 -s -t bool /desktop/gnome/remote_access/prompt_enabled true -&amp;gt; enable the confirmation&lt;br /&gt;if it is false mean - without confirmation you can access the system.&lt;span class="fullpost"&gt;&lt;br /&gt;a)true - enable b)false - disable&lt;br /&gt;To confirm&lt;br /&gt;System -&amp;gt; Preferences -&amp;gt; Remote Desktop&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-6435857354274625066?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/6435857354274625066/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/06/remote-desktop-vncviewer-enable-disable.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/6435857354274625066'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/6435857354274625066'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/06/remote-desktop-vncviewer-enable-disable.html' title='Remote Desktop Vncviewer Enable Disable command Line'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-2579230084190658344</id><published>2011-06-02T03:02:00.000-07:00</published><updated>2011-06-02T03:06:39.412-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vncviewer'/><title type='text'>Vnc Viewer Error Message Unable To Connect To Host</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;While I try to connect the client system through Remote Desktop through vncviewer.I got the following error message.&lt;br /&gt;unable to connect to host: Connection refused (111).&lt;br /&gt;[root@remote]# &lt;b&gt;vncviewer &lt;/b&gt;&lt;br /&gt;VNC Viewer Free Edition 4.1.2 for X - built Mar 24 2009 19:53:14&lt;br /&gt;Copyright (C) 2002-2005 RealVNC Ltd.&lt;br /&gt;See http://www.realvnc.com for information on VNC.&lt;br /&gt;Thu Jun  2 11:45:07 2011&lt;br /&gt;main:        unable to connect to host: Connection refused (111)&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;ERROR MESSAGE:&lt;/b&gt;&lt;/div&gt;unable to connect to host: Connection refused (111)&lt;br /&gt;&lt;b style="color: magenta;"&gt;REASON FOR PROBLEM&lt;/b&gt;&lt;br /&gt;VNCSERVER it not starting (or) we are not open with appropriate &lt;b&gt;vncviewerdesktopip:&lt;span style="color: magenta;"&gt;number&lt;/span&gt;&lt;/b&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;vncserver&lt;/b&gt;&lt;br /&gt;1)it will start or stop vnc server.&lt;br /&gt;2)vncserver it is used to virutal network desktop.&lt;br /&gt;while vnc server start -it will create the following files&lt;br /&gt;a)$HOME/.Xauthority&lt;br /&gt;b)$HOME/.vnc/xstartup&lt;br /&gt;&lt;br /&gt;Run these command 'vncserver' at the client System.&lt;br /&gt;It will create Virtual Network Desktop&lt;br /&gt;[uername@clientsystem]$ &lt;b&gt;vncserver&lt;/b&gt;&lt;br /&gt;You will require a password to access your desktops.&lt;br /&gt;Password:&lt;br /&gt;Verify:&lt;br /&gt;xauth:  creating new authority file /home/venkates/.Xauthority&lt;br /&gt;New 'Venkates:3 (venkates)' desktop is Venkates:3&lt;br /&gt;Creating default startup script /home/venkates/.vnc/xstartup&lt;br /&gt;Starting applications specified in /home/venkates/.vnc/xstartup&lt;br /&gt;Log file is /home/venkates/.vnc/Venkates:3.log&lt;br /&gt;&lt;b&gt;From the Remote system&lt;/b&gt;&lt;br /&gt;[root@remote]#&lt;b style="color: magenta;"&gt;vncviewer &lt;span style="color: #4c1130;"&gt;cliensystemtip&lt;/span&gt;:Number&lt;/b&gt;&lt;br /&gt;It will ask the password enter the password for which one you created at the eariler.&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/3417169946022348274-2579230084190658344?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/2579230084190658344/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/06/unable-to-connect-to-host-vnc-viewer.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/2579230084190658344'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/2579230084190658344'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/06/unable-to-connect-to-host-vnc-viewer.html' title='Vnc Viewer Error Message Unable To Connect To Host'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-1725890087186953851</id><published>2011-06-01T00:24:00.000-07:00</published><updated>2011-06-01T00:28:02.521-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Basic command'/><title type='text'>Linux Display Pop-up Window Message Box Mail Alert  Notification</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;In the Linux shell script How to create Linux pop-up window &amp;amp; Message Box, Mail alert. Display message notification.&lt;br /&gt;1)gnome-terminal -x sh -c "date|less" &amp;gt;&amp;gt;run the command in new gnome-terminal&lt;br /&gt;2)xterm -e "top -c; sleep 10" &lt;br /&gt;Open the xterm terminal and run the command&lt;br /&gt;3)&lt;b style="color: magenta;"&gt;notify-send&lt;/b&gt; "welcome to Linux message box"&lt;br /&gt;4)echo "hello"&amp;gt;&amp;gt;/dev/pts/2&lt;br /&gt;pts- pseudo terminal slave / ptm - pseudo terminal master&lt;br /&gt;/dev/pts/1 it is indicate about terminal device file.&lt;br /&gt;5)wall "welcome to studentcpu.com"&lt;br /&gt;It will send the message to All The user who are login.&lt;br /&gt;6)cat msg.txt | wall&lt;br /&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SEND MESSAGE TO REMOTE SYSTEM GUI&lt;/b&gt;&lt;br /&gt;When we took the remote connectivity of the other system we can send Notification message to the Graphical windows using these method.using Terminal we can do that But through Graphical we have to export variable DISPLAY=:0.&lt;span class="fullpost"&gt;&lt;br /&gt;7)&lt;b style="color: magenta;"&gt;export DISPLAY=:0&lt;/b&gt; &amp;amp;&amp;amp; &lt;b&gt;zenity&lt;/b&gt; --info --title='Message' --text='Linux redhat '&lt;br /&gt;When we took the remote connection for remote system we can display message on there Graphical window&lt;br /&gt;Using export DISPLAY=0;&lt;br /&gt;7)export DISPLAY=:0 &amp;amp;&amp;amp; notify-send "we are looking for linux expert" &lt;br /&gt;it will open small notification message box on the right hand side bottom corner.&lt;br /&gt;9)&lt;b style="color: magenta;"&gt;kdialog&lt;/b&gt; --title "New Mail Has Arrived" --passivepopup \&lt;br /&gt;"it will terminate withing 5 minutes" 5&lt;br /&gt;Open the message Box on the Left Hand side Top bottom.&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/3417169946022348274-1725890087186953851?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/1725890087186953851/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/06/linux-display-pop-up-window-message-box.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/1725890087186953851'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/1725890087186953851'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/06/linux-display-pop-up-window-message-box.html' title='Linux Display Pop-up Window Message Box Mail Alert  Notification'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-8157834504122947110</id><published>2011-05-30T03:18:00.000-07:00</published><updated>2011-05-30T03:18:43.354-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='File System'/><title type='text'>Hard Disk Management Logical Partition Extended &amp; Primary Partition</title><content type='html'>In the Linux partition /dev/sda4 is always consider as the extended partition.&lt;br /&gt;Primary partition is used for maintain the operating system.&lt;br /&gt;In the hard disk it has four primary partition,&lt;br /&gt;while booting Only one primary partition is active and renaming partition it will ignore.&lt;br /&gt;1)One of the Four primary partition can be assigned as extended partition.&lt;br /&gt;So In the hard disk we have only one Extended Partition.&lt;span class="fullpost"&gt;&lt;br /&gt;2)that extended partition can be divided into multiple logical volume,&lt;br /&gt;3)Logical volume it can not be Primary Partition,&lt;br /&gt;4)If we want to increase the partition &lt;br /&gt;4.1) we can not increase the Primary partition&lt;br /&gt;4.2) we need to increase the Logical partition from the extended, Here we can exteded upto 64 Logical volume,&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-8157834504122947110?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/8157834504122947110/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/05/hard-disk-management-logical-partition.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/8157834504122947110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/8157834504122947110'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/05/hard-disk-management-logical-partition.html' title='Hard Disk Management Logical Partition Extended &amp; Primary Partition'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-2032728014785095567</id><published>2011-05-30T01:56:00.000-07:00</published><updated>2011-05-30T01:58:17.645-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Interview Question'/><title type='text'>Vim Editor Tutorial Tricks Tips Advanced Features</title><content type='html'>1)Vim Editor Has the Three Different mode&lt;br /&gt;a)Command Mode &lt;br /&gt;b)Insert Mode&lt;br /&gt;c)Last Line Mode (or) (:) colon mode&lt;br /&gt;2)Vim Editor To Change Lower Case &amp;amp; Upper Case Vice Versa&lt;br /&gt;In &lt;b style="color: magenta;"&gt;COMMAND MODE&lt;/b&gt;&lt;br /&gt;&lt;b&gt;gU&lt;/b&gt; - Change into UPPER CASE&lt;br /&gt;&lt;b&gt;gu&lt;/b&gt; - Change into Lower Case&lt;br /&gt;3)Vim editor encryption To create Password To Edit and Save file&lt;br /&gt;#&lt;b&gt;vim -x filename.txt&lt;/b&gt;&lt;br /&gt;Enter the encryption Key,&lt;br /&gt;While You open next time it will ask password (encryption key).&lt;br /&gt;4) How to print the output to the text file&lt;br /&gt;Open the vim editor&lt;br /&gt;#vim jkumar.txt&lt;br /&gt;Unde the Last line mode (:) colon mode&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;:r!date&lt;/b&gt;&lt;/div&gt;5)Auto Correct How to enable the spelling correct&lt;br /&gt;&lt;b&gt;:set spell&lt;/b&gt;  - Enable spelling correct&lt;br /&gt;:set nospell - Disable spelling correct&lt;br /&gt;6)To get Help on Live&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;:help d&lt;/b&gt;&lt;/div&gt;Just like we can get the output which one we want&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-2032728014785095567?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/2032728014785095567/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/05/vim-editor-tutorial-advanced-features.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/2032728014785095567'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/2032728014785095567'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/05/vim-editor-tutorial-advanced-features.html' title='Vim Editor Tutorial Tricks Tips Advanced Features'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-8008660701747933519</id><published>2011-05-30T01:47:00.000-07:00</published><updated>2011-05-30T01:50:55.013-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Internet Programming'/><title type='text'>Linux Essential Important Question Answer Tips Tricks</title><content type='html'>While Copy Replace if the file is exist&lt;br /&gt;1)#&lt;b&gt;yes &lt;/b&gt;| &lt;b&gt;cp &lt;span style="color: #4c1130;"&gt;Source&lt;/span&gt; &lt;span style="color: magenta;"&gt;Destination&lt;/span&gt;&lt;/b&gt; { while copy if the file is already present replace answer yes }&lt;br /&gt;2)Search And delete the word&lt;br /&gt;#&lt;b&gt;sed "/search word/&lt;span style="color: magenta;"&gt;d&lt;/span&gt;" -i file&lt;/b&gt;&lt;br /&gt;Partition Hard disk&lt;br /&gt;3))Hard disk partition &lt;br /&gt;/dev/sda1 (hd0,0) &lt;br /&gt;/dev/sda5 (hd5,0)&lt;br /&gt;4)rsync backup script under High availability&lt;br /&gt;The Root partition.&lt;br /&gt;#mount /dev/sda5 /mnt/hd&lt;br /&gt;#&lt;b&gt;rsync -ax / /mnt/hd&lt;/b&gt;&lt;br /&gt;Using These method we can copy only the root partition, But we can't use these to maintain the separate system,&lt;br /&gt;Because pid,dev it will not make the proper update,&lt;br /&gt;5) script how to create current date as folder name.&lt;br /&gt;# mkdir &lt;b style="color: magenta;"&gt;`date +%d-%m-%y.%H:%M:%S&lt;/b&gt;`&lt;span class="fullpost"&gt;&lt;br /&gt;30-05-11.11:23:29&lt;br /&gt;6)disk label in Linux&lt;br /&gt;6.1)mkfs.ext3 -L HOME /dev/hda1&lt;br /&gt;6.2)e2label /dev/hda2 SECONDARY_BACKUP&lt;br /&gt;while Create Swap Space&lt;br /&gt;6.3)mkswap -L SWAP /dev/hda5&lt;br /&gt;While using in fstabe we can use like&lt;br /&gt;LABEL=HOME          /home         ext2    defaults        0 0&lt;br /&gt;7)How to check whether Cron tab job is working or not.&lt;br /&gt;&lt;b&gt;#cat /var/log/cron&lt;/b&gt;&lt;br /&gt;May 30 11:30:01 jkumar crond[5844]: (root) CMD (/usr/lib/sa/sa1 1 1)&lt;br /&gt;Using cron log we can identify whether job is running at a specific time.s&lt;br /&gt;8)env - environment variable it is used to maintain or modify the environment variable.&lt;br /&gt;#! These sysntax is used to mention the which interpreter is used to execute the program.&lt;br /&gt;#!/bin/bash&lt;br /&gt;#!/usr/bin/perl&lt;br /&gt;#!/usr/bin/python&lt;br /&gt;1)Shell script shebang also called a &lt;b&gt;hashbang&lt;/b&gt; it is contain the character number sign(#) and exclamation point (#!),&lt;br /&gt;2)it is give the absolute path for the interpreter&lt;br /&gt;How to set the Proxy Entry in the Linux&lt;br /&gt;9&lt;b&gt;)export http_proxy=http://proxyip:portnumber&lt;/b&gt;&lt;br /&gt;export http_proxy=http://151.8.27.214:6588 (or)&lt;br /&gt;wget -Y -e "http_proxy=host:port" url&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-8008660701747933519?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/8008660701747933519/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/05/linux-essential-important-question.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/8008660701747933519'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/8008660701747933519'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/05/linux-essential-important-question.html' title='Linux Essential Important Question Answer Tips Tricks'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-826904115758011261</id><published>2011-05-30T00:47:00.000-07:00</published><updated>2011-06-02T22:46:37.227-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Configuration'/><title type='text'>Infiniband For Hight perfomance Computing</title><content type='html'>Infini band Is mainly used for High performance Computing because compare to Ethernet device it will provide High data transfer, it will provide Following features,&lt;br /&gt;1)High throughput&lt;br /&gt;2)Quality of Service&lt;br /&gt;3)fail over&lt;br /&gt;4)Provide High bandwidth,&lt;br /&gt;Infiband throughput is upto 2.5 gigabytes per second.&lt;br /&gt;By using Infinband we will get better Performance For HPC - High Performance Computing.&lt;br /&gt;&lt;b&gt;Infini Band Command- HPC&lt;/b&gt;&lt;br /&gt;#&lt;b&gt;/etc/init.d/openibd status&lt;/b&gt;&lt;br /&gt;here we can try status,start,restart,&lt;br /&gt;Ibstat Give the status about that command.&lt;br /&gt;#&lt;b&gt; ibstat&lt;/b&gt;&lt;br /&gt;CA 'mthca0'&lt;span class="fullpost"&gt;&lt;br /&gt;CA type: MT25204&lt;br /&gt;Number of ports: 1&lt;br /&gt;Firmware version: 1.2.0&lt;br /&gt;Hardware version: a0&lt;br /&gt;Node GUID: 0x0002c902002a798c&lt;br /&gt;System image GUID: 0x0002c902002a798f&lt;br /&gt;Port 1:&lt;br /&gt;&lt;b&gt;State: &lt;span style="color: magenta;"&gt;Initializing&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Physical state: LinkUpOFED-1.5.3&lt;br /&gt;Rate: 10&lt;br /&gt;Base lid: 0&lt;br /&gt;LMC: 0&lt;br /&gt;SM lid: 0&lt;br /&gt;Capability mask: 0x02510a68&lt;br /&gt;Port GUID: 0x0002c902002a798d&lt;br /&gt;Link layer: IB&lt;br /&gt;If thee ste is &lt;b&gt;State: Initializing&lt;/b&gt; to change state as Active try the following command, then try it.&lt;br /&gt;&lt;b&gt;# &lt;span style="color: magenta;"&gt;/etc/init.d/opensmd start&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Compare to Ethernet Infni band is 25% better performance while transfer through infiniband ip&lt;br /&gt;EXAMPLE:1 GB transfer it take 49 s [ethernet]&lt;br /&gt;1 GB transfer it take 29 [infiniband]&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-826904115758011261?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/826904115758011261/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/05/infiniband-for-hight-perfomance.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/826904115758011261'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/826904115758011261'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/05/infiniband-for-hight-perfomance.html' title='Infiniband For Hight perfomance Computing'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-7784760377984942367</id><published>2011-05-04T03:43:00.000-07:00</published><updated>2011-05-04T03:49:50.791-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux support'/><title type='text'>/usr/bin/env: python2.3: Permission Denied No Such File Or Directory</title><content type='html'>/usr/bin/env: python2.3: Permission denied&lt;br /&gt;/usr/bin/env: python2.3: No such file or directory&lt;br /&gt;# /usr/bin/env python2.4&lt;br /&gt;&lt;b&gt;/usr/bin/env: python2.4: No such file or directory&lt;/b&gt;&lt;br /&gt;if you try from the Standard user&lt;br /&gt;# /usr/bin/env python2.4&lt;br /&gt;&lt;b&gt;/usr/bin/env: python2.4: Permission denied&lt;/b&gt;&lt;br /&gt;&lt;div style="color: #990000;"&gt;&lt;b&gt;PROBLEM - ERROR MESSAGE&lt;/b&gt;&lt;/div&gt;The problem is I have already installed the python2.3.&lt;span class="fullpost"&gt;&lt;br /&gt;But MPI program Or Cluster application they are default set to use the python 2.4.So I need to redirect from python2.4 to python2.3.&lt;br /&gt;&lt;b&gt;Using Soft Link we can resolve that problem.&lt;/b&gt;&lt;br /&gt;For python2.3 it is working perfectly for python2.3.&lt;br /&gt;# /usr/bin/env python2.3&lt;br /&gt;Python 2.3.4 (#1, Feb 18 2008, 17:16:53)&lt;br /&gt;[GCC 3.4.6 20060404 (Red Hat 3.4.6-9)] on linux2&lt;br /&gt;Type "help", "copyright", "credits" or "license" for more information.&lt;br /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;&lt;div style="color: #990000;"&gt;&lt;b&gt;SOLUTION &lt;/b&gt;&lt;/div&gt;To Resolve these problem for python2.4&lt;br /&gt;1)create the soft link for python2.4 to python2.3&lt;br /&gt;#ln -sf (DESTIONATION) (SOURCE)&lt;br /&gt;-s soft link&lt;br /&gt;-f force&lt;br /&gt;#ln -sf &lt;b style="color: blue;"&gt;/usr/bin/python2.3 &lt;span style="color: #990000;"&gt;/usr/bin/python2.4&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Then try it the problem has been cleared&lt;br /&gt;/usr/bin/env: python2.4: No such file or directory&lt;br /&gt;/usr/bin/env: python2.4: Permission denied&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-7784760377984942367?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/7784760377984942367/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/05/python-permission-denied-python-no-such.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/7784760377984942367'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/7784760377984942367'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/05/python-permission-denied-python-no-such.html' title='/usr/bin/env: python2.3: Permission Denied No Such File Or Directory'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-6175183659784347712</id><published>2011-04-29T03:52:00.000-07:00</published><updated>2011-04-30T02:21:51.793-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Booting Problem'/><title type='text'>Hard Disk Partition Disk Label In Linux</title><content type='html'>Linux Operating system , partition and there root grub.conf file parameter&lt;br /&gt;hdx,y &lt;br /&gt;x represent Hard disk,&lt;br /&gt;Y represent Parition,&lt;br /&gt;/dev/sda1 - (hd0,0)&lt;br /&gt;/dev/sda2 - (hd0,1)&lt;br /&gt;/dev/sda3 - (hd0,2)&lt;br /&gt;/dev/sda4 - (hd0,4)&lt;br /&gt;/dev/sda5 - (hd0,5)&lt;br /&gt;Second Hard disk&lt;br /&gt;/dev/sdb1 -(hd1,0)&lt;br /&gt;/dev/sdb2 -(hd1,1)&lt;br /&gt;/dev/sdb3 -(hd1,2)&lt;span class="fullpost"&gt;&lt;br /&gt;/dev/sdb4 -(hd1,3)&lt;br /&gt;/dev/sdb5 -(hd1,4)&lt;br /&gt;If you want to make the second partition as boot partition &lt;br /&gt;1)copy the boot partition document into /dev/sdax &lt;br /&gt;2)create install using setup command &lt;br /&gt;&lt;a href="http://studentwebsite.blogspot.com/2011/04/change-linux-boot-partition-devsda5.html"&gt;CHANGE BOOT PARTITION&lt;/a&gt;&lt;br /&gt;Refer the below link&lt;br /&gt;&lt;br /&gt;Operating system partition and there parameter.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-6175183659784347712?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/6175183659784347712/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/04/hard-disk-partition-disk-label-in-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/6175183659784347712'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/6175183659784347712'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/04/hard-disk-partition-disk-label-in-linux.html' title='Hard Disk Partition Disk Label In Linux'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-331736776065963857</id><published>2011-04-28T23:58:00.000-07:00</published><updated>2011-04-30T02:21:51.796-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Booting Problem'/><title type='text'>Change Linux Boot Partition /dev/sda5 root(hd0,4) to /dev/sda1 root (hd0,0),</title><content type='html'>&lt;b style="color: #cc0000;"&gt;Scenario&lt;/b&gt;&lt;span style="color: #cc0000;"&gt; :&lt;/span&gt; Under Linux Operating system, I have the two boot partition /dev/sda1 and /dev/sda5.currently it is booting from /dev/sda5 I want to change boot partition into /dev/sda1. How to change,How to address Master boot record boot partition from /dev/sda4 to /dev/sda1&lt;br /&gt;&lt;b style="color: #cc0000;"&gt;Solution:&lt;/b&gt;&lt;b&gt; &lt;/b&gt;when ever the Linux operating system boot, first it will load mbr (master boot record) these mbr load the grub loader(grub.conf). &lt;br /&gt;To change these /dev/sda4/grub.conf to /dev/sda1/grub.conf mab&amp;nbsp; follow the procedure.&lt;br /&gt;&lt;b&gt;1)&lt;/b&gt;grub&amp;gt;&lt;b&gt;find /boot/grub/stage1&lt;/b&gt;&lt;br /&gt;root(hd0,0)&lt;br /&gt;root(hd0,4)&lt;br /&gt;If you get any error message like&lt;br /&gt;&lt;div style="color: red;"&gt;&lt;b&gt;"Error 15: File not found"&lt;/b&gt;&lt;/div&gt;Then try following command,&lt;br /&gt;While we check "find /boot/grub/stage1" if it is not found,&lt;br /&gt;Then can check  "find /grub/stage1" &lt;span class="fullpost"&gt;&lt;br /&gt;grub&amp;gt; &lt;b&gt;find /grub/stage1&lt;/b&gt;&lt;br /&gt;(hd0,0)&lt;br /&gt;(hd0,4)&lt;br /&gt;From these &lt;br /&gt;Here I have two boot partition so it show the two parameter,(hd0,0), (hd0,4)&lt;br /&gt;we need to confirm which partition we want to install that grub &lt;br /&gt;&lt;b&gt;2)&lt;/b&gt;grub&amp;gt;&lt;b&gt;root (hd0,0)&lt;/b&gt;&lt;br /&gt;&lt;b&gt;3)&lt;/b&gt;grub&amp;gt;&lt;b&gt;setup (hd0)&lt;/b&gt;&lt;br /&gt;Running "install /grub/stage1 (hd0) (hd0)1+15 p (hd0,0)/grub/stage2 /grub/grub.conf"... succeeded&lt;br /&gt;Done.&lt;br /&gt;From there last line we can confirm the grub conf file located (hd0,0)/grub/grub.conf&lt;br /&gt;&lt;b&gt;4)&lt;/b&gt;Go to /dev/sda1-/etc/fstab add boot partition.&lt;br /&gt;/etc/fstab&lt;br /&gt;/dev/sda1 /boot&lt;br /&gt;How to change Linux Booting partition from /dev/sda4 root(hd4,0) to /dev/sda1 root(hd0,0)&lt;br /&gt;Change the boot partition.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-331736776065963857?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/331736776065963857/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/04/change-linux-boot-partition-devsda5.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/331736776065963857'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/331736776065963857'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/04/change-linux-boot-partition-devsda5.html' title='Change Linux Boot Partition /dev/sda5 root(hd0,4) to /dev/sda1 root (hd0,0),'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-8858140198455531247</id><published>2011-04-25T03:39:00.000-07:00</published><updated>2011-04-25T03:42:58.722-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux support'/><title type='text'>Unable Start Stop  NFS Daemon Failed</title><content type='html'>I try to install the client system through kickstart with NFS service,&lt;br /&gt;For client installation it is unable to get the&lt;b&gt; kick start file&lt;/b&gt;, it asking for kick start file,these type of issue will happened when nfs service is failed.So I try to start restart the nfs service, While start nfs deamon start and stop are failed.&lt;br /&gt;# &lt;b&gt;service nfs start&lt;/b&gt;&lt;br /&gt;Starting NFS services:                                     [  OK  ]&lt;br /&gt;Starting NFS quotas:                                       [  OK  ]&lt;br /&gt;Starting NFS daemon:&lt;span style="color: #660000;"&gt; &lt;b&gt;                                      [FAILED]&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;If the nfs Service is stop,&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1)&lt;/b&gt;due to that unable to get Kickstart file it can not go ahead for installation.&lt;br /&gt;&lt;b&gt;2)&lt;/b&gt;So we have to restart the nfs service&lt;br /&gt;while I restart I cann't start the service, It still show the Starting nfs service daemon is FAILED.&lt;br /&gt;&lt;b&gt;3)&lt;/b&gt;List out list of process which are used nfs service&lt;br /&gt;# &lt;b&gt;ps -ef | grep nfs&lt;/b&gt;&lt;br /&gt;root     13282   177  0 17:10 ?        00:00:00 [nfsd4]&lt;br /&gt;root     13290     1  0 17:10 ?        00:00:00 [nfsd]&lt;br /&gt;root     13291     1  0 17:10 ?        00:00:00 [nfsd]&lt;br /&gt;root     13392   177  0 17:10 ?        00:00:00 [nfsiod]&lt;br /&gt;&lt;b&gt;4)&lt;/b&gt;Kill the service&lt;br /&gt;#&lt;b&gt;kill -9 13284&lt;/b&gt;&lt;br /&gt;# kill -9 13282&lt;br /&gt;Like wise I kill the all the process&lt;br /&gt;&lt;b&gt;5)&lt;/b&gt;Then restart the nfs service it was starting nfs service perfectly.&lt;br /&gt;Then the client will get kickstart file through nfs service and installation was completed succefully.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-8858140198455531247?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/8858140198455531247/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/04/unable-start-stop-nfs-daemon-failed.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/8858140198455531247'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/8858140198455531247'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/04/unable-start-stop-nfs-daemon-failed.html' title='Unable Start Stop  NFS Daemon Failed'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-3231503423641410608</id><published>2011-04-12T03:38:00.000-07:00</published><updated>2011-04-12T03:48:28.377-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Basic command'/><title type='text'>Linux Diff Command Diff Vimdiff Gvimdiff</title><content type='html'>diff it can be used to compare the Two files&lt;br /&gt;&lt;b&gt;vimdiff &lt;/b&gt;perform the diff using vim&lt;br /&gt;&lt;b&gt;gvimdiff&lt;/b&gt; Perform vimdiff and provide  Graphical editor&lt;br /&gt;&lt;b&gt;diff -w file1 file2&lt;/b&gt;&lt;br /&gt;-w ignore the white space&lt;br /&gt;diff command it telling about&lt;br /&gt;&lt;b style="color: #cc0000;"&gt;'&amp;lt;'&lt;/b&gt; -Mention First File word  (or) character Located in the first file&lt;br /&gt;&lt;br /&gt;&lt;b style="color: #cc0000;"&gt;'&amp;gt;'&lt;/b&gt; -Mention Second File Word (or) Character have extra word in the second file&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;"&lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;span style="color: #cc0000;"&gt;---&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;" mention it will compare the same line for the two files.&lt;br /&gt;&amp;lt; Installing setup-2.5.58-7.el5.noarch rhel5&lt;br /&gt;&lt;b&gt;---&lt;/b&gt;&lt;br /&gt;&amp;gt; Installing setup-2.5.58-7.el5.noarch&lt;br /&gt;We can also use the Vimdiff -&amp;gt; it is vim editor,&lt;span class="fullpost"&gt;&lt;br /&gt;It will compare the two file using different colors and&amp;nbsp; we can can compare the n no of files like,&lt;br /&gt;#&lt;b&gt;vimdiff &lt;span style="color: #cc0000;"&gt;file1&lt;/span&gt;&lt;span style="color: blue;"&gt; file2&lt;/span&gt; &lt;span style="color: magenta;"&gt;file3&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;gvimdiff -Graphical vimdiff editor. &lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;b&gt;COMPARE DIRECTORY&lt;/b&gt;&lt;br /&gt;test1,2,3 file are locate only under the /tmp/p1 these file are not persent under /tmp/p2&lt;br /&gt;#diff /tmp/p1 /tmp/p2&lt;br /&gt;Only in /tmp/p1: test1&lt;br /&gt;Only in /tmp/p1: test2&lt;br /&gt;Only in /tmp/p1: test3&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-3231503423641410608?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/3231503423641410608/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/04/linux-diff-command-diff-vimdiff.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/3231503423641410608'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/3231503423641410608'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/04/linux-diff-command-diff-vimdiff.html' title='Linux Diff Command Diff Vimdiff Gvimdiff'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-5536108743537809613</id><published>2011-04-11T23:47:00.000-07:00</published><updated>2011-04-12T03:50:02.744-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Trouble Shooting'/><title type='text'>Segmentation Fault Run Time Error | Trace Out Debugging Using gdb</title><content type='html'>That computer Physical Memory managed by the OS. It has different segmentation,&lt;br /&gt;It will used for the storing data,variables,text,garbage values,&lt;br /&gt;when we try to access memory location if it&lt;b&gt; outside&lt;/b&gt;, or not able to &lt;b&gt;read/write&lt;/b&gt;, or &lt;b&gt;due to security&lt;/b&gt; it is not allow to access due to that segmentation fault occur.&lt;br /&gt;Segmentation fault. It is Run Time Error.&lt;br /&gt;1)if we are not assign the pointer in the correct format. like,&lt;br /&gt;char *s = "hello world";&lt;br /&gt;*s = 'H';&lt;br /&gt;Pointer it is read only data type.&lt;br /&gt;&lt;b&gt;Reason&lt;/b&gt;- Already Pointer assign hello world, then we can't overwrite the value,.&lt;span class="fullpost"&gt;&lt;br /&gt;Here it is attempting to write the read -only data due to that we are facing Segmentation Fault.&lt;br /&gt;2)int i;&lt;br /&gt;scanf("%d",i);&lt;br /&gt;printf("%d",i);&lt;br /&gt;return(0);&lt;br /&gt;it will also generate Segmentation Fault Error. &lt;br /&gt;&lt;b&gt;Main Reason&lt;/b&gt;&lt;br /&gt;1)rarely Compute Hardware is broken,&lt;br /&gt;2)Bug in the program Source Code.&lt;br /&gt;3)It can also appear when you try to access an array beyond the end of an array under C programming.&lt;br /&gt;We can trace out these error using gdb command | Debugging Segmentation Fault &lt;br /&gt;&lt;div style="color: #990000;"&gt;&lt;b&gt;gdb- GNU Project Debugger&lt;/b&gt;&lt;/div&gt;How to Run the Program under gdb &lt;br /&gt;&lt;b&gt;# gdb &lt;/b&gt;&lt;b style="color: #990000;"&gt;segfault&lt;/b&gt; &lt;br /&gt;GNU gdb Fedora (6.8-37.el5)&lt;br /&gt;Copyright (C) 2008 Free Software Foundation, Inc.&lt;br /&gt;License GPLv3+: GNU GPL version 3 or later &lt;http: gnu.org="" gpl.html="" licenses=""&gt;&lt;br /&gt;This is free software: you are free to change and redistribute it.&lt;br /&gt;There is NO WARRANTY, to the extent permitted by law.  Type "show copying"&lt;br /&gt;and "show warranty" for details.&lt;br /&gt;This GDB was configured as "i386-redhat-linux-gnu"...&lt;br /&gt;&lt;b&gt;(gdb)&lt;span style="color: #990000;"&gt; run&amp;nbsp;&lt;/span&gt;&lt;/b&gt; &amp;gt;&amp;gt;Run The Program Under gdb&lt;br /&gt;Starting program: /root/cprogrm/segfault &lt;br /&gt;Program received signal SIGSEGV, Segmentation fault.&lt;br /&gt;0x0804836f in main () at one.c:4&lt;br /&gt;4            *s = 'H';&lt;br /&gt;&lt;b&gt;(gdb) &lt;span style="color: #990000;"&gt;backtrace&lt;/span&gt; &lt;/b&gt;&lt;br /&gt;#0  0x0804836f in main () at one.c:4 &lt;br /&gt;These Type Error Will occur in C Programming, Vasp Programming when user give Large Matrix in Poscar file Input,Debugging Segmentation Fault&lt;br /&gt;&lt;/http:&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-5536108743537809613?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/5536108743537809613/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/04/segmentation-fault-run-time-error-trace.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/5536108743537809613'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/5536108743537809613'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/04/segmentation-fault-run-time-error-trace.html' title='Segmentation Fault Run Time Error | Trace Out Debugging Using gdb'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-1617486623556972479</id><published>2011-04-11T05:01:00.000-07:00</published><updated>2011-04-11T05:02:48.958-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Smatrcl Check Harddisk Drive Health  Condition</title><content type='html'>Using smartctl command we can check the hard disk whether It is going to bad or not,it is self-monitoring tool, used to detect the reliability of the hard disk.&lt;br /&gt;1)&lt;b&gt;Fist we need to enable the smartctl.&lt;/b&gt;&lt;br /&gt;-s value [ -s option is used to enable or disable hard disk]&lt;br /&gt;# &lt;span style="color: #990000;"&gt;smartctl &lt;b&gt;-s &lt;/b&gt;on -data &lt;b&gt;/dev/hdc&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;smartctl version 5.38 [i686-redhat-linux-gnu] Copyright (C) 2002-8 Bruce Allen&lt;br /&gt;Home page is http://smartmontools.sourceforge.net/&lt;br /&gt;=== START OF ENABLE/DISABLE COMMANDS SECTION ===&lt;br /&gt;&lt;b&gt;SMART Enabled.&lt;/b&gt;&lt;br /&gt;-d is used to specified the type.&lt;br /&gt;ata, scsi, marvell, sat, 3ware,&lt;span class="fullpost"&gt;&lt;br /&gt;# &lt;span style="color: #990000;"&gt;smartctl &lt;b&gt;-d&lt;/b&gt; ata -H &lt;b&gt;/dev/hdc&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;smartctl version 5.38 [i686-redhat-linux-gnu] Copyright (C) 2002-8 Bruce Allen&lt;br /&gt;Home page is http://smartmontools.sourceforge.net/&lt;br /&gt;=== START OF READ SMART DATA SECTION ===&lt;br /&gt;SMART overall-health self-assessment test result:&lt;b style="color: blue;"&gt; PASSED&lt;/b&gt;&lt;br /&gt;If the hard disk health is good condition then we will get result :PASSED.&lt;br /&gt;or we will get Failed&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-1617486623556972479?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/1617486623556972479/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/04/smatrcl-check-harddisk-drive-health.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/1617486623556972479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/1617486623556972479'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/04/smatrcl-check-harddisk-drive-health.html' title='Smatrcl Check Harddisk Drive Health  Condition'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-5669198621617315196</id><published>2011-04-07T00:15:00.000-07:00</published><updated>2011-04-07T00:19:44.916-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Trouble Shooting'/><title type='text'>Pbsnodes Error Message Cannot resolve default server host</title><content type='html'>After I installed torque whenever I tried pbsnodes I got the the following error message&lt;br /&gt;#pbsnodes&lt;br /&gt;&lt;div style="color: #990000;"&gt;Cannot resolve default server host 'master.rhel5.com' - check server_name file.&lt;/div&gt;&lt;div style="color: #990000;"&gt;pbsnodes: cannot connect to server master.rhel5.com, error=15008 (Access from host not allowed, or unknown host)&lt;/div&gt;(or)&lt;br /&gt;&lt;div style="color: #990000;"&gt;Cannot connect to default server host 'master.rhel5.com' - check pbs_server daemon.&lt;/div&gt;&lt;div style="color: #990000;"&gt;pbsnodes: cannot connect to server master.nice.com, error=111 (Connection refused)&lt;/div&gt;change the /etc/sysconfig/network change the hostname &lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;PROBLEM&lt;/b&gt;&lt;/div&gt;while Installed and configured pbs torque in the /var/spool/torque/server_name we will add there &lt;br /&gt;server name For here I entered the wrong server Host name.&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;b style="color: magenta;"&gt;SOLUTION&lt;/b&gt;&lt;br /&gt;we need to confirm whether Master Server Host name and /var/spool/torque/server_name both are same or not.It is not same then we need maintain the same host name for server and /var/spool/troque/server_name, then check it the problem has been resolved.&lt;br /&gt;NOTE: we need to maintain the same Host name in /var/spool/torque/server_name for node (client system) also. &lt;b&gt;Error Message &lt;/b&gt;:Cannot resolve default server host 'master.rhel5.com' - check server_name file.&lt;br /&gt;pbsnodes: cannot connect to server master.rhel5.com, error=15008 (Access from host not allowed, or unknown host)&lt;br /&gt;(or)&lt;br /&gt;Cannot connect to default server host 'master.rhel5.com' - check pbs_server daemon.&lt;br /&gt;pbsnodes: cannot connect to server master.nice.com, error=111 (Connection refused)&lt;br /&gt;change the /etc/sysconfig/network change the hostname &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-5669198621617315196?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/5669198621617315196/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/04/cannot-resolve-default-server-host-pbs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/5669198621617315196'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/5669198621617315196'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/04/cannot-resolve-default-server-host-pbs.html' title='Pbsnodes Error Message Cannot resolve default server host'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-515863299096226128</id><published>2011-04-06T04:30:00.000-07:00</published><updated>2011-04-06T04:32:40.368-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Trouble Shooting'/><title type='text'>Ganglia Error Message gmond dead but subsys locked</title><content type='html'>After I installed ganglia, I restart the gmond service.&lt;br /&gt;it is restart perfectly, But while I check the gmond status,&lt;br /&gt;I got the following error message.&lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;b&gt;PROBLEM&lt;/b&gt;&lt;/div&gt;[root@node6 ~]# /etc/init.d/gmond status&lt;br /&gt;&lt;span style="color: #cc0000;"&gt;gmond dead but subsys locked&lt;/span&gt;&lt;span class="fullpostr"&gt;&lt;br /&gt;&lt;b style="color: blue;"&gt;SOLUTION&lt;/b&gt;&lt;br /&gt;As per the Ganglia manual document, They suggest we need to add the route 239.2.11.71 for ethernet, try the following command then check it,&lt;br /&gt;#&lt;b&gt;route add -host 239.2.11.71 eth0&lt;/b&gt;&lt;br /&gt;To add permanently we need to add the line to the following file&lt;br /&gt;&lt;b&gt;/etc/sysconfig/network-scripts/ifup-route&lt;/b&gt; - restart system and service then check it,# /etc/init.d/gmond status&lt;br /&gt;gmond (pid 5243) is running... Error message :gmond dead but subsys locked&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-515863299096226128?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/515863299096226128/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/04/gmond-dead-but-subsys-locked-ganglia.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/515863299096226128'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/515863299096226128'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/04/gmond-dead-but-subsys-locked-ganglia.html' title='Ganglia Error Message gmond dead but subsys locked'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-4495642670275664050</id><published>2011-04-05T21:12:00.000-07:00</published><updated>2011-04-05T21:18:32.857-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Trouble Shooting'/><title type='text'>pbs_mom Is Not Running On The Node</title><content type='html'>After Install the torque. I try to restart the pbs service then I check the pbs status.&lt;br /&gt;[root@node2 ~]# /etc/init.d/pbs status&lt;br /&gt;pbs_mom is not running&lt;br /&gt;So Once again I try to restart the service While restarting I didn't get any error message.But it is not starting the pbs service properly.&lt;br /&gt;[root@node2 ~]# &lt;b&gt;/etc/init.d/pbs restart&lt;/b&gt;&lt;br /&gt;Restarting PBS&lt;br /&gt;Stopping PBS&lt;br /&gt;Starting PBS&lt;span class="fullpost"&gt;&lt;br /&gt;PBS mom&lt;br /&gt;&lt;div style="color: #cc0000;"&gt;&lt;b&gt;PROBLEM&lt;/b&gt;&lt;/div&gt;[root@node2 ~]# /etc/init.d/pbs status&lt;br /&gt;pbs_mom is not running&lt;br /&gt;&lt;div style="color: #cc0000;"&gt;&lt;b&gt;SOLUTION&lt;/b&gt;&lt;/div&gt;ADD the correct host name for /etc/sysconfig/network file&lt;br /&gt;HOSTNAME=compute.rhel5.com&lt;br /&gt;Restart the system then restart pbs service then check it the problem Has been resolved.Error: pbs_mom is not running at the node.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-4495642670275664050?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/4495642670275664050/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/04/pbsmom-is-not-running.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/4495642670275664050'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/4495642670275664050'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/04/pbsmom-is-not-running.html' title='pbs_mom Is Not Running On The Node'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-169311254393192093</id><published>2011-04-05T20:47:00.000-07:00</published><updated>2011-04-05T20:55:14.908-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Trouble Shooting'/><title type='text'>givm Xlib connection to refused by server Xlib No protocol spectified</title><content type='html'>while trying gvim command from the root user it will open that graphical with vim editor,But when we try non-root user I can't open the gvim editor.&lt;br /&gt;#gvim filename.txt&lt;br /&gt;&lt;div style="color: #cc0000;"&gt;Xlib: connection to ":0.0" refused by server&lt;/div&gt;&lt;div style="color: #cc0000;"&gt;Xlib: No protocol specified&lt;/div&gt;&lt;div style="color: #cc0000;"&gt;E233: cannot open displayXlib: connection to ":0.0" refused by server&lt;/div&gt;&lt;div style="color: #cc0000;"&gt;Xlib: No protocol specified&lt;/div&gt;&lt;b&gt;PROBLEM&lt;/b&gt;&lt;br /&gt;user try gvim command it will try to access X (Graphical) server.But That connection is refused by server&lt;br /&gt;&lt;b&gt;SOLUTION&lt;/b&gt;&lt;br /&gt;Add the standard user ( non root user) to the xhost server&lt;br /&gt;# xhost&lt;span class="fullpost"&gt;&lt;br /&gt;access control enabled, only authorized clients can connect&lt;br /&gt;SI:localuser:root&lt;br /&gt;Default the gvim editor is enable only for the root user. To enable the non root user.&lt;br /&gt;standard user. we have to run the following command.&lt;br /&gt;xhost +local:username&lt;br /&gt;#&lt;b style="color: magenta;"&gt;&lt;span style="color: blue;"&gt;xhost&lt;/span&gt; &lt;span style="color: lime;"&gt;+local&lt;/span&gt;:user2&lt;/b&gt;&lt;br /&gt;Then try it gvim graphical vim editor it will open for the standard user.&lt;br /&gt;Error:Xlib: connection to ":0.0" refused by server&lt;br /&gt;Xlib: No protocol specified&lt;br /&gt;E233: cannot open displayXlib: connection to ":0.0" refused by server&lt;br /&gt;Xlib: No protocol specified&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-169311254393192093?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/169311254393192093/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/04/givm-xlib-connection-to-refused-by.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/169311254393192093'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/169311254393192093'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/04/givm-xlib-connection-to-refused-by.html' title='givm Xlib connection to refused by server Xlib No protocol spectified'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-4298687483527838719</id><published>2011-03-31T00:39:00.001-07:00</published><updated>2011-03-31T00:49:20.351-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Trouble Shooting'/><title type='text'>PXE OS Error Message Is Not PXE Operating System</title><content type='html'>when I was creating the Pxeos I got the following error message.&lt;br /&gt;&lt;b&gt;Pxeos Error message&lt;/b&gt;&lt;br /&gt;While creating pxeos&lt;br /&gt;&lt;div style="color: #cc0000;"&gt;You must enter directory of the Operating System Software&lt;/div&gt;&lt;div style="color: #cc0000;"&gt;This directory must include the images/pxeboot directories&lt;/div&gt;&lt;div style="color: #cc0000;"&gt;Error Mounting: mount: no such partition found&lt;/div&gt;while pxeboot&lt;br /&gt;&lt;div style="color: #cc0000;"&gt;linux(imagename) is not PXE Operating System&lt;/div&gt;when we want to install the client Operating system from the server using kickstart method,we need to create the pxeboot, while creating it is not created perfeclty.I got the following error message.&lt;br /&gt;&lt;div style="color: #cc0000;"&gt;&lt;b&gt;ERROR MESSAGE&lt;/b&gt;&lt;/div&gt;pxeos -a -i "$OS_IDENTIFIER" -p NFS -D O-s $IPADDR -L /export/$IMAGE_NAME  $IMAGE_NAME&lt;br /&gt;You must enter directory of the Operating System Software&lt;br /&gt;This directory must include the images/pxeboot directories&lt;span class="fullpost"&gt;&lt;br /&gt;Error Mounting: mount: no such partition found&lt;br /&gt;pxeboot -a -O "$IMAGE_NAME" -K nfs:$IPADDR:/export/$IMAGE_NAME/kshclhpc2.cfg -r 10000 $PXE_NTWK &lt;br /&gt;linux is not PXE Operating System&lt;br /&gt;Check the NFS service whether It is booting perfeclty or not.&lt;br /&gt;&lt;div style="color: #cc0000;"&gt;&lt;b&gt;PROBLEM&lt;/b&gt;&lt;/div&gt;1)check the image contain the image/pxeboot directory with following 4 files&lt;br /&gt;&lt;span style="color: magenta;"&gt;a)initrd.img &lt;/span&gt; &lt;span style="color: #274e13;"&gt;b)READM&lt;/span&gt;E &lt;span style="color: #cc0000;"&gt; c)TRANS.TBL&lt;/span&gt;  d)vmlinuz&lt;br /&gt;2)Or check the NFS Service status&lt;br /&gt;&lt;div style="color: #cc0000;"&gt;&lt;b&gt;SOLUTION:&lt;/b&gt;&lt;/div&gt;1)if you face the first problem copy the DVD content files correctly&lt;br /&gt;2)For second one,&lt;br /&gt;try to restart the nfs service.&lt;br /&gt;a)try to Restart  NFS Service, if you face any problem in NFS Service&lt;br /&gt;try the following link &lt;a href="http://studentwebsite.blogspot.com/2011/01/mount-to-nfs-server-hostname-failedrpc.html" target="_blank"&gt;NFS ERROR MESSAGE&lt;/a&gt; (or) check the the server IP/subnetmask configuration.&lt;br /&gt;b)If NFS is restarted perfectly try the following command&lt;br /&gt;#exportfs -&amp;gt; it should show the mounted directory for pxeos Image.&lt;br /&gt;Then try it your problem will be solved.&lt;br /&gt;imagename is not PXE Operating System&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-4298687483527838719?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/4298687483527838719/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/03/is-not-pxe-operating-system-pxeboot.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/4298687483527838719'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/4298687483527838719'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/03/is-not-pxe-operating-system-pxeboot.html' title='PXE OS Error Message Is Not PXE Operating System'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-3714349914204665101</id><published>2011-03-31T00:19:00.000-07:00</published><updated>2011-03-31T00:27:15.707-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Trouble Shooting'/><title type='text'>Qsub Error Message Specified Queue | MSG=cannot locate queue</title><content type='html'>qsub: No default queue specified MSG=cannot locate queue&lt;br /&gt;While Installating torque we need to create the default queue&lt;br /&gt;using qmgr command- if we didn't create the default queue for torque Resource Manager then it will through Following error message.&lt;br /&gt;&lt;b&gt;Error Message&lt;/b&gt;&lt;br /&gt;qsub: No default queue specified MSG=cannot locate queue.&lt;br /&gt;&lt;div style="color: #cc0000;"&gt;&lt;b&gt;PROBLEM&lt;/b&gt;&lt;/div&gt;TORQUE Resource Management queue not specified.&lt;br /&gt;&lt;div style="color: #cc0000;"&gt;&lt;b&gt;SOLUTION&lt;/b&gt;&lt;/div&gt;we need to specified torque pbs queue using qmgr command.&lt;br /&gt;&lt;b&gt;How To Create The Qsub Queue&lt;/b&gt;&lt;br /&gt;qmgr it is bps management system.&lt;br /&gt;&lt;b style="color: magenta;"&gt;qmgr -c&lt;/b&gt; &lt;b&gt;it is used to execute the single command. &lt;/b&gt;&lt;br /&gt;So run the following command&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;qmgr -c "set server scheduling=true"&lt;br /&gt;qmgr -c "create queue batch queue_type=execution"&lt;br /&gt;qmgr -c "set queue batch started=true"&lt;br /&gt;qmgr -c "set queue batch enabled=true"&lt;span class="fullpost"&gt;&lt;br /&gt;qmgr -c "set queue batch resources_default.nodes=1"&lt;br /&gt;qmgr -c "set queue batch resources_default.walltime=3600"&lt;br /&gt;qmgr -c "set server default_queue=batch"&lt;br /&gt;qmgr -c "set server operators += TORQUEADMIN@SERVERNAME"&lt;br /&gt;qmgr -c "set server managers += TORQUEADMIN@SERVERNAM&lt;br /&gt;Once queue created successfully you need list out that object Using the following command.&lt;br /&gt;$&lt;b&gt;qmgr -c &lt;span style="color: magenta;"&gt;'p s'&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;create queue batch&lt;br /&gt;set queue batch queue_type = Execution&lt;br /&gt;set queue batch resources_default.nodes = 1&lt;br /&gt;set queue batch resources_default.walltime = 01:00:00&lt;br /&gt;set queue batch enabled = True&lt;br /&gt;set queue batch started = True&lt;br /&gt;# Set server attributes.&lt;br /&gt;set server scheduling = True&lt;br /&gt;set server acl_hosts = master.iitk.ac.in&lt;br /&gt;set server default_queue = batch&lt;br /&gt;set server log_events = 511&lt;br /&gt;set server mail_from = adm&lt;br /&gt;set server scheduler_iteration = 600&lt;br /&gt;set server node_check_rate = 150&lt;br /&gt;set server tcp_timeout = 6&lt;br /&gt;set server next_job_number = 64&lt;br /&gt;then you can submit the job&lt;br /&gt;$&lt;b&gt;qsub test.sh&lt;/b&gt;&lt;br /&gt;&lt;b&gt;To Check the job status - try the following command &lt;/b&gt;&lt;br /&gt;$&lt;span style="color: magenta;"&gt;qstat &lt;span style="color: #4c1130;"&gt;&amp;amp;&lt;/span&gt; $qstat -q&lt;/span&gt;&lt;br /&gt;qsub: Bad UID for job execution MSG=root user root not allowed- &lt;b&gt;login as user then try it&lt;/b&gt;,&lt;br /&gt;qsub: No default queue specified MSG=cannot locate queue. &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-3714349914204665101?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/3714349914204665101/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/03/qsub-no-default-queue-specified.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/3714349914204665101'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/3714349914204665101'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/03/qsub-no-default-queue-specified.html' title='Qsub Error Message Specified Queue | MSG=cannot locate queue'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-7617379987931355117</id><published>2011-03-28T23:18:00.000-07:00</published><updated>2011-03-28T23:32:46.880-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Configuration'/><title type='text'>Pxeos How To Create pxeos Operating System For Net boot</title><content type='html'>&lt;b&gt;pxeos&lt;/b&gt; - pxeboot configuration utility, When we try to install the Client Operating system through &lt;b&gt;nfs,http,ftp&lt;/b&gt;,before going to install we need to create the pxeos.&lt;br /&gt;&lt;b&gt;SAMPLE EXAMPLE&lt;/b&gt;&lt;br /&gt;#pxeos -a -i "&amp;lt;description&amp;gt;" -p &amp;lt;nfs|http|ftp&amp;gt; -D 0 -s client.example.com -L &amp;lt;net-location&amp;gt;&lt;br /&gt;-k &amp;lt;kernel&amp;gt;&amp;nbsp; -K &amp;lt;kickstart&amp;gt; &lt;br /&gt;# &lt;b&gt;pxeos -a &lt;span style="color: #cc0000;"&gt;-i rhel5.6&lt;/span&gt; &lt;span style="color: magenta;"&gt;-p NFS&lt;/span&gt; &lt;span style="color: #7f6000;"&gt;-D 0 &lt;/span&gt;&lt;span style="background-color: cyan; color: #20124d;"&gt;-s 10.1.1.1&lt;/span&gt; &lt;span style="color: #cc0000;"&gt;-L /export/rhel5.5/ rhel5.5&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Important Pxeos Option&lt;/b&gt;&lt;br /&gt;&lt;b&gt;-a&lt;/b&gt; — add OS to&amp;nbsp; PXE configuration.&lt;br /&gt;&lt;b&gt;-i &lt;/b&gt;" &amp;lt;description&amp;gt; " — Replace " &amp;lt;description&amp;gt; "description of OS Image.&lt;br /&gt;&lt;b&gt;-p&lt;/b&gt; &amp;lt;nfs|http|ftp&amp;gt; — mention the service NFS | HTTP | FTP which one is used for the installation.&lt;br /&gt;D &amp;lt;0|1&amp;gt; — Specify "0" refers to the&amp;nbsp; it is not a diskless configuration.&lt;br /&gt;&lt;b&gt;-s&lt;/b&gt; client.example.com (OR) -s 10.1.1.1 — Provide the name of the NFS, FTP, or HTTP server after the -s option.&lt;br /&gt;-L &amp;lt;net-location&amp;gt; — Indicate the Location of DVD Content Document,&lt;br /&gt;&lt;b&gt;-k&lt;/b&gt; &amp;lt;kernel&amp;gt; — Specify the kernel file&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;b&gt;-K&lt;/b&gt; &amp;lt;kickstart&amp;gt; — specify kickstart file.(kshclhpc2.cfg)&lt;br /&gt;&amp;lt;os-identifier&amp;gt; — Specify th&lt;br /&gt;Once Pxeos created To list out pxe os&lt;br /&gt;#&lt;b&gt;pxeos -l&lt;/b&gt;&lt;br /&gt;rhel5.7&lt;br /&gt;Description:&amp;nbsp;&amp;nbsp;&amp;nbsp; rhel5.6&lt;br /&gt;Protocol:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NFS&lt;br /&gt;isDiskless:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; False&lt;br /&gt;Server:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10.1.1.1&lt;br /&gt;Location:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /export/rhel5.5&lt;br /&gt;&lt;b&gt;pxeos configuration utility&lt;/b&gt;&lt;br /&gt;/usr/sbin/pxeos&lt;br /&gt;/tftpboot/linux-install/pxelinux.cfg/pxeos.xml&lt;br /&gt;/usr/share/system-config-netboot/&lt;br /&gt;system-config-netboot -&amp;lt; it will load network booting tool graphically.&lt;br /&gt;&lt;b&gt;Pxeos Error message&lt;/b&gt;&lt;br /&gt;pxeos -a -i "$OS_IDENTIFIER" -p NFS -D O-s $IPADDR -L /export/$IMAGE_NAME&amp;nbsp; $IMAGE_NAME&lt;br /&gt;You must enter directory of the Operating System Software&lt;br /&gt;This directory must include the images/pxeboot directories&lt;br /&gt;Error Mounting: mount: no such partition found&lt;br /&gt;pxeboot -a -O "$IMAGE_NAME" -K nfs:$IPADDR:/export/$IMAGE_NAME/kshclhpc2.cfg -r 10000 $PXE_NTWK &lt;br /&gt;linux is not PXE Operating System&lt;br /&gt;Check the NFS service whether It is start NFS service perfectly or not while booting.&amp;nbsp; &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-7617379987931355117?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/7617379987931355117/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/03/pxeos-how-to-create-pxeos-operating.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/7617379987931355117'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/7617379987931355117'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/03/pxeos-how-to-create-pxeos-operating.html' title='Pxeos How To Create pxeos Operating System For Net boot'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-363981379311426847</id><published>2011-03-22T02:18:00.000-07:00</published><updated>2011-03-24T22:53:49.364-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Linux Important File Type Extension .so .a .f .c .rpm .py .sh .o</title><content type='html'>&lt;b&gt;&amp;nbsp;.f&lt;/b&gt; file extensions&lt;br /&gt;[root@jkumar GotoBLAS2]# file ftest.f &lt;br /&gt;ftest.f: ASCII C program text&lt;br /&gt;&lt;b&gt;.h&lt;/b&gt; file extension&lt;br /&gt;# file common_linux.h  &amp;gt;&amp;gt; Header file&lt;br /&gt;&lt;b&gt;.so&lt;/b&gt; file extension&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;so&lt;/b&gt;&lt;/span&gt; Shared Object Files.&lt;br /&gt;.so - FORTRAN 90 shared object&lt;br /&gt;.so - Apache module file&lt;br /&gt;.so - Executable and linkable format file&lt;br /&gt;1)The Executable and Linking Format (ELF, formerly called Extensible Linking Format) it is standard file format for Object code,Shared Libraries, executable and core dumps.&lt;br /&gt;2)ELF it is flexible and extensible&lt;span class="fullpost"&gt;&lt;br /&gt;3)These is not any platform depented.&lt;br /&gt;4)it will adopt to any Operating system.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;.o&lt;/b&gt; for object files, &lt;br /&gt;&lt;b&gt;.a&lt;/b&gt; for shared object files&lt;br /&gt;&lt;b&gt;.py&lt;/b&gt; python shell script executable.&lt;br /&gt;&lt;b&gt;.sh&lt;/b&gt; Shell script&lt;b&gt;.&lt;/b&gt;&lt;br /&gt;&lt;b&gt;.rpm&lt;/b&gt; red hat Package Manager&lt;br /&gt;&lt;b&gt;.conf &lt;/b&gt;configuration file&lt;br /&gt;&lt;br /&gt;ls -l Command De pants upon the First character Output  we can find out the file type.&lt;br /&gt;&lt;b&gt;l &lt;/b&gt;-symbolic link&lt;br /&gt;&lt;b&gt;d&lt;/b&gt; -directory&lt;br /&gt;&lt;b&gt;b &lt;/b&gt;- block-type special file&lt;br /&gt;&lt;b&gt;S&lt;/b&gt; - socket&lt;br /&gt;&lt;b&gt;c -&lt;/b&gt; character-type special file&lt;br /&gt;&lt;b&gt;p&lt;/b&gt; - named pipe&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/3417169946022348274-363981379311426847?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/363981379311426847/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/03/linux-important-file-type-extension-so.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/363981379311426847'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/363981379311426847'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/03/linux-important-file-type-extension-so.html' title='Linux Important File Type Extension .so .a .f .c .rpm .py .sh .o'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-3446851864426697923</id><published>2011-03-21T02:00:00.000-07:00</published><updated>2011-03-21T02:02:49.057-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Trouble Shooting'/><title type='text'>Ssh Login Error  Connect To Host IP port 22: Connection Refused</title><content type='html'>While I try to connect the 10.0.0.1 using ssh I got the following error message&lt;br /&gt;1)ssh &lt;b&gt;10.0.0.1&lt;/b&gt;&lt;br /&gt;&lt;div style="color: #cc0000;"&gt;ssh: connect to host 10.0.1 port 22: Connection refused&lt;/div&gt;But it is ping to that ip with out any issue. But &lt;br /&gt;while I try to connect i can't login with ssh it through error message.&lt;br /&gt;because 10.0.0.1 /etc/init.d/sshd stop&lt;br /&gt;so I try to restart&lt;br /&gt;&lt;b&gt;&lt;/b&gt;&lt;b&gt;2)&lt;/b&gt;[root@localhost ~]# &lt;b&gt;/etc/init.d/sshd restart&lt;/b&gt;&lt;br /&gt;Stopping sshd:                                             [FAILED]&lt;br /&gt;Starting sshd: /var/empty/sshd must be owned by root and not group or&lt;br /&gt;world-writable.[FAILED]&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;3)&lt;/b&gt;[root@localhost ~]# ll /var/empty/sshd&lt;br /&gt;total 8&lt;br /&gt;drwxr-xr-x 2&lt;b&gt; rhel5 rhel5&lt;/b&gt; 4096 Feb  4 08:40 &lt;b style="color: #cc0000;"&gt;etc&lt;/b&gt;&lt;br /&gt;/var/empty/sshd it should be owned by root &lt;br /&gt;problem /var/empty/sshd not owner of the root user&lt;br /&gt;&lt;b&gt;4)&lt;/b&gt;[root@localhost ~]# &lt;b&gt;chown root:root /var/empty/sshd&lt;/b&gt;&lt;br /&gt;So change the ownership permission to the root- &lt;br /&gt;Then I try it,It is resolved, I can connect from the master.&lt;br /&gt;[root@localhost ~]# /etc/init.d/sshd restart&lt;br /&gt;Stopping sshd:                                             [FAILED]&lt;br /&gt;Starting sshd:                                             [  OK  ]&lt;/span&gt;ssh: connect to host 10.0.1 port 22: Connection refused&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-3446851864426697923?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/3446851864426697923/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/03/ssh-login-error-connect-to-host-ip-port.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/3446851864426697923'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/3446851864426697923'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/03/ssh-login-error-connect-to-host-ip-port.html' title='Ssh Login Error  Connect To Host IP port 22: Connection Refused'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-2389125171202524829</id><published>2011-03-10T21:45:00.000-08:00</published><updated>2011-03-12T00:50:35.520-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Trouble Shooting'/><title type='text'>How To Install Java In Linux Redhat Firefox Plugin Addon</title><content type='html'>To Install Firefox in Linux system Close Firefox and open terminal&lt;br /&gt;1)[root@browser plugins]# &lt;b&gt;locate libnpjp2.so&lt;/b&gt;&lt;br /&gt;/usr/java/jre1.6.0_24/lib/i386/libnpjp2.so&lt;br /&gt;if these library package is not available go to the following link&lt;br /&gt;&lt;a href="http://www.java.com/en/download/linux_manual.jsp" target="_blank"&gt;http://www.java.com/en/download/linux_manual.jsp&lt;/a&gt;&lt;br /&gt;Download and install the package.&lt;br /&gt;then you will get that library package.&lt;br /&gt;Create the Soft link from the java library package to  Firefox plugin,&lt;br /&gt;2)ln -s /&lt;b&gt;usr/java/jre1.6.0_24/lib/i386/libnpjp2.so&lt;/b&gt;&lt;span style="color: magenta;"&gt; &lt;/span&gt;&lt;b style="color: #cc0000;"&gt;/usr/lib/mozilla/plugins/&lt;/b&gt;&lt;br /&gt;&lt;div style="color: #cc0000;"&gt;&lt;b&gt;3)file libnpjp2.so &lt;/b&gt;&lt;/div&gt;libnpjp2.so: symbolic link to `/usr/java/jre1.6.0_24/lib/i386/libnpjp2.so&lt;span class="fullpost"&gt;&lt;br /&gt;4)Go to the following link For  To Verify Java Installed or not.&lt;br /&gt;&lt;a href="http://www.java.com/en/download/installed.jsp" target="_blank"&gt;http://www.java.com/en/download/installed.jsp&lt;/a&gt;&lt;br /&gt;5)it will verify whether current browser has been installed java or not if install mean &lt;br /&gt;you will get message like, "Congratulations!&lt;br /&gt;You have the recommended Java installed (Version 6 Update 24)." or it will still loading that rotating icon.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-2389125171202524829?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/2389125171202524829/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/03/install-java-firefox-addon-how-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/2389125171202524829'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/2389125171202524829'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/03/install-java-firefox-addon-how-to.html' title='How To Install Java In Linux Redhat Firefox Plugin Addon'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-5614804355084792383</id><published>2011-03-02T23:54:00.000-08:00</published><updated>2011-03-02T23:57:17.123-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>How To set alias Command Permanently /etc/bashrc</title><content type='html'>To work in the Linux user friendly or simplify work.&lt;br /&gt;1)we can use Linux Shortcut.&lt;br /&gt;2)create alias setting&lt;br /&gt;3)write basic Shell scripting&lt;br /&gt;4)set Environmental Variable.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Create Alias  Command bashrc &lt;/b&gt;&lt;br /&gt;If we are using any frequent command we can use use these option.&lt;br /&gt;1)For example Frequently I go the Download Directory.&lt;span calss="fullpost"&gt;&lt;br /&gt;cd /tmp/Download. So I create the Alias setting for these&lt;br /&gt;2)&lt;b&gt;alias dwd="cd /tmp/Download"&lt;/b&gt; under &amp;gt;&amp;gt; &lt;b&gt;&lt;span style="color: magenta;"&gt;/etc/bashrc&lt;/span&gt;&lt;/b&gt; &lt;br /&gt;if we add these line to /etc/bashrc any user can use these setting&lt;br /&gt;if it is &lt;b style="color: magenta;"&gt;~/bashrc &lt;/b&gt;only the specified user only can only use that alias.&lt;br /&gt;3)after add that line we need to restart the system to update bash.&lt;br /&gt;But it will take the time. To save these time in there terminal type the command&lt;br /&gt;#bash&lt;br /&gt;4)Then open the terminal and try it.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-5614804355084792383?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/5614804355084792383/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/03/how-to-set-alias-command-permanently.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/5614804355084792383'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/5614804355084792383'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/03/how-to-set-alias-command-permanently.html' title='How To set alias Command Permanently /etc/bashrc'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-5573493170030143056</id><published>2011-03-02T23:46:00.000-08:00</published><updated>2011-03-04T22:22:53.862-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Trouble Shooting'/><title type='text'>Monitor Screen Resolution Problem Attention Out of range Screen Resolution Error message</title><content type='html'>In Linux Operating System. I change Desktop Screen Resolution.&lt;br /&gt;#system-config-display or System&amp;gt;Administor&amp;gt;Display.&lt;br /&gt;Here I change the Screen Resolution Display From 800*600 To 640 * 480.&lt;br /&gt;While I fire the Ok Button I got the message box with&lt;br /&gt;"&lt;b&gt;Display settings changed&lt;/b&gt;&lt;br /&gt;&lt;div style="color: #660000;"&gt;You need to log out and restart the X server for the changes to take effect.&lt;/div&gt;&lt;span style="color: magenta;"&gt;Configuration was written to /etc/X11/&lt;b&gt;xorg.conf&lt;/b&gt;, original configuration saved as /etc/X11/&lt;b&gt;xorg.conf.backup&lt;/b&gt;&lt;/span&gt;&lt;span style="color: #660000;"&gt;.&lt;/span&gt;"&lt;br /&gt;PROBLEM:&lt;br /&gt;After I restart the System while starting the Graphical window I got the following error message.&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;b style="color: #660000;"&gt;Attention &lt;/b&gt;&lt;br style="color: #660000;" /&gt;&lt;b style="color: #660000;"&gt;Out of range&lt;br /&gt;H:106.1KHz V:84.9Hz&lt;/b&gt;&lt;br /&gt;&lt;b&gt;SOLUTION:&lt;/b&gt;&lt;br /&gt;1)After I restart the system the modified screen resolution 640*480 it does not support monitor.So that I got the error message "&lt;b&gt;Attention Out of range&lt;/b&gt;".&lt;br /&gt;2)Then I go the directory&lt;span style="color: magenta;"&gt; /etc/X11&lt;/span&gt;.&lt;br /&gt;3)Here System main take the backup copy of the old screen resolution configuration file form /etc/X11/xorg.conf to /etc/X11/xorg.conf.bakp&lt;br /&gt;4)I rename backup file #mv /etc/X11/&lt;b&gt;xorg.conf.backup&lt;/b&gt; /etc/X11/&lt;b&gt;xorg.conf&lt;/b&gt;&lt;br /&gt;5)Restart the system Then try it The problem will be resolve. If you still face the problem&amp;nbsp; go to the #system-config-display or System&amp;gt;Administor&amp;gt;Display. and change to the old setting.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-5573493170030143056?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/5573493170030143056/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/03/attention-out-of-range-screen.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/5573493170030143056'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/5573493170030143056'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/03/attention-out-of-range-screen.html' title='Monitor Screen Resolution Problem Attention Out of range Screen Resolution Error message'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-6230087193610589001</id><published>2011-03-02T01:45:00.000-08:00</published><updated>2011-03-02T01:53:35.287-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Hot To Set Environmental Variable In Different Bash C Shell</title><content type='html'>Environmental Variable Seting it will differ depends upon the Bash,&lt;br /&gt;How to find the Current Shell &lt;br /&gt;#cat /etc/passwd | grep accelrys&lt;br /&gt;accelrys:x:504:504:Accelrys Inc:/home/accelrys:&lt;b&gt;/bin/csh&lt;/b&gt;&lt;br /&gt;Shell is Command Line Interpreter.&lt;br /&gt;Most of Linux/Unix Shell Have Bourne Shell and C Shell. &lt;br /&gt;[root@master home]# &lt;b&gt;cat /etc/passwd | grep root&lt;/b&gt;&lt;br /&gt;root:x:0:0:root:/root:&lt;b&gt;/bin/bash&amp;nbsp;&amp;nbsp; or&lt;/b&gt;&lt;br /&gt;[root@master home]# echo $SHELL&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;/bin/bash&lt;/b&gt;&lt;/div&gt;[accelrys@master ~]$ echo $SHELL&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;/bin/csh &lt;/b&gt;&lt;/div&gt;&lt;b&gt;Set Environment Variable&lt;/b&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;b style="color: magenta;"&gt;export&lt;/b&gt;&lt;span style="color: magenta;"&gt; &lt;/span&gt;VARIABLE=value  # for Bourne, bash, and related shells&lt;br /&gt;&lt;b&gt;&lt;span style="color: magenta;"&gt;setenv&lt;/span&gt; &lt;/b&gt;VARIABLE value  # for csh and related shells&lt;br /&gt;set VARIABLE=value //DOS on Windows&lt;br /&gt;C:\&amp;gt; set p&lt;br /&gt;Path=c:\.. ..&lt;br /&gt;&lt;b&gt;PATHEXT=.COM;.EXE;.BAT;&lt;/b&gt;&lt;br /&gt;c:\&amp;gt;echo %VARIABLE%&lt;br /&gt;&lt;br /&gt;In the all the LInux system PATH it has already variable, Now I will add some other append variable.&lt;br /&gt;#export PATH=$PATH:/home/rhel5/&lt;br /&gt;[root@jkumar ~]#&lt;b&gt; &lt;span style="color: magenta;"&gt;echo $PATH&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin:/home/rhel5&lt;br /&gt;we can also add through &lt;b style="color: magenta;"&gt;bash_profile&lt;/b&gt;&lt;span style="color: magenta;"&gt;.&lt;/span&gt;&lt;br /&gt;export dwd=/home/username/download/ add these line to &lt;b style="color: magenta;"&gt;$HOME/.bash_profil&lt;/b&gt;&lt;span style="color: magenta;"&gt;e&lt;/span&gt;&lt;br /&gt;Save and exit&lt;br /&gt;Set Environmental Variable In Different Shell&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-6230087193610589001?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/6230087193610589001/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/03/set-environmental-variable-in-different.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/6230087193610589001'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/6230087193610589001'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/03/set-environmental-variable-in-different.html' title='Hot To Set Environmental Variable In Different Bash C Shell'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-8092091040830899445</id><published>2011-03-02T00:44:00.000-08:00</published><updated>2011-03-02T00:55:18.152-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Trouble Shooting'/><title type='text'>Http Server Error Message Exception KeyError Unable To Change Directory</title><content type='html'>After I configure http service.While I restart the service.&lt;br /&gt;I got the following error message.&lt;br /&gt;[root@rhel6 ~]# /etc/init.d/httpd start&lt;br /&gt;Starting httpd: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;b&gt;                                           [FAILED]&lt;/b&gt;&lt;br /&gt;1)read the log file&lt;br /&gt;2)#&lt;b&gt;cat /var/log/httpd/error_log | grep error&lt;/b&gt;&lt;br /&gt;) in &lt;module from="" lib64="" python2.6="" threading.pyc="" threading="" usr=""&gt; ignored&lt;br /&gt;[Thu Feb 24 12:20:19 2011] &lt;b&gt;[error]&lt;/b&gt; &lt;b style="color: #660000;"&gt;Exception KeyError: KeyError(140472509999072,) in &lt;/b&gt;&lt;module from="" lib64="" python2.6="" threading.pyc="" threading="" usr=""&gt;&lt;b style="color: #660000;"&gt; ignored&lt;/b&gt;&lt;br /&gt;[Thu Feb 24 12:20:19 2011] [error] Exception KeyError: KeyError(140472509999072,) in &lt;module from="" lib64="" python2.6="" threading.pyc="" threading="" usr=""&gt; ignored&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;b&gt;PROBLEM&lt;/b&gt;&lt;br /&gt;Unable to find the python script&lt;br /&gt;&lt;b&gt;SOLUTION&lt;/b&gt;&lt;br /&gt;1)create the Soft link for the python script&lt;br /&gt;#ln -s /usr/local/lib/libpython2.6.so.1.0 /usr/lib64/libpython2.6.so.1.0&lt;br /&gt;#ln -s /usr/local/bin/python2.6 /usr/bin/python2.6&lt;br /&gt;Then try it, if you still face the error message.&lt;br /&gt;Read the log message&lt;/module&gt;&lt;/module&gt;&lt;/module&gt;&lt;br /&gt;&lt;module from="" lib64="" python2.6="" threading.pyc="" threading="" usr=""&gt;&lt;module from="" lib64="" python2.6="" threading.pyc="" threading="" usr=""&gt;&lt;module from="" lib64="" python2.6="" threading.pyc="" threading="" usr=""&gt;&lt;br /&gt;2)#&lt;b&gt;cat /var/log/httpd/error_log | grep error&lt;/b&gt;&lt;br /&gt;ERROR MESSAGE&lt;br /&gt;[Thu Feb 24 12:20:20 2011] [error] Unable &lt;b&gt;to change directory to /root&lt;/b&gt;&lt;br /&gt;&lt;b&gt;SOLUTION&lt;/b&gt;&lt;br /&gt;In these case /root is Present Working Directory PWD.&lt;br /&gt;change the present working directory then try it.&lt;br /&gt;Depend upon the log message we need to clear the problem&lt;/span&gt;.&lt;/module&gt;&lt;/module&gt;&lt;/module&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-8092091040830899445?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/8092091040830899445/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/03/exception-keyerror-unable-to-change.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/8092091040830899445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/8092091040830899445'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/03/exception-keyerror-unable-to-change.html' title='Http Server Error Message Exception KeyError Unable To Change Directory'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-1392269926720174479</id><published>2011-02-24T21:51:00.000-08:00</published><updated>2011-11-12T07:34:52.756-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Basic command'/><title type='text'>Install Package With Configure Make  Make Install .tgz Command</title><content type='html'>Most of Linux Open Source Software Package come with .tgz tarball format.&lt;br /&gt;These Packages install with three command&lt;br /&gt;1)./configure&lt;br /&gt;2)make&lt;br /&gt;3)make install&lt;br /&gt;&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;./configure&lt;/b&gt;&lt;/div&gt;a)configure it is just shell script&lt;br /&gt;b)configure it check  lot of dependency on the current system.&lt;br /&gt;c)output it has short question with [YES/NO] answer.&lt;br /&gt;d)if any of the major requirement is missing then it will not continue.&lt;br /&gt;e)if it is fulfill there requirement,Then&lt;br /&gt;it will build new Make file. &lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;SAMPLE CONFIGURE OUTPUT&lt;/b&gt;&lt;/div&gt;checking for memory.h... &lt;b&gt;yes&lt;/b&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;checking whether struct hostent contains h_addr_list... &lt;b&gt;yes&lt;/b&gt;&lt;br /&gt;checking that we can build MPI programs with Fortran 77..&lt;b&gt;. no&lt;/b&gt;&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;MAKE&lt;/b&gt;&lt;/div&gt;while we run the make command  first it is look for makefile then it will build there program as per makefile instruction,&lt;br /&gt;if the make run successfully, then it is almost finish.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;MAKE INSTALL&lt;/b&gt;&lt;/div&gt;it will find the Install in the makefile.&lt;br /&gt;when run make command without any parameter makefile begin from the start.&lt;br /&gt;But when we run make with &lt;b&gt;Install&lt;/b&gt; Parameter then make it will search the label install in the file and run only that section. In these process it will copy some of the binary file to the /usr/local/bin so that all the user can run that command.&lt;br /&gt;&lt;b&gt;&lt;br /&gt;Configure With Different Option&lt;/b&gt;&lt;br /&gt;./configure &lt;span style="color: magenta;"&gt;--with-fc=0&lt;/span&gt;&lt;br /&gt;If we want to disable some Feature like fortran compiler&lt;/span&gt;&lt;br /&gt;./configure --with-fc=0 &lt;span class="fullpost"&gt;&amp;nbsp; &amp;nbsp; Disable the Fortran complier&lt;br /&gt;./configure --with-mpi=0 &amp;nbsp;Disable MPI&lt;br /&gt;./configure --help&lt;br /&gt;./configure --&lt;span style="color: magenta;"&gt;prefix&lt;/span&gt;=Installation Directory Path&lt;br /&gt;./configure &lt;span style="color: magenta;"&gt;CC&lt;/span&gt;=gcc Setting the Environment Variable&lt;br /&gt;./configure &lt;span style="color: magenta;"&gt;--enable-application&lt;/span&gt;= we can enable the application - browser,mail,calendar,mail,&lt;br /&gt;./configure&lt;span style="color: magenta;"&gt; --includedir&lt;/span&gt;=DIR [ Include the C Header Files ]&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/3417169946022348274-1392269926720174479?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/1392269926720174479/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/02/configure-make-make-install-tgz-command.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/1392269926720174479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/1392269926720174479'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/02/configure-make-make-install-tgz-command.html' title='Install Package With Configure Make  Make Install .tgz Command'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-1963032818879102216</id><published>2011-02-23T01:22:00.000-08:00</published><updated>2011-02-23T01:31:10.535-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Basic command'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>How To Check Whether Tar backup Differ From the Original Source File Or Not</title><content type='html'>Using tar -df option we can find out the difference between tar backup and the original Source files. And we can check whether tar it take Backup complete or not.&lt;br /&gt;it will check &lt;b&gt;size,time,file present or not&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Sample Output&lt;/b&gt;&lt;br /&gt;&lt;div style="color: #783f04;"&gt;&lt;b&gt;size is differ&lt;/b&gt;&lt;/div&gt;&lt;div style="color: #660000;"&gt;&lt;b&gt;Mod time differs&lt;/b&gt;&lt;/div&gt;&lt;b style="color: #0c343d;"&gt;Not found in archive&lt;/b&gt; &amp;gt;&amp;gt; backup.tar doesn't contain the file&lt;br /&gt;&lt;b style="color: magenta;"&gt;No such file or directory &lt;/b&gt;&amp;gt;&amp;gt; backup.tar file it has file but not persent in source file&lt;br /&gt;&lt;b&gt;Syntax&lt;/b&gt;&lt;br /&gt;#tar -dvf &lt;b style="color: magenta;"&gt;Backup.tar&lt;/b&gt; &lt;b&gt;&lt;span style="color: #660000;"&gt;sourceDirectory&lt;/span&gt;*&lt;/b&gt;&lt;br /&gt;#tar -dvf rhel5.tar rhel5/*&lt;br /&gt;&lt;b&gt;-d&lt;/b&gt; Difference&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;b&gt;-v&lt;/b&gt; verbose&lt;br /&gt;&lt;b&gt;-f &lt;/b&gt;user Archive.&lt;br /&gt;1)Our present working directory it should be current directory of source file&lt;br /&gt;Example&lt;br /&gt;#tar -dvf home.tar home/* &lt;br /&gt;#tar -dvf /root/home.tar home/*&amp;gt;&amp;gt; These are Correct&lt;br /&gt;&lt;br /&gt;2)&lt;b&gt;Here we Don't Give Like That | Wrong Syntax&lt;/b&gt;&lt;br /&gt;#tar -dvf /root/home.tar /home/* &lt;br /&gt;Original Source Document it does not come with '&lt;span style="font-size: large;"&gt;&lt;b&gt;/&lt;/b&gt;&lt;/span&gt;' like /root/home* (or) /home*&lt;br /&gt;Example if the original source file is /root/rhel5 mean &lt;br /&gt;our pwd should be /root/ &lt;br /&gt;Because while compress file it compress like&lt;br /&gt;[root@master /]# tar -df home1.tar &lt;br /&gt;home/&lt;br /&gt;home/indraveer/&lt;br /&gt;home/indraveer/.login.old&lt;br /&gt;home/indraveer/.profile.old&lt;br /&gt;it compress like.&lt;br /&gt;&lt;br /&gt;3)#tar -tf backup.tar &amp;gt;&amp;gt; list the achieve files&lt;br /&gt;4) How to exract the tar file to the particular Location&lt;br /&gt;#tar -xvf scartch.bak &lt;b&gt;-C&lt;/b&gt; /&lt;br /&gt;#tar -xvf Sourcefile.tar &lt;b&gt;-C&lt;/b&gt; DestinationDirectory&lt;br /&gt;-C change Destination Directory&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-1963032818879102216?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/1963032818879102216/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/02/differece-between-orginal-source-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/1963032818879102216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/1963032818879102216'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/02/differece-between-orginal-source-file.html' title='How To Check Whether Tar backup Differ From the Original Source File Or Not'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-8939994436914180934</id><published>2011-02-22T20:43:00.000-08:00</published><updated>2011-02-22T20:48:04.552-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Linux Folder Chkconfig Add Service Ubuntu Change Root Password Tee command</title><content type='html'>Linux How to Open the folder IN the Same Window&lt;br /&gt;Default Linux setting whenever we open the Folder it will open the New Folder.So it will increase the no of windows in the Desktop.it will create the Lot of complex to work.&lt;br /&gt;To Make it user friendly.&lt;br /&gt;&lt;br /&gt;1)Open the folder&amp;gt;&lt;br /&gt;&lt;b&gt;Edit&amp;gt;preference&amp;gt;Behavior&amp;gt;Always &lt;/b&gt;Open in Browser Windows.&lt;br /&gt;&lt;br /&gt;2) How to add New service to chkconfig&lt;br /&gt;#&lt;b&gt;chkconfig --add ServiceName&lt;/b&gt;&lt;br /&gt;Example&lt;br /&gt;#chkconfig --add pbs&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;br /&gt;3) For Ubuntu version How to login to to the root&lt;br /&gt;Actually All the Ubuntu version root is not enable using sudo command we can do the all the root Super User privilege.&lt;br /&gt;#sudo command &lt;br /&gt;#&lt;b&gt;sudo passwd root&lt;/b&gt;&lt;br /&gt;Using the above command we can update the ubuntu root password.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4)&lt;b&gt;ls | tee ls.log&lt;/b&gt;&lt;br /&gt;It will list out files and directory at the same time it will write to the output to the&lt;br /&gt;ls.log file.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-8939994436914180934?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/8939994436914180934/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/02/chkconfig-add-service-ubuntu-change.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/8939994436914180934'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/8939994436914180934'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/02/chkconfig-add-service-ubuntu-change.html' title='Linux Folder Chkconfig Add Service Ubuntu Change Root Password Tee command'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-3172100068811459439</id><published>2011-02-17T04:35:00.000-08:00</published><updated>2011-02-17T04:41:05.937-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux support'/><title type='text'>Login Remote System ssh Without Password | Linux Redhat Rhel5</title><content type='html'>First we need to create rsa Key&lt;br /&gt;1)#&lt;b&gt;ssh-keygen -t rsa&lt;/b&gt;&lt;br /&gt;-t rsa it will create the RSA(Rivest, Shamir and Adleman) Key&lt;br /&gt;it will creat the key with file name "id_rsa.pub" under the current user Home Directory.&lt;br /&gt;If it is root mean&lt;b&gt; &lt;span style="color: magenta;"&gt;/root/.ssh/id_rsa.pub&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;if it is redhat mean &lt;b style="color: magenta;"&gt;/home/redhat/.ssh/id_rsa.pub&lt;/b&gt;&lt;br /&gt;ssh-copy-id it will install public key to the remote machine&lt;br /&gt;then copy the id to the remote system, For first time it will ask the password.&lt;span class="fullpost"&gt;&lt;br /&gt;Next it will not ask the password.&lt;br /&gt;#ssy-copy-id -i /root/.ssh/id_rsa.pub remoteuser@remoteip&lt;br /&gt;2)#&lt;b&gt;ssh-copy-id -i &lt;span style="color: magenta;"&gt;/root/.ssh/id_rsa.pub&lt;/span&gt; &lt;span style="color: #660000;"&gt;hpc@151.8.27.214&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;While Copy the key it will ask the Password For enter the Login credentials.&lt;br /&gt;AFter copy completed.&lt;br /&gt;3)then try to login from the remote sytem. It doesn't ask any of the password.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-3172100068811459439?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/3172100068811459439/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/02/login-remote-system-ssh-witout-password.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/3172100068811459439'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/3172100068811459439'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/02/login-remote-system-ssh-witout-password.html' title='Login Remote System ssh Without Password | Linux Redhat Rhel5'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-7394711457225908276</id><published>2011-01-31T21:24:00.000-08:00</published><updated>2011-06-02T21:27:15.910-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vncviewer'/><title type='text'>VNCVIEWER Error Message: vncviewer unable to open display</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;I try to connect Remote system(GUI- Remote Desktop) through ssh for that Purpose I used VNC.&lt;br /&gt;VNC - Virtual Network Computing,Remotely control another Computer Like Remote Desktop.&lt;br /&gt;It is used to Trouble shooting the problem.While I try&lt;br /&gt;[root@remote ~]# &lt;b&gt;ssh 151.8.19.140&lt;/b&gt;&lt;br /&gt;Last login: Tue Feb  1 15:47:03 2011 from 151.8.19.145&lt;br /&gt;[root@ha2 ~]# &lt;b&gt;vncserver&lt;/b&gt;&lt;br /&gt;New 'ha2.hcl.in:5 (root)' desktop is ha2.hcl.in:5&lt;br /&gt;Starting applications specified in /root/.vnc/xstartup&lt;br /&gt;Log file is /root/.vnc/ha2.hcl.in:5.log&lt;br /&gt;[root@ha2 ~]# &lt;b&gt;vncviewer :5&lt;/b&gt;&lt;br /&gt;VNC Viewer Free Edition 4.1.2 for X - built Jan 26 2009 11:52:08&lt;br /&gt;Copyright (C) 2002-2005 RealVNC Ltd.&lt;br /&gt;See http://www.realvnc.com for information on VNC.&lt;br /&gt;vncviewer: unable to open display "&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;ERROR MESSAGE&lt;/b&gt;&lt;/div&gt;vncviewer: unable to open display &lt;span class="fullpost"&gt;&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;PROBLEM&lt;/b&gt;&lt;/div&gt;while Login through ssh we Didn't  enable the X11.&lt;br /&gt;X11 refers to the GUI - Graphical User Interface&lt;br /&gt;&lt;b style="color: magenta;"&gt;SOLUTION&lt;/b&gt;&lt;br /&gt;while login though ssh use the option '-X' To enable X11.&lt;br /&gt;-X enable X11&lt;br /&gt;-x Disable X11.&lt;br /&gt;Then it will work&lt;br /&gt;[root@remote ~]# ssh &lt;b&gt;-X&lt;/b&gt; 151.8.19.141&lt;br /&gt;Last login: Tue Feb  1 10:18:55 2011 from 151.8.18.160&lt;br /&gt;[root@ha1 ~]# &lt;b&gt;vncserver&lt;/b&gt;&lt;br /&gt;New 'ha1.hcl.in:4 (root)' desktop is ha1.hcl.in:4&lt;br /&gt;Starting applications specified in /root/.vnc/xstartup&lt;br /&gt;Log file is /root/.vnc/ha1.hcl.in:4.log&lt;br /&gt;[root@ha1 ~]# &lt;b&gt;vncviewer :4&lt;/b&gt;&lt;br /&gt;VNC Viewer Free Edition 4.1.2 for X - built Jan 26 2009 11:52:08&lt;br /&gt;Copyright (C) 2002-2005 RealVNC Ltd.&lt;br /&gt;See http://www.realvnc.com for information on VNC.&lt;br /&gt;Tue Feb  1 10:19:26 2011&lt;br /&gt;CConn:       connected to host localhost port 5904&lt;br /&gt;CConnection: Server supports RFB protocol version 3.8&lt;br /&gt;CConnection: Using RFB protocol version 3.8&lt;br /&gt;Then I got the Graphical Window For the Remote System.&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/3417169946022348274-7394711457225908276?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/7394711457225908276/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/01/vncviewer-unable-to-open-display.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/7394711457225908276'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/7394711457225908276'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/01/vncviewer-unable-to-open-display.html' title='VNCVIEWER Error Message: vncviewer unable to open display'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-2313587907048482103</id><published>2011-01-31T20:13:00.000-08:00</published><updated>2011-01-31T20:16:46.686-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux support'/><category scheme='http://www.blogger.com/atom/ns#' term='Trouble Shooting'/><title type='text'>Create New File System To New Partition No such file or directory</title><content type='html'>I create the New Partition under /dev/sda sata Hard disk(dev/sda3). After create the the partition using fdisk then while I create the file system using mkfs.ext3 command I got the following error message.&lt;br /&gt;[root@node2 ~]# &lt;b&gt;mkfs.ext3 /dev/sda3&lt;/b&gt;&lt;br /&gt;mke2fs 1.39 (29-May-2006)&lt;br /&gt;Could not stat /dev/sda3 --- No such file or directory&lt;br /&gt;The device apparently does not exist; did you specify it correctly?&lt;br /&gt;I try to mount with the following command&lt;br /&gt;[root@node1 ~]# &lt;b style="color: #990000;"&gt;mount -t ext3 /dev/sda3 /mnt&lt;/b&gt;&lt;br /&gt;mount: wrong fs type, bad option, bad superblock on /dev/sda3,&lt;br /&gt;missing codepage or other error&lt;span class="fullpost"&gt;&lt;br /&gt;(aren't you trying to mount an extended partition,&lt;br /&gt;instead of some logical partition inside?)&lt;br /&gt;In some cases useful info is found in syslog - try&lt;br /&gt;dmesg | tail  or so&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;PROBLEM&lt;/b&gt;&lt;/div&gt;Linux Operating System It does not find the New Partition from the Hard Disk.&lt;br /&gt;&lt;b style="color: magenta;"&gt;SOLUTION&lt;/b&gt;Actually From the resource they suggest me to restart the Operating System But, It will take time,&lt;br /&gt;We can Avoid To restart the Server using &lt;br /&gt;#partprobe using these command we can  Update the partition Table.&lt;br /&gt;So Linux Kernel it can find the New Partition.&lt;br /&gt;Then we can create the file system with out reboot the system.&lt;br /&gt;HereAfter Using mkfs command we can create the file system.&lt;br /&gt;[root@node1 /]# &lt;b&gt;partprobe&lt;/b&gt;&lt;br /&gt;[root@node1 /]# &lt;b&gt;mkfs.ext3 /dev/sdb2&lt;/b&gt;&lt;br /&gt;mke2fs 1.39 (29-May-2006)&lt;br /&gt;Filesystem label=&lt;br /&gt;OS type: Linux&lt;br /&gt;Block size=4096 (log=2)&lt;br /&gt;Fragment size=4096 (log=2)&lt;br /&gt;36519936 inodes, 73021449 blocks&lt;br /&gt;3651072 blocks (5.00%) reserved for the super user&lt;br /&gt;............... &lt;span style="color: magenta;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;span style="color: magenta;"&gt;ERROR MESSAGE&lt;/span&gt;&lt;br /&gt;#mount /dev/sdb2 /mnt&lt;br /&gt;After Mounting check using #df -T check whethere file system is created perfectly or Not.&lt;br /&gt;#df -T&lt;br /&gt;Filesystem    Type   1K-blocks      Used Available Use% Mounted on&lt;br /&gt;/dev/sdb1     ext3    36904824   7261744  27738176  1% /mnt&lt;br /&gt;[root@node2 ~]# mkfs.ext3 /dev/sda3&lt;br /&gt;mke2fs 1.39 (29-May-2006)&lt;br /&gt;Could not stat /dev/sda3 --- No such file or directory&lt;br /&gt;The device apparently does not exist; did you specify it correctly?&lt;br /&gt;I try to mount with the following command&lt;br /&gt;[root@node1 ~]# mount -t ext3 /dev/sda3 /mnt&lt;br /&gt;mount: wrong fs type, bad option, bad superblock on /dev/sda3,&lt;br /&gt;missing codepage or other error&lt;br /&gt;(aren't you trying to mount an extended partition,&lt;br /&gt;instead of some logical partition inside?)&lt;br /&gt;In some cases useful info is found in syslog - try&lt;br /&gt;dmesg | tail  or so&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-2313587907048482103?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/2313587907048482103/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/01/mount-wrong-fs-type-bad-option-bad.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/2313587907048482103'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/2313587907048482103'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/01/mount-wrong-fs-type-bad-option-bad.html' title='Create New File System To New Partition No such file or directory'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-5857665047551861395</id><published>2011-01-24T20:49:00.000-08:00</published><updated>2011-01-24T20:50:47.017-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux support'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>SSH Login Error Message: MANPATH: Undefined variable man.csh</title><content type='html'>Server, When I Login From the Master to the client Node.&lt;br /&gt;I got the following error message.d&lt;br /&gt;[redhat5@master ~]$ ssh node6&lt;br /&gt;Last login: Tue Jan 25 11:45:11 2011 from node1.modeling.in&lt;br /&gt;MANPATH: Undefined variable.&lt;br /&gt;[redhat5@node6 ~]$ &lt;br /&gt;Reason&lt;br /&gt;MANPATH VARAIBLE is declare but these value is not assign.&lt;br /&gt;SOLUTION&lt;br /&gt;So create the man.csh file under the /etc/profile&lt;span class="fullpost"&gt;&lt;br /&gt;csh refers to the C ShellSSH Login Error Message&lt;br /&gt;#/etc/profile.d/man.csh&lt;br /&gt;cat man.csh &lt;br /&gt;if ($?MANPATH) then&lt;br /&gt;setenv MANPATH "${MANPATH}:/usr/man"&lt;br /&gt;else&lt;br /&gt;setenv MANPATH "/usr/man"&lt;br /&gt;endif&lt;br /&gt;setenv command is used to set  environment variable.&lt;br /&gt;After create the file then again try it.&lt;br /&gt;It will work perfectly.MANPATH: Undefined variable.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-5857665047551861395?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/5857665047551861395/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/01/manpath-undefined-variable-ssh-login.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/5857665047551861395'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/5857665047551861395'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/01/manpath-undefined-variable-ssh-login.html' title='SSH Login Error Message: MANPATH: Undefined variable man.csh'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-8100496510384312132</id><published>2011-01-23T21:49:00.000-08:00</published><updated>2011-10-18T03:39:51.143-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux support'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Useful Linux KeyBoard Shortcut Hot Keys</title><content type='html'>1)ctrl+c -&amp;gt; kill the current process&lt;br /&gt;2)ctrl+z -&amp;gt; kill the process to the background&lt;br /&gt;3)ctrl+d -&amp;gt; Log out the current terminal&lt;br /&gt;4)~ (tidle) refer to the home directory&lt;br /&gt;cd ~/Desktop/&lt;br /&gt;5)alt+f1 Access the K-menu (k-menu similar to star button in windows)&lt;br /&gt;6)alt+print screen take the screen shot only to the current window&lt;br /&gt;7)print Screen Take the snapshot for the entire window&lt;br /&gt;8)ctrl+u  - Delete the whole statement&lt;br /&gt;9)ctrl+w - Delete the single word&lt;span class="fullpost"&gt;&lt;br /&gt;10)ctrl+t - Swap the last two character&lt;/span&gt;&lt;br /&gt;&lt;span class="fullpost"&gt;11)Alt+u - Make the Upper Case&lt;br /&gt;12)Alt+l - Make the Lower Case&lt;br /&gt;13)ctrl+atl+l&amp;nbsp; - Lock the Desktop&lt;br /&gt;&lt;br /&gt;#dateconfig (or) system-con fig-date &lt;br /&gt;#hwbrowser Give the Graphical window for Hardware Details&lt;br /&gt;1 Byte = 8 Bit&lt;br /&gt;1 Kilobyte = 1024 Bytes&lt;br /&gt;1 Megabyte = 1048576 Bytes&lt;br /&gt;1 Gigabyte = 1073741824 Bytes&lt;br /&gt;Red hat Fedora Scientific Linux Keyboard  Shortcut or Hot Keys.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-8100496510384312132?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/8100496510384312132/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/01/useful-linux-keyboard-shortcut-hot-keys.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/8100496510384312132'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/8100496510384312132'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/01/useful-linux-keyboard-shortcut-hot-keys.html' title='Useful Linux KeyBoard Shortcut Hot Keys'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-2372664397787716362</id><published>2011-01-21T00:39:00.000-08:00</published><updated>2011-08-29T07:26:34.637-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux support'/><category scheme='http://www.blogger.com/atom/ns#' term='Trouble Shooting'/><category scheme='http://www.blogger.com/atom/ns#' term='Booting Problem'/><title type='text'>Restore Recreate Lost MBR Grub Boot Loader Linux</title><content type='html'>&lt;b&gt;Problem&lt;/b&gt; - lost &lt;b&gt;grub.conf&lt;/b&gt; &amp;amp; &lt;b&gt;MBR&lt;/b&gt; Master Boot Record&lt;br /&gt;In my system due to unclean shutdown, grub.conf and mbr are corrupted.So when I restart the system it is going to  the grub window.I restart the Operating system using rescue mode.&lt;br /&gt;After I loading we need to do the following things&lt;br /&gt;&lt;b&gt;SOLUTION Restore MBR grub loader&lt;/b&gt;&lt;br /&gt;1)Find where the grub.conf file are located.&lt;br /&gt;grub&amp;gt; &lt;b&gt;find /boot/grub/stage1&lt;/b&gt;&lt;br /&gt;(hd0,0)&lt;br /&gt;2)Find the File system of the root partition&lt;br /&gt;grub&amp;gt; &lt;b&gt;root (hd0,0)&lt;/b&gt;&lt;br /&gt;File system type is ext2fs, partition type 0x83&lt;br /&gt;3)using setup command install grub.conf file&lt;span class="fullpost"&gt;&lt;br /&gt;grub&amp;gt; &lt;b&gt;setup (hd0)&lt;/b&gt;&lt;br /&gt;Checking if "/boot/grub/stage1" exists... yes&lt;br /&gt;Checking if "/boot/grub/stage2" exists... yes&lt;br /&gt;Checking if "/boot/grub/e2fs_stage1_5" exists... yes&lt;br /&gt;Running "embed /boot/grub/e2fs_stage1_5 (hd0,0)"... failed (this is not fatal)&lt;br /&gt;Running "embed /boot/grub/e2fs_stage1_5 (hd0,0)"... failed (this is not fatal)&lt;br /&gt;Running "install /boot/grub/stage1 (hd0,0) /boot/grub/stage2 p /boot/grub/&lt;b&gt;grub.conf "... succeeded&lt;/b&gt;&lt;br /&gt;Done.&lt;/span&gt;&lt;br /&gt;&lt;span class="fullpost"&gt;&lt;b style="color: blue;"&gt;NOTE:&lt;/b&gt;if boot Parition is present in root (hd0,5) then we have to install like&lt;br /&gt;&lt;b&gt;setup (hd0)&lt;/b&gt; that is correct method setup. Because it will install in to the mbr of hard disk 0. (hd0,5) it is Not correct one.Because we can't give any gurantee it will install&amp;nbsp; into the mbr of hd0.&lt;br /&gt;4)Now load the kernel and initrd&lt;br /&gt;grub&amp;gt; kernel /boot/vmlinuz-2.6.18-164.el5 ro root=LABEL=/ rhgb quiet&lt;br /&gt;&amp;nbsp;&amp;nbsp; [Linux-bzImage, setup=0x1e00, size=0x1c31b4] &lt;br /&gt;grub&amp;gt; initrd /boot/vmlinuz-2.6.18-164.el5&lt;br /&gt;Possible files are: vmlinuz-2.6.18-164.el5 vmlinuz-2.6.18-164.el5xen&lt;br /&gt;There initrd these boot loader initialized a ram disk.&lt;br /&gt;Finally type the &lt;b&gt;#boot&lt;/b&gt; command it will boot your operating system.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Restore Grub trouble shooting related command&lt;/b&gt;&lt;br /&gt;fsck.ext3 /dev/hda1 &amp;gt;&amp;gt;check the file system.&lt;br /&gt;grub-install --root-directory=/mnt /dev/hda1 &amp;gt;&amp;gt; install grub boot loader&lt;br /&gt;chroot /mnt/sysimage &amp;gt;&amp;gt; it will change the default root directory to  /mnt/sysimage&lt;br /&gt;mount -t ext2 /dev/hda2 /mnt/sysimage &amp;gt;&amp;gt; if hardisk unable to mount we can using these command&lt;br /&gt;Login to the resuce mode for Linux redhat centos fedora to  resolve the grub and mbr corrupted file.&lt;br /&gt;grub&amp;gt; find /boot/grub/stage4&lt;br /&gt;&lt;b&gt;Error 15: File not found&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="fullpost"&gt;if you get Error 15 File not found&lt;b&gt; &lt;/b&gt;Then try with following command&lt;br /&gt;grub&amp;gt; find (hd0,0)/boot/grub/stage1&lt;br /&gt;(hd0,0)&lt;br /&gt;grub&amp;gt;root (hd0,0)&lt;br /&gt;grub&amp;gt;setup (hd0,0)&lt;br /&gt;Error 15: File not found&lt;br /&gt;grub&amp;gt;kernel (hd0,X)/boot/ &lt;br /&gt;/dev/sda1 will be hda(0,0)&lt;br /&gt;/dev/sda2 will be hda(0,1)&lt;br /&gt;/dev/sdb1 will be hda(1,0)&lt;br /&gt;/dev/sdb2 will be hda(1,1).Error 15: File not found&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-2372664397787716362?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/2372664397787716362/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/01/repair-recover-corrupt-mbr-grub-boot.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/2372664397787716362'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/2372664397787716362'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/01/repair-recover-corrupt-mbr-grub-boot.html' title='Restore Recreate Lost MBR Grub Boot Loader Linux'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-5428762871275561657</id><published>2011-01-20T02:23:00.000-08:00</published><updated>2011-01-20T02:27:29.061-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Trouble Shooting'/><title type='text'>How To Run Teamviewer Under Root User | exec: /opt/teamviewer/teamviewer//bin/wrapper:</title><content type='html'>while run team viewer From the root User I got the following error message&lt;br /&gt;&lt;b&gt;Team Viewer must not be executed as root!&lt;/b&gt; or team viewer will not open.&lt;br /&gt;Actual team viewer shell script they write the shell script if we execute team viewer from the root user [ root user id=0 ] display the error message or it will not open. shell script located under /usr/bin/teamviewer&lt;br /&gt;[root@rhel5 bin]# cat teamviewer&lt;br /&gt;&lt;div style="color: red;"&gt;#!/bin/sh&lt;/div&gt;&lt;div style="color: red;"&gt;userid=$(id -u)&lt;/div&gt;&lt;div style="color: red;"&gt;tv_ver="6"&lt;/div&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;if [ $&lt;b&gt;userid = 0 &lt;/b&gt;] # root user id is 0&lt;/div&gt;&lt;div style="color: red;"&gt;then&lt;/div&gt;&lt;div style="color: red;"&gt;echo TeamViewer must not be executed as root!&lt;/div&gt;&lt;div style="color: red;"&gt;exit 1&lt;/div&gt;&lt;div style="color: red;"&gt;fi&lt;/div&gt;Here from the other resource they suggest to disable the line like adding Hash symbol &lt;b&gt;#&lt;/b&gt; ,make the command line . From &lt;br /&gt;Line: userid=$(id -u) to&lt;br /&gt;Line: fi&lt;But after change change while run the team viewer You will face the following error message.[root@localhost bin]# teamviewer&lt;b&gt;/usr/bin/teamviewer: line 13: /opt/teamviewer/teamviewer//bin/wrapper: No such file or directory&lt;/b&gt;&lt;br /&gt;&lt;b&gt;/usr/bin/teamviewer: line 13: exec: /opt/teamviewer/teamviewer//bin/wrapper: &lt;/b&gt;cannot execute: No such file or directory&lt;br /&gt;&lt;div style="color: magenta;"&gt;&lt;b&gt;SOLUTION&lt;/b&gt;&lt;/div&gt;It is better I will suggest just edit the uid is equal to 12 instead of 0 then try it you will get the team viewer even though if you are root user.&lt;br /&gt;[user id 12 is the system user so it will not affect you any more].&lt;br /&gt;/usr/bin/teamviewer: line 13: /opt/teamviewer/teamviewer//bin/wrapper: No such file or directory&lt;br /&gt;/usr/bin/teamviewer: line 13: exec: /opt/teamviewer/teamviewer//bin/wrapper: cannot execute: No such file or directory&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-5428762871275561657?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/5428762871275561657/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/01/how-to-run-teamviewer-under-root-user.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/5428762871275561657'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/5428762871275561657'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/01/how-to-run-teamviewer-under-root-user.html' title='How To Run Teamviewer Under Root User | exec: /opt/teamviewer/teamviewer//bin/wrapper:'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-7494413910519442592</id><published>2011-01-20T01:58:00.000-08:00</published><updated>2011-01-20T02:06:43.151-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Trouble Shooting'/><title type='text'>NFS ERROR: NFS Server Hostname failed:RPC Error: Program not registered</title><content type='html'>server I configured with NFS.&lt;br /&gt;/etc/export file I add the entry what are directories need to mount&lt;br /&gt;In the client /etc/fstab add the entry to mount&amp;nbsp; directory from server to client&lt;br /&gt;&lt;b&gt;IN THE CLIENT&lt;/b&gt;&lt;br /&gt;While I try with #&lt;b&gt;mount &lt;/b&gt;command To check what are things are mounted.&lt;br /&gt;server shared directory it is not mounted to the client. So I try to remount&lt;br /&gt;#mount -a &lt;span style="color: magenta;"&gt;it will mount directory according to the /etc/fstab file&lt;/span&gt;&lt;br /&gt;while I try thes I got the following error message&lt;br /&gt;&lt;div style="color: #660000;"&gt;&lt;b&gt;mount: mount to NFS server '128.150.72.58' failed: RPC Error: Program not registered&lt;/b&gt;&lt;/div&gt;I check in the server whether rpc support nfs. Because rpc - Remote Procedure Call is required share nfs File System.&lt;br /&gt;&lt;b&gt;TROUBLESHOOTING ISSUE&lt;/b&gt;&lt;br /&gt;1)rpcinfo -p&lt;br /&gt;[root@master1 ~]# rpcinfo -p [ it will show portnumber what are thing related to rpc]&lt;br /&gt;program vers proto   port&lt;br /&gt;100000    2   tcp    111  portmapper&lt;br /&gt;100000    2   udp    111  portmapper&lt;br /&gt;100024    1   udp   1006  status&lt;span class="fullpost"&gt;&lt;br /&gt;100024    1   tcp   1009  status&lt;br /&gt;100011    1   udp    739  rquotad&lt;br /&gt;100011    2   udp    739  rquotad&lt;br /&gt;100011    1   tcp    742  rquotad&lt;br /&gt;100011    2   tcp    742  rquotad&lt;br /&gt;100021    1   udp  54266  nlockmgr&lt;br /&gt;100021    3   udp  54266  nlockmgr&lt;br /&gt;100021    4   udp  54266  nlockmgr&lt;br /&gt;100021    1   tcp  58009  nlockmgr&lt;br /&gt;100021    3   tcp  58009  nlockmgr&lt;br /&gt;100021    4   tcp  58009  nlockmgr&lt;br /&gt;100005    1   udp    813  mountd&lt;br /&gt;100005    1   tcp    816  mountd&lt;br /&gt;100005    2   udp    813  mountd&lt;br /&gt;100005    2   tcp    816  mountd&lt;br /&gt;100005    3   udp    813  mountd&lt;br /&gt;100005    3   tcp    816  mountd&lt;br /&gt;From these troubleshooting I found NFS it is not associated with RPC.&lt;br /&gt;&lt;b&gt;SOLUTION&lt;/b&gt;&lt;br /&gt;So,I restart the NFS service.&lt;br /&gt;In the first time NFS is not shutdown properly.&lt;br /&gt;so, I restart it again. then I try it&lt;br /&gt;[root@master1 ~]# rpcinfo -p | grep nfs&lt;br /&gt;100003    2   udp   2049  nfs&lt;br /&gt;100003    3   udp   2049  nfs&lt;br /&gt;100003    4   udp   2049  nfs&lt;br /&gt;100003    2   tcp   2049  nfs&lt;br /&gt;100003    3   tcp   2049  nfs&lt;br /&gt;100003    4   tcp   2049  nfs&lt;br /&gt;So Here I confirm RPC Provide service to nfs.&lt;br /&gt;Then in the client again I try to remount it with &lt;b&gt;mount -a &lt;/b&gt;option.&lt;br /&gt;it is mounted perfectly with out any issue.Then the problem has been clearled.&lt;br /&gt;Mount to NFS Server Hostname failed:RPC Error: Program not registered.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-7494413910519442592?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/7494413910519442592/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2011/01/mount-to-nfs-server-hostname-failedrpc.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/7494413910519442592'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/7494413910519442592'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2011/01/mount-to-nfs-server-hostname-failedrpc.html' title='NFS ERROR: NFS Server Hostname failed:RPC Error: Program not registered'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-1493398068211456462</id><published>2010-12-19T03:28:00.000-08:00</published><updated>2011-06-06T04:56:13.777-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Interview Question'/><title type='text'>What last+found Directory in Linux Operating System | ext3 Corrupted or Damaged Files</title><content type='html'>What is Purpose of last+found Directory.&lt;br /&gt;1)last+found it will store corrupted or damage files when the unclean Power failure occur or system shutdown occur.&lt;br /&gt;2)when we create the ext3 file system.&lt;br /&gt;'lost+found' directory is created.&lt;br /&gt;under these directory if any of the file has been damaged or crash the files will be store under 'lost+found'.&lt;span class="fullpost"&gt;&lt;br /&gt;3)After the unclean or power failure of the system when the system boot it will check the fsck command&lt;br /&gt;last+found Directory ext3 file system in Linux.&lt;br /&gt;Whenever we create new file system under linux /Unix it will create lost+found directory,&lt;br /&gt;it will be used for file system check &amp;amp; repair fsck utility In .&lt;br /&gt;&lt;span style="color: magenta;"&gt;When the file system is mounted,&lt;/span&gt;&lt;br /&gt;we can't used fsck command.&lt;br /&gt;fsck it will check&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-1493398068211456462?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/1493398068211456462/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2010/12/lastfound-directory-in-linux-operating.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/1493398068211456462'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/1493398068211456462'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2010/12/lastfound-directory-in-linux-operating.html' title='What last+found Directory in Linux Operating System | ext3 Corrupted or Damaged Files'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-5859952172444021739</id><published>2010-12-14T15:29:00.000-08:00</published><updated>2011-11-12T07:40:45.423-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Interview Question'/><title type='text'>Linux Swap Partition what is purpose of Swap parition</title><content type='html'>Combine memory of  physical memory and swap space it is amount of virtual memory .&lt;br /&gt;Physical RAM-  chunks of memory called pages.&lt;br /&gt;Paging is one of the Memory-Management System. &lt;br /&gt;1)Computer Can store and retrieve data from the Secondary Storage For use of Main Memory.&lt;br /&gt;2)OS retrieve data from Secondary Storage in Same size block called Pages.&lt;br /&gt;&lt;br /&gt;swapping is an area on disk temporarily hold process memory image.&lt;br /&gt;swap space keeps some physical memory free at all the times.&lt;br /&gt;&lt;b&gt;Swapping it is required fro the following reason&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;strong&gt;1)&lt;/strong&gt;&lt;/span&gt;Because the system requires more memory than physical memory.&lt;br /&gt;&lt;span style="font-size: large;"&gt;&lt;strong&gt;2)&lt;/strong&gt;&lt;/span&gt;significant number of pages used by an application using the startup process or bootup process. it will happen only the system startup process only for &lt;span class="fullpost"&gt;initialization. system can swap these pages and free memory for other application disk cache&lt;br /&gt;using #swapon -s&lt;br /&gt;command we can find out where is swap partition is installed.&lt;br /&gt;#swapon -s&lt;br /&gt;Filename       Type        Size      Used    Priority&lt;br /&gt;/dev/sda2      partition   20774904   52     -&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-5859952172444021739?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/5859952172444021739/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2010/12/linux-swap-partition-what-is-purpose-of.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/5859952172444021739'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/5859952172444021739'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2010/12/linux-swap-partition-what-is-purpose-of.html' title='Linux Swap Partition what is purpose of Swap parition'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-1429753073492730455</id><published>2010-12-14T15:15:00.000-08:00</published><updated>2011-02-23T01:36:35.982-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>unable to umount device is busy use lsof fuser umount -l</title><content type='html'>while we want to increase the partition size or remove the partition we try to umount the particular partition.In that time when we use umount&amp;nbsp; the particular partition it is unable to umount we will get the message.&lt;br /&gt;Device is busy.&lt;br /&gt;&lt;br /&gt;For an example&lt;br /&gt;&lt;b&gt;#umount /dev/sda1&lt;/b&gt;&lt;br /&gt;if we get anything unable to umount busy&lt;br /&gt;umount: /:&lt;b&gt;&lt;span style="color: red;"&gt; device is busy&lt;/span&gt;&lt;/b&gt;.&lt;br /&gt;(In some cases useful info about processes that use&lt;br /&gt;the device is found by lsof(8) or fuser(1))&lt;br /&gt;fuser identify process which are using the file and socket.&lt;br /&gt;# &lt;b&gt;fuser -m /dev/sda1&lt;/b&gt;  &lt;br /&gt;it will show the list of process which are things using these disk&lt;br /&gt;/dev/sda1:            2400&lt;span class="fullpost"&gt;&lt;br /&gt;&amp;nbsp;1rce     2rc     3rc     4rc     5rc     6rc     7rc     8rc     9rc    10rc    11rc    12rc    13rc    14rc    15rc    16rc    17rc    18rc    19rc    20rc    21rc    22rc    23rc    25rc    26rc    27rc    28rc    29rc    30rc    36rc    37rc    39rc    41rc    44rc    45rc    46rc    47rc    48rc    49rc   233rc   234rc   235rc   236rc   309rc   310rc   351rc   380rce   384rce   524rce   526rc   545rce   587rc   594rc   601rc   702rc   837rce   848rce   859rce   860rce   866rce   870rce   871rce   881rce   883rce   953rce   978rce  1099rce&lt;span class="fullpost"&gt;  1234rce  1270re  1274re  1287re  1288re  1290re  1292rce  1294rce  1295rce  1343rce  1347rce  1368rce  1440e  1521re  1529rce  1548rce  1578rce  1581rce  1582rce  1587rce  1591rce  1596rce  1601rce  1606rce  1612rce  1614rce  1616rce  1617rce  1618rce  1619rce  1620rce  1622rce  1624rce  1625rce  1630rce  1636rce  1706rce  1723rce  1728rce  1729rce  1732rce  1734rce  1736rce  1752rce  1753rce  1754rce  1755rce  1756rce  1757rce  1768rce  1770rce  1773rce  1782rce  1794rce  1815rce  1848rce  1851rce  1852rce  1899rce  1946rce  1950rce  1954rce  2217rce  2274rce  2318rce  2374rce  2383rce  2400rce  2591rce  2592rce  2608rce  2617rce  2750rce  2773rce  2774rce  2845rce  2854rce  2862rce  2880rce  2901rce  2936rce  3250rc  3251rc&lt;br /&gt;&lt;br /&gt;These device is using the above process.&lt;br /&gt;#kill -9 pid&lt;br /&gt;&amp;nbsp;Using kill command kill that process what are process occupy that device.&lt;br /&gt;then try it.&lt;br /&gt;other wise we can use lazy umount command | -l refers to the lazy&lt;br /&gt;#umount -l /dev/sda5&lt;br /&gt;if you still face the problem&lt;br /&gt;check whether that particular partition is used by the nfs.&lt;br /&gt;If it is used by the nfs then just shutdown the nfs service.&lt;br /&gt;Then try it. It will work.&lt;br /&gt;[root@master ~]# &lt;b&gt;/etc/init.d/nfs stop&lt;/b&gt;&lt;br /&gt;Shutting down NFS mountd:                                  [  OK  ]&lt;br /&gt;Shutting down NFS daemon:                                  [  OK  ]&lt;br /&gt;Shutting down NFS quotas:                                  [  OK  ]&lt;br /&gt;Shutting down NFS services:                                [  OK  ]&lt;br /&gt;[root@master ~]# umount /dev/sda5&lt;br /&gt;&amp;nbsp;lazy umount it will cleanup all reference of the file system and it is not busy any more.&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/3417169946022348274-1429753073492730455?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/1429753073492730455/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2010/12/unable-to-umount-device-is-busy-use.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/1429753073492730455'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/1429753073492730455'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2010/12/unable-to-umount-device-is-busy-use.html' title='unable to umount device is busy use lsof fuser umount -l'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-8392277995413607451</id><published>2010-12-11T11:42:00.000-08:00</published><updated>2010-12-11T11:42:50.210-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Interview Question'/><title type='text'>How To Change Root Password Redhat Linux In Single User Mode</title><content type='html'>1)While It shows booting option Kernel boot menu will appear.&lt;br /&gt;click any single character it show the list of booting Os title&lt;br /&gt;2)click ‘&lt;b&gt;e&lt;/b&gt;’ charcet e means edit&lt;br /&gt;&lt;br /&gt;Here it will show the there paramet root(hd0,0) and&lt;br /&gt;2)kenel &lt;b&gt;/boot/vmlinuz-2.6.18-53.el5 ro root=LABEL=/ rhgb quiet&lt;/b&gt;&lt;br /&gt;3)initrd /boot/initrd-2.6.18-53.el5.img&lt;br /&gt;&lt;br /&gt;Here choose the second kerenl option then add the word “single” at the end of the second option of the kernel&lt;span class="fullpost"&gt;&lt;br /&gt;2)kenel &lt;span style="font-size: large;"&gt;&lt;b&gt;&lt;span style="font-size: small;"&gt;/boot/vmlinuz-2.6.18-53.el5 ro root=LABEL=/ rhgb quiet&lt;/span&gt; &lt;span style="color: magenta;"&gt;single&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;After add the word press ‘b’ character it will boot theat kernal with single user mode&lt;br /&gt;then enter it will boot as the single user mode.&lt;br /&gt;here you can change the root password by typing #passwd command&lt;br /&gt;After change the password#init 6 restart the linux system then try it.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-8392277995413607451?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/8392277995413607451/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2010/12/how-to-change-root-password-redhat.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/8392277995413607451'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/8392277995413607451'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2010/12/how-to-change-root-password-redhat.html' title='How To Change Root Password Redhat Linux In Single User Mode'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-5359583756944423777</id><published>2010-12-10T12:00:00.000-08:00</published><updated>2010-12-10T12:00:43.709-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Interview Question'/><title type='text'>Basic About ORACLE DATABASE control file redolog files Table Space DDL DML</title><content type='html'>ORACLE DATABASE is a collection of data in a unit,&lt;br /&gt;purpose of data is store and retrieve data,&lt;br /&gt;To maintain the quality of the database server prevent unauthorized access and provides quality solution whenever unclean shutdown occur.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;CONTROL FILES&lt;/strong&gt;&lt;br /&gt;control file it contain the physical information of the data.&lt;br /&gt;all the oracle database contain the control files.it contain,&lt;br /&gt;database name,timestamp,location,redlo files,&lt;br /&gt;&lt;strong&gt;REDO LOG FILES&lt;/strong&gt; &lt;br /&gt;all the oracle database contain two or more redo log files.&lt;br /&gt;set of redo log file called redo log database.&lt;br /&gt;To prevent the failure redo log failure maintain the multiplexed redo log file.&lt;br /&gt;so two or more copies of redo log maintain the different disk.&lt;br /&gt;if unexcepted power failure occur by applying redo log file we can getback the database.&lt;span class="fullpost"&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;Logical Oralce Database Structure&lt;/strong&gt;&lt;br /&gt;Table space&lt;br /&gt;database divided into the logical unit called table space.&lt;br /&gt;&lt;strong&gt;Data Defination Language ( DDL )&lt;/strong&gt;&lt;br /&gt;create,alter,maintain,drop,&lt;br /&gt;Maintain the permit a user to grant other user privilage to access database&lt;br /&gt;&lt;strong&gt;Data Manipulation Language (DML)&lt;/strong&gt;&lt;br /&gt;insert,update,delete,select query retreive data from the databse,&lt;br /&gt;Transcation Control Statements&lt;br /&gt;Commit,rollback,savepoint,&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-5359583756944423777?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/5359583756944423777/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2010/12/basic-about-oracle-database-control.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/5359583756944423777'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/5359583756944423777'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2010/12/basic-about-oracle-database-control.html' title='Basic About ORACLE DATABASE control file redolog files Table Space DDL DML'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-4907420615330162299</id><published>2010-12-10T11:37:00.000-08:00</published><updated>2010-12-10T11:56:12.676-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Interview Question'/><title type='text'>How To Find The Parent Process Tree Directory Structure | Change The Process Priority</title><content type='html'>By using Ps command we can find out the process id for the particular process.we can use to maintain the system in the proper manner. For example we are opening opera, but opera it is not opening, it will hang up the system, in these case we can find out the process id for the opera. and using kill command we can kill that particular process&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;#ps -ef | grep opera&lt;/strong&gt;&lt;br /&gt;rhel5 2190 1712 10 14:05 ? 00:00:03 /usr/lib/opera/opera&lt;br /&gt;rhel5 2210 2190 21 14:05 ? 00:00:03 /usr/lib/opera//operapluginwrapper 52 69 /opt/mint-flashplugin/libflashplayer.so&lt;br /&gt;rhel5 2211 2190 0 14:05 ? 00:00:00 /usr/lib/opera//operaplugincleaner 2190&lt;br /&gt;rhel5 2231 2136 0 14:05 pts/1 00:00:00 grep --colour=auto opera&lt;br /&gt;#kill -9 219&lt;br /&gt;-f give the full details&lt;br /&gt;-F give the Extra Full Details&lt;br /&gt;Syntax&lt;br /&gt;&lt;strong&gt;#ps U Username&lt;/strong&gt;&lt;br /&gt;[root@vps ~]#ps U mysql &amp;gt;&amp;gt; find out the particular user Details&lt;br /&gt;PID TTY STAT TIME COMMAND&lt;br /&gt;1109 ? Sl 757:51 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql&lt;br /&gt;How to find the Process Tree&lt;br /&gt;ps -axf&lt;br /&gt;x -proces w/o controlling tty&lt;span class="fullpost"&gt;&lt;br /&gt;f-full&lt;br /&gt;#&lt;strong&gt;ps -axf&lt;/strong&gt;&lt;br /&gt;15230 pts/0 Ss 0:00 | \_ -bash&lt;br /&gt;15396 pts/0 T 0:00 | \_ mysql&lt;br /&gt;28459 pts/0 T 0:00 | \_ mysql&lt;br /&gt;5785 pts/0 T 0:00 | \_ mysql&lt;br /&gt;8826 pts/0 T 0:00 | \_ mysql&lt;br /&gt;17588 pts/0 T 0:00 | \_ find / -name init.d*&lt;br /&gt;18777 pts/0 T 0:00 | \_ find / -name init.d&lt;br /&gt;813 pts/0 T 0:00 | \_ find / -name eth0*&lt;br /&gt;&lt;br /&gt;We can also get the process tree using pstree command&lt;br /&gt;-p refers to the process id&lt;br /&gt;#&lt;strong&gt;pstree -p&lt;/strong&gt;&lt;br /&gt;pstree - display a tree of process.&lt;br /&gt;pstree parent of all the process is init.&lt;br /&gt;How To find out the particular command process id&lt;br /&gt;Using command find the Process id&lt;br /&gt;# &lt;strong&gt;pidof ssh&lt;/strong&gt;&lt;br /&gt;2136&lt;br /&gt;Using Process id find the Command&lt;br /&gt;&lt;strong&gt;Method -1&lt;/strong&gt;&lt;br /&gt;ps -p 42 -o comm=&lt;br /&gt;# ps -p 1154 -o comm=&lt;br /&gt;wpa_supplicant&lt;br /&gt;# ps -p 385 -o comm=&lt;br /&gt;udevd&lt;br /&gt;&lt;strong&gt;Method -2&lt;/strong&gt;&lt;br /&gt;#ps -ef | grep processid&lt;br /&gt;How to renice the process priority&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;User Define Ps command display&lt;/strong&gt;&lt;br /&gt;#ps -o pid,command&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;How to fine parent child process&lt;/strong&gt;&amp;gt; ptree pid&lt;br /&gt;nice command&lt;br /&gt;nice value vary from -20 to 20.&lt;br /&gt;-20 Most Favorable scheduling(Highest)&lt;br /&gt;19 Least Favourable scheduling (Lowest)&lt;br /&gt;How to change the value&lt;br /&gt;#nice -n 10 gmplayer&lt;br /&gt;#renice -n &lt;process&gt;&lt;br /&gt;#/bin/nice -n 3 command-name&lt;br /&gt;TO MORE ABOUT PS COMMAND&lt;br /&gt;&lt;a href="http://studentwebsite.blogspot.com/2009/10/how-to-use-ps-command-in-linux-rhel5.html" target="_blank"&gt;http://studentwebsite.blogspot.com/2009/10/how-to-use-ps-command-in-linux-rhel5.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;To see the Directory structure we can use the following command&lt;/strong&gt;&lt;br /&gt;#tree Directory name&lt;br /&gt;#tree $HOME&lt;br /&gt;#tree /&lt;br /&gt;To Display the Directory with size&lt;br /&gt;we can use the following command&lt;br /&gt;#tree -s &amp;gt;&amp;gt; size&lt;br /&gt;#tree -d &amp;gt;&amp;gt; direcotry&lt;br /&gt;#tree -a &amp;gt;&amp;gt;hidden files&lt;br /&gt;#tree -p &amp;gt;&amp;gt; along with files&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-4907420615330162299?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/4907420615330162299/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2010/12/how-to-find-parent-process-tree-change.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/4907420615330162299'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/4907420615330162299'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2010/12/how-to-find-parent-process-tree-change.html' title='How To Find The Parent Process Tree Directory Structure | Change The Process Priority'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-5728615104944647773</id><published>2010-12-10T11:12:00.000-08:00</published><updated>2010-12-10T11:12:12.371-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Interview Question'/><title type='text'>Using Single Ethernet Device How To Configure Multiple Virtual IP</title><content type='html'>How to configure Additional IP Address In Linux&lt;br /&gt;In the LInux operating system using one Ethernet device we can create the multiple virtual ip&lt;br /&gt;like that eth0:1,eth0:2,eth0:3,eth0:4&lt;br /&gt;&lt;strong&gt;1)copy the file from&lt;/strong&gt;&lt;br /&gt;/etc/sysconfig/network-scripts/ifcfg-eth0 to ifcfg-eth0:1&lt;br /&gt;&lt;strong&gt;2)change the Device name from&lt;/strong&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;Device=eth0 to Device=eth0:1&lt;br /&gt;&lt;strong&gt;3)/etc/sysconfig/network-scripts/ifcfg-eth0:1&lt;/strong&gt;modify IPADDR&lt;br /&gt;&lt;strong&gt;4)start the secondary interface&lt;/strong&gt;ifup eth0:1&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-5728615104944647773?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/5728615104944647773/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2010/12/using-single-ethernet-device-how-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/5728615104944647773'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/5728615104944647773'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2010/12/using-single-ethernet-device-how-to.html' title='Using Single Ethernet Device How To Configure Multiple Virtual IP'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-2137058427869160224</id><published>2010-11-23T13:38:00.000-08:00</published><updated>2010-11-23T13:38:47.272-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Interview Question'/><title type='text'>Shell Script Login Remote System Using SSH  Update Server Status</title><content type='html'>By using shell script Login into the remote system using ssh and update there server status.I use the Important Linux command which one I used in the following shell script.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;expect &lt;/b&gt;- maintain the interactive program.it will talk to other process via script. it is mainly used in the shell scripting to send the password &amp;amp; user name.  These name come from send/expect.&lt;br /&gt;&lt;b&gt;expect&lt;/b&gt; &amp;gt;&amp;gt; wait for string from the process&lt;br /&gt;&lt;b&gt;send&lt;/b&gt; &amp;gt;&amp;gt; send the string to the process&lt;br /&gt;while the interaction if expect get the string match with assword. it will send the password value.&lt;br /&gt;&lt;br /&gt;expect \"*?assword:*\"&lt;br /&gt;send -- \"$PASS\r\"&lt;br /&gt;&lt;br /&gt;&lt;b&gt;spawn&lt;/b&gt; &amp;gt;&amp;gt; start process&lt;br /&gt;&lt;div style="color: red;"&gt;&lt;b&gt;To write  Bournce - Again Shell script To update the server details Using - expect -send -spwan command&lt;/b&gt;&lt;/div&gt;#!/bin/bash&lt;br /&gt;HOST="remote-hostname"&lt;br /&gt;USER="remote-user"&lt;br /&gt;PASS="remore-user-password"&lt;br /&gt;CMD=$@&lt;br /&gt;VAR=$(expect -c "&lt;span class="fullpost"&gt;&lt;br /&gt;spawn ssh -o StrictHostKeyChecking=no $USER@$HOST $CMD&lt;br /&gt;match_max 100000&lt;br /&gt;expect \"*?assword:*\"&lt;br /&gt;send -- \"$PASS\r\"&lt;br /&gt;send -- \"\r\"&lt;br /&gt;expect eof&lt;br /&gt;")&lt;br /&gt;echo "==============="&lt;br /&gt;echo “shell script Output”l&lt;br /&gt;echo $VAR&lt;br /&gt;&lt;b&gt;Run the Shell Script&lt;/b&gt;&lt;br /&gt;#sh execute.sh &lt;b&gt;'exim -bpc'&lt;/b&gt;&lt;br /&gt;&lt;b&gt;How To use spawn command&lt;/b&gt;&lt;br /&gt;spawn ssh -o StrictHostKeyChecking=no $USER@$HOST $CMD&lt;br /&gt;-bash: spawn: command not found&lt;br /&gt;spawn command start with expect or you will get the error message&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Correct Format&lt;/b&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;expect -c&lt;/span&gt; &lt;span style="color: red;"&gt;“spawn ssh -o StrictHostKeyChecking=no $USER@$HOST $CMD”&lt;/span&gt;&lt;br /&gt;&lt;b&gt;Wrong Format&lt;/b&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;spawn ssh -o StrictHostKeyChecking=no $USER@$HOST $CMD”&lt;/span&gt;&lt;br /&gt;-bash: spawn: command not found&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-2137058427869160224?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/2137058427869160224/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2010/11/shell-script-login-remote-system-using_23.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/2137058427869160224'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/2137058427869160224'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2010/11/shell-script-login-remote-system-using_23.html' title='Shell Script Login Remote System Using SSH  Update Server Status'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-6745073785950419872</id><published>2010-11-22T16:59:00.000-08:00</published><updated>2010-12-12T18:53:29.679-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Interview Question'/><title type='text'>Linux Important Command Service Important Step</title><content type='html'>&lt;table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: medium none;"&gt;&lt;tbody&gt;&lt;tr&gt;   &lt;td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;Open list of files particular protocol&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;lsof –i&amp;nbsp; TCP,lsof –i   TCP:80,&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;list of open file particular service,user&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;lsof –c http,user&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;Backup tar,gzip,bunzip2,cpio&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;tar –cvf backup.tar sourcefile file,bunizp2   sourcefile,find / -name *.c | cpio –o –format=tar cfile.tar&lt;/div&gt;&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;RAID-3 , RAID -5&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;Parity separate disk, parity across disk&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;RAID -0,RAID -1&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;Striping , mirroring,&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;Iptables –chain –Accept-Reject-Drop, rules&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;-A,-s,-d,-p,-j,-i,&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;Log file,&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;/var/log/messages,/var/log/lastlog,dmesg&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;http log file&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;/var/log/httpd/error_log,/var/log/httpd/access_log&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;Shutdown option&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;Shutdown –r,-f,-h&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;Raid&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;Mdadm –c /dev/md0 –l1 –n2 –x1 /dev/had(1,2)&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;Zombie Process&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;Kills –S SIGCHILD [processed], ps –el | grep ‘s’&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;/etc/passwd &lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;Usernme:xyx:3:4:Commend:Home Directory:shell login&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;/etc/fstab&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;/dev/sda3 /mnt ext3 defaults 1 0&lt;/div&gt;&lt;div class="MsoNormal"&gt;deviceName MountPoint FileSystem mount    optiong dumb fsck order&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;Cut&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;Cut -d –f3,4 /etc/passwd&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;Booting option&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;BIOS –MBR-kernel-init-Run Level&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;Networkg monitor command&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;Netstat | Routing table,masquerade connection,&lt;/div&gt;&lt;div class="MsoNormal"&gt;Netstat –r,&lt;b&gt;netstat   –an | grep 80, Network statics netst -s&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;Difference Between ext2 to ext3 file system&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;Availablity, Data Integrity, Speed, Easy Transition &lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;Ext2 to ext3 | Ext3 to ext2&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;tune2fs –j /dev/hda1 | #tune2fs –O ^has_journal /dev/hda10&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;Port Number SSH-&lt;b&gt;IMPAS-&lt;/b&gt;mysql-&lt;b&gt;smpts&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;22-&lt;b&gt;993-&lt;/b&gt;3306-&lt;b&gt;465-&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;/proc File system&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;Details about kernel,Hardware,Running process&lt;/div&gt;&lt;div class="MsoNormal"&gt;/proc/PID, mdstat,cpuinfo,meminfo,modules&lt;/div&gt;&lt;div class="MsoNormal"&gt;,mount,partition&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;Kernel job&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;System initialization ,Memory Management, Network   Management ,Security,&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;Userid ,groupid, stick bit&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;setuid: chmod 4000 &lt;/div&gt;&lt;div class="MsoNormal"&gt;setgid: chmod 2000&lt;/div&gt;&lt;div class="MsoNormal"&gt;&amp;nbsp;sticky bit : chmod   1777 &lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;Sudo&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;/etc/sudoers,visudo , &lt;/div&gt;&lt;div class="MsoNormal"&gt;[username] [system name] = [paths] restart&lt;/div&gt;&lt;div class="MsoNormal"&gt;rhel5&amp;nbsp;   sys1.redhat.com=/etc/httpd/restart&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;vmstat&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;Monitor virtual memory&lt;/div&gt;&lt;div class="MsoNormal"&gt;Id-idle time wa –watingi for input&lt;/div&gt;&lt;div class="MsoNormal"&gt;Us-[user time] –time spending on kernel mode&lt;/div&gt;&lt;div class="MsoNormal"&gt;Sys-[sys time]-time spending on kernel mode&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;Umask &lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;Root 022 user 002&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;SERVICES&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;/usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;subnet 192.168.0.0 netmask 255.255.255.0 { -- line 4&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;span class="fullpost"&gt;range dynamic-bootp 192.168.0.128   192.168.0.254;&amp;nbsp; &lt;/span&gt;–line 21&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;Web Server&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;/var/www/html&lt;/div&gt;&lt;div class="MsoNormal"&gt;/etc/httpd/conf/httpd.conf&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;NIS&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;1)install yp* package&lt;/div&gt;&lt;div class="MsoNormal"&gt;2)add the /etc/sysconfig/network NIS Domain=rhel5&lt;/div&gt;&lt;div class="MsoNormal"&gt;3)portmap &amp;amp;&amp;nbsp;   ypserv restart&lt;/div&gt;&lt;div class="MsoNormal"&gt;4)Add Host /usr/lib/yp/ypinit –m&lt;/div&gt;&lt;div class="MsoNormal"&gt;5)Add the user&lt;/div&gt;&lt;div class="MsoNormal"&gt;6)/var/yp -&amp;gt;make&lt;/div&gt;&lt;div class="MsoNormal"&gt;client Add the NIS   domain using setup&lt;/div&gt;&lt;div class="MsoNormal" style="margin-left: -24.05pt;"&gt;3)&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;NFS &lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;/etc/exports 2) restart 3)showmount –e ip&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;User quota&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;1)etc/fstab , usrquota ,&lt;/div&gt;&lt;div class="MsoNormal"&gt;2)mount –o remount /home&lt;/div&gt;&lt;div class="MsoNormal"&gt;3)quotacheck –cf /home&lt;/div&gt;&lt;div class="MsoNormal"&gt;4)eduquota –u username&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;LVM Reduce or Extended&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;1)resize2fs /dev/vg1/data 12M&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;2)lvreduce –L 12M   /dev/vg1/data&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;LVM Create&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;1)pvcreate /dev/had6 /dev/hda7 /dev/hda8&lt;/div&gt;&lt;div class="MsoNormal"&gt;2)vgcreate /dev/vg0 /dev/hda6 /dev/hda7 /dev/hda8&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;b&gt;3)lvcreat –L 20M –n   /dev/vg1/data&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;ACL&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;1)setface –m u:username:permission file&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;Samba&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;1)install samba*&lt;/div&gt;&lt;div class="MsoNormal"&gt;2)add samba user&lt;/div&gt;&lt;div class="MsoNormal"&gt;3)change ownership&lt;/div&gt;&lt;div class="MsoNormal"&gt;4)create the samba password&lt;/div&gt;&lt;div class="MsoNormal"&gt;4)/etc/samba/smb.conf,path,writable,read only&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable"&gt;&lt;tbody&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext; border-style: none solid; border-width: medium 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;Rsync&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;-e,-a.-z,-v,-=r&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext; border-style: none solid; border-width: medium 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;TCP&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;Connection,3 way handshake,acknologment,low speed&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext; border-style: none solid; border-width: medium 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;UDP&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;Connectionless protocol, no 3 way handshake ,no   acknologment ,high speed&lt;/div&gt;&lt;div class="MsoNormal"&gt;DNS is Normally use UDP&lt;/div&gt;&lt;div class="MsoNormal"&gt;DNS,DHCP,TFTP&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext; border-style: none solid; border-width: medium 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;Iptables &lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;Iptables –A Input –s 0/0 –d 12.12.0.5 –p TCP –j ACCEPT&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext; border-style: none solid; border-width: medium 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;Awk&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;ls –l &amp;nbsp;| awk&amp;nbsp; ‘{ print $3 }’&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext; border-style: none solid; border-width: medium 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;Df&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;Partition&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext; border-style: none solid; border-width: medium 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;Du&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;Folder size&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext; border-style: none solid; border-width: medium 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;Network Monitor Analysis &lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;Monitor network traffic- capture Network Traffic&lt;/div&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext; border-style: none solid; border-width: medium 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;Network&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;/etc/sysconfig/network-scripts/ifcfg-eth0&lt;/div&gt;&lt;div class="MsoNormal"&gt;/etc/sysconfig/network-IP Address&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext; border-style: none solid; border-width: medium 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;Mysql&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse;"&gt;&lt;tbody&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext; border-style: none solid; border-width: medium 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;Request Time Out&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;Turn off firewall&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext; border-style: none solid; border-width: medium 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;Destination Host unreachable&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext -moz-use-text-color -moz-use-text-color; border-style: none solid none none; border-width: medium 1pt medium medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;Maintain the Same IP&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 167.4pt;" valign="top" width="223"&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 247.75pt;" valign="top" width="330"&gt;&lt;div class="MsoNormal"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-6745073785950419872?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/6745073785950419872/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2010/11/linux-important-command-service.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/6745073785950419872'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/6745073785950419872'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2010/11/linux-important-command-service.html' title='Linux Important Command Service Important Step'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-739693379913085988</id><published>2010-11-22T14:26:00.000-08:00</published><updated>2010-11-22T14:26:57.996-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='UNIX'/><title type='text'>Unix Important Run Level | Difference between Linux and Unix Run level</title><content type='html'>Unix Operating System It has Six Run Level &lt;br /&gt;&lt;b&gt;0 &lt;/b&gt;System is running under PROM Monitor&lt;br /&gt;&lt;b&gt;s or S &lt;/b&gt;– Single user mode with critical file system mounted and accessible&lt;br /&gt;&lt;b&gt;1&lt;/b&gt;- Single User Administrative State with access available file system.&lt;br /&gt;&lt;b&gt;2&lt;/b&gt;- Multi user mode without networking&lt;br /&gt;&lt;b&gt;3-&lt;/b&gt; Multi user mode with networking&lt;br /&gt;&lt;b&gt;4&lt;/b&gt; –Not used&lt;br /&gt;&lt;b&gt;5 &lt;/b&gt;–Shut Down &amp;amp; power off&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;b&gt;6-&lt;/b&gt; Reboot to the Default Run Level&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Difference between Unix &amp;amp; Linux Run Level | comparison Between Unix and Linux run level&lt;/b&gt;&lt;br /&gt;Same Run Level Linux and Unix System&lt;br /&gt;1,2,3,4,6 these Rune level are same&lt;br /&gt;&lt;b&gt; Different run level &lt;/b&gt;&lt;br /&gt;&lt;table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: medium none;"&gt;&lt;tbody&gt;&lt;tr&gt;   &lt;td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 221.4pt;" valign="top" width="295"&gt;&lt;div class="MsoNormal"&gt;Linux&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 221.4pt;" valign="top" width="295"&gt;&lt;div class="MsoNormal"&gt;Unix&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 221.4pt;" valign="top" width="295"&gt;&lt;div class="MsoNormal"&gt;0- single user mode&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 221.4pt;" valign="top" width="295"&gt;&lt;div class="MsoNormal"&gt;0 system running under PROM&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 221.4pt;" valign="top" width="295"&gt;&lt;div class="MsoNormal"&gt;5 Graphical user mode&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 221.4pt;" valign="top" width="295"&gt;&lt;div class="MsoNormal"&gt;5 shut down&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;tr&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext; border-style: none solid solid; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 221.4pt;" valign="top" width="295"&gt;&lt;div class="MsoNormal"&gt;S,s Not available&lt;/div&gt;&lt;/td&gt;   &lt;td style="border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-style: none solid solid none; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 221.4pt;" valign="top" width="295"&gt;&lt;div class="MsoNormal"&gt;S,s single user mode with   critical file system&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-739693379913085988?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/739693379913085988/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2010/11/unix-important-run-level-difference.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/739693379913085988'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/739693379913085988'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2010/11/unix-important-run-level-difference.html' title='Unix Important Run Level | Difference between Linux and Unix Run level'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-3628818108510513714</id><published>2010-11-22T14:23:00.001-08:00</published><updated>2010-11-22T14:24:02.776-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='UNIX'/><title type='text'>Solaris Administration Package Information Patches Information</title><content type='html'>&lt;b&gt;Pkgtrans&lt;/b&gt;-Translate package from one format to another&lt;br /&gt;&lt;b&gt;Pkgadd&lt;/b&gt;- install package&lt;br /&gt;&lt;b&gt;Pkgrm&lt;/b&gt; – Remove the Package&lt;br /&gt;&lt;b&gt;Pkginfo-Display the package information&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Pkgchk&lt;/b&gt;-check  the Package Installation state&lt;br /&gt;&lt;br /&gt;&lt;b&gt;/var/sadm/pkg &lt;/b&gt;directory maintain the record of al installed package&lt;br /&gt;#&lt;b&gt;pkginfo –l&lt;/b&gt;&lt;br /&gt;#&lt;b&gt;pkginfo&lt;/b&gt; –l SUNWman  Information about specific package&lt;span class="fullpost"&gt;&lt;br /&gt;&lt;br /&gt;PATCH IN Sun Solaris OE&lt;br /&gt;Patch contains the collection of files and directories.Some patch contain the product enhancement&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-3628818108510513714?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/3628818108510513714/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2010/11/solaris-administration-package.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/3628818108510513714'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/3628818108510513714'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2010/11/solaris-administration-package.html' title='Solaris Administration Package Information Patches Information'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-66452621269744260</id><published>2010-11-22T14:20:00.000-08:00</published><updated>2011-06-06T04:54:00.650-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='UNIX'/><title type='text'>Maintain The Data Consistencies Using  fsck Command</title><content type='html'>System maintain the Data consistencies using fsck command.&lt;br /&gt;&lt;b&gt;It is Maintain the Data Consistency in the Following Format&lt;/b&gt;&lt;br /&gt;&lt;span style="background-color: white;"&gt;&lt;span style="color: magenta;"&gt;1)Data block consistency&lt;/span&gt;,&lt;/span&gt; 2&lt;span style="background-color: white;"&gt;&lt;/span&gt;)Cylinder Ground&lt;br /&gt;Block Consistency &lt;span style="color: #660000;"&gt;3)Super Block Consistency,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: magenta;"&gt;4)Lost+found Directory&lt;/span&gt; 5)inode consistency&lt;br /&gt;&lt;b&gt;Fsck usage in Unix&lt;/b&gt;&lt;br /&gt;#fsck /dev/rdsk/c0t0d0s7&lt;br /&gt;#fsck /export/home&lt;br /&gt;#fsck –o f,p /dev/rdsk/c0t0d0s5 – check repair the file system&lt;br /&gt;f- Force&lt;br /&gt;p- Non Interactive - Automatic Repair&lt;span class="fullpost"&gt; - without ask yes/no&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;To use backup super block&lt;br /&gt;#fsck –o b=32 /dev/rdsk/c0t0d0s7&lt;br /&gt;Unix Command quot – Summarize File system Owner ship&lt;br /&gt;In the Linux Operating system while Booting it will check file system,it is metion the /etc/fstab whether it is need to check or not the file system while booting.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-66452621269744260?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/66452621269744260/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2010/11/maintain-data-consistencies-using-fsck.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/66452621269744260'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/66452621269744260'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2010/11/maintain-data-consistencies-using-fsck.html' title='Maintain The Data Consistencies Using  fsck Command'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-1604898404689940784</id><published>2010-11-22T14:16:00.000-08:00</published><updated>2010-11-22T14:21:27.810-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='UNIX'/><title type='text'>Unix Important File System -Unix File System UFS UDFS tmfs swapfs</title><content type='html'>&lt;b&gt;UFS-&lt;/b&gt; Unix File System- it contain the Disk Label,bootblk,Primary superblock,First cylinder Group,Backup Super block,Cylinder Group Block,Inode Table,Data block, then it contain the same thing in the Secondary Group.&lt;br /&gt;&lt;b&gt;Bootstrap Program &lt;/b&gt;-&lt;b&gt;Boot Block-bootblk &lt;/b&gt;–- only the root file system has an active boot block.&lt;br /&gt;&lt;a href="http://www.blogger.com/IMAGE%20URL" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="Sun Solar is UNIX File system" border="0" id="BLOGGER_PHOTO_ID_5444550261142442466" src="http://2.bp.blogspot.com/_Gmn-kEVg3hk/TOrrIUqPaGI/AAAAAAAABVE/fvyMmqT0LFw/s1600/sun+solaris+UFS+file+system.JPG" style="cursor: pointer; display: block; height: 253px; margin: 0px auto 10px; text-align: center; width: 200px;" /&gt;&lt;/a&gt;&lt;br /&gt;How To Create New ufs file system.&lt;br /&gt;#newfs /dev/rdsk/c1t0d0s0&lt;br /&gt;&lt;b&gt;udfs –&lt;/b&gt; &lt;b&gt;Universal Disk Format File system&lt;/b&gt;&lt;br /&gt;&lt;b&gt;tmfs-&lt;/b&gt; &lt;b&gt;Temporary File system&lt;/b&gt;- tmpfs file system is create and destroyed every time system is rebooted.&lt;br /&gt;&lt;b&gt;Swapfs&lt;/b&gt;- &lt;b&gt;Swap file system&lt;/b&gt; kernel manage swap space on disk&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-1604898404689940784?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/1604898404689940784/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2010/11/unix-important-file-system-unix-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/1604898404689940784'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/1604898404689940784'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2010/11/unix-important-file-system-unix-file.html' title='Unix Important File System -Unix File System UFS UDFS tmfs swapfs'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_Gmn-kEVg3hk/TOrrIUqPaGI/AAAAAAAABVE/fvyMmqT0LFw/s72-c/sun+solaris+UFS+file+system.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-2030924940191422849</id><published>2010-11-19T13:15:00.000-08:00</published><updated>2010-11-19T13:30:47.216-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='server configuration'/><title type='text'>How To Configure Kick Start In Red hat Linux</title><content type='html'>By using Kick start we can do remote installation using NFS,http,FTP,CD-ROM,&lt;br /&gt;if we want to install lot of system with same configuration,&lt;br /&gt;we can create the configuration file (ks.cfg -kick start file) This method is known as Kick start.&lt;br /&gt;#&lt;b&gt;yum install system-config-kickstart&lt;/b&gt; &amp;gt;&amp;gt; install the kick start&lt;br /&gt;#&lt;b&gt;system-config-kickstart&lt;/b&gt; &amp;gt;&amp;gt; open the kick start GUI Windows&lt;br /&gt;while in these set-up it will ask the basic setting about&lt;br /&gt;Basic configuration,Installation Method,Boot Loader Option,Partition Information,Network configuration,Authentication,Firewall Configuration,Display configuration,Package selection,Pre-installation script,Post-installation script,&lt;br /&gt;Generate ks.cfg file&lt;br /&gt;Add the following line.&lt;span class="fullpost"&gt;&lt;br /&gt;@admin-tools&lt;br /&gt;@base&lt;br /&gt;@base-x&lt;br /&gt;@core&lt;br /&gt;@dialup&lt;br /&gt;@editors&lt;br /&gt;@games&lt;br /&gt;@gnome-desktop&lt;br /&gt;@graphical-internet&lt;br /&gt;@graphics&lt;br /&gt;@java&lt;br /&gt;@office&lt;br /&gt;@printing&lt;br /&gt;@sound-and-video&lt;br /&gt;@text-internet&lt;br /&gt;Then save these file as ks.cfg&lt;br /&gt;&lt;b&gt;For NFS through Kicks start installation&lt;/b&gt;&lt;br /&gt;#mkdir /rhel5kickstart&lt;br /&gt;#cp ks.cfg /rhel5kickstart&lt;br /&gt;&lt;b&gt;ADD the following line under /etc/export&lt;/b&gt;s&lt;br /&gt;/rhel5kickstart *(rw)&lt;br /&gt;#service nfs restart&lt;br /&gt;If we use the http web server copy the ks.cfg file into /var/ww/html web server Document Root Directory.&lt;br /&gt;In the client System&lt;br /&gt;#Boot:linux ks &amp;gt;&amp;gt; if it NFS&lt;br /&gt;&lt;b&gt;#boot:&lt;span style="color: red;"&gt;linux ks&lt;/span&gt;=&lt;/b&gt;&lt;b style="color: blue;"&gt;http://192.168.0.1/ks.cfg&lt;/b&gt; &amp;gt;&amp;gt; we need to configure web server | kickstart file ks.cfg&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-2030924940191422849?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/2030924940191422849/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2010/11/how-to-configure-kick-start-in-red-hat.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/2030924940191422849'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/2030924940191422849'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2010/11/how-to-configure-kick-start-in-red-hat.html' title='How To Configure Kick Start In Red hat Linux'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-3313999812341547997</id><published>2010-11-19T13:05:00.000-08:00</published><updated>2010-11-19T13:06:44.650-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='server configuration'/><title type='text'>How To Install FTP  in Redhat Linux vsftpd-very secure ftp daemon</title><content type='html'>&lt;b&gt;1)Install the vsftp package&lt;/b&gt;&lt;br /&gt;#yum install vsftp*&lt;br /&gt;&lt;b&gt;2)switch on the vsftp&lt;/b&gt;&lt;br /&gt;#chkconfig vsftpd on&lt;br /&gt;Then check whether vsftpd is installed and working perfeclty or not&lt;br /&gt;We can also verify whether vsftpd function is running or not&lt;br /&gt;#netstat -a | grep ftp&lt;br /&gt;#netstat -tulpn | grep :21&lt;br /&gt;-l list the listening server socket&lt;br /&gt;-p display PID/program name for socket&lt;br /&gt;-n numeric&lt;br /&gt;&lt;b&gt;How To Connect The FTP&lt;/b&gt;&lt;br /&gt;#ftp IPADDRESS&lt;span class="fullpost"&gt;&lt;br /&gt;Enter the User Name And Password or anonumous&lt;br /&gt;After connect we can get the information regarding send and receive file using help command &lt;br /&gt;&lt;b&gt;Important ftp Configuration&amp;nbsp; file&lt;/b&gt;&lt;br /&gt;&lt;b style="color: blue;"&gt;/etc/vsftpd/ftpuse&lt;/b&gt;&lt;b style="color: blue;"&gt;rs&lt;/b&gt; &amp;gt;&amp;gt; list of user allowed or denied Permanently(userlist_enable , userli&lt;br /&gt;&lt;span style="color: #660000;"&gt;&lt;b style="color: #660000;"&gt;/etc/vsftpd/user_list&lt;/b&gt; &lt;/span&gt;&amp;gt;&amp;gt; list of user allowed or denied&lt;br /&gt;&lt;b&gt;&lt;span style="color: magenta;"&gt;/etc/vsftpd/vsftpd.conf&lt;/span&gt;&lt;/b&gt; &amp;gt;&amp;gt; configuration file&lt;br /&gt;if userlist_deny=NO, only allow users in this file&lt;br /&gt;else if userlist_deny=YES (default), never allow users in this file&lt;br /&gt;FTP Port Number&lt;br /&gt;ftp 20 data&lt;br /&gt;ftp 21 control&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-3313999812341547997?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/3313999812341547997/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2010/11/how-to-install-ftp-in-redhat-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/3313999812341547997'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/3313999812341547997'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2010/11/how-to-install-ftp-in-redhat-linux.html' title='How To Install FTP  in Redhat Linux vsftpd-very secure ftp daemon'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-4714358750222269920</id><published>2010-11-19T04:00:00.000-08:00</published><updated>2011-10-27T00:20:36.907-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='File System'/><category scheme='http://www.blogger.com/atom/ns#' term='server configuration'/><title type='text'>How To Create Primary Extended Logical Linux windows File System</title><content type='html'>Whenever we create the file system. it will create the &lt;b style="color: #4c1130;"&gt;Primary Partition&lt;/b&gt;,&lt;b style="color: magenta;"&gt;Extended Partition&lt;/b&gt;,&lt;b style="color: blue;"&gt;Logical Partition&lt;/b&gt;, it is applicable for all Linux and Windows Operation System,&lt;br /&gt;Primary Paritition&amp;gt;&amp;gt; Operating System will be install. We will create the four primary partition.&lt;br /&gt;Then Extended Partition will be created. under these extended partition Logical partition will be create.&lt;span class="fullpost"&gt;&lt;br /&gt;For Example If we create the extended partition up to 4GB.Under the 4GB we can create the Logical Partition.Like &lt;br /&gt;&lt;b&gt;&lt;span style="color: magenta;"&gt;LogVol00&lt;/span&gt;  / ext3&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color: magenta;"&gt;LogVol01&lt;/span&gt;  swap&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="color: magenta;"&gt;/dev/sda1&lt;/span&gt;   /boot&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;If we create the custom Layout it will create the partition like following&lt;br /&gt;/dev/sda1  / ext3&lt;br /&gt;/dev/sda2 /usr ext3&lt;br /&gt;/dev/sda3  swap&lt;br /&gt;/dev/sda4  Extended&lt;br /&gt;/dev/sda5 /disk3 ext3&lt;br /&gt;/dev/sda6 /disk2 ext3&lt;br /&gt;Here &lt;b style="color: blue;"&gt;/dev/sda4 is Extended&lt;/b&gt; under these Extended we &lt;span style="color: magenta;"&gt;/&lt;/span&gt;&lt;b style="color: magenta;"&gt;dev/sda5,6 these two logical partition&lt;/b&gt;&lt;span style="color: magenta;"&gt; &lt;/span&gt;will be create. &lt;/span&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_Gmn-kEVg3hk/TOZn8CPhuJI/AAAAAAAABVA/-iLRfOTO6ZE/s320/primary+extended+logical+Linux+windows+file+system.png"&gt;&lt;img alt="Linux redhat windows Filsystem primary parition" border="0" id="BLOGGER_PHOTO_ID_5444550261142442466" src="http://2.bp.blogspot.com/_Gmn-kEVg3hk/TOZn8CPhuJI/AAAAAAAABVA/-iLRfOTO6ZE/s320/primary+extended+logical+Linux+windows+file+system.png" style="cursor: pointer; display: block; height: 323px; margin: 0px auto 10px; text-align: center; width: 400px;" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-4714358750222269920?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/4714358750222269920/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2010/11/primary-extended-logical-linux-windows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/4714358750222269920'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/4714358750222269920'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2010/11/primary-extended-logical-linux-windows.html' title='How To Create Primary Extended Logical Linux windows File System'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_Gmn-kEVg3hk/TOZn8CPhuJI/AAAAAAAABVA/-iLRfOTO6ZE/s72-c/primary+extended+logical+Linux+windows+file+system.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-2561620049633545746</id><published>2010-11-18T15:20:00.000-08:00</published><updated>2010-11-18T15:20:34.705-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unix C Program'/><title type='text'>Write C-Program To Create Message Queue Print Message queue id | Remove The Message Queue.</title><content type='html'>&lt;b&gt;Create Print Message queue id | Remove The Message Queue.&lt;/b&gt;&lt;br /&gt;#include&amp;amp;alt;sys/types.h&amp;gt;&lt;br /&gt;#include&amp;amp;alt;sys/ipc.h&amp;gt;&lt;br /&gt;#include&amp;amp;alt;sys/msg.h&amp;gt;&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;key_t key = 100;&lt;br /&gt;int i,msqid;&lt;br /&gt;msqid = msgget(key,IPC_CREAT | 0666);&lt;br /&gt;if (msqid &amp;amp;alt; 0)&lt;br /&gt;perror ("faild to creat message q");&lt;br /&gt;else&lt;br /&gt;perror("creat message q");&lt;span class="fullpost"&gt;&lt;br /&gt;}&lt;br /&gt;Create Message Queue&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Print message queue id.&lt;/b&gt;&lt;br /&gt;#include &amp;amp;alt;sys/types.h&amp;gt;&lt;br /&gt;#include &amp;amp;alt;sys/ipc.h&amp;gt;&lt;br /&gt;#include &amp;amp;alt;sys/msg.h&amp;gt;&lt;br /&gt;#define KEY ((key_t) 98765L)&lt;br /&gt;#define PERMS 0666&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;int i, msqid;&lt;br /&gt;for(i = 0; i &amp;amp;alt; 10; i++)&lt;br /&gt;{&lt;br /&gt;if ( (msqid = msgget(KEY, PERMS | IPC_CREAT)) &amp;amp;alt; 0)&lt;br /&gt;perror("cant creat message q");&lt;br /&gt;printf("msqid = %d\n", msqid);&lt;br /&gt;if (msgctl(msqid, IPC_RMID, (struct msqid_ds *) 0) &amp;amp;alt; 0 )&lt;br /&gt;perror("cant remove message q");&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;print message queue id.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Remove the message queue.&lt;/b&gt;&lt;br /&gt;#include&amp;amp;alt;sys/ipc.h&amp;gt;&lt;br /&gt;#include&amp;amp;alt;stdio.h&amp;gt;&lt;br /&gt;#include&amp;amp;alt;sys/msg.h&amp;gt;&lt;br /&gt;#include&amp;amp;alt;errno.h&amp;gt;&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;key_t key = 100;&lt;br /&gt;int i,msqid;&lt;br /&gt;if(msgctl(msqid,IPC_RMID,0)&amp;amp;alt;0)&lt;br /&gt;{&lt;br /&gt;perror("msgctl fail ");&lt;br /&gt;}&lt;br /&gt;} Remove the message queue.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-2561620049633545746?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/2561620049633545746/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2010/11/write-c-program-to-create-message-queue.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/2561620049633545746'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/2561620049633545746'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2010/11/write-c-program-to-create-message-queue.html' title='Write C-Program To Create Message Queue Print Message queue id | Remove The Message Queue.'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-1830436842913439891</id><published>2010-11-18T15:16:00.000-08:00</published><updated>2010-11-18T15:16:53.037-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unix C Program'/><title type='text'>Write a c-program to create a semaphore.</title><content type='html'>c-program to create a semaphore.&lt;br /&gt;#include&amp;alt;stdio.h&amp;gt;&lt;br /&gt;#include&amp;alt;sys/types.h&amp;gt;&lt;br /&gt;#include&amp;alt;sys/ipc.h&amp;gt;&lt;br /&gt;#include&amp;alt;sys/sem.h&amp;gt;&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;int semid, key,nsems;&lt;br /&gt;key = (key_t)0x20;&lt;span class="fullpost"&gt;&lt;br /&gt;nsems = 1;&lt;br /&gt;semid = semget(key,nsems,IPC_CREAT | 0666);&lt;br /&gt;printf("created semaphore id %d\n,semid");&lt;br /&gt;}&lt;br /&gt;c-program to create a semaphore.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-1830436842913439891?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/1830436842913439891/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2010/11/write-c-program-to-create-semaphore.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/1830436842913439891'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/1830436842913439891'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2010/11/write-c-program-to-create-semaphore.html' title='Write a c-program to create a semaphore.'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-428745805940113702</id><published>2010-11-18T15:15:00.001-08:00</published><updated>2010-11-18T15:15:20.018-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unix C Program'/><title type='text'>Write a c-program to create a shared memory.</title><content type='html'>c-program to create a shared memory.#include&amp;lt;stdio.h&amp;alt;&lt;br /&gt;#include&amp;lt;sys/types.h&amp;alt;&lt;br /&gt;#include&amp;lt;sys/ipc.h&amp;alt;&lt;br /&gt;#include&amp;lt;sys/shm.h&amp;alt;&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;int shmid;&lt;br /&gt;shmid = shmget((key_t)0x1000, 10, IPC_CREAT | 0666);&lt;br /&gt;if(shmid &amp;lt; 0)&lt;span class="fullpost"&gt;&lt;br /&gt;{&lt;br /&gt;printf("creation of shared memory segment failed");&lt;br /&gt;}&lt;br /&gt;printf("successfully created with shmid %d \n",shmid);&lt;br /&gt;}c-program to create a shared memory.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-428745805940113702?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/428745805940113702/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2010/11/write-c-program-to-create-shared-memory.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/428745805940113702'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/428745805940113702'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2010/11/write-c-program-to-create-shared-memory.html' title='Write a c-program to create a shared memory.'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-4532012561128941645</id><published>2010-11-18T15:14:00.001-08:00</published><updated>2010-11-18T15:14:08.187-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unix C Program'/><title type='text'>Write A C-Program To Demonstrate Socket For Stream Server.</title><content type='html'>Demonstrate Socket For Stream Server.&lt;br /&gt;include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include&amp;lt;sys/types.h&amp;gt;&lt;br /&gt;#include&amp;lt;sys/socket.h&amp;gt;&lt;br /&gt;#include&amp;lt;errno.h&amp;gt;&lt;br /&gt;#include&amp;lt;netinet/in.h&amp;gt;&lt;br /&gt;main(int argc,char *argv[])&lt;br /&gt;{&lt;br /&gt;int sockfd,newfd,child,nbytes,nbyte;&lt;br /&gt;struct sockaddr_in myaddr;&lt;br /&gt;char buff[512];&lt;br /&gt;if(argc!=2)&lt;br /&gt;{&lt;br /&gt;printf("usage: server port\n");&lt;br /&gt;}&lt;br /&gt;if((sockfd=socket(AF_INET,SOCK_STREAM,0))&amp;lt;0)&lt;span class="fullpost"&gt;&lt;br /&gt;{&lt;br /&gt;perror("socket failed");&lt;br /&gt;}&lt;br /&gt;myaddr.sin_family=AF_INET;&lt;br /&gt;myaddr.sin_port=htons(atoi(argv[1]));&lt;br /&gt;myaddr.sin_addr.s_addr=htonl(0);&lt;br /&gt;if(bind(sockfd,(struct sockaddr *) &amp;myaddr,sizeof(myaddr))&amp;lt;0)&lt;br /&gt;{&lt;br /&gt;perror("bind failed");&lt;br /&gt;}&lt;br /&gt;if(listen(sockfd,5)&amp;lt;0)&lt;br /&gt;{&lt;br /&gt;perror("listen failed");&lt;br /&gt;}&lt;br /&gt;for( ; ; )&lt;br /&gt;{&lt;br /&gt;if((newfd=accept(sockfd,0,0))&amp;lt;0)&lt;br /&gt;PAGE NO.&lt;br /&gt;47&lt;br /&gt;47&lt;br /&gt;SWARNA BHARATHI COLLEGE OF ENGINEERING MCA III SEM&lt;br /&gt;{&lt;br /&gt;perror("accept failed");&lt;br /&gt;}&lt;br /&gt;if((child=fork())&amp;lt;0)&lt;br /&gt;{&lt;br /&gt;perror("fork failed");&lt;br /&gt;}&lt;br /&gt;if(child==0)&lt;br /&gt;{&lt;br /&gt;close(sockfd);&lt;br /&gt;while((nbytes=read(newfd,buff,512))!=0)&lt;br /&gt;{&lt;br /&gt;if(nbytes&amp;lt;0)&lt;br /&gt;{&lt;br /&gt;perror("read eroor");&lt;br /&gt;}&lt;br /&gt;nbyte=sizeof(buff);&lt;br /&gt;if(write(newfd,buff,nbytes)!=nbytes)&lt;br /&gt;{&lt;br /&gt;perror(" write failed:server");&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;Demonstrate Socket For Stream Server.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-4532012561128941645?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/4532012561128941645/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2010/11/write-c-program-to-demonstrate-socket_18.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/4532012561128941645'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/4532012561128941645'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2010/11/write-c-program-to-demonstrate-socket_18.html' title='Write A C-Program To Demonstrate Socket For Stream Server.'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-9160028066330268661</id><published>2010-11-18T15:12:00.000-08:00</published><updated>2010-11-18T15:13:07.988-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unix C Program'/><title type='text'>Write A C-Program To Demonstrate Socket For Stream Client.</title><content type='html'>Demonstrate Socket For Stream Client.&lt;br /&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include&amp;lt;sys/socket.h&amp;gt;&lt;br /&gt;#include&amp;lt;sys/types.h&amp;gt;&lt;br /&gt;#include&amp;lt;arpa/inet.h&amp;gt;&lt;br /&gt;#include&amp;lt;errno.h&amp;gt;&lt;br /&gt;#include&amp;lt;netinet/in.h&amp;gt;&lt;br /&gt;#define SERV_HOST_ADDR "192.168.1.42"&lt;br /&gt;main(int argc,char *argv[])&lt;br /&gt;{&lt;br /&gt;int sockfd,nbytes,nbyte,newfd;&lt;br /&gt;char buff[512];&lt;br /&gt;struct sockaddr_in seraddr;&lt;br /&gt;if(argc!=3)&lt;br /&gt;{&lt;br /&gt;printf("usage port: client serverport,servaddr\n");&lt;br /&gt;}&lt;br /&gt;if((sockfd=socket(AF_INET,SOCK_STREAM,0))&amp;lt;0)&lt;br /&gt;{&lt;br /&gt;perror("socket failed");&lt;span class="fullpost"&gt;&lt;br /&gt;}&lt;br /&gt;seraddr.sin_family=AF_INET;&lt;br /&gt;seraddr.sin_port=htons(3490);&lt;br /&gt;seraddr.sin_addr.s_addr=inet_addr(SERV_HOST_ADDR);&lt;br /&gt;if(connect(sockfd,(struct sockaddr *) &amp;seraddr,sizeof(seraddr))&amp;lt;0)&lt;br /&gt;{&lt;br /&gt;perror("connection failed");&lt;br /&gt;}&lt;br /&gt;while((nbytes=read(0,buff,512))!=0)&lt;br /&gt;{&lt;br /&gt;if(nbytes&amp;lt;0)&lt;br /&gt;{&lt;br /&gt;perror("read fail");&lt;br /&gt;PAGE NO.&lt;br /&gt;49&lt;br /&gt;49&lt;br /&gt;SWARNA BHARATHI COLLEGE OF ENGINEERING MCA III SEM&lt;br /&gt;}&lt;br /&gt;if(write(sockfd,buff,nbytes)!=nbytes)&lt;br /&gt;{&lt;br /&gt;perror("write failed");&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;if((nbyte=read(sockfd,buff,512))!=nbytes)&lt;br /&gt;{&lt;br /&gt;perror("read failed");&lt;br /&gt;}&lt;br /&gt;if(write(newfd,buff,nbytes)!= nbytes)&lt;br /&gt;{&lt;br /&gt;perror("write failed");&lt;br /&gt;}&lt;br /&gt;}Write a c-program to demonstrate socket for stream client.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-9160028066330268661?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/9160028066330268661/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2010/11/write-c-program-to-demonstrate-socket.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/9160028066330268661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/9160028066330268661'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2010/11/write-c-program-to-demonstrate-socket.html' title='Write A C-Program To Demonstrate Socket For Stream Client.'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-1433984536684585293</id><published>2010-11-10T13:00:00.000-08:00</published><updated>2010-11-10T13:13:52.298-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unix C Program'/><title type='text'>Demonstrate Socket For Datagram Client Unix C Program</title><content type='html'>Important Funciton and Keyword For socket Data gram For client&lt;br /&gt;Initialize the variable &lt;br /&gt;int sockfd,nbytes,addrlen;&lt;br /&gt;Check Using If function, struct sockaddr_in *, &amp;amp;myaddr,sizeof(myaddr is Greater Than zero&lt;br /&gt;if(bind(sockfd,(struct sockaddr_in *) &amp;amp;myaddr,sizeof(myaddr))&amp;lt;0)&lt;br /&gt;struct sockaddr_in myaddr,servaddr;&lt;br /&gt;&lt;div style="color: red;"&gt;&lt;b&gt;Source Code Programming For Socket Data gram Client &lt;/b&gt;&lt;/div&gt;&amp;nbsp;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include&amp;lt;errno.h&amp;gt;&lt;br /&gt;#include&amp;lt;sys/types.h&amp;gt;&lt;br /&gt;#include&amp;lt;sys/socket.h&amp;gt;&lt;br /&gt;#include&amp;lt;netinet/in.h&amp;gt;&lt;br /&gt;main(int argc,char * argv[])&lt;br /&gt;{&lt;br /&gt;int sockfd,nbytes,addrlen;&lt;br /&gt;char buff[512];&lt;br /&gt;struct sockaddr_in myaddr,servaddr;&lt;span class="fullpost"&gt;&lt;br /&gt;if(argc!=2)&lt;br /&gt;{&lt;br /&gt;printf("usage port: client");&lt;br /&gt;}&lt;br /&gt;if((sockfd=socket(AF_INET,SOCK_DGRAM,0))&amp;lt;0)&lt;br /&gt;{&lt;br /&gt;perror("socket failed: client");&lt;br /&gt;}&lt;br /&gt;myaddr.sin_family=AF_INET;&lt;br /&gt;myaddr.sin_port=htons(INADDR_ANY);&lt;br /&gt;myaddr.sin_addr.s_addr=htonl(0l);&lt;br /&gt;if(bind(sockfd,(struct sockaddr_in *) &amp;amp;myaddr,sizeof(myaddr))&amp;lt;0)&lt;br /&gt;{&lt;br /&gt;perror("bind failed: client");&lt;br /&gt;}&lt;br /&gt;if((nbytes=read(0,buff,512))&amp;lt;0)&lt;br /&gt;{&lt;br /&gt;perror("read failed: client");&lt;br /&gt;}&lt;br /&gt;servaddr.sin_family=AF_INET;&lt;br /&gt;servaddr.sin_port=htons(atoi(argv[1]));&lt;br /&gt;PAGE NO.&lt;br /&gt;52&lt;br /&gt;52&lt;br /&gt;SWARNA BHARATHI COLLEGE OF ENGINEERING MCA III SEM&lt;br /&gt;servaddr.sin_addr.s_addr=htonl(0l);&lt;br /&gt;if(sendto(sockfd,buff,nbytes,0,(struct sockaddr *)&lt;br /&gt;&amp;amp;servaddr,sizeof(servaddr))!=nbytes)&lt;br /&gt;{&lt;br /&gt;perror("send failed: client");&lt;br /&gt;}&lt;br /&gt;if(write(1,buff,nbytes)!=nbytes)&lt;br /&gt;{&lt;br /&gt;perror("write failed: client");&lt;br /&gt;}&lt;br /&gt;}socket for datagram client Unix C Program&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-1433984536684585293?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/1433984536684585293/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2010/11/demonstrate-socket-for-datagram-client.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/1433984536684585293'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/1433984536684585293'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2010/11/demonstrate-socket-for-datagram-client.html' title='Demonstrate Socket For Datagram Client Unix C Program'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-6810046329030063003</id><published>2010-11-10T12:56:00.000-08:00</published><updated>2010-11-10T13:03:02.875-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux shell programming'/><category scheme='http://www.blogger.com/atom/ns#' term='Unix C Program'/><title type='text'>Demonstrate Socket For Server Linux Unix C programming</title><content type='html'>cpp-program to demonstrate socket for server.&lt;br /&gt;Important Function And keyword.&lt;br /&gt;Initialize the socket&lt;br /&gt;int sockfd=socket(AF_INET,SOCK_STREAM,0);&lt;br /&gt;Get the Hostname&lt;br /&gt;gethostname(hostname,48);&lt;br /&gt;Assign the PortNumber&lt;br /&gt;cout&amp;lt;&amp;lt;", port: "&amp;lt;&lt;ntohs(s1.sin_port)&gt;&amp;lt;&amp;lt;"\n\n";&lt;/ntohs(s1.sin_port)&gt;&lt;br /&gt;&lt;ntohs(s1.sin_port)&gt; &lt;b style="color: red;"&gt;Source Code Programming For Server Socket&amp;nbsp;&lt;/b&gt;&lt;/ntohs(s1.sin_port)&gt;&lt;br /&gt;&lt;ntohs(s1.sin_port)&gt;#include&amp;lt;&lt;br /&gt;sys/socket.h&amp;gt; &lt;br /&gt;#include&amp;lt;arpa/inet.h&amp;gt;&lt;br /&gt;#include&amp;lt;iostream.h&amp;gt; &lt;br /&gt;#include&amp;lt;sys/types.h&amp;gt; &lt;br /&gt;#include&amp;lt;string.h&amp;gt; i&lt;br /&gt;nt makelistener() { int sockfd=socket(AF_INET,SOCK_STREAM,0); if(sockfd&amp;lt;0)&lt;span class="fullpost"&gt;&lt;br /&gt;{&lt;br /&gt;cerr&amp;lt;&amp;lt;"could not create socket\n";&lt;br /&gt;return -1;&lt;br /&gt;}&lt;br /&gt;struct sockaddr_in s1;&lt;br /&gt;bzero((char *) &amp;amp;s1,sizeof(s1));&lt;br /&gt;s1.sin_family=AF_INET;&lt;br /&gt;s1.sin_addr.s_addr=INADDR_ANY;&lt;br /&gt;s1.sin_port=0;&lt;br /&gt;if(bind(sockfd,(sockaddr *) &amp;amp;s1,sizeof(s1))&amp;lt;0)&lt;br /&gt;{&lt;br /&gt;cerr&amp;lt;&amp;lt;"could n't bind address to socket\n";&lt;br /&gt;return -1;&lt;br /&gt;}&lt;br /&gt;char hostname[48];&lt;br /&gt;gethostname(hostname,48);&lt;br /&gt;size_t length;&lt;br /&gt;length=sizeof(s1);&lt;br /&gt;getsockname(sockfd,(sockaddr *) &amp;amp;s1,&amp;amp;length);&lt;br /&gt;cout&amp;lt;&amp;lt;"\nlistening on host: "&amp;lt;&amp;lt;hostname;&lt;br /&gt;cout&amp;lt;&amp;lt;", port: "&amp;lt;&amp;lt;ntohs(s1.sin_port)&amp;lt;&amp;lt;"\n\n";&lt;br /&gt;if(listen(sockfd,1)&amp;lt;0)&lt;br /&gt;{&lt;br /&gt;PAGE NO.&lt;br /&gt;54&lt;br /&gt;54&lt;br /&gt;SWARNA BHARATHI COLLEGE OF ENGINEERING MCA III SEM&lt;br /&gt;cerr&amp;lt;&amp;lt;"couldn't listen().\n";&lt;br /&gt;return -1;&lt;br /&gt;}&lt;br /&gt;cout&amp;lt;&amp;lt;"ready for incoming connections\n";&lt;br /&gt;return sockfd;&lt;br /&gt;}&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;int sockfd=makelistener();&lt;br /&gt;if(sockfd&amp;lt;0)&lt;br /&gt;return -1;&lt;br /&gt;for( ; ;)&lt;br /&gt;{&lt;br /&gt;cout&amp;lt;&amp;lt;"server waiting for connections\n";&lt;br /&gt;struct sockaddr_in s2;&lt;br /&gt;size_t length=sizeof(s2);&lt;br /&gt;int conn=accept(sockfd,(sockaddr *) &amp;amp;s2,&amp;amp;length);&lt;br /&gt;cout&amp;lt;&amp;lt;"server accepted connection\t: "&amp;lt;&amp;lt;conn&amp;lt;&amp;lt;"\n";&lt;br /&gt;char data[128];&lt;br /&gt;char message1[128];&lt;br /&gt;int ack1;&lt;br /&gt;int msglen=read(conn,data,128);&lt;br /&gt;cout&amp;lt;&amp;lt;"server got "&amp;lt;&amp;lt;msglen&amp;lt;&amp;lt;" byte message: "&amp;lt;&amp;lt;data&amp;lt;&amp;lt;"\n";&lt;br /&gt;write(conn,&amp;amp;msglen,sizeof(msglen));&lt;br /&gt;cout&amp;lt;&amp;lt;"enter message for client\n";&lt;br /&gt;cin.getline(message1,128);&lt;br /&gt;write(conn,message1,strlen(message1));&lt;br /&gt;read(conn,&amp;amp;ack1,sizeof(ack1));&lt;br /&gt;cout&amp;lt;&amp;lt;"the client got "&amp;lt;&amp;lt;ack1&amp;lt;&amp;lt;" bytes\n";&lt;br /&gt;close(conn);&lt;br /&gt;return 0;&lt;br /&gt;}&lt;br /&gt;return demonstrate socket for server &lt;/span&gt;&lt;/ntohs(s1.sin_port)&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-6810046329030063003?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/6810046329030063003/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2010/11/cpp-program-to-demonstrate-socket-for_10.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/6810046329030063003'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/6810046329030063003'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2010/11/cpp-program-to-demonstrate-socket-for_10.html' title='Demonstrate Socket For Server Linux Unix C programming'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-2889625074781756746</id><published>2010-11-10T12:49:00.000-08:00</published><updated>2010-11-10T13:14:46.868-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux shell programming'/><category scheme='http://www.blogger.com/atom/ns#' term='Unix C Program'/><title type='text'>cpp-program To Demonstrate Socket For Client.</title><content type='html'>C Program To Demonstrate Socket&amp;nbsp; For Client. Her I mention the Important Function to perform the socket.&lt;br /&gt;&lt;b&gt;cin.getline(server_host,80);&lt;/b&gt;&lt;br /&gt;struct hostent *hostptr=gethostbyname(server_host);&lt;br /&gt;&lt;b&gt;bcopy(hostptr-&amp;gt;h_addr, (char *) &amp;amp;dest.sin_addr, hostptr-&amp;gt;h_length);#include&amp;lt;iostream.h&amp;gt;&lt;/b&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;Source Coding For socket Client &lt;/b&gt;&lt;/span&gt;&lt;/div&gt;#include&amp;lt;sys/types.h&amp;gt;&lt;br /&gt;#include&amp;lt;netdb.h&amp;gt;&lt;br /&gt;#include&amp;lt;arpa/inet.h&amp;gt;&lt;br /&gt;#include&amp;lt;unistd.h&amp;gt;&lt;br /&gt;#include&amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include&amp;lt;string.h&amp;gt;&lt;span class="fullpost"&gt;&lt;br /&gt;int serverconnect()&lt;br /&gt;{&lt;br /&gt;char server_host[80];&lt;br /&gt;u_short server_port;&lt;br /&gt;cout&amp;lt;&amp;lt;"enter the hostname the server is running on\n";&lt;br /&gt;cin.getline(server_host,80);&lt;br /&gt;cout&amp;lt;&amp;lt;"enter the port number the server is listening on\n";&lt;br /&gt;cin&amp;gt;&amp;gt;server_port;&lt;br /&gt;cin.ignore(1,'\n');&lt;br /&gt;int sock;&lt;br /&gt;sock=socket(AF_INET,SOCK_STREAM,0);&lt;br /&gt;struct sockaddr_in dest;&lt;br /&gt;bzero((char *) &amp;amp;dest,sizeof(dest));&lt;br /&gt;struct hostent *hostptr=gethostbyname(server_host);&lt;br /&gt;if(NULL==hostptr)&lt;br /&gt;{&lt;br /&gt;cerr&amp;lt;&amp;lt;"error looking up host "&amp;lt;&amp;lt;server_host&amp;lt;&amp;lt;"\n";&lt;br /&gt;return -1;&lt;br /&gt;}&lt;br /&gt;dest.sin_family=AF_INET;&lt;br /&gt;bcopy(hostptr-&amp;gt;h_addr, (char *) &amp;amp;dest.sin_addr, hostptr-&amp;gt;h_length);&lt;br /&gt;dest.sin_port=htons(server_port);&lt;br /&gt;cout&amp;lt;&amp;lt;"trying to connect\n";&lt;br /&gt;if(connect(sock, (sockaddr *) &amp;amp;dest, sizeof(dest)))&lt;br /&gt;{&lt;br /&gt;PAGE NO.&lt;br /&gt;56&lt;br /&gt;56&lt;br /&gt;SWARNA BHARATHI COLLEGE OF ENGINEERING MCA III SEM&lt;br /&gt;cout&amp;lt;&amp;lt;"couldn't connect\n";&lt;br /&gt;return -1;&lt;br /&gt;}&lt;br /&gt;cout&amp;lt;&amp;lt;"connection established\n";&lt;br /&gt;return sock;&lt;br /&gt;}&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;int conn=serverconnect();&lt;br /&gt;if(conn&amp;lt;0)&lt;br /&gt;return -1;&lt;br /&gt;char data[128];&lt;br /&gt;char message[128];&lt;br /&gt;int ack;&lt;br /&gt;cout&amp;lt;&amp;lt;"enter message for server: \n";&lt;br /&gt;cin.getline(message,128);&lt;br /&gt;write(conn,message,strlen(message));&lt;br /&gt;read(conn,&amp;amp;ack,sizeof(ack));&lt;br /&gt;cout&amp;lt;&amp;lt;"the server got "&amp;lt;&amp;lt;ack&amp;lt;&amp;lt;" bytes\n";&lt;br /&gt;int msglen=read(conn,data,128);&lt;br /&gt;cout&amp;lt;&amp;lt;"client got "&amp;lt;&amp;lt;msglen&amp;lt;&amp;lt;" bytes message: "&amp;lt;&amp;lt;data&amp;lt;&amp;lt;" \n ";&lt;br /&gt;write(conn,&amp;amp;msglen,sizeof(msglen));&lt;br /&gt;close(conn);&lt;br /&gt;return 0;&lt;br /&gt;}&lt;br /&gt;demonstrate socket for client.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-2889625074781756746?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/2889625074781756746/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2010/11/cpp-program-to-demonstrate-socket-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/2889625074781756746'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/2889625074781756746'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2010/11/cpp-program-to-demonstrate-socket-for.html' title='cpp-program To Demonstrate Socket For Client.'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3417169946022348274.post-3844400511748297659</id><published>2010-11-09T13:49:00.000-08:00</published><updated>2010-11-09T13:49:06.515-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Unix Basic Shell SCript Programming- Check Case Sensitive- Find Numer of Links</title><content type='html'>&lt;b&gt;Write a shell program to know whether the given character is a number or&lt;br /&gt;small case letters or capital letters by using ‘case’.&lt;/b&gt;&lt;br /&gt;clear&lt;br /&gt;echo "enter a character"&lt;br /&gt;read c&lt;br /&gt;case $c in&lt;br /&gt;[0-9]) echo "these r numbers";;&lt;br /&gt;[a-z]) echo "these r small";;&lt;br /&gt;[A-Z]) echo "these r caps";;&lt;br /&gt;*)&lt;br /&gt;echo "invalid argument";;&lt;br /&gt;esac&lt;br /&gt;&lt;b&gt;check number or small case letters or capital letters by using ‘case’.&lt;/b&gt;&lt;br /&gt;&lt;b&gt;Write a shell program to perform add, sub, mul, div by choice.&lt;/b&gt;&lt;br /&gt;clear&lt;br /&gt;echo "1.add"&lt;br /&gt;echo "2.sub"&lt;br /&gt;echo "3.mul"&lt;br /&gt;echo "4.div"&lt;br /&gt;echo "enter a,b values"&lt;br /&gt;read a&lt;span class="fullpost"&gt;&lt;br /&gt;read b&lt;br /&gt;read ch&lt;br /&gt;case $ch in&lt;br /&gt;1)c=` expr $a + $b `&lt;br /&gt;echo $c;;&lt;br /&gt;2)c=` expr $a - $b `&lt;br /&gt;echo $c;;&lt;br /&gt;3)c=` expr $a \* $b `&lt;br /&gt;echo $c;;&lt;br /&gt;4)c=` expr $a / $b `&lt;br /&gt;echo $c;;&lt;br /&gt;*)echo "invalid &lt;br /&gt;&lt;b&gt;Write a shell program to know the number of links of a file.&lt;/b&gt;&lt;br /&gt;clear&lt;br /&gt;echo "enter a file"&lt;br /&gt;read fn&lt;br /&gt;ls -l $fn | awk '{print $2}'&lt;br /&gt;shell program to know the number of links of a file.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3417169946022348274-3844400511748297659?l=www.studentcpu.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.studentcpu.com/feeds/3844400511748297659/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.studentcpu.com/2010/11/unix-basic-shell-script-programming.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/3844400511748297659'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3417169946022348274/posts/default/3844400511748297659'/><link rel='alternate' type='text/html' href='http://www.studentcpu.com/2010/11/unix-basic-shell-script-programming.html' title='Unix Basic Shell SCript Programming- Check Case Sensitive- Find Numer of Links'/><author><name>Learning|Tutorial</name><uri>http://www.blogger.com/profile/07396058442949204871</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_Gmn-kEVg3hk/TDhQ4I_ZgaI/AAAAAAAABSM/P2S2TXvG2-A/S220/fedora+cenos+redhat.jpg'/></author><thr:total>0</thr:total></entry></feed>
