<?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-8973242185321575343</id><updated>2011-07-08T20:59:27.341+05:30</updated><category term='runlevel'/><category term='grub'/><category term='virtual console'/><category term='kernel'/><title type='text'>Experienced Stuff</title><subtitle type='html'>Blog On My Technical Experience</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://experiencedstuff.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8973242185321575343/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://experiencedstuff.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>ExTech</name><uri>http://www.blogger.com/profile/01396597455288413550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_vlJfPchVk4s/SdiXFKMO3DI/AAAAAAAAAFM/iBTvQEA8XEw/S220/technology.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8973242185321575343.post-8898704256815125654</id><published>2010-04-30T12:51:00.002+05:30</published><updated>2010-04-30T13:01:55.770+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='runlevel'/><title type='text'>Runlevels</title><content type='html'>Run level defines which services will start during booting. There are seven runlevels (0-6). A runlevel is a software configuration of the system that allows only a selected group of processes to exist. Init can run the system in one of eight runlevels. These runlevels are 0-6 and S or s. The system runs in only one of these runlevels at a time. Runlevels 0,1, and 6 are reserved. The runlevels are as follows:-&lt;br /&gt;&lt;br /&gt;0(rc0.d)-halt (Don't set init default to this.)&lt;br /&gt;1(rc1.d)-Single user mode.&lt;br /&gt;2(rc2.d)-Multiuser without network file system(nfs)&lt;br /&gt;3(rc3.d)-Multiuser mode (boot up in text mode.)&lt;br /&gt;4(rc4.d)-Unused&lt;br /&gt;5(rc5.d)-Multi user mode boot up in X-windows.&lt;br /&gt;6(rc6.d)-Shutdown &amp;amp; Reboot(Don't set init default to this.)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8973242185321575343-8898704256815125654?l=experiencedstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://experiencedstuff.blogspot.com/feeds/8898704256815125654/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://experiencedstuff.blogspot.com/2010/04/runlevels.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8973242185321575343/posts/default/8898704256815125654'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8973242185321575343/posts/default/8898704256815125654'/><link rel='alternate' type='text/html' href='http://experiencedstuff.blogspot.com/2010/04/runlevels.html' title='Runlevels'/><author><name>ExTech</name><uri>http://www.blogger.com/profile/01396597455288413550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_vlJfPchVk4s/SdiXFKMO3DI/AAAAAAAAAFM/iBTvQEA8XEw/S220/technology.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8973242185321575343.post-1345875895099847893</id><published>2010-04-11T17:31:00.003+05:30</published><updated>2010-04-14T22:19:43.916+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='virtual console'/><title type='text'>Virtual Console</title><content type='html'>Here I am talking about how we can create virtual consoles (shell screen):-&lt;br /&gt;In RHEL (Red Hat Enterprise Linux) we have six virtual consoles by default we can switch to any one by pressing Ctrl+Alt+F[1-6] and back to GUI by Ctrl+Alt+F7.&lt;br /&gt;If we want to create some more virtual console(we can create up to &lt;b&gt;63&lt;/b&gt; virtual consoles) we can:-&lt;br /&gt;Suppose we want to create virtual console no. 22 here are the steps:-&lt;br /&gt;1. Open inttab file the&lt;br /&gt;vim /etc/inittab&amp;nbsp; &lt;br /&gt;2. Add line in 'Run gettys in standard runlevels'&lt;br /&gt;"22:2345:respawn:/sbin/mingetty tty22" the same parameter we will be follows as given for other consoles.&lt;br /&gt;3. Save the inittab file and exit&lt;br /&gt;4. Run command "init q" to re-examine the inittab file.&lt;br /&gt;5. Now If we give command "chvt 22" at prompt a new shell screen will appear. But we can't login since the user (root) is not allowed to login in the shell.&lt;br /&gt;6. Open "/etc/securetty" file and add line as given "vc/22" and "tty22" in the file.&lt;br /&gt;7. Save the securetty file and exit.&lt;br /&gt;8. Now run the "chvt 22" at the prompt. You can login as user (root).&lt;br /&gt;9. Similarly we can create more consoles. Isn't interesting.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8973242185321575343-1345875895099847893?l=experiencedstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://experiencedstuff.blogspot.com/feeds/1345875895099847893/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://experiencedstuff.blogspot.com/2010/04/virtual-console.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8973242185321575343/posts/default/1345875895099847893'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8973242185321575343/posts/default/1345875895099847893'/><link rel='alternate' type='text/html' href='http://experiencedstuff.blogspot.com/2010/04/virtual-console.html' title='Virtual Console'/><author><name>ExTech</name><uri>http://www.blogger.com/profile/01396597455288413550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_vlJfPchVk4s/SdiXFKMO3DI/AAAAAAAAAFM/iBTvQEA8XEw/S220/technology.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8973242185321575343.post-6469173835541961905</id><published>2010-04-11T15:30:00.002+05:30</published><updated>2010-04-11T15:32:00.457+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='kernel'/><title type='text'>Kernel</title><content type='html'>&lt;span style="font-family: inherit;"&gt;Kernel is the core of the LINUX OS. It performs following functions:-&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: inherit;"&gt;a) Device Detection:- During booting kernel detects connected devices and checks whether they are connected or not.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: inherit;"&gt;b)De&lt;/span&gt;vice Driver Initialization:- After detecting connected devices kernel loads proper driver of corresponding device.&lt;br /&gt;c) Mount Root File system:- It mounts root filesystem in read only mode.&lt;br /&gt;d) Execute Init:- It loads and executes initial process i.e. '&lt;b&gt;init&lt;/b&gt;'.&lt;br /&gt;e) Manage Security:- It constantly verifies filesystem permission, SELinux contexts and firewall rules.&lt;br /&gt;&lt;br /&gt;To know about you kernal information type following command at prompt:-&lt;br /&gt;uname -a (a for all info)&lt;br /&gt;uname -r (r for release)&lt;br /&gt;uname -s (s for kernel name)&lt;br /&gt;uname -v (v for kernel version)&lt;br /&gt;uname -m (m for machine name)&lt;br /&gt;uname -o (o for operating system)&lt;br /&gt;There are more options you can easily explore.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8973242185321575343-6469173835541961905?l=experiencedstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://experiencedstuff.blogspot.com/feeds/6469173835541961905/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://experiencedstuff.blogspot.com/2010/04/kernel.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8973242185321575343/posts/default/6469173835541961905'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8973242185321575343/posts/default/6469173835541961905'/><link rel='alternate' type='text/html' href='http://experiencedstuff.blogspot.com/2010/04/kernel.html' title='Kernel'/><author><name>ExTech</name><uri>http://www.blogger.com/profile/01396597455288413550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_vlJfPchVk4s/SdiXFKMO3DI/AAAAAAAAAFM/iBTvQEA8XEw/S220/technology.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8973242185321575343.post-2490441020919014263</id><published>2010-04-11T13:15:00.000+05:30</published><updated>2010-04-11T14:55:49.383+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='grub'/><title type='text'>Protect GRUB from editing</title><content type='html'>&lt;span style="font-family:arial;"&gt;At first I want to give you a brief intro about what GRUB is :-&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;GRUB (GRand Unified Bootloader) a default bootloader of LINUX. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;It has two stages:-&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;1. The first stage is very small(446 bytes) and it resides within Master Boot Record or boot sector. It is called IPL (Initial Program Loader).&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;2. It Loaded from boot partition above 70MB.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Features of GRUB:-&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;1. Command line interface is available at boot prompt.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;2. It supports ext2, ext3, fat, jfs file system. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;3. It provides md5 password protection.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Now I am explaining you how you can protect grub from editing:-&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;a) Login at command prompt and give command grub-md5-crypt (to generate md5 password).&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;b) Now open grub configuration file i.e. /boot/grub/grub.conf and after the splash image add line&lt;br /&gt;password --md5 md5password&lt;md5&gt;(&lt;md5&gt;copy the md5 password you get from console and paste it here.)&lt;br /&gt;c) Reboot the system.&lt;br /&gt;d) When the GRUB menu appears it will ask you to press p for password to unlock the menu (mainly to login as single user mode to change the root password.)&lt;br /&gt;&lt;/md5&gt;&lt;/md5&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8973242185321575343-2490441020919014263?l=experiencedstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://experiencedstuff.blogspot.com/feeds/2490441020919014263/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://experiencedstuff.blogspot.com/2010/04/protect-grub-from-editing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8973242185321575343/posts/default/2490441020919014263'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8973242185321575343/posts/default/2490441020919014263'/><link rel='alternate' type='text/html' href='http://experiencedstuff.blogspot.com/2010/04/protect-grub-from-editing.html' title='Protect GRUB from editing'/><author><name>ExTech</name><uri>http://www.blogger.com/profile/01396597455288413550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_vlJfPchVk4s/SdiXFKMO3DI/AAAAAAAAAFM/iBTvQEA8XEw/S220/technology.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8973242185321575343.post-3042987192784363982</id><published>2009-08-20T23:53:00.000+05:30</published><updated>2009-08-21T00:17:51.807+05:30</updated><title type='text'>Basic Linux</title><content type='html'>1. We can login in Linux through GUI or virtual console. We can switch to different virtual consoles by pressing Ctrl+Alt+F[1-7] keys together. We can move into any virtual consoles. (Try in Red Hat)&lt;br /&gt;&lt;br /&gt;2. When Linux is installed the default user created is root.&lt;br /&gt;&lt;br /&gt;3. Some basic Linux commands are:-&lt;br /&gt;&lt;br /&gt;(a.) pwd (Present Working Directory)&lt;br /&gt;    for root user it will show /root&lt;br /&gt;    for other user it will show /home/sam (e.g. sam is user)&lt;br /&gt;&lt;br /&gt;(b.) clear (To clear screen) or Ctrl+l&lt;br /&gt;&lt;br /&gt;(c.) ls (Shows list of files and directories)&lt;br /&gt;&lt;br /&gt;(d.) ls -l or ll ( Long listing of files and directories)&lt;br /&gt;&lt;br /&gt;(e.) ls -lh ( -h is for human readable i.e. size for files or directories. )&lt;br /&gt;&lt;br /&gt;(f.) ls -la (-a for all. lists all files and directories including hidden files)&lt;br /&gt;&lt;br /&gt;(g.) man &lt;command&gt; e.g. man ls (Manual for command along with options. Helps to get more options for command)&lt;br /&gt;&lt;br /&gt;(h.) info &lt;command&gt; e.g. info ls (Detailed information about command)&lt;br /&gt;    Note:- Ctr+c or Q to exit from manual page.&lt;br /&gt;&lt;br /&gt;(i.) useradd &lt;username&gt; e.g. useradd sam (Creates new user)&lt;br /&gt;&lt;br /&gt;(j.) passwd &lt;username&gt; e.g. passwd sam (Assigns password to user)&lt;br /&gt;&lt;br /&gt;(k.) id (Print identity for the user)&lt;br /&gt;&lt;br /&gt;(l.) who (Lists users currently logged in)&lt;br /&gt;&lt;br /&gt;(m.) whoami (List currently logged in user)&lt;br /&gt;&lt;br /&gt;(n.) who am i (Shows the virtual console of the current logged in user. e.g. pts pseudo terminal)&lt;br /&gt;&lt;br /&gt;(o.) tty (Lists the terminal type)&lt;br /&gt;&lt;br /&gt;(p.) mkdir &lt;dirname&gt; (Creates a new directory)&lt;br /&gt;&lt;br /&gt;(q.) rmdir &lt;dirname&gt; (Remove directory if directory is empty)&lt;br /&gt;&lt;br /&gt;(r.) cd .. (Takes you to previous directory)&lt;br /&gt;&lt;br /&gt;(s.) cd . (Current directory)&lt;br /&gt;&lt;br /&gt;(t.) rm -rf &lt;directory&gt; (Removes directory, files and sub directory into it. -r for recursively and f for forcefully)&lt;br /&gt;&lt;br /&gt;(u.) userdel -r &lt;username&gt; (Removes user)&lt;/username&gt;&lt;/directory&gt;&lt;/dirname&gt;&lt;/dirname&gt;&lt;/username&gt;&lt;/username&gt;&lt;/command&gt;&lt;/command&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8973242185321575343-3042987192784363982?l=experiencedstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://experiencedstuff.blogspot.com/feeds/3042987192784363982/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://experiencedstuff.blogspot.com/2009/08/basic-linux.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8973242185321575343/posts/default/3042987192784363982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8973242185321575343/posts/default/3042987192784363982'/><link rel='alternate' type='text/html' href='http://experiencedstuff.blogspot.com/2009/08/basic-linux.html' title='Basic Linux'/><author><name>ExTech</name><uri>http://www.blogger.com/profile/01396597455288413550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_vlJfPchVk4s/SdiXFKMO3DI/AAAAAAAAAFM/iBTvQEA8XEw/S220/technology.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8973242185321575343.post-5728599176254950800</id><published>2009-04-05T15:56:00.000+05:30</published><updated>2009-08-08T00:02:29.130+05:30</updated><title type='text'>Can you undo a send mail?</title><content type='html'>You will be amazed to know that I can undo a send mail. I don't have any magic stick even you can also do that :). Gmail has a utility by which you can stop a mail from sending after hit send button.&lt;br /&gt;&lt;br /&gt;This is important when we just send the incomplete mail just mistakenly hit the button or forget to attach the necessary files.&lt;br /&gt;&lt;br /&gt;Please follow these steps:-&lt;br /&gt;1. Login to your existing Gmail account.&lt;br /&gt;2. Click on Settings option.&lt;br /&gt;3. Now click on Labs tab.&lt;br /&gt;4. Scroll down the page unless you find "Undo Send" option. It is almost at the bottom of the page. By default this is disabled. Enable this option.&lt;br /&gt;&lt;br /&gt;Now when you hit the Send button you will have 5 seconds to Undo the mail to deliver to its destination. Click at the undo link will revert back to compose.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8973242185321575343-5728599176254950800?l=experiencedstuff.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://experiencedstuff.blogspot.com/feeds/5728599176254950800/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://experiencedstuff.blogspot.com/2009/04/can-you-undo-sent-mail.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8973242185321575343/posts/default/5728599176254950800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8973242185321575343/posts/default/5728599176254950800'/><link rel='alternate' type='text/html' href='http://experiencedstuff.blogspot.com/2009/04/can-you-undo-sent-mail.html' title='Can you undo a send mail?'/><author><name>ExTech</name><uri>http://www.blogger.com/profile/01396597455288413550</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://1.bp.blogspot.com/_vlJfPchVk4s/SdiXFKMO3DI/AAAAAAAAAFM/iBTvQEA8XEw/S220/technology.jpg'/></author><thr:total>3</thr:total></entry></feed>
