<?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-1164128320657033277</id><updated>2012-02-16T00:22:43.904-08:00</updated><title type='text'>g00rkha's RedHat Certified Engineer Preparation and Ubuntu Tutorials</title><subtitle type='html'>This blog is prepared to be my self-notes so anytime I can go back to the materials I've gone through for RHCE exam.  In addition, a long with the time, adding more materials related to Ubuntu is interesting too.

Hopefully, it will be useful as well for those people who have the same goal with me now or for Linux users who want to explore deeper in Linux (especially Red Hat and its family).

Special Thanks to Michael Jang and Fajar Priyanto for opening more to my eyes to the power of Linux.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://g00rkha75.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1164128320657033277/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://g00rkha75.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>g00rkha</name><uri>http://www.blogger.com/profile/07950693385947577134</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_eozVrdyJE9s/SaNoNThpWYI/AAAAAAAAAOk/Me5-NXOBEUM/S220/Another-Catch.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>14</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1164128320657033277.post-6580140404858961208</id><published>2008-09-20T08:01:00.000-07:00</published><updated>2008-09-20T08:08:49.156-07:00</updated><title type='text'>How to create ISO image from your Harddisk, CD or DVD</title><content type='html'>&lt;span style="font-style: italic;"&gt; &lt;/span&gt;&lt;span style="font-family: verdana;"&gt;Sometimes we want to do back up from our CD/DVD even files from our harddrive&lt;br /&gt;&lt;br /&gt;Here are the how-to's:&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;dd if=/dev/dvd of=dvd.iso&lt;/span&gt; (if you want to back up from DVD)&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;dd if=/dev/cdrom of=cd.iso&lt;/span&gt; (if you back up from CDROM)&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;dd if=/dev/scd0 of=cd.iso&lt;/span&gt; (if you back up from SCSI CDROM)&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;mkisofs -o /tmp/cd.iso /tmp/backup/&lt;/span&gt; (to make an ISO image from files on your hard drive)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1164128320657033277-6580140404858961208?l=g00rkha75.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://g00rkha75.blogspot.com/feeds/6580140404858961208/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1164128320657033277&amp;postID=6580140404858961208' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1164128320657033277/posts/default/6580140404858961208'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1164128320657033277/posts/default/6580140404858961208'/><link rel='alternate' type='text/html' href='http://g00rkha75.blogspot.com/2008/09/how-to-create-iso-image-from-your.html' title='How to create ISO image from your Harddisk, CD or DVD'/><author><name>g00rkha</name><uri>http://www.blogger.com/profile/07950693385947577134</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_eozVrdyJE9s/SaNoNThpWYI/AAAAAAAAAOk/Me5-NXOBEUM/S220/Another-Catch.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1164128320657033277.post-1501898067017194890</id><published>2008-09-19T20:27:00.001-07:00</published><updated>2008-09-19T21:08:39.612-07:00</updated><title type='text'>Install Ubuntu 8.04.1 Hardy on ACER 4530 with Mac4Lin Leopard Desktop</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_eozVrdyJE9s/SNRxsqlFffI/AAAAAAAAAMk/Np4Il7R83L0/s1600-h/myMacLeopard.png"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://2.bp.blogspot.com/_eozVrdyJE9s/SNRxsqlFffI/AAAAAAAAAMk/Np4Il7R83L0/s320/myMacLeopard.png" alt="" id="BLOGGER_PHOTO_ID_5247944477951491570" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_eozVrdyJE9s/SNRvhaan4OI/AAAAAAAAAMc/bX6xmBJURPY/s1600-h/myMac4Lin.png"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://3.bp.blogspot.com/_eozVrdyJE9s/SNRvhaan4OI/AAAAAAAAAMc/bX6xmBJURPY/s320/myMac4Lin.png" alt="" id="BLOGGER_PHOTO_ID_5247942085610823906" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;Here are the&lt;/span&gt; captured screen of my laptop just installed Ubuntu 8.04.1 Hardy and tweaked to resemble Mac Leopard Desktop.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Acer 4530 is a great notebook with a good price comes with great graphic controller card GeForce 9100m G.  However, you have to install the nvidia driver in order to get the 1280x800 resolution.&lt;br /&gt;&lt;br /&gt;Currently, after recompile kernel using 2.6.26.5, I still cannot get the sound and wireless works even they're detected.&lt;br /&gt;&lt;br /&gt;Here is for sound using ALSA taken from dmesg:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;ALSA sound/pci/hda/hda_codec.c:728: hda_codec_cleanup_stream: NID=0x2&lt;/span&gt; &lt;span style="font-family:courier new;"&gt;ALSA sound/pci/hda/hda_codec.c:728: hda_codec_cleanup_stream: NID=0x3&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;For wireless card here is what I've got from ifconfig, however, somehow, I just cannot connect&lt;br /&gt;to my Access Point.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;font-size:85%;" &gt;nprasetio@student1:~$ iwconfig&lt;br /&gt;lo        no wireless extensions.&lt;br /&gt;&lt;br /&gt;eth0      no wireless extensions.&lt;br /&gt;&lt;br /&gt;wmaster0  no wireless extensions.&lt;br /&gt;&lt;br /&gt;wlan0     IEEE 802.11  ESSID:""&lt;br /&gt;         Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated &lt;br /&gt;         Tx-Power=27 dBm &lt;br /&gt;         Retry min limit:7   RTS thr:off   Fragment thr=2352 B &lt;br /&gt;         Link Quality:0  Signal level:0  Noise level:0&lt;br /&gt;         Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0&lt;br /&gt;         Tx excessive retries:0  Invalid misc:0   Missed beacon:0&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Here are the great links to follow in order to tweak your ACER 4530 to resemble Mac.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://ubuntuforums.org/showthread.php?t=311158"&gt;Recompiling Kernel To Detect Wireless Card, Sound and Other Cool Features&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://maketecheasier.com/turn-your-ubuntu-hardy-to-mac-osx-leopard/2008/07/23/"&gt;Turning your ACER 4530 to Mac OSX Leopard&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1164128320657033277-1501898067017194890?l=g00rkha75.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://g00rkha75.blogspot.com/feeds/1501898067017194890/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1164128320657033277&amp;postID=1501898067017194890' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1164128320657033277/posts/default/1501898067017194890'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1164128320657033277/posts/default/1501898067017194890'/><link rel='alternate' type='text/html' href='http://g00rkha75.blogspot.com/2008/09/install-ubuntu-8041-hardy-on-acer-4530.html' title='Install Ubuntu 8.04.1 Hardy on ACER 4530 with Mac4Lin Leopard Desktop'/><author><name>g00rkha</name><uri>http://www.blogger.com/profile/07950693385947577134</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_eozVrdyJE9s/SaNoNThpWYI/AAAAAAAAAOk/Me5-NXOBEUM/S220/Another-Catch.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_eozVrdyJE9s/SNRxsqlFffI/AAAAAAAAAMk/Np4Il7R83L0/s72-c/myMacLeopard.png' height='72' width='72'/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1164128320657033277.post-2820422727281809331</id><published>2008-07-31T01:59:00.000-07:00</published><updated>2008-07-31T02:39:50.519-07:00</updated><title type='text'>Secure Shell: SSH</title><content type='html'>&lt;span style="font-family:arial;"&gt;The ability to authenticate with ssh keys, is the most powerful feature of SSH.  As a result, the user has to produce a key pair and key in the so called public key into the &lt;span style="font-family:courier new;"&gt;~/.ssh/authorized_keys&lt;/span&gt; file on the server.  Basically, the key is protected by a password and controlled by the ssh-agent.  &lt;span style="font-style: italic;"&gt;Nevertheless if the key is utilized for automating task it must not include a password&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt;[georgia@georgia ~]$ &lt;span style="font-weight: bold;"&gt;ssh-keygen -t rsa&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Generating public/private rsa key pair.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Enter file in which to save the key (/home/georgia/.ssh/id_rsa): &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Created directory '/home/georgia/.ssh'.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Enter passphrase (empty for no passphrase): &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Enter same passphrase again: &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Your identification has been saved in /home/georgia/.ssh/id_rsa.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Your public key has been saved in /home/georgia/.ssh/id_rsa.pub.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;The key fingerprint is:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;67:5a:60:ac:70:95:18:8d:02:1b:e1:c2:da:5c:88:81 georgia@georgia.rhce.test&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);font-family:courier new;font-size:85%;"  &gt;[georgia@georgia ~]$ &lt;span style="font-weight: bold;"&gt;cat ~/.ssh/id_rsa.pub | ssh georgia@greg.rhce.test 'cat &gt;&gt;.ssh/authorized_keys'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);font-family:courier new;font-size:85%;"  &gt;Red Hat Enterprise Linux Server release 5.2 (Tikanga)&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);font-family:courier new;font-size:85%;"  &gt;Kernel \r on an \m&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);font-family:courier new;font-size:85%;"  &gt;georgia@greg.rhce.test's password:&lt;/span&gt;&lt;span style="font-family:arial;"&gt;&lt;br /&gt;&lt;br /&gt;Now, check your configuration by do the following:&lt;/span&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="color: rgb(0, 153, 0);font-family:courier new;font-size:85%;"  &gt;&lt;br /&gt;&lt;br /&gt;[georgia@georgia ~]$ &lt;span style="font-weight: bold;"&gt;ssh georgia@greg.rhce.test&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);font-family:courier new;font-size:85%;"  &gt;Red Hat Enterprise Linux Server release 5.2 (Tikanga)&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);font-family:courier new;font-size:85%;"  &gt;Kernel \r on an \m&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);font-family:courier new;font-size:85%;"  &gt;georgia@greg.rhce.test's password: &lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);font-family:courier new;font-size:85%;"  &gt;Last login: Thu Jul 31 16:23:42 2008&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;It should work as above.&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/1164128320657033277-2820422727281809331?l=g00rkha75.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://g00rkha75.blogspot.com/feeds/2820422727281809331/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1164128320657033277&amp;postID=2820422727281809331' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1164128320657033277/posts/default/2820422727281809331'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1164128320657033277/posts/default/2820422727281809331'/><link rel='alternate' type='text/html' href='http://g00rkha75.blogspot.com/2008/07/secure-shell-ssh.html' title='Secure Shell: SSH'/><author><name>g00rkha</name><uri>http://www.blogger.com/profile/07950693385947577134</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_eozVrdyJE9s/SaNoNThpWYI/AAAAAAAAAOk/Me5-NXOBEUM/S220/Another-Catch.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1164128320657033277.post-4576508468814181158</id><published>2008-07-18T17:45:00.000-07:00</published><updated>2008-07-18T18:17:09.576-07:00</updated><title type='text'>Basic IPv4 Firewall Using iptables</title><content type='html'>&lt;span style="font-family:arial;"&gt;&lt;span style="font-weight: bold;"&gt;Scenario: &lt;/span&gt;somebody wants to harden his/her stand-alone server using linux built-in firewall application: &lt;span style="font-weight: bold;"&gt;iptables&lt;/span&gt;.  The server only has one NIC.&lt;br /&gt;&lt;br /&gt;Here are the steps:&lt;br /&gt;1. Create a custom chain named HOME-RULES and insert a rule on top of INPUT that will jump all packets to it.  Remember, to save the firewall configuration when you're finished.&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt;[root@greg ~]# iptables -N HOME-RULES&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[root@greg ~]# iptables -A INPUT -j HOME-RULES&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[root@greg ~]# service iptables save&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Saving firewall rules to /etc/sysconfig/iptables:          [  OK  ]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[root@greg ~]# less /etc/sysconfig/iptables&lt;br /&gt;# Generated by iptables-save v1.3.5 on Sat Jul 19 07:29:26 2008&lt;br /&gt;*filter&lt;br /&gt;:INPUT ACCEPT [0:0]&lt;br /&gt;:FORWARD ACCEPT [0:0]&lt;br /&gt;:OUTPUT ACCEPT [0:0]&lt;br /&gt;:CLASS-RULES - [0:0]&lt;br /&gt;-A INPUT -j HOME-RULES&lt;br /&gt;COMMIT&lt;br /&gt;# Completed on Sat Jul 19 07:29:26 2008&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;2. In this tutorial, I am going to show you how to populate the HOME-RULES chain by directly editing &lt;span style="font-family:courier new;"&gt;/etc/sysconfig/iptables&lt;/span&gt;. (Note: I assume you understand how to use vim to edit files).&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-family:courier new;font-size:85%;"  &gt;[root@greg ~]# vim /etc/sysconfig/iptables&lt;/span&gt;&lt;br /&gt;Insert the following text below the -A INPUT lines.&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-family:courier new;font-size:85%;"  &gt;-A HOME-RULES -i lo -j ACCEPT &lt;span style="color: rgb(204, 204, 204);"&gt;--&gt; accepts all traffic on the loopback interface (lo)&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);font-family:courier new;font-size:85%;"  &gt;-A HOME-RULES -p icmp -j ACCEPT &lt;span style="color: rgb(204, 204, 204);"&gt;--&gt; accepts ping from other host&lt;/span&gt;&lt;br /&gt;-A HOME-RULES -m state --state ESTABLISHED,RELATED -j ACCEPT &lt;span style="color: rgb(204, 204, 204);"&gt;--&gt; enable stateful replies&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="color: rgb(0, 153, 0);font-family:courier new;font-size:85%;"  &gt;-A HOME-RULES -p tcp --dport 22 -j ACCEPT &lt;span style="color: rgb(204, 204, 204);"&gt;--&gt; accepts packets destined for tcp port 22 (ssh)/accepts other host to ssh to the server&lt;/span&gt;&lt;br /&gt;-A HOME-RULES -m state --state NEW -p udp --dport 514 -j ACCEPT &lt;span style="color: rgb(204, 204, 204);"&gt;--&gt; accepts packets with the NEW state destined for udp port 514 (syslog)&lt;/span&gt;&lt;br /&gt;-A HOME-RULES -j LOG &lt;span style="color: rgb(204, 204, 204);"&gt;--&gt; log all packets not matched by one of the above rules&lt;/span&gt;&lt;br /&gt;-A HOME-RULES -j REJECT &lt;span style="color: rgb(204, 204, 204);"&gt;--&gt; rejects all packets not matched by one of the above rules&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;3. Save the new configuration.&lt;br /&gt;4. Load the new rules.&lt;br /&gt;&lt;span style="font-family: courier new; color: rgb(0, 153, 0);font-size:85%;" &gt;[root@greg ~]# service iptables restart&lt;br /&gt;Flushing firewall rules:                                   [  OK  ]&lt;br /&gt;Setting chains to policy ACCEPT: filter                    [  OK  ]&lt;br /&gt;Unloading iptables modules:                                [  OK  ]&lt;br /&gt;Applying iptables firewall rules:                          [  OK  ]&lt;br /&gt;Loading additional iptables modules: ip_conntrack_netbios_n[  OK  ]&lt;/span&gt;&lt;br /&gt;5. You're all set.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1164128320657033277-4576508468814181158?l=g00rkha75.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://g00rkha75.blogspot.com/feeds/4576508468814181158/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1164128320657033277&amp;postID=4576508468814181158' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1164128320657033277/posts/default/4576508468814181158'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1164128320657033277/posts/default/4576508468814181158'/><link rel='alternate' type='text/html' href='http://g00rkha75.blogspot.com/2008/07/basic-ipv4-firewall-using-iptables.html' title='Basic IPv4 Firewall Using iptables'/><author><name>g00rkha</name><uri>http://www.blogger.com/profile/07950693385947577134</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_eozVrdyJE9s/SaNoNThpWYI/AAAAAAAAAOk/Me5-NXOBEUM/S220/Another-Catch.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1164128320657033277.post-9036364765112251722</id><published>2008-07-17T16:05:00.000-07:00</published><updated>2008-07-22T04:45:59.974-07:00</updated><title type='text'>Installing a Simplistic DNS Server Using BIND</title><content type='html'>&lt;span style="font-family:arial;"&gt;1. Install the required packages (please ignore the warning of a missing &lt;span style="font-family:courier new;"&gt;named.conf&lt;/span&gt; as this one is expected)&lt;br /&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:arial;"&gt;bind, bind-utils, bind-chroot, caching-nameserver&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt;[root@greg ~]# yum -y install bind bind-utils bind-chroot caching-nameserver&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-family:arial;" &gt;&lt;span style="font-family:courier new;"&gt;... output omitted ...&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;2. Turn the iptables&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt;[root@greg ~]# service iptables start&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Flushing firewall rules:                                   [  OK  ]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Setting chains to policy ACCEPT: filter                    [  OK  ]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Unloading iptables modules:                                [  OK  ]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Applying iptables firewall rules:                          [  OK  ]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Loading additional iptables modules: ip_conntrack_netbios_n[  OK  ]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;3. Enforcing the selinux&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt;[root@greg ~]# vim /etc/selinux/config&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Make sure the following line appears in your configuration&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt;SELINUX=enforcing&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;4. Inspect what ports are usually used for domain name servers:&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt;[root@greg ~]# grep domain /etc/services &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;domain          53/tcp                          # name-domain server&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;domain          53/udp&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;domaintime      9909/tcp                        # domaintime&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;domaintime      9909/udp                        # domaintime&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;5. Inspect if &lt;span style="font-weight: bold;"&gt;named&lt;/span&gt; affected by libwrapped. The result is supposed to be no result.&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-family:courier new;font-size:85%;"  &gt;&lt;span style="font-family:courier new;"&gt;[&lt;/span&gt;root@greg ~]# ldd $(which named) | grep libwrap&lt;/span&gt;&lt;br /&gt;6. Review the configuration at &lt;span style=";font-family:courier new;font-size:100%;"  &gt;/etc/named.caching-nameserver.conf&lt;/span&gt; to see the default access control options.  Pay attention to the &lt;span style="font-family:courier new;"&gt;listen on&lt;/span&gt; and &lt;span style="font-family:courier new;"&gt;allow-query&lt;/span&gt; directives.  And if you forget a directive such as "&lt;span style="font-weight: bold;"&gt;allow&lt;/span&gt;", please go find in &lt;span style="font-family:courier new;"&gt;man 5 named.conf&lt;/span&gt;.&lt;br /&gt;7. Prepare for a minimal configuration to meet the access requirements.  First run the following commands to track the system messages when restarting a service after you change a configuration.&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt;[root@greg ~]# tail -f /var/log/messages&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);font-family:arial;" &gt;&lt;span style="font-family:courier new;"&gt;... output omitted ...&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-family:arial;font-size:85%;"  &gt;&lt;span style="font-family: courier new;"&gt;[root@greg ~]# tail -f /var/log/audit/audit.log&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;... output omitted ...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;8. Determine what directory is installed as the chroot:&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt;[root@greg ~]# cat /etc/sysconfig/named &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;Look for the following output for the location of the chroot directory&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt;ROOTDIR=/var/named/chroot&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;9. Use the named.caching-nameserver.conf as a starting configuration:&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-family:courier new;font-size:85%;"  &gt;[root@greg ~]# cd /var/named/chroot/etc/&lt;br /&gt;[root@greg etc]# ls&lt;br /&gt;localtime  named.caching-nameserver.conf  named.rfc1912.zones  rndc.key&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt;[root@greg etc]# cp named.caching-nameserver.conf named.conf&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;10. Test the current configuration, check for the errors in the configuration in&lt;span style=";font-family:courier new;font-size:85%;"  &gt; /var/log/messages&lt;/span&gt;:&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-family:courier new;font-size:85%;"  &gt;[root@greg etc]# service named configtest&lt;br /&gt;zone localdomain/IN: loaded serial 42&lt;br /&gt;zone localhost/IN: loaded serial 42&lt;br /&gt;zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700&lt;br /&gt;zone 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 1997022700&lt;br /&gt;zone 255.in-addr.arpa/IN: loaded serial 42&lt;br /&gt;zone 0.in-addr.arpa/IN: loaded serial 42&lt;/span&gt;&lt;br /&gt;The above output means our initial config is OK.&lt;br /&gt;11. Start the &lt;span style="font-weight: bold;"&gt;named&lt;/span&gt; service and make it automatically start&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;span style="font-family:courier new;"&gt;[root@greg etc]# service named start ; chkconfig named on&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Starting named:                                            [FAILED]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;If you had the above output as mine, use &lt;span style=";font-family:courier new;font-size:85%;"  &gt;tail -f /var/log/messages&lt;/span&gt; to see the message ERROR.  Here is what I got from my screen:&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-family:courier new;font-size:85%;"  &gt;Jul 18 06:50:20 greg named[3874]: loading configuration from '/etc/named.conf'&lt;br /&gt;Jul 18 06:50:20 greg named[3874]: none:0: open: /etc/named.conf: permission denied&lt;br /&gt;Jul 18 06:50:20 greg named[3874]: loading configuration: permission denied&lt;br /&gt;Jul 18 06:50:20 greg named[3874]: exiting (due to fatal error)&lt;/span&gt;&lt;br /&gt;19. It means the named service does not have a permission to load the configuration.&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-family:courier new;font-size:85%;"  &gt;[root@greg etc]# ls -l /var/named/chroot/etc/named.conf&lt;br /&gt;-rw-r----- 1 root root 1100 Jul 18 06:46 /var/named/chroot/etc/named.conf&lt;/span&gt;&lt;br /&gt;20. Run this command&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-family:courier new;font-size:85%;"  &gt;[root@greg etc]# chgrp named /var/named/chroot/etc/named.conf&lt;br /&gt;[root@greg etc]# ls -l /var/named/chroot/etc/named.conf&lt;br /&gt;-rw-r----- 1 root named 1100 Jul 18 06:46 /var/named/chroot/etc/named.conf&lt;/span&gt;&lt;br /&gt;21. There you go the nameserver is running.&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-family:courier new;font-size:85%;"  &gt;[root@greg etc]# service named start ; chkconfig named on&lt;br /&gt;Starting named:                                            [  OK  ]&lt;/span&gt;&lt;br /&gt;Check the log as well, supposed to be no error.&lt;br /&gt;22. Try to use &lt;span style="font-weight: bold;"&gt;dig&lt;/span&gt; or &lt;span style="font-weight: bold;"&gt;nslookup&lt;/span&gt; for querying site like www.google.com, but remember to edit &lt;span style=";font-family:courier new;font-size:85%;"  &gt;/etc/resolv.conf&lt;/span&gt; so for name server resolution it points to localhost.&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[root@greg etc]# nslookup www.google.com&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;Server:         127.0.0.1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;Address:        127.0.0.1#53&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;Non-authoritative answer:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;www.google.com  canonical name = www.l.google.com.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;Name:   www.l.google.com&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;Address: 209.85.175.99&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;Name:   www.l.google.com&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;Address: 209.85.175.104&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;Name:   www.l.google.com&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;Address: 209.85.175.147&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1164128320657033277-9036364765112251722?l=g00rkha75.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://g00rkha75.blogspot.com/feeds/9036364765112251722/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1164128320657033277&amp;postID=9036364765112251722' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1164128320657033277/posts/default/9036364765112251722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1164128320657033277/posts/default/9036364765112251722'/><link rel='alternate' type='text/html' href='http://g00rkha75.blogspot.com/2008/07/installing-simplistic-dns-server-using.html' title='Installing a Simplistic DNS Server Using BIND'/><author><name>g00rkha</name><uri>http://www.blogger.com/profile/07950693385947577134</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_eozVrdyJE9s/SaNoNThpWYI/AAAAAAAAAOk/Me5-NXOBEUM/S220/Another-Catch.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1164128320657033277.post-508767440858898718</id><published>2008-07-11T00:24:00.000-07:00</published><updated>2008-07-11T00:43:36.479-07:00</updated><title type='text'>How to Configure Kernel Persistently</title><content type='html'>&lt;span style="font-family:arial;"&gt;To adjust the functioning of the Linux Kernel, there are parameters in kernel that can provide such a mechanism.  The followings are some of the example:&lt;br /&gt;&lt;br /&gt;1. To list all of the parameters and their values, we can use sysctl command and set kernel parameters:&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);font-family:courier new;" &gt;# sysctl -a&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2. To set a parameter, to &lt;span style="font-style: italic;"&gt;control IP packet forwarding&lt;/span&gt;, default setting is net.ipv4.ip_forward = 0&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);font-family:courier new;" &gt;# sysctl -w net.ipv4.ip_forward = 1&lt;br /&gt;or&lt;br /&gt;# echo 1 &gt; /proc/sys/net/ipv4/ip_forward&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;3. We need to change the parameter to &lt;span style="font-weight: bold;font-family:courier new;" &gt;/etc/sysctl.conf&lt;/span&gt; in order to make this setting &lt;span style="font-weight: bold;"&gt;permanent &lt;/span&gt;otherwise after we restart the change will be gone.  After we finished setting up, we need to synchronize the new config file with the kernel with the following command:&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);font-family:courier new;" &gt;# sysctl -p&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1164128320657033277-508767440858898718?l=g00rkha75.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://g00rkha75.blogspot.com/feeds/508767440858898718/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1164128320657033277&amp;postID=508767440858898718' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1164128320657033277/posts/default/508767440858898718'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1164128320657033277/posts/default/508767440858898718'/><link rel='alternate' type='text/html' href='http://g00rkha75.blogspot.com/2008/07/how-to-configure-kernel-persistently.html' title='How to Configure Kernel Persistently'/><author><name>g00rkha</name><uri>http://www.blogger.com/profile/07950693385947577134</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_eozVrdyJE9s/SaNoNThpWYI/AAAAAAAAAOk/Me5-NXOBEUM/S220/Another-Catch.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1164128320657033277.post-1734534161759395086</id><published>2008-07-07T23:52:00.000-07:00</published><updated>2008-07-08T00:01:00.193-07:00</updated><title type='text'>Some Caveats Regarding BIOS and Boot Loader</title><content type='html'>&lt;span style="font-family: arial;"&gt;1. The default boot loader is GRUB, and the first part of it is installed in the MBR of the default drive. Normally, the BIOS should automatically start the boot loader, with a message similar to:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;Booting Red Hat Enterprise Linux Server (2.6.18-8.el5) in 5 seconds...&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: arial;"&gt;2. For an older PC, unless it's located within the first 1024 cylinders of the hard disk, &lt;/span&gt;&lt;span style="font-family: arial;"&gt;the BIOS can't find your boot loader&lt;/span&gt;&lt;span style="font-family: arial;"&gt; that is why the &lt;span style="font-weight: bold;"&gt;/boot&lt;/span&gt; partition installed is normally a primary partition.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: arial;"&gt;3. The workaround for this problem is using &lt;span style="font-weight: bold;"&gt;logical block addressing&lt;/span&gt;, which is also recognized as &lt;span style="font-weight: bold;"&gt;LBA mode&lt;/span&gt;. &lt;span style="font-weight: bold;"&gt;&lt;br /&gt;LBA mode&lt;/span&gt; reads "logical" values for the cylinder, head, and sector, which allows the BIOS to "see" a larger disk drive.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: arial;"&gt;&lt;span style="font-weight: bold;"&gt;For multiple hard drives:&lt;/span&gt;&lt;br /&gt;Here is the caveat:&lt;br /&gt;a. For&lt;span style="font-weight: bold;"&gt; IDE (PATA)&lt;/span&gt; hard drives, the /boot directory &lt;span style="font-style: italic;"&gt;must be on a hard drive attached to the primary IDE controller&lt;/span&gt;.&lt;br /&gt;b. For all &lt;span style="font-weight: bold;"&gt;SCSI&lt;/span&gt; hard drives, the /boot directory &lt;span style="font-style: italic;"&gt;must be located on a hard drive with SCSI ID 0 or ID 1&lt;/span&gt;.&lt;br /&gt;c. For a &lt;span style="font-weight: bold;"&gt;mix of hard drives&lt;/span&gt;, the /boot directory &lt;span style="font-style: italic;"&gt;must be located on either the first IDE drive or a SCSI drive with ID 0.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1164128320657033277-1734534161759395086?l=g00rkha75.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://g00rkha75.blogspot.com/feeds/1734534161759395086/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1164128320657033277&amp;postID=1734534161759395086' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1164128320657033277/posts/default/1734534161759395086'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1164128320657033277/posts/default/1734534161759395086'/><link rel='alternate' type='text/html' href='http://g00rkha75.blogspot.com/2008/07/some-caveats-regarding-bios-and-boot.html' title='Some Caveats Regarding BIOS and Boot Loader'/><author><name>g00rkha</name><uri>http://www.blogger.com/profile/07950693385947577134</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_eozVrdyJE9s/SaNoNThpWYI/AAAAAAAAAOk/Me5-NXOBEUM/S220/Another-Catch.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1164128320657033277.post-6525618899168766077</id><published>2008-07-07T23:34:00.000-07:00</published><updated>2008-07-07T23:41:14.769-07:00</updated><title type='text'>The Fundamentals of the Boot Process</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_eozVrdyJE9s/SHMLcfyvIMI/AAAAAAAAAF4/SaGyG1QHp9o/s1600-h/Boot-Process.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://bp1.blogger.com/_eozVrdyJE9s/SHMLcfyvIMI/AAAAAAAAAF4/SaGyG1QHp9o/s320/Boot-Process.jpg" alt="" id="BLOGGER_PHOTO_ID_5220528977251082434" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-family:arial;"&gt;Many people ignore learning about this process, including me as well.&lt;/span&gt; &lt;span style="font-family:arial;"&gt;When I started learning Linux at the first time, I did not care that this boot process is very important especially for troubleshooting Linux server; in case, the grub is corrupt or forgotten password.  Normally, the shortcut will be erasing or formatting the whole hard disk and start installing all over again.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt; &lt;/span&gt; &lt;span style="font-weight: bold;font-family:arial;" &gt;Steps of Boot Process&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;1. If your CentOS or RHEL is properly installed, the BIOS points to the GRUB boot loader. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;    Most of the time, GRUB boot loader is located in the appropriate master boot record (MBR).&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;2. Then the next step is GRUB points to and initializes the Linux kernel.&lt;/span&gt; &lt;span style="font-family:arial;"&gt;&lt;br /&gt;3. Starting init as the first Linux process.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;4. The init process then initializes the system and moves into appropriate runlevels.&lt;/span&gt; &lt;span style="font-family:arial;"&gt;&lt;br /&gt;5. When Linux boots into a specific runlevel, it starts a series of services.&lt;/span&gt; &lt;span style="font-family:arial;"&gt;&lt;br /&gt;6. The good news is we can customize this process.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-family:arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1164128320657033277-6525618899168766077?l=g00rkha75.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://g00rkha75.blogspot.com/feeds/6525618899168766077/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1164128320657033277&amp;postID=6525618899168766077' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1164128320657033277/posts/default/6525618899168766077'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1164128320657033277/posts/default/6525618899168766077'/><link rel='alternate' type='text/html' href='http://g00rkha75.blogspot.com/2008/07/fundamentals-of-boot-process.html' title='The Fundamentals of the Boot Process'/><author><name>g00rkha</name><uri>http://www.blogger.com/profile/07950693385947577134</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_eozVrdyJE9s/SaNoNThpWYI/AAAAAAAAAOk/Me5-NXOBEUM/S220/Another-Catch.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp1.blogger.com/_eozVrdyJE9s/SHMLcfyvIMI/AAAAAAAAAF4/SaGyG1QHp9o/s72-c/Boot-Process.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1164128320657033277.post-2183212131925373150</id><published>2008-07-07T02:19:00.000-07:00</published><updated>2008-07-07T02:31:07.826-07:00</updated><title type='text'>Installing and Configuring Chrooted VSFTPD in CentOS 5.0 or RHEL 5.0</title><content type='html'>&lt;span style="font-family:arial;"&gt;Setting vsftpd is not hard but not easy either, if you want to make it secure.  Here is some of my notes:&lt;br /&gt;&lt;br /&gt;1. Install vsftpd&lt;br /&gt;   &lt;span style="font-weight: bold; color: rgb(0, 153, 0);font-size:85%;" &gt;# yum install vsftpd&lt;/span&gt;&lt;br /&gt;2. Start the service&lt;br /&gt;   &lt;span style="font-weight: bold; color: rgb(0, 153, 0);font-size:85%;" &gt;# /etc/init.d/vsftpd start or # service vsftpd start&lt;/span&gt;&lt;br /&gt;3. Edit the vsftpd.conf&lt;br /&gt;   &lt;span style="font-weight: bold;font-size:85%;" &gt;&lt;span style="color: rgb(0, 153, 0);"&gt;# vim /etc/vsftpd/vsftpd.conf&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;4. Uncomment the following directives:&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;span style="font-weight: bold;"&gt;chroot_local_user=YES&lt;/span&gt;&lt;/span&gt; - to chroot local user&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);font-size:85%;" &gt;passwd_chroot_enable=YES&lt;/span&gt; - prompt the password for the local user&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;span style="font-weight: bold;"&gt;chroot_list_enable=YES&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;chroot_list_file=/etc/vsftpd/chroot_list&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;- users in this list will be non-chrooted so be careful&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/1164128320657033277-2183212131925373150?l=g00rkha75.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://g00rkha75.blogspot.com/feeds/2183212131925373150/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1164128320657033277&amp;postID=2183212131925373150' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1164128320657033277/posts/default/2183212131925373150'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1164128320657033277/posts/default/2183212131925373150'/><link rel='alternate' type='text/html' href='http://g00rkha75.blogspot.com/2008/07/installing-and-configuring-vsftpd-in.html' title='Installing and Configuring Chrooted VSFTPD in CentOS 5.0 or RHEL 5.0'/><author><name>g00rkha</name><uri>http://www.blogger.com/profile/07950693385947577134</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_eozVrdyJE9s/SaNoNThpWYI/AAAAAAAAAOk/Me5-NXOBEUM/S220/Another-Catch.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1164128320657033277.post-3153531046541602398</id><published>2008-07-07T01:43:00.001-07:00</published><updated>2008-07-07T02:07:51.105-07:00</updated><title type='text'>Creating Local Repo for RHEL 5.0 or CentOS 5.0</title><content type='html'>&lt;span style="font-family: arial;"&gt;Dependencies is very troublesome when we use rpm to install packages.  Sometimes, it becomes never ending loop until we give up.  Packages like &lt;span style="font-style: italic;"&gt;dovecot, httpd&lt;/span&gt; and so forth are the best installed using yum commands, while installing local repo itself is quite tricky job. &lt;br /&gt;In this post, I try to explain as short and brief as I can:&lt;br /&gt;&lt;br /&gt;1. Copy the whole content of the DVD or CDs that you have to folder /var/ftp/pub.  In this case we are going to create repo using ftp.&lt;br /&gt;Do this command to copy:&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;span style="font-weight: bold;"&gt;# mount /mnt/cdrom /media/CentOS&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# cp  -af /media/CentOS/* /var/ftp/pub&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2. After you've done copying all of those files (please, note to answer yes when it asked about replacing some files), install createrepo .rpm&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;span style="font-weight: bold;"&gt;# rpm -ivh /var/ftp/pub/createrepo*.rpm&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. After you install createrepo then run this command&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);font-size:85%;" &gt;# createrepo -v /var/ftp/pub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4. To enable useful yum commands, please, check my previous post like:&lt;br /&gt;    yum -y groupinstall "MySQL Database" and so forth, you have to run the following command&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;span style="font-weight: bold;"&gt;# cp /var/ftp/pub/Server/repodata/comps*.xml /tmp&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# createrepo -g /tmp/comps*.xml /var/ftp/pub&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5. Done and remember to reboot the server. &lt;br /&gt;&lt;br /&gt;6. On your client machine please, create a repo file (for example: &lt;span style="font-weight: bold;"&gt;server1.repo&lt;/span&gt;)&lt;br /&gt;&lt;br /&gt;7. Here is the content of server1.repo&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);font-size:85%;" &gt;# Main server&lt;br /&gt;[base]&lt;br /&gt;name=Server1 Server Repository &lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;# This could be anything&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);font-size:85%;" &gt;baseurl=ftp://192.168.0.91/pub/Server&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;span style="color: rgb(0, 0, 0);"&gt; # This is the IP address of our ftp server&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);font-size:85%;" &gt;enabled=1&lt;br /&gt;gpgcheck=0&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt; &lt;span style="color: rgb(0, 0, 0);"&gt;# Just make it zero if you haven't or don't want to import the GPG key&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;8. Copy the file &lt;span style="font-weight: bold;"&gt;server1.repo&lt;/span&gt; to your client machine folder under &lt;span style="font-weight: bold;"&gt;/etc/yum.repos.d/&lt;br /&gt;    &lt;/span&gt;if you did right the following is the output after you run: &lt;span style="font-weight: bold;"&gt;yum grouplist &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: arial; font-weight: bold; color: rgb(0, 153, 0);font-size:85%;" &gt;            Loading "security" plugin&lt;br /&gt;Loading "rhnplugin" plugin&lt;br /&gt;Setting up Group Process&lt;br /&gt;Installed Groups:&lt;br /&gt;   Office/Productivity&lt;br /&gt;   MySQL Database&lt;br /&gt;   Editors&lt;br /&gt;   System Tools&lt;br /&gt;   Text-based Internet&lt;br /&gt;   Legacy Network Server&lt;br /&gt;   DNS Name Server&lt;br /&gt;   GNOME Desktop Environment&lt;br /&gt;   FTP Server&lt;br /&gt;   Network Servers&lt;br /&gt;   Windows File Server&lt;br /&gt;   X Window System&lt;br /&gt;   Web Server&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: arial;"&gt;................................................&lt;br /&gt;................................................&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1164128320657033277-3153531046541602398?l=g00rkha75.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://g00rkha75.blogspot.com/feeds/3153531046541602398/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1164128320657033277&amp;postID=3153531046541602398' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1164128320657033277/posts/default/3153531046541602398'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1164128320657033277/posts/default/3153531046541602398'/><link rel='alternate' type='text/html' href='http://g00rkha75.blogspot.com/2008/07/creating-local-repo-for-rhel-50-or.html' title='Creating Local Repo for RHEL 5.0 or CentOS 5.0'/><author><name>g00rkha</name><uri>http://www.blogger.com/profile/07950693385947577134</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_eozVrdyJE9s/SaNoNThpWYI/AAAAAAAAAOk/Me5-NXOBEUM/S220/Another-Catch.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1164128320657033277.post-1623869831967279696</id><published>2008-07-07T00:34:00.000-07:00</published><updated>2008-07-07T01:28:05.712-07:00</updated><title type='text'>Using FTP in the Safe Way</title><content type='html'>&lt;span style="font-family:arial;"&gt;a. Using ssh to do port forwarding.  &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;b. Using the following command means that:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;c. You are connecting to computer &lt;span style="font-weight: bold;"&gt;benjamin&lt;/span&gt; using ssh, with account &lt;span style="font-weight: bold;"&gt;username&lt;/span&gt; using local port 1234 to connect to port 21 (ftp) at computer &lt;span style="font-weight: bold;"&gt;abigail&lt;/span&gt;.  &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;span style="font-family:arial;"&gt;benjamin$  ssh -l username -g -L1234:abigail:21 benjamin&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;d. You’ll be asked by the password of username.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;e. Then, you need to open another terminal to do ftp session to&lt;span style="font-weight: bold;"&gt; abigail &lt;/span&gt;using the following command&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;span style="font-weight: bold;font-family:arial;" &gt;benjamin$ ftp benjamin 1234&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:arial;" &gt;Note:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;You seem like opening &lt;span style="font-weight: bold;"&gt;ftp session&lt;/span&gt; to your own computer (&lt;span style="font-weight: bold;"&gt;benjamin&lt;/span&gt;); however, what happens is that you are opening a session to &lt;span style="font-weight: bold;"&gt;port 1234&lt;/span&gt; on &lt;span style="font-weight: bold;"&gt;benjamin&lt;/span&gt; (your computer) which then using its ssh program now forwarding on to &lt;span style="font-weight: bold;"&gt;abigail&lt;/span&gt;.  But this time, this forwarded connection is encrypted. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1164128320657033277-1623869831967279696?l=g00rkha75.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://g00rkha75.blogspot.com/feeds/1623869831967279696/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1164128320657033277&amp;postID=1623869831967279696' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1164128320657033277/posts/default/1623869831967279696'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1164128320657033277/posts/default/1623869831967279696'/><link rel='alternate' type='text/html' href='http://g00rkha75.blogspot.com/2008/07/using-ftp-in-safe-way.html' title='Using FTP in the Safe Way'/><author><name>g00rkha</name><uri>http://www.blogger.com/profile/07950693385947577134</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_eozVrdyJE9s/SaNoNThpWYI/AAAAAAAAAOk/Me5-NXOBEUM/S220/Another-Catch.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1164128320657033277.post-649128040742168656</id><published>2008-03-08T17:02:00.000-08:00</published><updated>2008-07-07T01:29:44.780-07:00</updated><title type='text'>Using scp To Safely Transfer File</title><content type='html'>&lt;span style="font-family:arial;"&gt;&lt;span style="font-weight: bold;"&gt;scp&lt;/span&gt; is safer compared to &lt;span style="font-weight: bold;"&gt;rcp&lt;/span&gt;, as it &lt;span style="font-style: italic;"&gt;encrypts&lt;/span&gt; the whole file.  However, it will cause a considerable load on the server.&lt;br /&gt;Scp functions pretty much like cp command used for copying files.&lt;br /&gt;&lt;br /&gt;Here is the format for &lt;span style="font-weight: bold;"&gt;scp&lt;/span&gt; command:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);font-size:85%;" &gt;$ scp user@source.hostname:source_filename user@destination.hostname:dest_dir/dest_filename&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Most of the time, there’s no need to put the hostname if you’re copying the local file.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);font-size:85%;" &gt;$ scp source_filename user@destination.hostname:dest_dir/dest_filename&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;There is also no need to put user@, if the source and the destination is the same machine.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Some more examples:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You are logged into &lt;span style="font-weight: bold;"&gt;abigail&lt;/span&gt; and transferring a file from &lt;span style="font-weight: bold;"&gt;benjamin&lt;/span&gt; to &lt;span style="font-weight: bold;"&gt;abigail&lt;/span&gt;.  You’re in your home directory in &lt;span style="font-weight: bold;"&gt;abigail&lt;/span&gt;, the &lt;span style="font-weight: bold;"&gt;file.dat&lt;/span&gt; is the filename.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);font-size:85%;" &gt;abigail$ scp username@benjamin.hostname:file.dat .&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Transferring &lt;span style="font-weight: bold;"&gt;file.dat&lt;/span&gt; in your current directory on &lt;span style="font-weight: bold;"&gt;benjamin&lt;/span&gt; to &lt;span style="font-weight: bold;"&gt;abigail&lt;/span&gt; in the data directory and not changing the name of the file.&lt;br /&gt;&lt;span style="font-weight: bold;font-size:85%;" &gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;benjamin$ scp file.dat username@abigail.hostname:data/&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The following is the same of above but changing the file.dat name at the destination directory&lt;br /&gt;&lt;span style="font-weight: bold;font-size:85%;" &gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;benjamin$ scp file.dat username@abigail.hostname:data/&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You’ll be asked for your password, like you’re logging in to the remote machine.  The tranfer will run right after the correct password keyed-in.&lt;br /&gt;&lt;a href="http://p25ext.lanl.gov/ssh/filetransfer.html#scp"&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1164128320657033277-649128040742168656?l=g00rkha75.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://g00rkha75.blogspot.com/feeds/649128040742168656/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1164128320657033277&amp;postID=649128040742168656' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1164128320657033277/posts/default/649128040742168656'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1164128320657033277/posts/default/649128040742168656'/><link rel='alternate' type='text/html' href='http://g00rkha75.blogspot.com/2008/03/some-useful-sites-for-utilizing-ssh-scp.html' title='Using scp To Safely Transfer File'/><author><name>g00rkha</name><uri>http://www.blogger.com/profile/07950693385947577134</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_eozVrdyJE9s/SaNoNThpWYI/AAAAAAAAAOk/Me5-NXOBEUM/S220/Another-Catch.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1164128320657033277.post-8724746803688245529</id><published>2008-03-06T20:02:00.000-08:00</published><updated>2008-07-07T01:31:08.554-07:00</updated><title type='text'>Some Useful Yum Commands</title><content type='html'>&lt;span style=";font-family:arial;font-size:100%;"  &gt;The yum utility keeps downloaded data files and packages for reuse. You may copy packages from the repository cache directories under &lt;span style="font-weight: bold;font-size:85%;" &gt;/var/cache/yum/&lt;/span&gt;, and use them elsewhere if you wish. If you remove a package from the cache, you do not affect the copy of the software installed on your system.&lt;br /&gt;&lt;br /&gt;To install the package tsclient, enter the command:&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);font-size:85%;" &gt;su -c 'yum install tsclient'&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To install the package group MySQL Database, enter the command:&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;span style="font-weight: bold;"&gt;su -c 'yum groupinstall "MySQL Database"'&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To remove the tsclient package from your system, use the command&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;span style="font-weight: bold;"&gt;su -c 'yum remove tsclient'&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To remove all of the packages in the package group MySQL Database, enter the command:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 153, 0);"&gt;su -c 'yum groupremove "MySQL Database"'&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;p  style="font-family:arial;"&gt;&lt;span style=";font-family:times new roman;font-size:130%;"  &gt;&lt;strong&gt;&lt;strong class="userinput"&gt;&lt;code&gt;&lt;span style="font-family:arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;/code&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style="font-family:arial;"&gt;&lt;span style="font-family:monospace;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1164128320657033277-8724746803688245529?l=g00rkha75.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://g00rkha75.blogspot.com/feeds/8724746803688245529/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1164128320657033277&amp;postID=8724746803688245529' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1164128320657033277/posts/default/8724746803688245529'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1164128320657033277/posts/default/8724746803688245529'/><link rel='alternate' type='text/html' href='http://g00rkha75.blogspot.com/2008/03/some-useful-yum-commands.html' title='Some Useful Yum Commands'/><author><name>g00rkha</name><uri>http://www.blogger.com/profile/07950693385947577134</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_eozVrdyJE9s/SaNoNThpWYI/AAAAAAAAAOk/Me5-NXOBEUM/S220/Another-Catch.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1164128320657033277.post-1048581182400970730</id><published>2008-02-26T16:47:00.000-08:00</published><updated>2008-07-07T00:06:18.504-07:00</updated><title type='text'>Using vipw for Creating A New User</title><content type='html'>&lt;span style="font-family:arial;"&gt;Creating a new user by editing the /etc/passwd file with the vi text editor.&lt;br /&gt;This exercise assists you to verify skills of using vi at the command line interface, while there are other ways to create new Linux users.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;[root@ephraim Desktop]# useradd test&lt;br /&gt;&lt;br /&gt;[root@ephraim Desktop]# mkdir -p /home/np&lt;br /&gt;&lt;br /&gt;[root@ephraim Desktop]# ls /home&lt;br /&gt;nicop  np  nprasetio  test&lt;br /&gt;&lt;br /&gt;[root@ephraim Desktop]# cd /etc/skel&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);font-family:arial;" &gt;&lt;span style="font-size:85%;"&gt;[root@ephraim skel]# cp .bash_logout .bash_profile .bashrc /home/np&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 153, 0);font-family:arial;" &gt;&lt;span style="font-size:85%;"&gt;[root@ephraim skel]# ls -la&lt;br /&gt;total 48&lt;br /&gt;drwxr-xr-x  2 root root  4096 Feb 22 05:17 .&lt;br /&gt;drwxr-xr-x 97 root root 12288 Feb 27 07:56 ..&lt;br /&gt;-rw-r--r--  1 root root    24 Jan  6  2007 .bash_logout&lt;br /&gt;-rw-r--r--  1 root root   176 Jan  6  2007 .bash_profile&lt;br /&gt;-rw-r--r--  1 root root   124 Jan  6  2007 .bashrc&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[root@ephraim skel]# vipw&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;nprasetio:x:500:500:Nico Prasetio:/home/nprasetio:/bin/bash&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;nicop:x:502:502::/home/nicop:/bin/bash&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;test:x:504:504::/home/test:/bin/bash&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Move your cursor and use &lt;span style="font-weight: bold;"&gt;x&lt;/span&gt; to delete test and change to np, also UID and GID (504) change to 505. Use &lt;span style="font-weight: bold;"&gt;i&lt;/span&gt; for adding or typing new character.  Change /home/test to /home/np.  After finished type &lt;span style="font-weight: bold;"&gt;:wq &lt;/span&gt;to save.  You will have this warning "&lt;span style="font-weight: bold;"&gt;Would you like to edit /etc/shadow now [y/n]?&lt;/span&gt;" type &lt;span style="font-weight: bold;"&gt;y&lt;/span&gt;.  Then change the test to np as well in &lt;span style="font-weight: bold;"&gt;/etc/shadow&lt;/span&gt;, otherwise you will get this warning "&lt;span style="font-weight: bold;"&gt;passwd: Authentication token manipulation error&lt;/span&gt;"&lt;br /&gt;&lt;br /&gt;Last part ;-)&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[root@ephraim skel]# passwd np&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;Changing password for user np.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;New UNIX password:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;Retype new UNIX password:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;passwd: all authentication tokens updated successfully.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;Last check:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[root@ephraim skel]# su - nicop&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;[nicop@ephraim ~]$&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Done. You're successfully demonstrated how to use vi to edit /etc/passwd.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1164128320657033277-1048581182400970730?l=g00rkha75.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://g00rkha75.blogspot.com/feeds/1048581182400970730/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1164128320657033277&amp;postID=1048581182400970730' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1164128320657033277/posts/default/1048581182400970730'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1164128320657033277/posts/default/1048581182400970730'/><link rel='alternate' type='text/html' href='http://g00rkha75.blogspot.com/2008/02/my-note-for-self-study.html' title='Using vipw for Creating A New User'/><author><name>g00rkha</name><uri>http://www.blogger.com/profile/07950693385947577134</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_eozVrdyJE9s/SaNoNThpWYI/AAAAAAAAAOk/Me5-NXOBEUM/S220/Another-Catch.jpg'/></author><thr:total>1</thr:total></entry></feed>
