<?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-6650925325451843875</id><updated>2012-02-07T03:31:19.109-08:00</updated><title type='text'>RHEL/CentOS/Fedora</title><subtitle type='html'>At present most people haven&amp;#39;t knowledge about Linux Operating Systems. The goal of this blog is to Publish Linux distributions &amp;amp; providing open source solutions in Sri Lanka, it is place to read more about Linux and see all the distributions in of Linux. Also you can download many open source software. We provide open source solution for your Business &amp;amp; you’re Organizations. Especially we focus RHEL/CentOS/Fedora Linux distributions.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>39</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-4463362983038667527</id><published>2009-12-13T22:31:00.000-08:00</published><updated>2009-12-13T22:37:42.155-08:00</updated><title type='text'>Configuring a FTP server (VSFTPD)</title><content type='html'>&lt;b&gt;01.&lt;/b&gt; Check the necessary RPM&lt;br /&gt;&lt;b&gt;#rpm –q vsftpd&lt;/b&gt;       &lt;span class="Apple-style-span"  style="color:#CC0000;"&gt; //very secure file transfer protocol daemon&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;02.&lt;/b&gt; Start the FTP service&lt;br /&gt;&lt;b&gt;#service vsftpd start&lt;br /&gt;#chkconfig vsftpd on&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;03.&lt;/b&gt; The FTP service will be automatically configured in the following two different ways……&lt;br /&gt; Public FTP - No username or password necessary&lt;br /&gt; Private FTP – A valid username and password is necessary&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="color:#FFCC33;"&gt;Public FTP&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;If you need any body to access files from your FTP server without given username and password, you will have copy all the files that other people need to download in to /var/ftp folder.&lt;br /&gt;&lt;br /&gt;Go to the web browser and enter the your FTP address (http://ftp.server.lk)&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="color:#FFCC33;"&gt;Private FTP &lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Create a user account on the ftp server and use that account login in to the FTP server through the web server. You will be automatically log in to the users home folder.&lt;br /&gt;&lt;b&gt;#useradd uddika&lt;br /&gt;#passwd uddika&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Go to the browser and enter the address&lt;br /&gt;ftp://uddika@ftp.server.lk&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="color:#FFCC33;"&gt;If you wish to disable public FTP&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;01.&lt;/b&gt; Edit the configuration file&lt;br /&gt;&lt;b&gt;#nano /etc/vsftpd/vsftpd.conf&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;anonymous-enable = YES&lt;/b&gt; Change to &lt;b&gt;a&lt;/b&gt;&lt;b&gt;nonymous-enable = NO&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="color:#FFCC33;"&gt;How to restrict unnecessary users through FTP&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;01.&lt;/b&gt; Edit the configuration file&lt;br /&gt;&lt;b&gt;#nano /etc/vsftpd/ftpusers&lt;/b&gt;&lt;br /&gt;-------------------------------------&lt;br /&gt;-------------------------------------&lt;br /&gt;-------------------------------------&lt;br /&gt;Uddika        &lt;span class="Apple-style-span"  style="color:#CC0000;"&gt;// Enter the username&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;02.&lt;/b&gt; Reload the service&lt;br /&gt;&lt;b&gt;#service vsftpd reload&lt;/b&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-4463362983038667527?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/4463362983038667527/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6650925325451843875&amp;postID=4463362983038667527' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/4463362983038667527'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/4463362983038667527'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/12/configuring-ftp-server-vsftpd.html' title='Configuring a FTP server (VSFTPD)'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-7228305437323176878</id><published>2009-10-07T21:42:00.000-07:00</published><updated>2009-10-07T21:52:11.944-07:00</updated><title type='text'>Configuring a FTP Server</title><content type='html'>&lt;span style="font-weight: bold;"&gt;1.&lt;/span&gt; Check the necessary RPM&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#rpm -q vsftp &lt;/span&gt;    &lt;span style="color: rgb(204, 0, 0);"&gt;  //very secure file transfer protocol daemon  &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2.&lt;/span&gt; Start the FTP Service&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#service vsftpd start&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#chkconfig vsftpd on&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3.&lt;/span&gt; The FTP service will be automatically configured in the following two different types&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;PUBLIC FTP&lt;/span&gt; – no username or password necessary&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;PRIVATE TTP&lt;/span&gt; – A valid user name and a password is necessary&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;4.&lt;/span&gt; &lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;PUBLIC FTP&lt;/span&gt;&lt;br /&gt;If you need any body to access files from your FTP server without given user name and password you will have copy all the files that other people need to download in to /var/ftp folder.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;5.&lt;/span&gt; Go to web browser and enter the your FTP address&lt;br /&gt;http://ftp.server.lk    &lt;span style="color: rgb(204, 0, 0);"&gt;    //Bind ftp record&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;6.&lt;/span&gt; &lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;PRIVATE FTP&lt;/span&gt;&lt;br /&gt;create a user account on the FTP server and use that account login in to the FTP server through the web server. You will be automatically log in to the users home folder.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#useradd user1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#passwd user1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;7.&lt;/span&gt; Go to the browser and type&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ftp:\\user1@ftp.server.lk&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;8.&lt;/span&gt; If you wish to disable public FTP&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#nano /etc/vsftpd/vsftpd.conf&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;anonymous-enable = YES&lt;/span&gt; Change to &lt;span style="font-weight: bold;"&gt;anonymous-enable = NO&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;9.&lt;/span&gt; How to restrict unnecessary users through FTP&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#nano /etc/vsftpd/ftpusers&lt;/span&gt;&lt;br /&gt;_______________________&lt;br /&gt;_______________________&lt;br /&gt;_______________________&lt;br /&gt;_______________________&lt;br /&gt;_______________________&lt;br /&gt;user     &lt;span style="color: rgb(153, 0, 0);"&gt;//enter the user name&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;10.&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;#service vsftpd reload&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;11.&lt;/span&gt; Now enjoy with VSFTPD&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-7228305437323176878?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/7228305437323176878/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6650925325451843875&amp;postID=7228305437323176878' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/7228305437323176878'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/7228305437323176878'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/10/configuring-ftp-server.html' title='Configuring a FTP Server'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-3018900990225808606</id><published>2009-08-16T02:49:00.000-07:00</published><updated>2009-08-24T05:16:05.627-07:00</updated><title type='text'>Configure a DNS Server (Bind Server)</title><content type='html'>&lt;p class="MsoNoSpacing"&gt;&lt;b&gt;We have to configure there are two type of DNS Servers&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 lfo1"&gt;&lt;span style="mso-bidi-mso-bidi-theme-font:minor-latin;font-family:Calibri;"&gt;&lt;span style="mso-list:Ignore"&gt;&lt;b&gt;1.&lt;/b&gt;&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;SDNS (Static Domain Name System)&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 lfo1"&gt;&lt;span style="mso-bidi-mso-bidi-theme-font:minor-latin;font-family:Calibri;"&gt;&lt;span style="mso-list:Ignore"&gt;&lt;b&gt;2.&lt;/b&gt;&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;DDNS (Dynamic Domain Name System)&lt;/p&gt;  &lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing"&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="color:#FF9900;"&gt;Configure DNS Master and Slave &lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in;text-indent:-.25in;mso-list:l1 level1 lfo2"&gt;&lt;span style="mso-bidi-mso-bidi-theme-font:minor-latin;font-family:Calibri;"&gt;&lt;span style="mso-list:Ignore"&gt;&lt;b&gt;1.&lt;/b&gt;&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#CC0000;"&gt;(M/S)&lt;/span&gt; &lt;b&gt;Check the necessary RPM’s&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;#rpm –q bind caching-nameserver system-config-bind&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in;text-indent:-.25in;mso-list:l1 level1 lfo2"&gt;&lt;span style="mso-bidi-mso-bidi-theme-font:minor-latin;font-family:Calibri;"&gt;&lt;span style="mso-list:Ignore"&gt;&lt;b&gt;2.&lt;/b&gt;&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;&lt;span class="Apple-style-span"  style="color:#CC0000;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#CC0000;"&gt;(M/S)&lt;/span&gt; &lt;b&gt;Set the public domain name, set the local loopback IP as the primary DNS server IP, set the ISP’s DNS server IP as the secondary DNS server IP to resolved domain name that does not belong to our domain and set the default gateway to access ISP’s DNS servers.&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;#system-config-network-tui&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;Edit a Device params &lt;span style="font-family:Wingdings;mso-ascii-font-family:Calibri;mso-ascii-theme-font: minor-latin;mso-hansi-font-family:Calibri;mso-hansi-theme-font:minor-latin; mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;&lt;span style="mso-char-type: symbol;mso-symbol-font-family:Wingdings;"&gt;à&lt;/span&gt;&lt;/span&gt; eth0 &lt;span style="font-family:Wingdings;mso-ascii-font-family:Calibri;mso-ascii-theme-font: minor-latin;mso-hansi-font-family:Calibri;mso-hansi-theme-font:minor-latin; mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;&lt;span style="mso-char-type: symbol;mso-symbol-font-family:Wingdings;"&gt;à&lt;/span&gt;&lt;/span&gt; Default gateway (Router LAN IP) &lt;span style="font-family:Wingdings;mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin;mso-hansi-font-family:Calibri;mso-hansi-theme-font: minor-latin;mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;&lt;span style="mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;à&lt;/span&gt;&lt;/span&gt; Ok &lt;span style="font-family:Wingdings;mso-ascii-font-family:Calibri;mso-ascii-theme-font: minor-latin;mso-hansi-font-family:Calibri;mso-hansi-theme-font:minor-latin; mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;&lt;span style="mso-char-type: symbol;mso-symbol-font-family:Wingdings;"&gt;à&lt;/span&gt;&lt;/span&gt; Save &lt;span style="font-family:Wingdings;mso-ascii-font-family:Calibri;mso-ascii-theme-font: minor-latin;mso-hansi-font-family:Calibri;mso-hansi-theme-font:minor-latin; mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;&lt;span style="mso-char-type: symbol;mso-symbol-font-family:Wingdings;"&gt;à&lt;/span&gt;&lt;/span&gt; Edit DNS Configuration &lt;span style="font-family:Wingdings;mso-ascii-font-family:Calibri;mso-ascii-theme-font: minor-latin;mso-hansi-font-family:Calibri;mso-hansi-theme-font:minor-latin; mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;&lt;span style="mso-char-type: symbol;mso-symbol-font-family:Wingdings;"&gt;à&lt;/span&gt;&lt;/span&gt; Primary DNS (127.0.0.1) &lt;span style="font-family:Wingdings;mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin;mso-hansi-font-family:Calibri;mso-hansi-theme-font: minor-latin;mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;&lt;span style="mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;à&lt;/span&gt;&lt;/span&gt; Secondary DNS (Router LAN IP, to access ISP DNS) &lt;span style="font-family:Wingdings; mso-ascii-font-family:Calibri;mso-ascii-theme-font:minor-latin;mso-hansi-font-family: Calibri;mso-hansi-theme-font:minor-latin;mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;&lt;span style="mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;à&lt;/span&gt;&lt;/span&gt;Search (server.lk – Registered Domain) &lt;span style="font-family:Wingdings;mso-ascii-font-family: Calibri;mso-ascii-theme-font:minor-latin;mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;&lt;span style="mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;à&lt;/span&gt;&lt;/span&gt; Ok &lt;span style="font-family:Wingdings;mso-ascii-font-family:Calibri;mso-ascii-theme-font: minor-latin;mso-hansi-font-family:Calibri;mso-hansi-theme-font:minor-latin; mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;&lt;span style="mso-char-type: symbol;mso-symbol-font-family:Wingdings;"&gt;à&lt;/span&gt;&lt;/span&gt; Save and Exit &lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;#service network restart&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;b&gt;Check the Configuration&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:1.0in;text-indent:-.25in;mso-list: l2 level1 lfo3"&gt;&lt;span style="font-family:Symbol; mso-fareast-font-family:Symbol;mso-bidi-font-family:Symbol;"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Default Gateway &lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:1.0in"&gt;#cat /etc/sysconfig/network-script/ifcfg-eth0&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:1.0in;text-indent:-.25in;mso-list: l2 level1 lfo3"&gt;&lt;span style="font-family:Symbol; mso-fareast-font-family:Symbol;mso-bidi-font-family:Symbol;"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;DNS&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:1.0in"&gt;#cat /etc/resolv.conf&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:1.0in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in;text-indent:-.25in;mso-list:l1 level1 lfo2"&gt;&lt;span style="mso-bidi-mso-bidi-theme-font:minor-latin;font-family:Calibri;"&gt;&lt;span style="mso-list:Ignore"&gt;&lt;b&gt;3.&lt;/b&gt;&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#CC0000;"&gt;(M)&lt;/span&gt; &lt;b&gt;only on the master server&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;Create a DNS Zone file that contains all the information about your domain&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;Zone File Location &lt;span style="font-family:Wingdings;mso-ascii-font-family:Calibri;mso-ascii-theme-font: minor-latin;mso-hansi-font-family:Calibri;mso-hansi-theme-font:minor-latin; mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;&lt;span style="mso-char-type: symbol;mso-symbol-font-family:Wingdings;"&gt;à&lt;/span&gt;&lt;/span&gt; /var/named&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;Zone File Name &lt;span style="font-family:Wingdings;mso-ascii-font-family:Calibri;mso-ascii-theme-font: minor-latin;mso-hansi-font-family:Calibri;mso-hansi-theme-font:minor-latin; mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;&lt;span style="mso-char-type: symbol;mso-symbol-font-family:Wingdings;"&gt;à&lt;/span&gt;&lt;/span&gt; any name (ex – zone.server.lk)&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;#cd /var/named&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;#ls –l&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;#nano zone.server.lk&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;Download sample DNS Zone file – &lt;a href="http://www.server.lk/blog/zone.server.lk.rar"&gt;download&lt;/a&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in;text-indent:-.25in;mso-list:l1 level1 lfo2"&gt;&lt;span style="mso-bidi-mso-bidi-theme-font:minor-latin;font-family:Calibri;"&gt;&lt;span style="mso-list:Ignore"&gt;&lt;b&gt;4.&lt;/b&gt;&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#CC0000;"&gt;(M/S)&lt;/span&gt; &lt;b&gt;Now we have to authorized the zone file that we created for our domain&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;Copy the authorization configuration file in to the /etc folder&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;#cd /usr/share/system-config-bind/profiles/default&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;#ls –l&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;#cp named.conf /etc&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;#ls –l /etc/named.conf &lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:1.0in;text-indent:-.25in;mso-list: l2 level1 lfo3"&gt;&lt;span style="font-family:Symbol; mso-fareast-font-family:Symbol;mso-bidi-font-family:Symbol;"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Edit the authorization configuration file on master DNS&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;#nano /etc/named.conf&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;Go to end of file, but before the final line&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;b&gt;Type&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;zone “server.lk” IN {&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;type master;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;file “zone.server.lk”;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;allow-transfer { 10.0.0.xxx; 10.0.0.xxx; };&lt;span style="mso-spacerun:yes"&gt;   &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#CC0000;"&gt;//First Slave Server IP and Second Slave&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#CC0000;"&gt; Server IP&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;};&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:1.0in;text-indent:-.25in;mso-list: l2 level1 lfo3"&gt;&lt;span style="font-family:Symbol; mso-fareast-font-family:Symbol;mso-bidi-font-family:Symbol;"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Edit the authorization configuration file on Slave Servers&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;#nano /etc/named.conf&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;Go to end of file, but before the final line&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;b&gt;Type&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;zone “server.lk” IN {&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;type slave;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;file “slaves/zone.server.lk”;&lt;span style="mso-spacerun:yes"&gt;     &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#CC0000;"&gt;//Backup location (/var/named/slaves)&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;masters { 10.0.0.xxx; };&lt;span style="mso-spacerun:yes"&gt;         &lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#CC0000;"&gt;//Master Server IP&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;};&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:1.0in;text-indent:-.25in;mso-list: l2 level1 lfo3"&gt;&lt;span style="font-family:Symbol; mso-fareast-font-family:Symbol;mso-bidi-font-family:Symbol;"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Download the root DNS server information file so our DNS server can communicate with the root DNS Servers&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;#cd /var/named&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;#wget ftp://ftp.internic.net/domain/named.root&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;#la –l&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;#cat named.root |more&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in;text-indent:-.25in;mso-list:l1 level1 lfo2"&gt;&lt;span style="mso-bidi-mso-bidi-theme-font:minor-latin;font-family:Calibri;"&gt;&lt;span style="mso-list:Ignore"&gt;&lt;b&gt;5.&lt;/b&gt;&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#CC0000;"&gt;(M/S)&lt;/span&gt; &lt;b&gt;First in master then in slave &lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;Start the DNS Service&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;#service named start&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;#chkconfig named on&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in;text-indent:-.25in;mso-list:l1 level1 lfo2"&gt;&lt;span style="mso-bidi-mso-bidi-theme-font:minor-latin;font-family:Calibri;"&gt;&lt;span style="mso-list:Ignore"&gt;&lt;b&gt;6.&lt;/b&gt;&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#CC0000;"&gt;(S)&lt;/span&gt; &lt;b&gt;Check the slave servers to see wither the zone file has been properly backup&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;Only on the slave server &lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;#cd /var/named/slaves&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;#ls –l&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;#cat zone.server.lk &lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in;text-indent:-.25in;mso-list:l1 level1 lfo2"&gt;&lt;span style="mso-bidi-mso-bidi-theme-font:minor-latin;font-family:Calibri;"&gt;&lt;span style="mso-list:Ignore"&gt;&lt;b&gt;7.&lt;/b&gt;&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;Setting up DNS Clients&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;Go to TCP/IP Properties &lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;Preferred DNS – 10.0.0.xxx&lt;span style="mso-spacerun:yes"&gt;      &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#CC0000;"&gt;//Master Server IP&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;Alternate DNS – 10.0.0.xxx&lt;span style="mso-spacerun:yes"&gt;      &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#CC0000;"&gt;//Slave Server IP&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;More DNS servers can be set through ADVANCED button&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;b&gt;IF Linux&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;#nano /etc/resolv.conf&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;nameserver 10.0.0.xxx&lt;span style="mso-spacerun:yes"&gt;      &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#CC0000;"&gt;//Master Server IP&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;nameserver 10.0.0.xxx&lt;span style="mso-tab-count:1"&gt;      &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#CC0000;"&gt;//Slave Server IP&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;nameserver 10.0.0.xxx&lt;span style="mso-tab-count:1"&gt;     &lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#CC0000;"&gt;//Slave Server IP&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in;text-indent:-.25in;mso-list:l1 level1 lfo2"&gt;&lt;span style="mso-bidi-mso-bidi-theme-font:minor-latin;font-family:Calibri;"&gt;&lt;span style="mso-list:Ignore"&gt;&lt;b&gt;8.&lt;/b&gt;&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;Checking DNS&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;#nslookup ns1.server.lk&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;#nslookup www.google.lk&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;If you are going to implement multiple services on a single machine rather than using a single IP better to assign different IP’s to each and every service&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;b&gt;How to assign multiple IP’s to a machine running with Linux &lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;#system-config-network-tui&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;Edit a device params &lt;span style="font-family:Wingdings;mso-ascii-font-family:Calibri;mso-ascii-theme-font: minor-latin;mso-hansi-font-family:Calibri;mso-hansi-theme-font:minor-latin; mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;&lt;span style="mso-char-type: symbol;mso-symbol-font-family:Wingdings;"&gt;à&lt;/span&gt;&lt;/span&gt; New device &lt;span style="font-family:Wingdings;mso-ascii-font-family:Calibri;mso-ascii-theme-font: minor-latin;mso-hansi-font-family:Calibri;mso-hansi-theme-font:minor-latin; mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;&lt;span style="mso-char-type: symbol;mso-symbol-font-family:Wingdings;"&gt;à&lt;/span&gt;&lt;/span&gt; Ethernet &lt;span style="font-family:Wingdings;mso-ascii-font-family:Calibri;mso-ascii-theme-font: minor-latin;mso-hansi-font-family:Calibri;mso-hansi-theme-font:minor-latin; mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;&lt;span style="mso-char-type: symbol;mso-symbol-font-family:Wingdings;"&gt;à&lt;/span&gt;&lt;/span&gt; Add &lt;span style="font-family:Wingdings;mso-ascii-font-family:Calibri;mso-ascii-theme-font: minor-latin;mso-hansi-font-family:Calibri;mso-hansi-theme-font:minor-latin; mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;&lt;span style="mso-char-type: symbol;mso-symbol-font-family:Wingdings;"&gt;à&lt;/span&gt;&lt;/span&gt; Name : eth0:0 &lt;span style="font-family:Wingdings;mso-ascii-font-family:Calibri;mso-ascii-theme-font: minor-latin;mso-hansi-font-family:Calibri;mso-hansi-theme-font:minor-latin; mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;&lt;span style="mso-char-type: symbol;mso-symbol-font-family:Wingdings;"&gt;à&lt;/span&gt;&lt;/span&gt; Device : eth0:0 &lt;span style="font-family:Wingdings;mso-ascii-font-family:Calibri;mso-ascii-theme-font: minor-latin;mso-hansi-font-family:Calibri;mso-hansi-theme-font:minor-latin; mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;&lt;span style="mso-char-type: symbol;mso-symbol-font-family:Wingdings;"&gt;à&lt;/span&gt;&lt;/span&gt; DHCP : Cant use DHCP &lt;span style="font-family:Wingdings;mso-ascii-font-family:Calibri;mso-ascii-theme-font: minor-latin;mso-hansi-font-family:Calibri;mso-hansi-theme-font:minor-latin; mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;&lt;span style="mso-char-type: symbol;mso-symbol-font-family:Wingdings;"&gt;à&lt;/span&gt;&lt;/span&gt; Static IP : 10.0.0.xxx &lt;span style="font-family:Wingdings;mso-ascii-font-family:Calibri;mso-ascii-theme-font: minor-latin;mso-hansi-font-family:Calibri;mso-hansi-theme-font:minor-latin; mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;&lt;span style="mso-char-type: symbol;mso-symbol-font-family:Wingdings;"&gt;à&lt;/span&gt;&lt;/span&gt; Net mask : 255.255.255.0 &lt;span style="font-family:Wingdings;mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin;mso-hansi-font-family:Calibri;mso-hansi-theme-font: minor-latin;mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;&lt;span style="mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;à&lt;/span&gt;&lt;/span&gt; Default Gateway : not necessary &lt;span style="font-family:Wingdings;mso-ascii-font-family: Calibri;mso-ascii-theme-font:minor-latin;mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;&lt;span style="mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;à&lt;/span&gt;&lt;/span&gt; Ok &lt;span style="font-family:Wingdings;mso-ascii-font-family:Calibri;mso-ascii-theme-font: minor-latin;mso-hansi-font-family:Calibri;mso-hansi-theme-font:minor-latin; mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;&lt;span style="mso-char-type: symbol;mso-symbol-font-family:Wingdings;"&gt;à&lt;/span&gt;&lt;/span&gt; Save &lt;span style="font-family:Wingdings;mso-ascii-font-family:Calibri;mso-ascii-theme-font: minor-latin;mso-hansi-font-family:Calibri;mso-hansi-theme-font:minor-latin; mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;&lt;span style="mso-char-type: symbol;mso-symbol-font-family:Wingdings;"&gt;à&lt;/span&gt;&lt;/span&gt; Save and Exit&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;#service network restart&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;#ifconfig |more&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:1.0in;text-indent:-.25in;mso-list: l2 level1 lfo3"&gt;&lt;span style="font-family:Symbol; mso-fareast-font-family:Symbol;mso-bidi-font-family:Symbol;"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;To stop a network device &lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:1.0in"&gt;#ifdown eth0:0&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:1.0in"&gt;#ifconfig&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:1.0in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:1.0in;text-indent:-.25in;mso-list: l2 level1 lfo3"&gt;&lt;span style="font-family:Symbol; mso-fareast-font-family:Symbol;mso-bidi-font-family:Symbol;"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;To start a network device &lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:1.0in"&gt;#ifup eth0:0&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:1.0in"&gt;#ifconfig &lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:1.0in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in;text-indent:-.25in;mso-list:l1 level1 lfo2"&gt;&lt;span style="mso-bidi-mso-bidi-theme-font:minor-latin;font-family:Calibri;"&gt;&lt;span style="mso-list:Ignore"&gt;&lt;b&gt;9.&lt;/b&gt;&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;       &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="color:#CC0000;"&gt;(M)&lt;/span&gt; &lt;b&gt;Now we can assign the new IP’s to services using DNS&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;On Master DNS&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;#nano /var/named/zone.server.lk&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;www&lt;span style="mso-tab-count: 1"&gt;    &lt;/span&gt;IN&lt;span style="mso-tab-count:1"&gt;    &lt;/span&gt;A&lt;span style="mso-tab-count:1"&gt;    &lt;/span&gt;10.0.0.xxx&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;sales&lt;span style="mso-tab-count: 1"&gt;    &lt;/span&gt;IN&lt;span style="mso-tab-count:1"&gt;    &lt;/span&gt;A&lt;span style="mso-tab-count:1"&gt;    &lt;/span&gt;10.0.0.xxx&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;mail&lt;span style="mso-tab-count: 1"&gt;     &lt;/span&gt;IN&lt;span style="mso-tab-count:1"&gt;    &lt;/span&gt;A&lt;span style="mso-tab-count:1"&gt;    &lt;/span&gt;10.0.0.xxx&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;ftp&lt;span style="mso-tab-count: 1"&gt;       &lt;/span&gt;IN&lt;span style="mso-tab-count:1"&gt;    &lt;/span&gt;A&lt;span style="mso-tab-count:1"&gt;    &lt;/span&gt;10.0.0.xxx&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;b&gt;Increase the serial by one, save and exit&lt;/b&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:1.0in;text-indent:-.25in;mso-list: l2 level1 lfo3"&gt;&lt;span style="font-family:Symbol; mso-fareast-font-family:Symbol;mso-bidi-font-family:Symbol;"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Restart DNS&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:1.0in"&gt;#killall named&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:1.0in"&gt;#service named start&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:1.0in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:1.0in;text-indent:-.25in;mso-list: l2 level1 lfo3"&gt;&lt;span style="font-family:Symbol; mso-fareast-font-family:Symbol;mso-bidi-font-family:Symbol;"&gt;&lt;span style="mso-list:Ignore"&gt;·&lt;span style="font:7.0pt &amp;quot;Times New Roman&amp;quot;"&gt;         &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Check DNS&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:1.0in"&gt;#nslookup www.server.lk&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:1.0in"&gt;#nslookup sales.server.lk&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:1.0in"&gt;#nslookup mail.server.lk&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:1.0in"&gt;#nslookup ftp.server.lk&lt;/p&gt;&lt;p class="MsoNoSpacing" style="margin-left:1.0in"&gt;&lt;span class="Apple-style-span"   style=" color: rgb(221, 221, 221);  font-family:'Trebuchet MS';font-size:13px;"&gt;------------------------------------------------------------------------------------------&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNoSpacing" style="margin-left:1.0in"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:1.0in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:1.0in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;  &lt;p class="MsoNoSpacing" style="margin-left:.5in"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-3018900990225808606?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/3018900990225808606/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6650925325451843875&amp;postID=3018900990225808606' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/3018900990225808606'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/3018900990225808606'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/08/configure-dns-server-bind-server.html' title='Configure a DNS Server (Bind Server)'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-8805094877104302772</id><published>2009-07-31T06:03:00.000-07:00</published><updated>2009-07-31T06:50:07.254-07:00</updated><title type='text'>Configuring the web server (Apache Server)</title><content type='html'>&lt;span style="font-weight: bold;"&gt;01&lt;/span&gt;. Check the necessary RPM&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#rpm –q httpd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;02&lt;/span&gt;. Developed a web site and copied it in to&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/var/www/html folder&lt;/span&gt;&lt;br /&gt;If you have multiple web sites you can keep them in sub folders in the above location&lt;br /&gt;The web site home page must be named as index followed by the web developing language extension.&lt;br /&gt;Ex –&lt;span style="font-weight: bold;"&gt; index.htm, index.php , index.asp&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;03&lt;/span&gt;. Publishing the web site&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#nano /etc/httpd/conf/httpd.conf&lt;/span&gt;&lt;br /&gt;Go to the end of file&lt;br /&gt;Ex – www&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_8m9eIrRbuZA/SnL1tK-zG3I/AAAAAAAAAAc/x1ck41MPgBA/s1600-h/webscript.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 400px; height: 87px;" src="http://4.bp.blogspot.com/_8m9eIrRbuZA/SnL1tK-zG3I/AAAAAAAAAAc/x1ck41MPgBA/s400/webscript.jpg" alt="" id="BLOGGER_PHOTO_ID_5364620262542351218" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-weight: bold;"&gt;04&lt;/span&gt;. Save and Exit the file&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;05&lt;/span&gt;. Start the service&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#service httpd start&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#chkconfig httpd on&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-8805094877104302772?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/8805094877104302772/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6650925325451843875&amp;postID=8805094877104302772' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/8805094877104302772'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/8805094877104302772'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/07/configuring-web-server-apache-server.html' title='Configuring the web server (Apache Server)'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_8m9eIrRbuZA/SnL1tK-zG3I/AAAAAAAAAAc/x1ck41MPgBA/s72-c/webscript.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-5227586688664509144</id><published>2009-07-23T06:22:00.000-07:00</published><updated>2009-07-23T07:17:20.537-07:00</updated><title type='text'>Configuring Proxy Server</title><content type='html'>1. Check the necessary RPM&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#rpm –q squid&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2. Set the default gateway and the DNS on the proxy server, so it has a direct connection as an internet.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#system-config-network-tui&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. Give the information about your local network on the proxy server.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#nano /etc/squid/squid.conf&lt;/span&gt;&lt;br /&gt;Press &lt;span style="font-weight: bold;"&gt;CTRL + W&lt;/span&gt;&lt;br /&gt;Search – &lt;span style="font-weight: bold;"&gt;our_networks&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4. Uncomment this lines&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#acl our_networks src 192.168.1.0/24 192.168.2.0/24&lt;/span&gt;          &lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;//Remove # mark&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#http_access allow our_networks&lt;/span&gt;       &lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;//Remove # mark&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5. Save (&lt;span style="font-weight: bold;"&gt;CTRL + O&lt;/span&gt;) and Exit (&lt;span style="font-weight: bold;"&gt;CTRL + X&lt;/span&gt;) file&lt;br /&gt;&lt;br /&gt;6. Start the proxy service&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#service squid start&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#chkconfig squid on&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Settings up proxy clients&lt;br /&gt;&lt;br /&gt;The proxy client is an application that required internet through the proxy server&lt;br /&gt;EX – Internet Explorer, Mozilla Firefox&lt;br /&gt;&lt;br /&gt;Fire Fox&lt;br /&gt;Edit --&gt; Preferences --&gt; Advanced --&gt; Network --&gt; Settings --&gt; manually proxy configuration&lt;br /&gt;http proxy : &lt;span style="font-weight: bold;"&gt;192.168.2.101&lt;/span&gt;   port : &lt;span style="font-weight: bold;"&gt;3128&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;       &lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;// proxy server IP and port number&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now clients have to access internet through proxy………&lt;br /&gt;&lt;br /&gt;Controlling web access through proxy&lt;br /&gt;&lt;br /&gt;1. Open the following file&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#nano /ect/squid/squid.conf&lt;/span&gt;&lt;br /&gt;Press &lt;span style="font-weight: bold;"&gt;CTRL + W&lt;/span&gt;&lt;br /&gt;Search – &lt;span style="font-weight: bold;"&gt;# http_access deny all&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Put all the rules that you want to control web access through proxy under the above comment. All the block rules must come before the allow rules&lt;br /&gt;&lt;br /&gt;• To block unwanted website&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;acl blockweb dstdomain .facebook.com .yahoo.com .google.com&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;http_access deny blockweb&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;• To block unwanted file download&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;acl blockfile urlpath_regex –i exe$ mp3$ avi$ rar$&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;http_access deny blockfile&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;• To allow POP3/ SMTP to access mail through proxy server&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;acl allowmail proto POP3 SMTP&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;http_access allow allowmail&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2. Save (&lt;span style="font-weight: bold;"&gt;CTRL + O&lt;/span&gt;) and exit (&lt;span style="font-weight: bold;"&gt;CTRL +X&lt;/span&gt;) the file&lt;br /&gt;&lt;br /&gt;3. Reload squid service&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#service squid reload&lt;/span&gt;&lt;br /&gt;---------------------------------------------------------&lt;br /&gt;List of acl tags and examples&lt;br /&gt;&lt;a href="http://tr.im/sqacl"&gt;&lt;span style="font-weight: bold;"&gt;http://tr.im/sqacl&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://wiki.squid-cache.org/"&gt;&lt;span style="font-weight: bold;"&gt;http://wiki.squid-cache.org&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;---------------------------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-5227586688664509144?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/5227586688664509144/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6650925325451843875&amp;postID=5227586688664509144' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/5227586688664509144'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/5227586688664509144'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/07/configuring-proxy-server.html' title='Configuring Proxy Server'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-3180239350615264374</id><published>2009-07-21T20:57:00.001-07:00</published><updated>2009-07-21T21:04:16.730-07:00</updated><title type='text'>Configuring a windows file server</title><content type='html'>&lt;span style="font-weight: bold;"&gt;1.&lt;/span&gt;Check the necessary rpm&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#rpm -q samba&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2.&lt;/span&gt;set the samba work group name according to windows work group or domain name.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#nano /etc/samba/smb.conf&lt;/span&gt;&lt;br /&gt;Press &lt;span style="font-weight: bold;"&gt;CTRL + W&lt;/span&gt;&lt;br /&gt;Search &gt;&gt;&gt;&gt; “ &lt;span style="font-weight: bold;"&gt;mygroup&lt;/span&gt;”&lt;br /&gt;delete the mygroup and type your windows work group or domain name&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3.&lt;/span&gt;Start the samba service&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#service smb start&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#chkconfig smb on&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;4.&lt;/span&gt;Now you will be able to see the samba servers through my network places in windows, but you wont be able to access them unless you create samba user accounts in linux.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;5.&lt;/span&gt;You must have a Linux user account first&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#useradd uddika&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#passwd uddika&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;6.&lt;/span&gt;you can convert them in to samba&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#smbpasswd -a uddika&lt;/span&gt;&lt;br /&gt;you can use user current password or another one.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;7.&lt;/span&gt;Once you add a user to samba his home folder will be automatically shared. How to share a different folder through samba.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;8.&lt;/span&gt;Create a folder to share&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#cd /&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#mkdir test&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;9.&lt;/span&gt;sharing above folder through samba&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#nano /etc/samba/smb.conf&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Go to a end of file, to a new line&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[MyTestShare]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;path = /test&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;public = yes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;writable = yes&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;10.&lt;/span&gt;Save and exit the file&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;CTRl + O&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;CTRL + X&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;11.&lt;/span&gt;Reload the samba service&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#service smb reload&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;12.&lt;/span&gt;Although we give a writable samba permissions, normal samba users wont be able to witting to the folder though windows, unless we change the ext3 file folder permissions properly.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;13.&lt;/span&gt;See current permissions&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#cd /&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#ls -ld test&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;14.&lt;/span&gt;Change current permissions&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#chmod 757 test&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#ls -ld&lt;/span&gt;&lt;br /&gt;now normal users can access share folder&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-3180239350615264374?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/3180239350615264374/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6650925325451843875&amp;postID=3180239350615264374' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/3180239350615264374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/3180239350615264374'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/07/configuring-windows-file-server-samba.html' title='Configuring a windows file server'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-3547298532492682928</id><published>2009-07-19T05:04:00.000-07:00</published><updated>2009-07-19T05:15:51.597-07:00</updated><title type='text'>Configuring Slave NIS Server</title><content type='html'>The machine that we are going to configure as a NIS Slave server must be and existing client on the domain.&lt;br /&gt;&lt;br /&gt;1. From the master server we have to give the permissions to replicate the data to the slave servers.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;Master Server Side&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;• &lt;/span&gt;Edit system file&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]#nano /var/yp/Makefile&lt;/span&gt;&lt;br /&gt;Change &lt;span style="font-weight: bold;"&gt;NOPUSH = true&lt;/span&gt; to &lt;span style="font-weight: bold;"&gt;NOPUSH = false&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;• Save (CTRL + O) and Exit (CTRL + X) file&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;Slave Server Side&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;On the machine that you are going to configure as the slave server&lt;br /&gt;&lt;br /&gt;• Check the necessary RPM’s&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]#rpm –q ypserv yp-tools ypbind&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;• Set the local loopback IP as the NIS server IP to indicate the machine Is going to become NIS server&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]#nano /etc/yp.conf&lt;/span&gt;&lt;br /&gt;Go to end of file, to a new line and type&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ypserver 127.0.0.1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;• Start the necessary NIS server services&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]#service yppasswdd start&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]#service ypserv start&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]#Service ypxfrd start&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]#chkconfig yppasswdd on&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]#chkconfig ypserv on&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]#chkconfig ypxfrd on&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;• Now we can back up the master server’s database in to the slave server.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]#/usr/lib/yp/ypinit –s server.server.lk&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;  //master server hostname &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;• Since we have slave servers, now we have to update all the clients with the slave server settings (Client side configuration)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]#nano /etc/yp.conf&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;domain server.lk server 10.0.0.100&lt;/span&gt; &lt;span style="color: rgb(204, 0, 0);"&gt;// change this line&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;domain server.lk broadcast&lt;/span&gt; &lt;span style="color: rgb(204, 0, 0);"&gt;  //after changing &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-3547298532492682928?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/3547298532492682928/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6650925325451843875&amp;postID=3547298532492682928' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/3547298532492682928'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/3547298532492682928'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/07/configuring-slave-nis-server.html' title='Configuring Slave NIS Server'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-6687580312839939616</id><published>2009-07-06T18:22:00.000-07:00</published><updated>2009-07-06T18:38:56.442-07:00</updated><title type='text'>Latest Downloads</title><content type='html'>&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;Linux Commands Ebooks &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;These are 3 ebooks containing over 1000+ commands. one for Fedora/RHEL/CentOS, one for OpenSUSE and one for Ubuntu. ENJOY!!&lt;br /&gt;&lt;br /&gt;Fedora/RHEL/CentOS Ebook - &lt;a href="http://www.mediafire.com/?wmbktdc1xqy"&gt;download&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;OpenSuSe Ebook - &lt;a href="http://www.mediafire.com/?0mfzmcny1ni"&gt;download&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Ubuntu Ebook - &lt;a href="http://www.mediafire.com/?lynx3w9es3n"&gt;download&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;Microsoft fonts for Fedora/Redhat/Centos &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Download Microsoft core fonts RPM that includes fonts in XP/Vista&lt;br /&gt;&lt;a href="http://avi.alkalay.net/software/webcore-fonts"&gt;Download Microsoft Fonts&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-6687580312839939616?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/6687580312839939616/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6650925325451843875&amp;postID=6687580312839939616' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/6687580312839939616'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/6687580312839939616'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/07/latest-downloads.html' title='Latest Downloads'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-684280785947828162</id><published>2009-07-06T18:07:00.000-07:00</published><updated>2009-07-06T18:14:05.399-07:00</updated><title type='text'>Wake on LAN</title><content type='html'>Start computer from remote machine. You need to set BIOS enable function of Wake on Lan.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;[1] Install wakeonlan.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# wget http://gsd.di.uminho.pt/jpo/software/wakeonlan/downloads/wakeonlan-0.41-0.fdr.1.noarch.rpm&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# rpm -Uvh wakeonlan-0.41-0.fdr.1.noarch.rpm&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;warning: wakeonlan-0.41-0.fdr.1.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 91bd851b&lt;br /&gt;Preparing...   ############################ [100%]&lt;br /&gt;1:wakeonlan ############################ [100%]&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;[2] You need to know MAC address of the computer first you'd like to start from remote. It's possible to know 'ifconfig' command.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;MAC address is just the section 'HWaddr **:**:**:**:**:**'.&lt;br /&gt;Then input the commands below from remote machine and start computer.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@dlp ~]# wakeonlan **:**:**:**:**:**&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;------------------------------------------------------------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-684280785947828162?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/684280785947828162/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6650925325451843875&amp;postID=684280785947828162' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/684280785947828162'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/684280785947828162'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/07/wake-on-lan.html' title='Wake on LAN'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-311831707055234580</id><published>2009-07-06T10:47:00.001-07:00</published><updated>2009-07-06T10:58:32.114-07:00</updated><title type='text'>Configuring a master NIS Server</title><content type='html'>1. Check the necessary rpm’s&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#rpm –q ypserv yp-tools ypbind&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2. Set the NIS Domain name&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#nano /etc/sysconfig/network&lt;/span&gt;&lt;br /&gt;At the end of file, in a new line, Type&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;NISDOMAIN=server.lk&lt;/span&gt;&lt;br /&gt;Save&lt;span style="font-weight: bold;"&gt;(CTRL+O)&lt;/span&gt; and exit&lt;span style="font-weight: bold;"&gt;(CTRL+X)&lt;/span&gt; file&lt;br /&gt;&lt;br /&gt;3. Set the local loopback ip as the nis server ip to indicate the machine is going to become for NIS server&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#nano /etc/yp.conf&lt;/span&gt;&lt;br /&gt;At the end of file, in a new line, Type&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ypserver 127.0.0.1&lt;/span&gt;&lt;br /&gt;Save&lt;span style="font-weight: bold;"&gt;(CTRL+O)&lt;/span&gt; and exit&lt;span style="font-weight: bold;"&gt;(CTRL+X)&lt;/span&gt; file&lt;br /&gt;&lt;br /&gt;4. Start the necessary NIS server services&lt;br /&gt;&lt;br /&gt;• yppasswdd – (NIS Password Service)&lt;br /&gt;service status -&lt;span style="font-weight: bold;"&gt; #service yppasswdd status&lt;/span&gt;&lt;br /&gt;start service -&lt;span style="font-weight: bold;"&gt; #service yppasswdd start&lt;/span&gt;&lt;br /&gt;add startup - &lt;span style="font-weight: bold;"&gt;#chkconfig yppasswdd on&lt;/span&gt;&lt;br /&gt;check - &lt;span style="font-weight: bold;"&gt;#chkconfig yppasswdd --list&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;• ypserv – NIS server service(to manage user/ group and NIS domain name)&lt;br /&gt;service status - &lt;span style="font-weight: bold;"&gt;#service ypserv status&lt;/span&gt;&lt;br /&gt;start service - &lt;span style="font-weight: bold;"&gt;#service ypserv start&lt;/span&gt;&lt;br /&gt;add startup - &lt;span style="font-weight: bold;"&gt;#chkconfig ypserv on&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;• ypxfrd – NIS map service (To manage user/ group all database)&lt;br /&gt;service status - &lt;span style="font-weight: bold;"&gt;#service ypxfrd status&lt;/span&gt;&lt;br /&gt;start service -&lt;span style="font-weight: bold;"&gt; #service ypxfrd start&lt;/span&gt;&lt;br /&gt;add startup - &lt;span style="font-weight: bold;"&gt;#chkconfig ypxfrd on&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5. Now we have to create a central user and a group maagement database. During the creation you have to give the NIS slave server names one by one (optional)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#/usr/lib/yp/ypinit –m&lt;/span&gt;&lt;br /&gt;Give slave server names one by one (if any)&lt;br /&gt;After &lt;span style="font-weight: bold;"&gt;CTRL + D&lt;/span&gt;, press &lt;span style="font-weight: bold;"&gt;“Y”&lt;/span&gt; to enter, the accept the name list.&lt;br /&gt;After edit he slave server list use this file&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#nano /var/yp/ypservers&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;6. Start the NIS client service on the server,  so we can join our clients to the domain&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#service ypbind start&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#chkconfig ypbind on&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;How to join a client PC to a NIS Domain (Client Side)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;7. Delete all local user and group accounts from the clients&lt;br /&gt;&lt;br /&gt;• User Accounts&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#tail /etc/passwd&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#userdel –r username&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;• Group Account&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#tail /etc/group&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#groupdel groupname&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;• Home Folder&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#cd /home&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#ls –l&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#rm –rf homefoldername&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;8. Join the client to the domain&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#authconfig-tui&lt;/span&gt;&lt;br /&gt;Select “&lt;span style="font-weight: bold;"&gt;use NIS&lt;/span&gt;”&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Domain – server.lk&lt;/span&gt; //NIS Domain Name&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Server – 10.0.0.100&lt;/span&gt; //Master Server IP&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;Creating central user and group accounts on the master server&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If there were any user accounts / group account on the master server during the practical they would be automatically converted.&lt;br /&gt;&lt;br /&gt;• Add local account first&lt;br /&gt;(user)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#useradd uddika&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#passwd uddika&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;(group)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#groupadd mygroup&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;• Convert the above account in to NIS&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#cd /var/yp&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#make&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now you will be able to login from the client pc’s using the user account. We created on the master server but the client wont to be able to locate the users home folder. To fix the problem do the following.&lt;br /&gt;&lt;br /&gt;9. Share the home folders from the master NIS server using NFS service (Network File System)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#service nfs status&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#service nfs start&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#chkconfig nfs on&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;To share home folders.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#nano /etc/exports&lt;/span&gt;&lt;br /&gt;At the end of file, in a new line, Type&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/home *(rw,sync)&lt;/span&gt;&lt;br /&gt;Save&lt;span style="font-weight: bold;"&gt;(CTRL+O)&lt;/span&gt; and exit&lt;span style="font-weight: bold;"&gt;(CTRL+X)&lt;/span&gt; file&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#service nfs reload&lt;/span&gt;&lt;br /&gt;Check – &lt;span style="font-weight: bold;"&gt;#exportfs –arv&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A folder shared using NFS must be access from the other machines by mounting, since it can be to dificult for normal users, to mount their own home folder.  We are going to auto mount the home folders to the clients (client side configuration)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#nano /etc/fstab&lt;/span&gt;&lt;br /&gt;At the end of file, in a new line, Type&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;10.0.0.100:/home /home nfs defaults 0 0&lt;/span&gt;&lt;br /&gt;Save&lt;span style="font-weight: bold;"&gt;(CTRL+O)&lt;/span&gt; and exit&lt;span style="font-weight: bold;"&gt;(CTRL+X)&lt;/span&gt; file&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;How to change your own password as a NIS user&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#yppasswd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;How to change NIS user password as root from the master server&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#yppasswd uddika&lt;/span&gt;&lt;br /&gt;Root Password ---------------------&lt;br /&gt;New Passwod ----------------------&lt;br /&gt;Retype password -------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-311831707055234580?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/311831707055234580/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6650925325451843875&amp;postID=311831707055234580' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/311831707055234580'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/311831707055234580'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/07/configuring-master-nis-server-1.html' title='Configuring a master NIS Server'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-4630013575547342861</id><published>2009-06-24T10:51:00.000-07:00</published><updated>2009-06-24T11:11:23.122-07:00</updated><title type='text'>Custom GRUB splash image</title><content type='html'>&lt;ul&gt;&lt;li&gt;Log or Switch in to the root account&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Get an image file to use for the new splash image (can be some wallpaper in jpg, png format)&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Check whether ImageMagick rpm is installed&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# rpm -q ImageMagick&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;If it's not installed you have to install it first&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# yum -y install ImageMagick&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Then, Assuming the image is in the root's home folder &amp;amp; the image name is "myboot.jpg"&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# cd&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# convert myboot.jpg -resize 640x480! -colors 14 -depth 8 myboot.xpm&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# ls&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Now you will be able to see a file call "myboot.xpm" &lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Then you have to gzip it.&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# gzip myboot.xpm&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# ls &lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Now you will be able to see a file call "myboot.xpm.gz" &lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Then you have to copy it to "/boot/grub" folder&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# cp myboot.xpm.gz /boot/grub&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Then you have to edit "grub.conf" file with your favorite text editor, I'll use "nano" text editor &lt;/li&gt;&lt;/ul&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# nano /etc/grub.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;Edit the following line&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;splashimage=(hd0,0)/grub/splash.xpm.gz&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;to&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;splashimage=(hd0,0)/grub/myboot.xpm.gz&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;NOTE- DON'T EDIT ANYOTHER PARAMETER OF THE LINE, ONLY CHANGE THE IMAGE FILE NAME.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;save &amp;amp; exit&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Then reboot your system &lt;/li&gt;&lt;/ul&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# reboot&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Then you'll be able to see the new GRUB spalsh image during the startup.&lt;/li&gt;&lt;/ul&gt;------------------------------------------------------------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-4630013575547342861?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/4630013575547342861/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6650925325451843875&amp;postID=4630013575547342861' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/4630013575547342861'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/4630013575547342861'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/06/custom-grub-splash-image-in.html' title='Custom GRUB splash image'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-4453886248669375159</id><published>2009-06-13T02:14:00.000-07:00</published><updated>2009-06-13T02:59:31.242-07:00</updated><title type='text'>Media playback in CentOS5 and RHEL5</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Media (DVD, web content, video &amp;amp; audio) playback in CentOS5 and RHEL5 &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;01&lt;/span&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;. Download RPMFORGE repo configuration RPM.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;32bit&lt;/span&gt;&lt;br /&gt;&lt;a href="http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm"&gt;http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;64bit&lt;/span&gt;&lt;br /&gt;&lt;a href="http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm"&gt;http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Go to the downloaded location, Install it.&lt;br /&gt;&lt;br /&gt;32bit&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;# rpm -ivh rpmforge-release-0.3.6-1.el5.rf.i386.rpm&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;64bit&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;#rpm -ivh rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;02&lt;/span&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;. DVD playback&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;#yum -y install libdvdcss libdvdread libdvdplay libdvdnav lsdvd libdvbpsi&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;03&lt;/span&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;. Gstreamer and Gstreamer-plugins&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;#yum -y install gstreamer gstreamer-plugins-good gstreamer-plugins-bad gstreamer-plugins-ugly&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;04&lt;/span&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;. Mplayer and Mplayer-plugin&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;#yum -y install mplayer mplayerplug-in&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;05&lt;/span&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;. XMMS with MP3 support and Other codecs&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;#yum -y install xmms xmms-crossfade xmms-mp3 xmms-musepack xmms-wma&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;06&lt;/span&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;. W32codecs&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Download&lt;br /&gt;&lt;a href="http://rpm4fc-cn.googlecode.com/files/w32codecs-20071007-0.1.i386.rpm"&gt;http://rpm4fc-cn.googlecode.com/files/w32codecs-20071007-0.1.i386.rpm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Go to the downloaded location and install&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;#rpm -ivh w32codecs-20071007-0.1.i386.rpm&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;07&lt;/span&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;. Adobe Flash Player&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Download&lt;br /&gt;&lt;a href="http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm"&gt;http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Go to the downloaded location and install&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;#rpm -ivh adobe-release-i386-1.0-1.noarch.rpm&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then install the flash player&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;#yum -y install flash-plugin&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;08&lt;/span&gt;&lt;span style="color: rgb(255, 204, 51);"&gt;. Sun Jre (Java Runtime Environment)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Install the dependencies&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;# yum -y install compat-libstdc++-33 compat-libstdc++-296&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Go to &lt;a href="http://www.java.com/"&gt;www.java.com&lt;/a&gt; and go to download section download the Linux RPM (self-extracting file)&lt;br /&gt;Go to the downloaded location&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;#chmod +x jre-6u12-linux-i586-rpm.bin&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;#./jre-6u12-linux-i586-rpm.bin&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;check&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;#java –version&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;If the result is some thing like this, every thing is ok.&lt;/span&gt;&lt;br /&gt;java version "1.6.0_12"&lt;br /&gt;Java(TM) SE Runtime Environment (build 1.6.0_12-b04)&lt;br /&gt;Java HotSpot(TM) Client VM (build 11.2-b01, mixed mode, sharing)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;othewise the result is something like this, that means sun java is not yet default.&lt;/span&gt;&lt;br /&gt;java version "1.4.2"&lt;br /&gt;gij (GNU libgcj) version 4.1.2 20071124 (Red Hat 4.1.2-42)&lt;br /&gt;&lt;br /&gt;Copyright (C) 2006 Free Software Foundation, Inc.&lt;br /&gt;This is free software; see the source for copying conditions.  There is NO&lt;br /&gt;warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;To make sun java default&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;#alternatives --install /usr/bin/java java $(rpm -ql jre | grep bin/java$) 2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;#alternatives --display java&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;#alternatives --config java&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;type number 2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;installing sun java plugin for firefox&lt;/span&gt;&lt;br /&gt;first we have to disable selinux protection for the plugin&lt;br /&gt;check the status of selinux&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;#getenforce&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;if the result is "disabled" no need to do the following command, othewise you do&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;#chcon -t textrel_shlib_t "$(rpm -ql jre | grep libdeploy\\.so$)"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;now we can install the plugin&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;#cd /usr/lib/mozilla/plugins&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;#ln –s /usr/java/jre1.6.0_12/plugin/i386/ns7/libjavaplugin_oji.so&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;------------------------------------------------------------------------------------------&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-4453886248669375159?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/4453886248669375159'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/4453886248669375159'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/06/media-playback-in-centos5-and-rhel5.html' title='Media playback in CentOS5 and RHEL5'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-8596173501166999374</id><published>2009-06-12T05:27:00.000-07:00</published><updated>2009-06-12T05:34:23.272-07:00</updated><title type='text'>Forgot your Windows admin password?</title><content type='html'>&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;Overview&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;This is a utility to (re)set the password of any user that has a valid (local) account on your Windows NT/2k/XP/Vista etc system. &lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;You do not need to know the old password to set a new one.&lt;/li&gt;&lt;li&gt;It works offline, that is, you have to shutdown your computer and boot off a floppydisk or CD or another system.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Will detect and offer to unlock locked or disabled out user accounts! &lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;There is also a registry editor and other registry utilities that works under linux/unix, and can be used for other things than password editing. &lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;Why&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;NT stores its user information, including crypted versions of the passwords, in a file called 'sam', usually found in \windows\system32\config. This file is a part of the registry, in a binary format previously undocumented, and not easily accessible. But thanks to a German(?) named B.D, I've now made a program that understands the registry.&lt;br /&gt;&lt;br /&gt;This site provides CD and floppy images for end users to easily edit their forgotten passwords. But it also provides full source code and binary builds of the tools to allow others to use as they like for other purposes. Registry format documentation also available.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;How to get it&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The following is available for download and information:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://home.eunet.no/pnordahl/ntpasswd/bootdisk.html"&gt;Password reset CD/bootdisk: Instructions &amp;amp; image to download. &lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://home.eunet.no/pnordahl/ntpasswd/editor.html"&gt;Utility/library update information, documentation, source code&lt;/a&gt; &lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://home.eunet.no/pnordahl/ntpasswd/faq.html"&gt;Frequently asked questions&lt;/a&gt; - Please read before asking questions about the passoword reset CD/floppy. &lt;/li&gt;&lt;/ul&gt;------------------------------------------------------------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-8596173501166999374?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/8596173501166999374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/8596173501166999374'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/06/forgot-your-windows-nt2kxpvista-admin.html' title='Forgot your Windows admin password?'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-7175834508323931183</id><published>2009-06-12T05:00:00.000-07:00</published><updated>2009-06-12T05:13:39.796-07:00</updated><title type='text'>Accessing Windows partitions from Linux</title><content type='html'>&lt;span style="font-weight: bold;"&gt;By default any Linux system will fully support FAT partitions, But when it comes to NTFS some are still NOT supporting by default.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Desktop Editions such as Ubuntu 7.10 and Fedora 8 now fully supporting NTFS (with write support), and the partitions are automatically mounted.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Server Editions such as CentOS 5 and RHEL 5 you have to do the following to access NTFS partitions.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;01&lt;/span&gt;. Configure RPMFroge 3rd party repository, please read my tutorial about &lt;a href="http://uddika.blogspot.com/2009/06/centos-5-repositories.html"&gt;CentOS Repositories.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;02&lt;/span&gt;. Install the following packages&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# yum install dkms-fuse fuse-ntfs-3g&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;Accessing the Windows partitions.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;01&lt;/span&gt;. See what are the current partitions in your system, and figure out what partitions belongs to windows.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# fdisk -l&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Usually NTFS partitions will be displayed with a HPFS/NTFS label, Where as FAT partitions will be labeled as W95 FAT32 or W95 FAT16&lt;br /&gt;&lt;br /&gt;In the example I'm assuming,&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/dev/hda1 = NTFS&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/dev/hda2 = FAT32&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;02&lt;/span&gt;. Create mount points for each windows partition that you have in the system.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;# mkdir /media/ntfs&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;# mkdir /media/fat32&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;check&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# ls -l /media&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Note - The mount point name can be any name that you like.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;03&lt;/span&gt;. Manually mounting the partitions.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;FAT&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# mount /dev/hda2 /media/fat32&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# cd /media/fat32&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# ls -l&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Note - You'll be having Read/Write access to FAT partitions.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;NTFS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# mount -t ntfs-3g /dev/hda1 /media/ntfs&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# cd /media/ntfs&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# ls -l&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Note - You'll be having Read/Write access to NTFS partitions.&lt;br /&gt;&lt;br /&gt;Once you manually mount the partitions, when you shutdown your PC the partitions will be automatically unmounted.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;04&lt;/span&gt;. Automatically mounting the partition on boot.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# nano /etc/fstab&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;at the end of file, enter the following lines.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/dev/hda1 /media/ntfs ntfs-3g defaults 0 0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/dev/hda2 /media/fat vfat defaults 0 0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;What we have done is, first we give the partition number then the mount point then the file system then the permissions then whether to check the partition in case of a power failure, 0 (zero) means don't check since we don't have necessary tools to check NTFS or FAT partitions and finally the checking priority.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;05&lt;/span&gt;. So now every time you boot your PC the partitions will be automatically mounted to the mount points.&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-7175834508323931183?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/7175834508323931183'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/7175834508323931183'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/06/accessing-windows-partitions-from-linux.html' title='Accessing Windows partitions from Linux'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-9060123974928990119</id><published>2009-06-10T18:48:00.000-07:00</published><updated>2009-06-10T19:17:36.167-07:00</updated><title type='text'>yum command: Update / Install Packages</title><content type='html'>&lt;span style="font-weight: bold;"&gt;yum command: Update / Install Packages under /RHEL / CentOS Linux Version 5.x&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Q. How do I use yum command to update and patch my Red hat Enterprise Linux / CentOS Linux version 5.x server via RHN / Internet? Can I use up2date command under RHEL 5?&lt;br /&gt;&lt;br /&gt;A. up2date command was part of RHEL v4.x or older version. You need to use yum command to update and patch the system using RHN or Internet. Use yum command to install critical and non-critical security updates as well as binary packages. Login as the root user to install and update the system.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;Task: Register my system with RHN&lt;/span&gt;&lt;br /&gt;To register your system with RHN type the following command and just follow on screen instructions (CentOS user skip to next step):&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# rhn_register&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;Task: Display list of updated software (security fix)&lt;/span&gt;&lt;br /&gt;Type the following command at shell prompt:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# yum list updates&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;Task: Patch up system by applying all updates&lt;/span&gt;&lt;br /&gt;To download and install all updates type the following command:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# yum update&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;Task: List all installed packages&lt;/span&gt;&lt;br /&gt;List all installed packages, enter:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# rpm -qa&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# yum list installed&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Find out if httpd package installed or not, enter:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# rpm -qa | grep httpd*&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# yum list installed httpd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;Task: Check for and update specified packages&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# yum update {package-name-1}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To check for and update httpd package, enter:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# yum update httpd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;Task: Search for packages by name&lt;/span&gt;&lt;br /&gt;Search httpd and all matching perl packages, enter:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# yum list {package-name}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# yum list {regex}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# yum list httpd&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# yum list perl*&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;Task: Install the specified packages [ RPM(s) ]&lt;/span&gt;&lt;br /&gt;Install package called httpd:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# yum install {package-name-1} {package-name-2}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# yum install httpd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;Task: Remove / Uninstall the specified packages [ RPM(s) ]&lt;/span&gt;&lt;br /&gt;Remove package called httpd, enter:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# yum remove {package-name-1} {package-name-2}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# yum remove httpd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;Task: Display the list of available packages&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# yum list all&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;Task: Display list of group software&lt;/span&gt;&lt;br /&gt;Type the following command:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# yum grouplist&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;Task: Install all the default packages by group&lt;/span&gt;&lt;br /&gt;Install all 'Development Tools' group packages, enter:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# yum groupinstall "Development Tools"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;Task: Update all the default packages by group&lt;/span&gt;&lt;br /&gt;Update all 'Development Tools' group packages, enter:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# yum groupupdate "Development Tools"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;Task: Remove all packages in a group&lt;/span&gt;&lt;br /&gt;Remove all 'Development Tools' group packages, enter:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# yum groupremove "Development Tools"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;Task: Install particular architecture package&lt;/span&gt;&lt;br /&gt;If you are using 64 bit RHEL version it is possible to install 32 packages:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# yum install {package-name}.{architecture}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# yum install mysql.i386&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;Task: Display packages not installed via official RHN subscribed repos&lt;/span&gt;&lt;br /&gt;Show all packages not available via subscribed channels or repositories i.e show packages installed via other repos:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# yum list extras&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 51);"&gt;Task: Display what package provides the file&lt;/span&gt;&lt;br /&gt;You can easily find out what RPM package provides the file. For example find out what provides the /etc/passwd file:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# yum whatprovides /etc/passwd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You can use same command to list packages that satisfy dependencies:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# yum whatprovides {dependency-1} {dependency-2}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Refer yum command man page for more information:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# man yum&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Special thanks for nixCraft&lt;br /&gt;------------------------------------------------------------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-9060123974928990119?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/9060123974928990119'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/9060123974928990119'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/06/yum-command-update-install-packages.html' title='yum command: Update / Install Packages'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-4712230362207771174</id><published>2009-06-08T20:46:00.000-07:00</published><updated>2009-06-08T20:52:07.228-07:00</updated><title type='text'>Configuring rpmforge third party repository</title><content type='html'>&lt;span style="font-weight: bold;"&gt;01&lt;/span&gt;. Download the repository configuration file&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# wget http://tr.im/elsrf32&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# ls -l&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;02&lt;/span&gt;. Go to download location and double click on &lt;span style="font-weight: bold;"&gt;“rpmforge-release-0.3.6-1.el5.rf.i386.rpm”&lt;/span&gt; to install it.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;03&lt;/span&gt;. Check&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# yum repolist&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Optionally we can enable centos Plus and Contrib repositories&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;01&lt;/span&gt;. Locate the system file&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# cd /etc/yum.repos.d&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# ls –l &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;02&lt;/span&gt;. Open the file&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]#nano CentOS.Base.repo&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;03&lt;/span&gt;. Go to end of file&lt;br /&gt;[centos plus]&lt;br /&gt;---------------------&lt;br /&gt;---------------------&lt;br /&gt;---------------------&lt;br /&gt;enable=&lt;span style="font-weight: bold;"&gt;0&lt;/span&gt; change to enable=&lt;span style="font-weight: bold;"&gt;1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;[contrib]&lt;br /&gt;---------------------&lt;br /&gt;---------------------&lt;br /&gt;---------------------&lt;br /&gt;enable=0 change to enable=1&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;04&lt;/span&gt;. Save this file&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Ctrl + O&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;05&lt;/span&gt;. Exit the file&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Ctrl + X&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;06&lt;/span&gt;. Check&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# yum repolist&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-4712230362207771174?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/4712230362207771174/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6650925325451843875&amp;postID=4712230362207771174' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/4712230362207771174'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/4712230362207771174'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/06/configuring-rpmforge-third-party.html' title='Configuring rpmforge third party repository'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-7881761940449719832</id><published>2009-06-08T19:08:00.000-07:00</published><updated>2009-06-08T19:43:06.276-07:00</updated><title type='text'>CentOS 5 Repositories</title><content type='html'>&lt;span style="font-weight: bold;"&gt;What is a Repository?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A software repository (sometimes abbreviated as a repo) is a storage location from which software packages may be retrieved and installed on a computer. Many software publishers and other organizations maintain servers on the Internet for this purpose, either free of charge or for a subscription fee.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;CentOS Software Repositories (Official)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;These repositories are already configured by default in CentOS.&lt;br /&gt;&lt;br /&gt;Base repo - The packages that comes with the release media. (CDs or the DVD)&lt;br /&gt;Packages in the Base repo - &lt;a href="http://mirror.centos.org/centos-5/5/os"&gt;http://mirror.centos.org/centos-5/5/os&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Addons repo - The packages used/produced in the build but not released with the release media.&lt;br /&gt;Packages in the Addons repo - &lt;a href="http://mirror.centos.org/centos-5/5/addons"&gt;http://mirror.centos.org/centos-5/5/addons&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Extras repo - The additional packages that may be useful. (Non Essential)&lt;br /&gt;Packages in Extras repo - &lt;a href="http://mirror.centos.org/centos-5/5/extras"&gt;http://mirror.centos.org/centos-5/5/extras&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Centosplus repo - This repository is for items that actually upgrade certain base CentOS components. This repo will change CentOS to not be exactly like RHEL. (NOT COMPATIBLE WITH RHEL, DISABLED BY DEFAULT)&lt;br /&gt;&lt;br /&gt;Packages in Centosplus repo - &lt;a href="http://mirror.centos.org/centos-5/5/centosplus"&gt;http://mirror.centos.org/centos-5/5/centosplus&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Contrib repo - Packages made by CentOS users (from CentOS 5.3 DISABLED BY DEFAULT)&lt;br /&gt;Packges in Contrib repo - &lt;a href="http://mirror.centos.org/centos-5/5.3/contrib"&gt;http://mirror.centos.org/centos-5/5.3/contrib&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Updates repo - The updated packages of the above repos.&lt;br /&gt;Packages in Updates repo - &lt;a href="http://mirror.centos.org/centos-5/5/updates"&gt;http://mirror.centos.org/centos-5/5/updates&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;CentOS Software Repositories (3rd Party)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;These repositories are not by default configured in CentOS, You have to manually configure them.&lt;br /&gt;&lt;br /&gt;RPMForge repo - Maintained by a software developer call "dag wieers". He is a member of the CentOS development team. Contains lots of 3rd party software for CentOS and RHEL.&lt;br /&gt;Packages in RPMForge repo - &lt;a href="http://dag.wieers.com/rpm/packages.php"&gt;http://dag.wieers.com/rpm/packages.php&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;To configure the RPMForge repo you have to download and install the following rpm package.&lt;br /&gt;&lt;br /&gt;For CentOS 5 i386 - &lt;a href="http://apt.sw.be/redhat/el5/en/i386/rpmforg/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm"&gt;http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;For CentOS 5 x86_64 - &lt;a href="http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm"&gt;http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-7881761940449719832?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/7881761940449719832/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6650925325451843875&amp;postID=7881761940449719832' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/7881761940449719832'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/7881761940449719832'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/06/centos-5-repositories.html' title='CentOS 5 Repositories'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-3275115434649689482</id><published>2009-06-08T09:17:00.000-07:00</published><updated>2009-06-08T09:44:24.180-07:00</updated><title type='text'>User and Group management command</title><content type='html'>&lt;ul&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Create a new user account&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# useradd uddika&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# passwd uddika&lt;/span&gt;&lt;br /&gt;Changing password for user uddika.&lt;br /&gt;New UNIX password: &lt;span style="font-weight: bold;"&gt;******&lt;/span&gt;&lt;br /&gt;Retype new UNIX password: &lt;span style="font-weight: bold;"&gt;*****&lt;/span&gt;&lt;br /&gt;passwd: all authentication tokens updated successfully.&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Multisession Login(Users can login same time)&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-weight: bold;"&gt;Alt+F2&lt;/span&gt;&lt;br /&gt;Then give a username and password&lt;br /&gt;&lt;br /&gt;Count the login users&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# who&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Changing your own password as a normal user&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;Login the account&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[uddika@server ~]$ passwd&lt;/span&gt;&lt;br /&gt;Changing password for user uddika.&lt;br /&gt;Changing password for uddika.&lt;br /&gt;(current) UNIX password: ******&lt;br /&gt;New UNIX password: *******&lt;br /&gt;Retype new UNIX password: *******&lt;br /&gt;passwd: all authentication tokens updated successfully.&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;How to change the password properties of a user&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;View the current password properties&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[uddika@server ~]$ chage -l uddika&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Change the current password properties&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# chage uddika&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;The things that happened automatically once you create a user account&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;Every user will get a private home folder&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# ls -l /home&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Every user will get a private group account&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Username = Uddika Private Group name = Uddika&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Every user will get a user id (uid) and group id (gid)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# id Uddika&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The user account database and the group account database will be automatically updated&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;User account database&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;View the user account database&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# cat /etc/passwd |more&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Display last 10 records&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# tail /etc/passwd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Display last 5 records&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# tail –n5 /etc/passwd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Group account database&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;View the group account database&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# cat /etc/group |more&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# tail /etc/group&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;How to delete user account &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;View the current account&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# tail /etc/passwd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Delete with home folder&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# userdel –r username&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Delete without home folder&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# userdel username&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Verify the account&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;User account - [root@server ~]# tail /etc/group&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Home folder - [root@server ~]# ls -l /home&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-weight: bold;"&gt;Deleting Groups &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;View current groups&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# tail /etc/group&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Delete the group&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# groupdel groupname&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Verify group&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# tail /etc/group&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;------------------------------------------------------------------------------------------&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-3275115434649689482?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/3275115434649689482/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6650925325451843875&amp;postID=3275115434649689482' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/3275115434649689482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/3275115434649689482'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/06/user-and-group-management-command.html' title='User and Group management command'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-8672585265903087380</id><published>2009-06-08T00:51:00.000-07:00</published><updated>2009-06-08T00:58:17.475-07:00</updated><title type='text'>Command History</title><content type='html'>&lt;span style="font-weight: bold;"&gt;01&lt;/span&gt;. Last thousand command display&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# history |more&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;02&lt;/span&gt;. Last ten command display &lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# history 10&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Once you logout or shutdown your pc your current command history will be saved in to a hidden file in your home folder.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;03&lt;/span&gt;. See a hidden file&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# cd &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# cat .bash_history&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;------------------------------------------------------------------------------------------&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-8672585265903087380?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/8672585265903087380/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6650925325451843875&amp;postID=8672585265903087380' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/8672585265903087380'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/8672585265903087380'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/06/command-history.html' title='Command History'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-2488041755023573601</id><published>2009-06-08T00:27:00.000-07:00</published><updated>2009-06-08T00:31:08.773-07:00</updated><title type='text'>System Information Command</title><content type='html'>&lt;span style="font-weight: bold;"&gt;01&lt;/span&gt;. Print all information  &lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# uname –a&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;02&lt;/span&gt;. Print the kernel name  &lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# uname –s&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;03&lt;/span&gt;. Print the network node hostname  &lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# uname –n&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;04&lt;/span&gt;. Print the kernel release  &lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# uname -r&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;05&lt;/span&gt;. Print the kernel version  &lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# uname -v&lt;/span&gt;  &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;06&lt;/span&gt;. Print the machine hardware name  &lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# uname –m&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;07&lt;/span&gt;. Print the processor type  &lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# uname –p&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;08&lt;/span&gt;. Print the hardware platform  &lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# uname –i&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;09&lt;/span&gt;. Print the operating system  &lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# uname –o&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;10&lt;/span&gt;. Display this help and exit  &lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# uname --help    &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;11&lt;/span&gt;. Output version information and exit  &lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# uname –version&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;12&lt;/span&gt;. PCI Information&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# lspci&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# lspci –v |more&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;13&lt;/span&gt;. USB Information&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# lsusb&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;14&lt;/span&gt;. CPU Information&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# cat /proc/cpuinfo&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;15&lt;/span&gt;. Memory (Ram) Information&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# cat /proc/meminfo |more&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-2488041755023573601?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/2488041755023573601/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6650925325451843875&amp;postID=2488041755023573601' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/2488041755023573601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/2488041755023573601'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/06/system-information-command.html' title='System Information Command'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-6733998825682575913</id><published>2009-06-07T02:48:00.000-07:00</published><updated>2009-06-07T02:54:32.891-07:00</updated><title type='text'>File Folder Searching Commands</title><content type='html'>&lt;span style="font-weight: bold;"&gt;01&lt;/span&gt;. Search for all data (System / Personal)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]#locate filename&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;02&lt;/span&gt;. For any data&lt;br /&gt;Syntax - [root@server ~]# find location option parameterAccordingToOption&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# find / -name ‘inittab’&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;03&lt;/span&gt;. To search system files and there manuals&lt;br /&gt;Syntax - [root@server ~] #whereis filename&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# whereis inittab&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;04&lt;/span&gt;. To locate system commands only&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# which cal&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-6733998825682575913?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/6733998825682575913/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6650925325451843875&amp;postID=6733998825682575913' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/6733998825682575913'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/6733998825682575913'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/06/file-folder-searching-commands.html' title='File Folder Searching Commands'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-3235884926422130977</id><published>2009-06-06T21:33:00.000-07:00</published><updated>2009-06-06T21:38:08.761-07:00</updated><title type='text'>Storage Device Capacity Measuring Commands</title><content type='html'>&lt;span style="font-weight: bold;"&gt;01&lt;/span&gt;. Hard Disk Drive Storage Measuring Commands&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# df –hT /&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;02&lt;/span&gt;. Boot Partition Storage Measuring Commands&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# df –hT /boot&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-weight: bold;"&gt;Removable Media Storage Measuring Commands (First you have to mount it)&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;03&lt;/span&gt;. CD/DVD/CD-RW/DVD-RW Storage Measuring Commands&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# df –hT /dev/scd0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;04&lt;/span&gt;. Floppy Disk Drive Storage Measuring Commands&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# df –hT /dev/fd0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;05&lt;/span&gt;. USB Storage Measuring Commands&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# df –hT /dev/sdb1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;06&lt;/span&gt;. Folder Storage Measuring Commands&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# du –h /etc&lt;/span&gt;       (Display all file and folder details)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# du –hs /etc&lt;/span&gt;      (Display folder details only)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;07&lt;/span&gt;. File Storage Measuring Commands&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# du –h /boot/grub/grub.conf&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;------------------------------------------------------------------------------------------&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-3235884926422130977?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/3235884926422130977/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6650925325451843875&amp;postID=3235884926422130977' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/3235884926422130977'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/3235884926422130977'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/06/storage-device-capacity-measuring.html' title='Storage Device Capacity Measuring Commands'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-3567067236213526000</id><published>2009-06-05T11:06:00.000-07:00</published><updated>2009-06-05T11:09:02.760-07:00</updated><title type='text'>Mounting a USB pen</title><content type='html'>&lt;span style="font-weight: bold;"&gt;01&lt;/span&gt;. Create a mount point – A place to load the data structure of the storage device (One time only)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# mkdir /media/usb&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;02&lt;/span&gt;. See a mount point  &lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# ls -l /media&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;03&lt;/span&gt;. Fix the pen and verify the device driver assigned (sdb, sdc, sdd)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;04&lt;/span&gt;. Mounting the USB&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# mount /dev/sdb1 /media/usb&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;05&lt;/span&gt;. See the pen drive data  &lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# cd /media/usb   &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# ls –l&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;06&lt;/span&gt;. Before you unplug the pen    &lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# cd &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# umount /dev/sdb1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-3567067236213526000?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/3567067236213526000/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6650925325451843875&amp;postID=3567067236213526000' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/3567067236213526000'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/3567067236213526000'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/06/mounting-usb-pen.html' title='Mounting a USB pen'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-5600270485680165609</id><published>2009-06-05T10:53:00.000-07:00</published><updated>2009-06-05T10:56:06.150-07:00</updated><title type='text'>Mounting a Floppy Disk</title><content type='html'>&lt;span style="font-weight: bold;"&gt;01&lt;/span&gt;. Create a mount point – A place to load the data structure of the storage device (One time only)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# mkdir /media/floppy&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;02&lt;/span&gt;. See a mount point  &lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# ls -l /media&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;03&lt;/span&gt;. Verify the device driver assigned to your Floppy Disk Driver&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# ls -l /dev/fl*   &lt;/span&gt;&lt;br /&gt;eg - /dev/fd0 , /dev/fd1&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;04&lt;/span&gt;. Mounting the Floppy&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# mount /dev/fd0 /media/floppy&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;05&lt;/span&gt;. See the floppy drive data  &lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# cd /media/floppy   &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# ls –l&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;06&lt;/span&gt;. Before you take out the floppy    &lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# cd &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# umount /dev/fd0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-5600270485680165609?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/5600270485680165609/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6650925325451843875&amp;postID=5600270485680165609' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/5600270485680165609'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/5600270485680165609'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/06/mounting-floppy-disk.html' title='Mounting a Floppy Disk'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-129525040138692308</id><published>2009-06-05T10:41:00.000-07:00</published><updated>2009-06-05T10:48:34.049-07:00</updated><title type='text'>Mounting a ROM drive</title><content type='html'>&lt;span style="font-weight: bold;"&gt;01&lt;/span&gt;. Create a mount point – A place to load the data structure of the storage device (One time only)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# mkdir /media/cdrom&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;02&lt;/span&gt;. See a mount point &lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# ls -l /media&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;03&lt;/span&gt;. Verify the device driver assigned to your ROM&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# ls -l /dev/cd*   &lt;/span&gt;&lt;br /&gt;eg - /dev/scd0 , /dev/scd1 , /dev/scd2&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;04&lt;/span&gt;. Mounting the ROM&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# mount /dev/scd0 /media/cdrom&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;05&lt;/span&gt;. See the ROM data &lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# cd /media/cdrom   &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# ls –l&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;06&lt;/span&gt;. To take out the media&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# cd&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# eject&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# eject /dev/scd0    &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;07&lt;/span&gt;. To take in the media   &lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# eject –t&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# eject -t /dev/scd0&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;------------------------------------------------------------------------------------------&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-129525040138692308?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/129525040138692308/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6650925325451843875&amp;postID=129525040138692308' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/129525040138692308'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/129525040138692308'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/06/mounting-rom-drive.html' title='Mounting a ROM drive'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-4963813857349932055</id><published>2009-06-05T05:08:00.000-07:00</published><updated>2009-06-05T10:33:18.555-07:00</updated><title type='text'>Object management command</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="font-weight: bold;"&gt;Files (Text Base)&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Create new file&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;#nano filename&lt;br /&gt;#nano /etc filename&lt;br /&gt;#touch filename&lt;br /&gt;#touch /etc filename&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;To edit file&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;#nano filename&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Read file&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;#nano filename&lt;br /&gt;#cat filename&lt;br /&gt;#cat filename |more&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Read first 10 lines&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;#head filename&lt;br /&gt;#head –n5 filename  (Display first 5 lines)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Read final 10 lines&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;#tail filename&lt;br /&gt;#tail –n5 filename  (Display last 5 lines)&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center; font-weight: bold;"&gt;Create folder&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;#mkdir foldername&lt;br /&gt;#mkdir /etc foldername&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center; font-weight: bold;"&gt;Create Symlink (Short cut)&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span style="font-weight: bold;"&gt;Symlink pointing to folder&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Create a symlink in your home folder to access “/usr/share/background/images” folder&lt;br /&gt;&lt;br /&gt;Syntax - [root@server ~]# ln -s DestinationFolderPath SymlinkName&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;01&lt;/span&gt;. Change your home folder&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#cd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;02&lt;/span&gt;. Create symlink (symlink name uddika)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#ln –s /usr/share/background/images uddika&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;03&lt;/span&gt;. Check the link&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#ls –l&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;04&lt;/span&gt;. Go to symlink&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#cd uddika&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: left; font-weight: bold;"&gt;&lt;span class="producttext"&gt;Symlink pointing to file &lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Create a symlink in your home folder to access “/boot/grub/grub.conf”&lt;br /&gt;&lt;br /&gt;Syntax - [root@server ~]# ln -s DestinationFilePath SymlinkName&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;01&lt;/span&gt;. Change your home folder&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#cd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;02&lt;/span&gt;. Create symlink (symlink name uddika)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#ln –s /boot/grub/grub.conf uddika&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;03&lt;/span&gt;. Check the link&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#ls –l&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;04&lt;/span&gt;. Go to symlink&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#nano uddika&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-weight: bold;"&gt;Renaming the object (File, Folder and Symlink)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;Syntax - [root@server ~]# mv CurrentObjectName NewObjectName&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# mv Grub GrubConf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-weight: bold;"&gt;Moving object (Cut &amp;amp; Paste)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;Syntax - [root@server ~]# mv ObjectName NewLocation&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# mv bat /usr/share/background/images&lt;/span&gt;&lt;br /&gt;&lt;p class="MsoNormal" style=""&gt;&lt;span style=""&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center; font-weight: bold;"&gt;Copying object&lt;br /&gt;&lt;/div&gt;&lt;span style="font-weight: bold;"&gt;Files   &lt;/span&gt;&lt;br /&gt;Syntax - [root@server ~]# cp FileName NewLocation&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# cp ball /usr/share/background/images    &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Folder   &lt;/span&gt;&lt;br /&gt;Syntax - [root@server ~]# cp -r FolderName NewLocation&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# cp -r /home/samba /tmp    &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Symlink   &lt;/span&gt;&lt;br /&gt;Syntax - [root@server ~]# cp -d FileName NewLocation&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# cp -d /home/samba /tmp    &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center; font-weight: bold;"&gt;Deleting Object&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-weight: bold;"&gt;Files and Symlinks   &lt;/span&gt;&lt;br /&gt;Syntax - [root@server ~]# rm -f ObjectName &lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# rm -f text1    &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Folders   &lt;/span&gt;&lt;br /&gt;Syntax - [root@server ~]# rm -rf FolderName &lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[root@server ~]# rm -rf ebook&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-4963813857349932055?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/4963813857349932055/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6650925325451843875&amp;postID=4963813857349932055' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/4963813857349932055'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/4963813857349932055'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/06/object-management-command.html' title='Object management command'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-465688713773467401</id><published>2009-06-05T04:00:00.000-07:00</published><updated>2009-06-05T04:20:55.168-07:00</updated><title type='text'>Directory browsing and listing commands</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="font-weight: bold;"&gt;Directory listing commands&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;01&lt;/span&gt;. See a current location (print work directory)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#pwd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;02&lt;/span&gt;. List content in the folder&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#ls&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#tree &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;03&lt;/span&gt;. List all content in the folder (Hidden file)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#ls -a&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#tree -a&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Object Color Codes&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;White Color&lt;/span&gt; – Text base files (Htmal , Java, etc….)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Dark Blue&lt;/span&gt; – Folders&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Green&lt;/span&gt; – Executable binary files and executable text file (Scripts) or any files copied from windows to Linux.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Red&lt;/span&gt; – Compressed files (gzip, etc….)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Purple&lt;/span&gt; – Multimedia files (Mp3, Pictures)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Orange&lt;/span&gt; – Device Driver File&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Light blue color&lt;/span&gt; – Symlinks  (Short Cuts)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;04&lt;/span&gt;. See a long list&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#ls -l&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;05&lt;/span&gt;. Long list with a hidden file&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#ls -la&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;06&lt;/span&gt;. Long list, with color, and hidden files and fit to screen&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#ls --color -la |more&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center; font-weight: bold;"&gt;Directory browsing commands&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;To go to sub folders&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Use the relative path of the folder&lt;br /&gt;Don’t type the current location that you are in&lt;br /&gt;&lt;br /&gt;Ex -  &lt;span style="font-weight: bold;"&gt;#cd test&lt;/span&gt;&lt;br /&gt;   &lt;span style="font-weight: bold;"&gt;#cd uddika&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;To go to main folders&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Use full path&lt;br /&gt;Always start with /&lt;br /&gt;&lt;br /&gt;Ex -  &lt;span style="font-weight: bold;"&gt;#cd /etc&lt;/span&gt;&lt;br /&gt;  &lt;span style="font-weight: bold;"&gt; #cd /usr/share&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;07&lt;/span&gt;. One folder back&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#cd ..&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;08&lt;/span&gt;. To your home folder&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#cd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;09&lt;/span&gt;. To previous location&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#cd -&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;10&lt;/span&gt;. To root partitions&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#cd /&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-465688713773467401?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/465688713773467401/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6650925325451843875&amp;postID=465688713773467401' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/465688713773467401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/465688713773467401'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/06/directory-listing-commands-01.html' title='Directory browsing and listing commands'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-8646846969075126106</id><published>2009-06-04T22:58:00.000-07:00</published><updated>2009-06-04T23:06:47.745-07:00</updated><title type='text'>Fedora 10 Enable GUI Root Login</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Q.&lt;/span&gt; How do I enable root login under Fedora 10 Gnome GUI login screen / manager?&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;A.&lt;/span&gt; Fedora 10 uses pam module called pam_succeed_if.so. This module is designed to succeed or fail authentication based on characteristics of the account belonging to the user being authenticated. One use is to select whether to load other modules based on this test. This module blocks root login using GUI.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Login as root&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;01&lt;/span&gt;. Then open GUI terminal (bash prompt) and type the following command to become root user:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;$ su –&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Fedora 10 update GDM config to allow root login&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;02&lt;/span&gt;. Type your root password. Next, make a backup of /etc/pam.d/gdm, enter:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#cp /etc/pam.d/gdm /root&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;03&lt;/span&gt;. Now open /etc/pam.d/gdm using nano or vi text editor, enter:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#nano /etc/pam.d/gdm&lt;/span&gt;&lt;br /&gt;OR&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#vi /etc/pam.d/gdm&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;04&lt;/span&gt;. Alternatively, you can do everything in a one command:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#su -c 'nano /etc/pam.d/gdm'&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;05&lt;/span&gt;. Find line that read as follows:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;auth required pam_succeed_if.so user != root quiet&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;06&lt;/span&gt;. Remove or comment out line by prefixing #.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;# auth required pam_succeed_if.so user != root quiet&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;07&lt;/span&gt;. Save and close the file. Logout from terminal and from GUI itself. Now you should be able login as root user using GDM GUI login manager.&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-8646846969075126106?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/8646846969075126106/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6650925325451843875&amp;postID=8646846969075126106' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/8646846969075126106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/8646846969075126106'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/06/fedora-10-enable-gui-root-login.html' title='Fedora 10 Enable GUI Root Login'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-8080165651474890507</id><published>2009-06-04T03:54:00.000-07:00</published><updated>2009-06-04T03:56:13.965-07:00</updated><title type='text'>How to Backup MBR - Master Boot Record</title><content type='html'>The MBR (master boot record) is located at cylinder 0, head 0, and sector 1. It's the very first sector of the hard drive and it is 512 bytes in size. When the BIOS boot your machine it looks in the MBR for information on your partitions and the initial boot loader. The MBR contains a partition table and boot code. The boot code executes and then transfers the process to the boot loader program on your active (bootable) partition.&lt;br /&gt;&lt;br /&gt;We can take the backup of MBR either to a floppy disk or to a CDROM.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;01&lt;/span&gt;. Backup to a floppy:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#dd if=/dev/hda of=/dev/fd0 bs=512 count=1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;02&lt;/span&gt;. Backup to CDR:&lt;br /&gt;&lt;br /&gt;First, create the MBR backup to a file on your hard drive.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#dd if=/dev/hda of=mbr.bak bs=512 count=1&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Now, burn the file you just created to CDR.&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-8080165651474890507?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/8080165651474890507/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6650925325451843875&amp;postID=8080165651474890507' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/8080165651474890507'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/8080165651474890507'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/06/how-to-backup-mbr-master-boot-record.html' title='How to Backup MBR - Master Boot Record'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-1351476772678542890</id><published>2009-06-04T03:33:00.000-07:00</published><updated>2009-06-04T03:36:55.503-07:00</updated><title type='text'>Creating a super user with root rights</title><content type='html'>Sudo is a program which can be used by normal users to execute programs as super user or any other user. Sudo access is controlled by /etc/sudoers. The users listed in /etc/sudoers file can execute commands with an effective user id of 0 and a group id of root's group.&lt;br /&gt;&lt;br /&gt;The file '/etc/sudoers' should be edited with the editor "visudo".&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;01&lt;/span&gt;. First, create a user called "uddika"&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#useradd uddika&lt;br /&gt;#passwd uddika&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;02&lt;/span&gt;. To give a specific group of users limited root privileges, edit the file with visudo as follows: &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;# visudo&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;03&lt;/span&gt;. Go down to the line &lt;span style="font-weight:bold;"&gt;‘# User privilege specification‘&lt;/span&gt;and add the following line.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;uddika ALL=(ALL) ALL&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-1351476772678542890?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/1351476772678542890/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6650925325451843875&amp;postID=1351476772678542890' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/1351476772678542890'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/1351476772678542890'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/06/creating-super-user-with-root-rights.html' title='Creating a super user with root rights'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-395092509683728258</id><published>2009-06-04T03:20:00.000-07:00</published><updated>2009-06-04T03:26:08.398-07:00</updated><title type='text'>How to disable direct root login.</title><content type='html'>Direct login for the root user is a major security issue. We can disable direct login access to reduce the security risk. This way we can have two separate passwords for root access which makes the box more secure. Also we are using the protocol 2 which is newer and more secure.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;01&lt;/span&gt;. SSH into your server as 'admin' and gain root access by su&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;02&lt;/span&gt;. Copy and paste this line to edit the file for SSH logins&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#nano  /etc/ssh/sshd_config&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;03&lt;/span&gt;. Find the line&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Protocol 2, 1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;04&lt;/span&gt;. Uncomment it and change it to look like&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Protocol 2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;05&lt;/span&gt;. Next, find the line&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;PermitRootLogin yes&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;06&lt;/span&gt;. Uncomment it and make it look like &lt;span style="font-weight:bold;"&gt;PermitRootLogin no&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;07&lt;/span&gt;. Save the file &lt;span style="font-weight:bold;"&gt;Ctrl+o&lt;/span&gt; then &lt;span style="font-weight:bold;"&gt;Ctrl+x&lt;/span&gt; then enter&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;08&lt;/span&gt;. Now you can restart SSH&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#/etc/rc.d/init.d/sshd restart&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now, no one will be able to login to root with out first loggin in as admin and 'su -' to root.&lt;br /&gt;&lt;br /&gt;Be sure that you remember both the passwords!&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-395092509683728258?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/395092509683728258/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6650925325451843875&amp;postID=395092509683728258' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/395092509683728258'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/395092509683728258'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/06/how-to-disable-direct-root-login.html' title='How to disable direct root login.'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-4074859808560389565</id><published>2009-06-04T03:08:00.000-07:00</published><updated>2009-06-04T03:11:57.393-07:00</updated><title type='text'>How to Disable Telnet access on the server</title><content type='html'>Telnet sends password in plain text passwords and usernames through logins, and hackers can obtain these passwords easily as compared to SSH. TELNET server listens for incoming messages on port 23, and sends outgoing messages to port 23.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;01&lt;/span&gt;. Login to your server through SSH as a root user.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;02&lt;/span&gt;. Open file&lt;br /&gt;    &lt;span style="font-weight:bold;"&gt;#nano /etc/xinetd.d/telnet&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;03&lt;/span&gt;. Look for the line: &lt;span style="font-weight:bold;"&gt;disable = no&lt;/span&gt; and replace with &lt;span style="font-weight:bold;"&gt;disable = yes&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;04&lt;/span&gt;. Now restart the inetd service:&lt;br /&gt;   &lt;span style="font-weight:bold;"&gt;#/etc/rc.d/init.d/xinetd restart&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;05&lt;/span&gt;. Make sure it is turned through chkconfig as well because it can still start through that.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#/sbin/chkconfig telnet off&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;06&lt;/span&gt;. Scan your server to ensure port 23 is closed.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#nmap -sT -O localhost&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Also run ps -aux | grep telnet and if you find anything other than “grep telnet” as result kill the process.&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-4074859808560389565?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/4074859808560389565/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6650925325451843875&amp;postID=4074859808560389565' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/4074859808560389565'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/4074859808560389565'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/06/how-to-disable-telnet-access-on-server.html' title='How to Disable Telnet access on the server'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-432241372965782243</id><published>2009-06-03T23:16:00.000-07:00</published><updated>2009-06-03T23:23:37.739-07:00</updated><title type='text'>How to setup auto logout time in a CLI</title><content type='html'>We can set up automatic logout for root session so that session gets logged off, if it is idle for a while. It is important to know this as any sneaker can misuse the situation, when a root user leaves the session idle. The method is very simple and as follows:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;01&lt;/span&gt;. Locate the system file &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#nano .bashrc&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;02&lt;/span&gt;. Go to under the &lt;span style="font-weight:bold;"&gt;“#user specific aliases and functions”&lt;/span&gt; line and then type&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;TMOUT=60&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;03&lt;/span&gt;. Save this file&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ctrl + O&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;04&lt;/span&gt;. Exit the file &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ctrl + X&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Here TMOUT is an environment variable which instructs the bash shell to exit if the session is idle. Here timeout is set as 300 seconds (5 minutes).&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-432241372965782243?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/432241372965782243/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6650925325451843875&amp;postID=432241372965782243' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/432241372965782243'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/432241372965782243'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/06/how-to-setup-auto-logout-time-in-cli.html' title='How to setup auto logout time in a CLI'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-3290461058553949047</id><published>2009-06-03T22:36:00.000-07:00</published><updated>2009-06-03T22:43:31.394-07:00</updated><title type='text'>How to disable interactive startup in Linux</title><content type='html'>&lt;span style="font-weight:bold;"&gt;01&lt;/span&gt;. Login as root&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;02&lt;/span&gt;. Edit this system file&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#nano /etc/sysconfig/init&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;03&lt;/span&gt;. Go to end of the file &lt;br /&gt;You will see &lt;span style="font-weight:bold;"&gt;“PROMPT=yes”&lt;/span&gt; it’s change to &lt;span style="font-weight:bold;"&gt;“PROMPT=no”&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;04&lt;/span&gt;. Save this file&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ctrl + O&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;05&lt;/span&gt;. Exit the file &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ctrl + X&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-3290461058553949047?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/3290461058553949047/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6650925325451843875&amp;postID=3290461058553949047' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/3290461058553949047'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/3290461058553949047'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/06/how-to-disable-interactive-startup-in.html' title='How to disable interactive startup in Linux'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-4939579662202197441</id><published>2009-06-03T21:06:00.000-07:00</published><updated>2009-06-03T22:42:39.348-07:00</updated><title type='text'>How to change the grub password</title><content type='html'>&lt;span style="font-weight:bold;"&gt;01&lt;/span&gt;. Login as root&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;02&lt;/span&gt;. create an new encrypted password for grub &lt;br /&gt; &lt;span style="font-weight:bold;"&gt;#grub-md5-crypt&lt;br /&gt; Password: ****** (uddika)&lt;br /&gt; Encrypted: $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;03&lt;/span&gt;. copy the new encrypted password by highlighting it using the mouse&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;04&lt;/span&gt;. Open the grub configuration file for editing &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#nano /etc/grub.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;05&lt;/span&gt;. Find this line&lt;br /&gt; &lt;span style="font-weight:bold;"&gt;password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;06&lt;/span&gt;. Replace with the following line (Right click the mouse to paste new password)&lt;br /&gt; &lt;span style="font-weight:bold;"&gt;password --md5 $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password above)&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;07&lt;/span&gt;. Save this file&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ctrl + O&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;08&lt;/span&gt;. Exit the file &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ctrl + X&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-4939579662202197441?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/4939579662202197441/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6650925325451843875&amp;postID=4939579662202197441' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/4939579662202197441'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/4939579662202197441'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/06/how-to-change-grub-password.html' title='How to change the grub password'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-2734616401762172031</id><published>2009-06-03T20:20:00.000-07:00</published><updated>2009-06-03T20:27:01.953-07:00</updated><title type='text'>Enable user authentication for single user mode</title><content type='html'>By default you will be automatically logged in to single user mode as root, this can be security risk so better to enable a user login add the single user mode&lt;br /&gt;&lt;br /&gt;Note - Debian and therefore Ubuntu both require root password when booting into&lt;br /&gt;single user mode or recovery mode.  RHEL and CentOS allows access from the console&lt;br /&gt;into single user mode without a password.  This is handy when things get&lt;br /&gt;messed up preventing access to the auth subsystems.  To accomplish the&lt;br /&gt;same behavior under Ubuntu, edit the /etc/inittab file and change the line&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;01&lt;/span&gt;. To edit this system file &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#nano /etc/inittab&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;02&lt;/span&gt;. Go to a new line at the end of file then type&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;sum:S:wait:/sbin/sulogin &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;03&lt;/span&gt;. Save this file&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ctrl + O&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;04&lt;/span&gt;. Exit the file &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ctrl + X&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-2734616401762172031?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/2734616401762172031/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6650925325451843875&amp;postID=2734616401762172031' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/2734616401762172031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/2734616401762172031'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/06/enable-user-authentication-for-single.html' title='Enable user authentication for single user mode'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-8262103632177369515</id><published>2009-06-03T19:50:00.000-07:00</published><updated>2009-06-03T19:58:53.624-07:00</updated><title type='text'>Recover root password</title><content type='html'>It happens sometime that you can't remember root password. On Linux, recovering root password can be done by booting Linux under a specific mode: single user mode.&lt;br /&gt;This tutorial will show how to boot Linux in single user mode when using GRUB and finally how to change root password. &lt;br /&gt;&lt;br /&gt;During normal usage, a Linux OS runs under runlevels between 3 and 5 which correspond to various multi-user modes. Booting Linux under runlevel 1 will allow one to enter into a specific mode, single user mode. Under such a level, you directly get a root prompt. From there, changing root password is a piece of cake. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;01&lt;/span&gt;. Start your PC at the boot loader press the space bar before 5 seconds &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;02&lt;/span&gt;. Press “p” and give the boot loader password&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;03&lt;/span&gt;. Press “a” to modify the kernel arguments before booting &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;04&lt;/span&gt;. At the end of the line add the word single or 1&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;grub append&gt; ro root=/dev/lvm/logvol01 rhgb quiet 1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;05&lt;/span&gt;. It will be logged on as root user&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;06&lt;/span&gt;. Change the root password (As root, changing password does not ask for your old password, therefore running the command :)&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#passwd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-8262103632177369515?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/8262103632177369515/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6650925325451843875&amp;postID=8262103632177369515' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/8262103632177369515'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/8262103632177369515'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/06/recover-root-password-under-linux-with.html' title='Recover root password'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-4332584712392535906</id><published>2009-06-03T19:06:00.000-07:00</published><updated>2009-06-03T19:32:04.027-07:00</updated><title type='text'>Disable Ctrl + ALT + Del restart</title><content type='html'>&lt;span style="font-weight:bold;"&gt;01&lt;/span&gt;. Login as root&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;02&lt;/span&gt;. Edit the following system file (inittab)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;03&lt;/span&gt;. To locate the system file &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#whereis inittab&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;04&lt;/span&gt;. To find out the file type &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#file /etc/inittab&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;05&lt;/span&gt;. To edit the text editor &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#nano /etc/inittab&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;06&lt;/span&gt;. Comment this line&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#ca::ctrlaltdel:/sbin/shutdown –ts –r now&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;07&lt;/span&gt;. Save this file&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ctrl + O&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;08&lt;/span&gt;. Exit the file &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ctrl + X&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;09&lt;/span&gt;. Reload the inittab file in to memory again&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;#init q&lt;/span&gt;&lt;br /&gt;or otherwise we have to restart the system &lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-4332584712392535906?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/4332584712392535906/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6650925325451843875&amp;postID=4332584712392535906' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/4332584712392535906'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/4332584712392535906'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/06/disable-ctrl-alt-del-restart.html' title='Disable Ctrl + ALT + Del restart'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6650925325451843875.post-5426474169622070252</id><published>2009-06-03T09:18:00.000-07:00</published><updated>2009-06-03T19:04:13.298-07:00</updated><title type='text'>Changing Run Level of Linux</title><content type='html'>During the boot process for RHEL and CentOS systems the init command opens the /etc/inittab file to decide what "runlevel" the system should be booted to. The /etc/inittab file is a plain text file that can be opened with your favorite text editor.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;01&lt;/span&gt;. Login as a root&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;02&lt;/span&gt;. Locate the following system file "inittab" (Initialization Table Tab)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;03&lt;/span&gt;. Places --&gt; Search for File --&gt; Give a file name and select a looking folder for root&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;04&lt;/span&gt;. To edit the system file double click&lt;br /&gt;&lt;br /&gt;This tells the init process that the default run level for the system is run level 5. To change to a different run level simply change the number and save the /etc/inittab file. Before doing this, however, be absolutely sure you know which run level you want. Selecting the wrong run level can have serious consequences. To help with this a detailed description of the individual run levels is outlined below:&lt;br /&gt;&lt;br /&gt;    &lt;span style="font-weight:bold;"&gt;Run Levels&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;0&lt;/span&gt;. Run Leve 0 (Halt) - Shutdown for Machine&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1&lt;/span&gt;. Run Level 01 (Single User Mode) - Risque mode/ safe mode for Linux for trouble shooting&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2&lt;/span&gt;. Run Level 02 (Multi User, Without NFS) - Only booting to the CLI, Multiple users can logging but no networking services.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3&lt;/span&gt;. Run Level 03 (Full Multi User Mode) - Only booting to the CLI, Multiple users can logging, but with enable all Networking services&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4&lt;/span&gt;. Run Level 04 (Unused) - Custom run level for system developers, Currently unused. &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;5&lt;/span&gt;. Run Level 05 (X11) - Booting to the GUI anybody can logging with all network services enable&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;6&lt;/span&gt;. Run Level 06(Reboot) - Reboot for Machine &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;05&lt;/span&gt;. Change Run Level&lt;br /&gt;    &lt;span style="font-weight:bold;"&gt;id:3:initdefault: &lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;06&lt;/span&gt;. Save and exit your file and reboot your system&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;07&lt;/span&gt;. After changing the run level, How to go to GUI&lt;br /&gt;    &lt;span style="font-weight:bold;"&gt;#startx&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;08&lt;/span&gt;. Manually change desktop with CLI&lt;br /&gt;From Gnome to KDE  -  &lt;span style="font-weight:bold;"&gt;#switchdesk kde&lt;/span&gt;&lt;br /&gt;You can Check  -  &lt;span style="font-weight:bold;"&gt;#startx&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;From KDE to Gnome  -  &lt;span style="font-weight:bold;"&gt;#switchdesk gnome&lt;/span&gt;&lt;br /&gt;You can Check  -  &lt;span style="font-weight:bold;"&gt;#startx&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;------------------------------------------------------------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650925325451843875-5426474169622070252?l=uddika.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://uddika.blogspot.com/feeds/5426474169622070252/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6650925325451843875&amp;postID=5426474169622070252' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/5426474169622070252'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6650925325451843875/posts/default/5426474169622070252'/><link rel='alternate' type='text/html' href='http://uddika.blogspot.com/2009/06/changing-run-level-of-linux.html' title='Changing Run Level of Linux'/><author><name>Uddika Jayaweera</name><uri>http://www.blogger.com/profile/07593146741701392863</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_8m9eIrRbuZA/SslEagDx4RI/AAAAAAAAAAo/CZJSz7qN7Xk/S220/6254_117622687464_673047464_1983313_7510110_n.jpg'/></author><thr:total>0</thr:total></entry></feed>
