<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;D0IGQXo8cCp7ImA9WhRUE0w.&quot;"><id>tag:blogger.com,1999:blog-2530524320304382470</id><updated>2012-01-23T16:15:20.478+05:30</updated><category term="sharing" /><category term="saving commands" /><category term="Broadband" /><category term="netstat" /><category term="vi" /><category term="connection" /><category term="reset" /><category term="IMAP" /><category term="remote" /><category term="vi unix" /><category term="ADSL" /><category term="files" /><category term="postfix" /><category term="ssh" /><category term="tty" /><category term="opened conenctions" /><category term="tar" /><category term="binary" /><category term="tcp" /><category term="sudo" /><category term="terminal" /><category term="lsof" /><category term="BSNL" /><category term="scrambled" /><category term="command logging" /><category term="GAM SERVER" /><category term="tee" /><category term="Siemens C2110" /><category term="tar over ssh" /><category term="reading terminal" /><category term="log" /><category term="Alway On Internet" /><category term="script" /><category term="vim" /><category term="port" /><category term="master" /><title>Linux Administration Made Easy</title><subtitle type="html">I am here to share my humble experience in Linux administration.
I am mainly into RHEL but i hope
these tips could also be used in
other *NIX too(some *NIX specific changes may be required). We are running Postfix Based Mail Server as well as Apache Web Server.
We are using openLDAP for all sorts 
of user authentication.I want to discuss general administration as
well as daemon specific.</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://rheladmin.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://rheladmin.blogspot.com/" /><author><name>Shailesh</name><uri>http://www.blogger.com/profile/14423811927652257632</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>21</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/blogspot/BjDM" /><feedburner:info uri="blogspot/bjdm" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:browserFriendly></feedburner:browserFriendly><entry gd:etag="W/&quot;CUQEQHc4fyp7ImA9WhRSFE8.&quot;"><id>tag:blogger.com,1999:blog-2530524320304382470.post-3370155608654480647</id><published>2011-11-16T11:30:00.003+05:30</published><updated>2011-11-16T11:31:41.937+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-16T11:31:41.937+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="vi" /><category scheme="http://www.blogger.com/atom/ns#" term="vim" /><category scheme="http://www.blogger.com/atom/ns#" term="sudo" /><title>Saving a root owned file as normal user from within Vi/Vim</title><content type="html">This happens lot of times. I login as a normal user and start to edit root owned file in vim / vi text editor. However, I'm not able to save changes due to permission issue (all config files are owned by root). So to save file, i can do &lt;b&gt;:w !sudo tee %&lt;/b&gt; where &lt;br /&gt;
Where,&lt;br /&gt;
:w - Write a file.&lt;br /&gt;
!sudo - Call shell sudo command.&lt;br /&gt;
tee - The output of write (vim :w) command redirected using tee. The % is nothing but current file name i.e. /etc/apache2/conf.d/mediawiki.conf. In other words tee command is run as root and it takes standard input and write it to a file represented by %. However, this will prompt to reload file again (hit L to load changes in vim itself):&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2530524320304382470-3370155608654480647?l=rheladmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://rheladmin.blogspot.com/feeds/3370155608654480647/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=2530524320304382470&amp;postID=3370155608654480647" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/3370155608654480647?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/3370155608654480647?v=2" /><link rel="alternate" type="text/html" href="http://rheladmin.blogspot.com/2011/11/saving-root-owned-file-as-normal-user.html" title="Saving a root owned file as normal user from within Vi/Vim" /><author><name>Shailesh</name><uri>http://www.blogger.com/profile/14423811927652257632</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;D0UNQ307eSp7ImA9WhZUEkw.&quot;"><id>tag:blogger.com,1999:blog-2530524320304382470.post-2123873098093170134</id><published>2011-06-05T00:48:00.003+05:30</published><updated>2011-06-05T00:51:32.301+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-05T00:51:32.301+05:30</app:edited><title>Effective usage of watch</title><content type="html">Sometimes is useful to run over and over again the same command until something happen,&lt;br /&gt;Sure you can use bash history and use up arrow and return over and over again, or perhaps write some line of bash to get an infinite loop that run the same command, but there is a smarter approach to this : watch&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;watch -d  "ls -alrt /tmp/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Options&lt;br /&gt;&lt;br /&gt;The most common options for watch are:&lt;br /&gt;&lt;br /&gt;-n set the interval in seconds.&lt;br /&gt;-d flag will highlight the differences between successive updates.&lt;br /&gt;-b option causes the command to beep if it has a non-zero exit.&lt;br /&gt;-e cause watch to exit on an error from the program running.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;watch -n 1 "mysqladmin --user=root --password=mypassword processlist"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;watch 'ps -eo pcpu,pid,user,args | sort -k 1 -n -r | head -10'&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2530524320304382470-2123873098093170134?l=rheladmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://rheladmin.blogspot.com/feeds/2123873098093170134/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=2530524320304382470&amp;postID=2123873098093170134" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/2123873098093170134?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/2123873098093170134?v=2" /><link rel="alternate" type="text/html" href="http://rheladmin.blogspot.com/2011/06/effective-usage-of-watch.html" title="Effective usage of watch" /><author><name>Shailesh</name><uri>http://www.blogger.com/profile/14423811927652257632</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DE8EQ3Y5eCp7ImA9WxFTEk4.&quot;"><id>tag:blogger.com,1999:blog-2530524320304382470.post-7616153078804996406</id><published>2010-04-02T22:37:00.009+05:30</published><updated>2010-04-03T01:03:22.820+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-04-03T01:03:22.820+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="tar" /><category scheme="http://www.blogger.com/atom/ns#" term="ssh" /><category scheme="http://www.blogger.com/atom/ns#" term="tar over ssh" /><title>Using tar with ssh effectively</title><content type="html">We know that tar could be used to take backup. We may like to transfer backup to some remote box. Also some time,it is needed to transfer file with directory structure in the remote box.&lt;br /&gt;Lets say we have to transfer many files in the remote box while keeping file permissions and directory structure intact.&lt;br /&gt;We may choose to tar the source directory ,compress it and scp to destination box. We will need to create a v big temp file only to be transferred to the destination box and and removed from source box. Once the file is scp'd to destination box, we will extract the tar'd file to create files in the same directory structure.&lt;br /&gt;&lt;br /&gt;Steps :-&lt;br /&gt;&lt;br /&gt;(In Src box)&lt;br /&gt; &lt;br /&gt;1) Tar the directory in the source file ( tar -cvzf tarfilename.tar.gz /path/of/dir )&lt;br /&gt;2) transfer file to destination box (scp tarfilename.tar.gz user@remote-host)&lt;br /&gt;3) Delete the file ( rm tarfilename.tar.gz)&lt;br /&gt;&lt;br /&gt;(In Dest Box)&lt;br /&gt;&lt;br /&gt;4) Untar the file (tar -xvzf tarfilename.tar.gz)&lt;br /&gt;5) Remote the file (rm tarfilename.tar.gz)&lt;br /&gt;&lt;br /&gt;We can accomplish all these steps in a single command.&lt;br /&gt;&lt;br /&gt;Tar has the great ability to send data to stdout/stdin using the "-" (dash) as a filename in the command line. So using that we can string together pipes to send the data to a remote server&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;tar -cvzf - /dir/to/be/transferred/ | ssh remoteuser@remotehost 'tar -C /path/of/dir -xvzf -'&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;IN NUTSHELL, WE HAVE REPLACED tarfilename.tar.gz WITH -(DASH)&lt;br /&gt;&lt;br /&gt;What this does is pretty simple: it creates a compressed tar file of the /dir/to/be/transferred/ and sends it to stdout (-). We catch stdout with the pipe (|) and then call ssh to connect to a remote server where we execute the remote command tar. Using the remote tar we run a decompress extraction of stdin (-). tar -c changes directory &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Great way to transfer a bunch of files securely, as well maintain ownership and permissions.&lt;br /&gt;&lt;/span&gt; Its the example of PUSH method. &lt;br /&gt;Following example will show the reverse method.&lt;br /&gt;&lt;br /&gt;Lets say we have a backup file in remote host and we want to restore it in local box.&lt;br /&gt;(PULL Method)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;ssh user@remote-host "cat /path/to/backup/backupfile.tar.bz2" |tar jpxf -&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In this command, we are &lt;span style="font-style:italic;"&gt;cat'ing&lt;/span&gt; zipped file and output is being redirected to local tar using pipe. So local tar command will replace -(dash) with zipped file and will untar it.&lt;br /&gt;&lt;br /&gt;Many other scenarios could be found in &lt;a href="Many other scenarios could be found in http://www.lamolabs.org/blog/1766/pushing-pulling-files-around-using-tar-ssh-scp-rsync/"&gt;http://www.lamolabs.org/blog/1766/pushing-pulling-files-around-using-tar-ssh-scp-rsync/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2530524320304382470-7616153078804996406?l=rheladmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://rheladmin.blogspot.com/feeds/7616153078804996406/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=2530524320304382470&amp;postID=7616153078804996406" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/7616153078804996406?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/7616153078804996406?v=2" /><link rel="alternate" type="text/html" href="http://rheladmin.blogspot.com/2010/04/using-tar-with-ssh-effectively.html" title="Using tar with ssh effectively" /><author><name>Shailesh</name><uri>http://www.blogger.com/profile/14423811927652257632</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>2</thr:total></entry><entry gd:etag="W/&quot;C0cER3o9cCp7ImA9WxBaGEg.&quot;"><id>tag:blogger.com,1999:blog-2530524320304382470.post-3482308591603957796</id><published>2010-03-29T13:50:00.002+05:30</published><updated>2010-03-29T13:53:26.468+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-29T13:53:26.468+05:30</app:edited><title>Run the last command as ROOT</title><content type="html">There are many privileged commands which you run as non-prev user only to get error or moy desired output. Then you think like sudo and type the same command again. &lt;br /&gt;We can type &lt;span style="font-weight:bold;"&gt;sudo !!&lt;/span&gt; to execute the last command as PRIV user&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2530524320304382470-3482308591603957796?l=rheladmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://rheladmin.blogspot.com/feeds/3482308591603957796/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=2530524320304382470&amp;postID=3482308591603957796" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/3482308591603957796?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/3482308591603957796?v=2" /><link rel="alternate" type="text/html" href="http://rheladmin.blogspot.com/2010/03/run-last-command-as-root.html" title="Run the last command as ROOT" /><author><name>Shailesh</name><uri>http://www.blogger.com/profile/14423811927652257632</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total></entry><entry gd:etag="W/&quot;CEQMSHg6eCp7ImA9WxBaF0U.&quot;"><id>tag:blogger.com,1999:blog-2530524320304382470.post-582510441383766490</id><published>2010-03-28T18:47:00.002+05:30</published><updated>2010-03-28T18:49:49.610+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-28T18:49:49.610+05:30</app:edited><title>How to know the status of all the running services</title><content type="html">There are many commands like netstat -plant,ps -aux but when you want to know all the services which are running presently into your RHEL box, &lt;span style="font-weight:bold;"&gt;service --status-all&lt;/span&gt; command is very handy . It shows all the running services into your box.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2530524320304382470-582510441383766490?l=rheladmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://rheladmin.blogspot.com/feeds/582510441383766490/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=2530524320304382470&amp;postID=582510441383766490" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/582510441383766490?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/582510441383766490?v=2" /><link rel="alternate" type="text/html" href="http://rheladmin.blogspot.com/2010/03/how-to-know-status-of-all-running.html" title="How to know the status of all the running services" /><author><name>Shailesh</name><uri>http://www.blogger.com/profile/14423811927652257632</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CEUASHs-eCp7ImA9WxBaF0U.&quot;"><id>tag:blogger.com,1999:blog-2530524320304382470.post-8983517904684446426</id><published>2010-03-28T18:44:00.003+05:30</published><updated>2010-03-28T18:47:29.550+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-28T18:47:29.550+05:30</app:edited><title>Quit from shell without saving into history</title><content type="html">There are many instances when we want to quit from shell without saving any command in history. We might have run by mistake some rookie command and you dont want to disclose it to others.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;kill -9 $$&lt;/span&gt; will do the needful as $$ will provide the PID of the current shell.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2530524320304382470-8983517904684446426?l=rheladmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://rheladmin.blogspot.com/feeds/8983517904684446426/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=2530524320304382470&amp;postID=8983517904684446426" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/8983517904684446426?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/8983517904684446426?v=2" /><link rel="alternate" type="text/html" href="http://rheladmin.blogspot.com/2010/03/quit-from-shell-without-saving-into.html" title="Quit from shell without saving into history" /><author><name>Shailesh</name><uri>http://www.blogger.com/profile/14423811927652257632</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CEQCRH4-fSp7ImA9WxBaF0w.&quot;"><id>tag:blogger.com,1999:blog-2530524320304382470.post-6441857726465758928</id><published>2010-03-27T22:41:00.005+05:30</published><updated>2010-03-27T23:22:45.055+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-03-27T23:22:45.055+05:30</app:edited><title>Keyboard shortcuts for shell</title><content type="html">Some useful and more often used keyboard short cuts in bash shell under Mac&lt;br /&gt;&lt;br /&gt;1)CTRL + A       Move to the start of the line.&lt;br /&gt;&lt;br /&gt;2)CTRL + E       Move to the end of the line.( e for END)&lt;br /&gt;&lt;br /&gt;3)CTRL + W       Delete word backwards&lt;br /&gt;&lt;br /&gt;4)CTRL + U   Delete whole line backwards.(Delete from the cursor to the beginning of the line,If cursor is at the end of the line, it will delete the whole line) It can also be used to delete whole line if you are at the end of the command and you wish not to execute it.&lt;br /&gt;&lt;br /&gt;5)CTRL + k   Delete from the cursor to the end of the line.(Delete WHOLE LINE,if the cursor is in the starting,it will delete whole line)&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Place the cursor in the right place and press Either U or K to delete rest of the line&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;6)CTRL + R      to Search history. Press escape to verify and enter to execute&lt;br /&gt;&lt;br /&gt;7)CTRL + L      To clear line leaving the last line on the screen.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2530524320304382470-6441857726465758928?l=rheladmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://rheladmin.blogspot.com/feeds/6441857726465758928/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=2530524320304382470&amp;postID=6441857726465758928" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/6441857726465758928?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/6441857726465758928?v=2" /><link rel="alternate" type="text/html" href="http://rheladmin.blogspot.com/2010/03/keyboard-shortcuts-for-shell.html" title="Keyboard shortcuts for shell" /><author><name>Shailesh</name><uri>http://www.blogger.com/profile/14423811927652257632</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CkcBQH87fSp7ImA9WhRTEU4.&quot;"><id>tag:blogger.com,1999:blog-2530524320304382470.post-3871811775140320277</id><published>2009-10-03T23:56:00.003+05:30</published><updated>2011-11-01T12:17:31.105+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-01T12:17:31.105+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="vi unix" /><title>Some useful vi commands</title><content type="html">gg -- Start of file&lt;br /&gt;
G --  End of File&lt;br /&gt;
&lt;br /&gt;
^ -- Start of Line (Numeric 0 also work)&lt;br /&gt;
$ -- End of Line&lt;br /&gt;
w -- move forward word by word (Sometime use capital W to move forward,e also works)&lt;br /&gt;
b -- move backward word by word&lt;br /&gt;
3G -- will move to 3rd line&lt;br /&gt;
o(Alphabet) -- Insert into Next line&lt;br /&gt;
Page up and Page down works great&lt;br /&gt;
&lt;br /&gt;
* -- Read the string under the cursor and go to the next place it appears. &lt;br /&gt;
(For instance, if your cursor was somewhere on the word "bob," the cursor &lt;br /&gt;
would move to the next occurrence of "bob" in your file.)&lt;br /&gt;
&lt;br /&gt;
# --  Same as above but in reverse order&lt;br /&gt;
&lt;br /&gt;
u -- undo .. Press successively if required.&lt;br /&gt;
&lt;br /&gt;
U (Capital) -- Undo all changes in the line&lt;br /&gt;
&lt;br /&gt;
typing . (a period) -- will repeat the last command you gave. &lt;br /&gt;
For instance, if your last command was dw (delete word), vi will delete another word. &lt;br /&gt;
&lt;br /&gt;
Counts are one of the most powerful and time-saving features of vim. &lt;br /&gt;
Any command can be preceded by a number. &lt;br /&gt;
The number will tell vim how many times to execute the command. Here are a few examples:&lt;br /&gt;
&lt;br /&gt;
3j will move the cursor down three lines.&lt;br /&gt;
&lt;br /&gt;
10dd will delete ten lines.&lt;br /&gt;
&lt;br /&gt;
y3f" will yank (copy) text from the cursor to the third quotation mark after &lt;br /&gt;
the cursor on the current line. Counts are useful to extend the range of a motion in this manner.&lt;br /&gt;
&lt;br /&gt;
&lt;ctrl&gt; F -- Move one screen forward&lt;br /&gt;
&lt;ctrl&gt; B -- Move one screen backward&lt;br /&gt;
&lt;br /&gt;
H -- Move the cursor to the top of screen -- Page UP&lt;br /&gt;
L -- Move the cursor to the bottom of screen -- Page Down&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2530524320304382470-3871811775140320277?l=rheladmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://rheladmin.blogspot.com/feeds/3871811775140320277/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=2530524320304382470&amp;postID=3871811775140320277" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/3871811775140320277?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/3871811775140320277?v=2" /><link rel="alternate" type="text/html" href="http://rheladmin.blogspot.com/2009/10/some-useful-vi-commands.html" title="Some useful vi commands" /><author><name>Shailesh</name><uri>http://www.blogger.com/profile/14423811927652257632</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CUMGQn0zfSp7ImA9WxJUGU4.&quot;"><id>tag:blogger.com,1999:blog-2530524320304382470.post-7262771189571786932</id><published>2009-07-18T21:35:00.002+05:30</published><updated>2009-07-18T21:40:23.385+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-07-18T21:40:23.385+05:30</app:edited><title>Nagios Video</title><content type="html">Nagios Introduction&lt;br /&gt;&lt;br /&gt;&lt;embed id="VideoPlayback" src="http://video.google.co.uk/googleplayer.swf?docid=5793483979096718392&amp;hl=en&amp;fs=true" style="width:400px;height:326px" allowFullScreen="true" allowScriptAccess="always" type="application/x-shockwave-flash"&gt; &lt;/embed&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Deployment Scenario&lt;br /&gt;&lt;br /&gt;&lt;embed id="VideoPlayback" src="http://video.google.co.uk/googleplayer.swf?docid=-2694482537942655203&amp;hl=en&amp;fs=true" style="width:400px;height:326px" allowFullScreen="true" allowScriptAccess="always" type="application/x-shockwave-flash"&gt; &lt;/embed&gt;&lt;br /&gt;&lt;br /&gt;Nagios Monitoring&lt;br /&gt;&lt;br /&gt;&lt;object width="425" height="344"&gt;&lt;param name="movie" value="http://www.youtube.com/v/JfoNDxHoQY8&amp;hl=en&amp;fs=1&amp;"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/JfoNDxHoQY8&amp;hl=en&amp;fs=1&amp;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2530524320304382470-7262771189571786932?l=rheladmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://rheladmin.blogspot.com/feeds/7262771189571786932/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=2530524320304382470&amp;postID=7262771189571786932" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/7262771189571786932?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/7262771189571786932?v=2" /><link rel="alternate" type="text/html" href="http://rheladmin.blogspot.com/2009/07/nagios-video.html" title="Nagios Video" /><author><name>Shailesh</name><uri>http://www.blogger.com/profile/14423811927652257632</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;Ck8EQXg_cSp7ImA9WxJTEU4.&quot;"><id>tag:blogger.com,1999:blog-2530524320304382470.post-3503883448901679196</id><published>2009-04-19T14:07:00.003+05:30</published><updated>2009-04-19T14:16:40.649+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-04-19T14:16:40.649+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="scrambled" /><category scheme="http://www.blogger.com/atom/ns#" term="vi" /><category scheme="http://www.blogger.com/atom/ns#" term="reset" /><category scheme="http://www.blogger.com/atom/ns#" term="binary" /><title>Just opened binary file in vi !!!!!!!</title><content type="html">By mistake,you have just opened one binary file in vi and screen continues to scroll. You may use CTRL + C to stop that. But now,junk characters are appearing in prompt. You are not able to read anything.Try reset command. It will Reset scrambled screen.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;$reset&lt;/blockquote&gt; &lt;br /&gt;&lt;br /&gt;To test this command try opening some binary file and issue reset command after stopping scrolling by pressing CTRL + C.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2530524320304382470-3503883448901679196?l=rheladmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://rheladmin.blogspot.com/feeds/3503883448901679196/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=2530524320304382470&amp;postID=3503883448901679196" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/3503883448901679196?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/3503883448901679196?v=2" /><link rel="alternate" type="text/html" href="http://rheladmin.blogspot.com/2009/04/just-opened-binary-file-in-vi.html" title="Just opened binary file in vi !!!!!!!" /><author><name>Shailesh</name><uri>http://www.blogger.com/profile/14423811927652257632</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CUQCRHw9cSp7ImA9WxJTEUQ.&quot;"><id>tag:blogger.com,1999:blog-2530524320304382470.post-8418343990369344411</id><published>2009-04-19T12:33:00.005+05:30</published><updated>2009-04-20T07:39:25.269+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-04-20T07:39:25.269+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="sharing" /><category scheme="http://www.blogger.com/atom/ns#" term="tty" /><category scheme="http://www.blogger.com/atom/ns#" term="reading terminal" /><category scheme="http://www.blogger.com/atom/ns#" term="terminal" /><category scheme="http://www.blogger.com/atom/ns#" term="script" /><title>How to see what others are doing in real time ?</title><content type="html">There are some situation when you are only interested in knowing what others are doing.&lt;br /&gt;Let say two guys are trying to fix a server and as a supervisor, you are interested in knowing how they are doing in real time.&lt;br /&gt;&lt;br /&gt;You may do this using script command. Let say person is logged in and his terminal type is pts/0. Running "w" tells this.&lt;br /&gt;  &lt;br /&gt;&lt;blockquote&gt;script -f /dev/pts/0&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;This tool is good for learning from team member's skill.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2530524320304382470-8418343990369344411?l=rheladmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://rheladmin.blogspot.com/feeds/8418343990369344411/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=2530524320304382470&amp;postID=8418343990369344411" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/8418343990369344411?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/8418343990369344411?v=2" /><link rel="alternate" type="text/html" href="http://rheladmin.blogspot.com/2009/04/reading-another-terminal.html" title="How to see what others are doing in real time ?" /><author><name>Shailesh</name><uri>http://www.blogger.com/profile/14423811927652257632</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total></entry><entry gd:etag="W/&quot;CU4GQnY4eCp7ImA9WxJTEUQ.&quot;"><id>tag:blogger.com,1999:blog-2530524320304382470.post-1893064192384736467</id><published>2009-04-19T10:21:00.012+05:30</published><updated>2009-04-20T07:48:43.830+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-04-20T07:48:43.830+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="saving commands" /><category scheme="http://www.blogger.com/atom/ns#" term="command logging" /><category scheme="http://www.blogger.com/atom/ns#" term="script" /><title>Why dont you save your command and its output ?</title><content type="html">Lets say you are working on a known issue and you need to document the commands and their result.&lt;br /&gt;You may use script command to capture various commands and its output.&lt;br /&gt;&lt;br /&gt;How to use script&lt;br /&gt;&lt;blockquote&gt;$script FILE-NAME&lt;/blockquote&gt;&lt;br /&gt;This command will open new shell. Now what ever command you issue,along with its output will be logged into FILE-NAME. Once you are done,press "CTRL-D" and you are out of screen command.&lt;br /&gt;&lt;br /&gt;Although this command is very simple but it helps to document things.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2530524320304382470-1893064192384736467?l=rheladmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://rheladmin.blogspot.com/feeds/1893064192384736467/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=2530524320304382470&amp;postID=1893064192384736467" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/1893064192384736467?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/1893064192384736467?v=2" /><link rel="alternate" type="text/html" href="http://rheladmin.blogspot.com/2009/04/capture-command-output-using-screen.html" title="Why dont you save your command and its output ?" /><author><name>Shailesh</name><uri>http://www.blogger.com/profile/14423811927652257632</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DEEMQHw7eSp7ImA9WxJTEUw.&quot;"><id>tag:blogger.com,1999:blog-2530524320304382470.post-6260608670427953189</id><published>2009-04-19T09:51:00.008+05:30</published><updated>2009-04-19T10:21:21.201+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-04-19T10:21:21.201+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="port" /><category scheme="http://www.blogger.com/atom/ns#" term="lsof" /><category scheme="http://www.blogger.com/atom/ns#" term="opened conenctions" /><category scheme="http://www.blogger.com/atom/ns#" term="netstat" /><title>lsof can be used in many ways for troubleshooting purposes</title><content type="html">lsof is a very useful command. Is shows various opened files. You may use lsof with specific port,pid or process.When used in correct context,it will save your life in difficult troubleshooting sessions.&lt;br /&gt;&lt;br /&gt;Suppose you want to see what are the various services running in you server. I know you will say netstat. But you may also use lsof -i -n.&lt;br /&gt;&lt;blockquote&gt;lsof -i -n&lt;/blockquote&gt;&lt;br /&gt;-n for overriding dns resolution&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Lets discuss some of other cases too&lt;/span&gt;.&lt;br /&gt;-i:portno&lt;br /&gt;&lt;blockquote&gt;lsof -i:389&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Port 389 is used by ldap by default.&lt;br /&gt;This will show all the services on this port. It will also show connection status too.&lt;br /&gt;&lt;blockquote&gt;lsof -i:143 -n&lt;/blockquote&gt;&lt;br /&gt;-n will give ip address instead of fqdn&lt;br /&gt;-p:pid&lt;br /&gt;&lt;blockquote&gt;lsof -p:1234&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;There were some situation when some stale processes were hindering new processes to spawn. This switch will display all the files,connections,sockets opened by it.&lt;br /&gt;We can confirm if the particular process is stale(before kill -9)&lt;br /&gt;-c process_name&lt;br /&gt;&lt;blockquote&gt;lsof -c dhcpd&lt;/blockquote&gt;&lt;br /&gt;This switch will show all the files(connection status,type) and many other regular info of this process.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2530524320304382470-6260608670427953189?l=rheladmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://rheladmin.blogspot.com/feeds/6260608670427953189/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=2530524320304382470&amp;postID=6260608670427953189" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/6260608670427953189?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/6260608670427953189?v=2" /><link rel="alternate" type="text/html" href="http://rheladmin.blogspot.com/2009/04/lsof-can-be-used-in-many-ways-for.html" title="lsof can be used in many ways for troubleshooting purposes" /><author><name>Shailesh</name><uri>http://www.blogger.com/profile/14423811927652257632</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CUMFQX8zcSp7ImA9WxJTEUQ.&quot;"><id>tag:blogger.com,1999:blog-2530524320304382470.post-104332863212059810</id><published>2009-04-19T09:28:00.005+05:30</published><updated>2009-04-20T07:40:10.189+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-04-20T07:40:10.189+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="files" /><category scheme="http://www.blogger.com/atom/ns#" term="master" /><category scheme="http://www.blogger.com/atom/ns#" term="tcp" /><category scheme="http://www.blogger.com/atom/ns#" term="lsof" /><category scheme="http://www.blogger.com/atom/ns#" term="connection" /><category scheme="http://www.blogger.com/atom/ns#" term="postfix" /><title>what are the various resources a process is utilizing ?</title><content type="html">There was one particular incidence when i am making changes in some conf file but its not taking effect.There were some cases when i am expecting spool directory's path in some other location but postfix is picking up some other location.&lt;br /&gt;In nutshell, we want to see what are the files a particular daemon is using or opening or referring.&lt;br /&gt;Lets be more specific.As i mainly deal with postfix, there are mainly two conf files, master.conf and main.conf. We are interested in knowing what are the files master process is using, i will issue following command to get this info&lt;br /&gt;&lt;blockquote&gt;lsof -c master&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;it will show all the files,sockets,tcp connections attached to this process.&lt;br /&gt;&lt;br /&gt;You may use other processes too to track them down.&lt;br /&gt;&lt;br /&gt;Very useful in case you are running out of ideas what next to do if correct thing in correct place( as you think) is not taking place.&lt;br /&gt;&lt;br /&gt;I was trying to clear spool directory but master was using different location. I was expecting it to be where it should be(during build i specified) but default postfix installation in OS was forcing different spool location(during booting). &lt;br /&gt;&lt;br /&gt;Whole story is too big to mention here. Not in context too.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2530524320304382470-104332863212059810?l=rheladmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://rheladmin.blogspot.com/feeds/104332863212059810/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=2530524320304382470&amp;postID=104332863212059810" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/104332863212059810?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/104332863212059810?v=2" /><link rel="alternate" type="text/html" href="http://rheladmin.blogspot.com/2009/04/what-are-resources-process-is-using.html" title="what are the various resources a process is utilizing ?" /><author><name>Shailesh</name><uri>http://www.blogger.com/profile/14423811927652257632</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CUQNSXw4fip7ImA9WxJTEUw.&quot;"><id>tag:blogger.com,1999:blog-2530524320304382470.post-8884583774335573575</id><published>2009-04-19T09:17:00.003+05:30</published><updated>2009-04-19T09:26:38.236+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-04-19T09:26:38.236+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="log" /><category scheme="http://www.blogger.com/atom/ns#" term="ssh" /><category scheme="http://www.blogger.com/atom/ns#" term="remote" /><category scheme="http://www.blogger.com/atom/ns#" term="tee" /><title>How to log output of remote ssh session ?</title><content type="html">There are many instances when you are going to ssh to remote server for troubleshooting and data gathering purposes and you want to save those data in your computer.&lt;br /&gt;There is a less frequently but useful "tee" command which could be used to log all output in a remote ssh session. What it will actually do is that it will generate one file which will capture all the commands as well as their output.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;ssh user@remote.server.com | tee /path/of/log/file&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;This command is very useful for troubleshooting purposes.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2530524320304382470-8884583774335573575?l=rheladmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://rheladmin.blogspot.com/feeds/8884583774335573575/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=2530524320304382470&amp;postID=8884583774335573575" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/8884583774335573575?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/8884583774335573575?v=2" /><link rel="alternate" type="text/html" href="http://rheladmin.blogspot.com/2009/04/how-to-log-output-of-remote-ssh-session.html" title="How to log output of remote ssh session ?" /><author><name>Shailesh</name><uri>http://www.blogger.com/profile/14423811927652257632</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total></entry><entry gd:etag="W/&quot;DE4EQHs6eSp7ImA9WxZRFk4.&quot;"><id>tag:blogger.com,1999:blog-2530524320304382470.post-8345930388916964716</id><published>2008-02-10T14:04:00.000+05:30</published><updated>2008-02-10T15:18:21.511+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-02-10T15:18:21.511+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ADSL" /><category scheme="http://www.blogger.com/atom/ns#" term="Alway On Internet" /><category scheme="http://www.blogger.com/atom/ns#" term="BSNL" /><category scheme="http://www.blogger.com/atom/ns#" term="Siemens C2110" /><category scheme="http://www.blogger.com/atom/ns#" term="Broadband" /><title>How to configure BSNL Broabband Connection as truely Always On using Siemens C2110  ADSL Modem?</title><content type="html">i have got my latest broadband connection from Calcutta Telephones(BSNL in Calcutta).They have given Siemens C2110 ADSL modem.This modem requires USB as well as Ethernet card unlike previous modems which worked either on USB or Ethernet. I have configured ADSL modem in ALWAYS ON (by storing UserID/password in Modem) so that i need not to connect from WINDOWS/LINUX.Dialing PPOE client from Windows XP was never been a problem but Linux is a bit shy from USB stuff,so i was a bit worried in Linux environment.Once i have configured modem,i was sure that as soon as Modem gets power it will establish connection irrespective of OS.Modem is working like router in pure PPPoE way unlike dialing from OS where it works as a bridge.THERE IS NO NEED TO CONFIGURE ANY NETWORK CONNECTION IN WINDOWS XP(or installing PPPoE client in Linux).I am so lazy,you know.&lt;br /&gt;&lt;br /&gt;HOW TO CONFIGURE SIEMENS C2110 ADSL MODEM:-&lt;br /&gt;&lt;br /&gt;Once you have properly connected USB as well Ethernet Card into modem,type http://192.168.1.1 in your browser.Login page will appear.Login as admin and default password is admin.Follow the following steps :-&lt;br /&gt;&lt;br /&gt;(I assume internet is not connected in your PC and you have been intimated User Name and Password from BSNL.)&lt;br /&gt;&lt;br /&gt;1) Configuration --&gt;Internet&lt;br /&gt;&lt;br /&gt;2) PPPoE_0_35 will appear in the right panel.If it does not come automatically,click on add and accept all the default parameters and keep on clicking Next till it ask for user Name and Password.&lt;br /&gt;&lt;br /&gt;3)if PPPoE_0_35 appears,click on connect.Accept all the default perameters.Pls ensure that VPI is 0 and VC1 is 35.These values are defaulted too.So nothing to worry.&lt;br /&gt;&lt;br /&gt;4)Clicking on Next will bring "Configure Connection Type" screen.Accept the default settings.It should be PPP over Ethernet (PPPoE).Click on Next.&lt;br /&gt;&lt;br /&gt;5)If your Broadband settings is thru then, It Will show Some WAN IP Address.Accept the defaults and click on Next.&lt;br /&gt;&lt;br /&gt;6)Next screen is "Configure Broadband User Name and Password".Its the only STEP where your intervention is required.Type Broadband User Name and Password provided by BSNL.You can also choose other options too like Always on OR Dial on Demand OR Manually Connect. I will suggest you to choose the default(Always On).Click Next.&lt;br /&gt;&lt;br /&gt;7) Next is the summary page.Just have a glance and Click Apply.&lt;br /&gt;&lt;br /&gt;In a nutshell,all the default parameters WORK well.You just have to provide User Name and Password and it will be REALLY ALWAYS NO Internet without any PPPoE client.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2530524320304382470-8345930388916964716?l=rheladmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://rheladmin.blogspot.com/feeds/8345930388916964716/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=2530524320304382470&amp;postID=8345930388916964716" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/8345930388916964716?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/8345930388916964716?v=2" /><link rel="alternate" type="text/html" href="http://rheladmin.blogspot.com/2008/02/how-to-configure-siemens-c2110-as.html" title="How to configure BSNL Broabband Connection as truely Always On using Siemens C2110  ADSL Modem?" /><author><name>Shailesh</name><uri>http://www.blogger.com/profile/14423811927652257632</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>2</thr:total></entry><entry gd:etag="W/&quot;CkAHQXo4eCp7ImA9WB9SFEU.&quot;"><id>tag:blogger.com,1999:blog-2530524320304382470.post-8077708567180024861</id><published>2007-10-04T12:17:00.000+05:30</published><updated>2007-10-04T12:22:10.430+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-10-04T12:22:10.430+05:30</app:edited><title /><content type="html">&lt;blockquote&gt;Love you ... &lt;br /&gt;but am not your lover. &lt;br /&gt;I care for you... &lt;br /&gt;but I am not from your family. &lt;br /&gt;I am ready to share your pain... &lt;br /&gt;but I am not in your blood relation. &lt;br /&gt;I am.. You’re.......FRIEND!!!!! &lt;br /&gt;True friend scolds like a DAD....&lt;br /&gt;Cares like a MOM....&lt;br /&gt;Teases like a SISTER....&lt;br /&gt;Irritates like a BROTHER...&lt;br /&gt;and finally loves U more than a LOVER. &lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2530524320304382470-8077708567180024861?l=rheladmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://rheladmin.blogspot.com/feeds/8077708567180024861/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=2530524320304382470&amp;postID=8077708567180024861" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/8077708567180024861?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/8077708567180024861?v=2" /><link rel="alternate" type="text/html" href="http://rheladmin.blogspot.com/2007/10/love-you.html" title="" /><author><name>Shailesh</name><uri>http://www.blogger.com/profile/14423811927652257632</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;D0IMQH46eCp7ImA9WB9TEUQ.&quot;"><id>tag:blogger.com,1999:blog-2530524320304382470.post-1611675767060746148</id><published>2007-09-19T14:37:00.000+05:30</published><updated>2007-09-19T15:23:01.010+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-09-19T15:23:01.010+05:30</app:edited><title>LDAP Authentication in Apache Directory Protection?</title><content type="html">openLDAP is a open source implementation of Light Weight Directory Access Protocol.it is read optimized which is used to store user information for authentication purpose.&lt;br /&gt;&lt;div style="text-align: center;"&gt;Once we have implemented &lt;a href="http://rheladmin.blogspot.com/2007/09/how-to-implement-password-protection-in.html"&gt;password protection in Apache&lt;/a&gt; there comes the natural question ?&lt;br /&gt;&lt;br /&gt;  Why to create another password file ???&lt;br /&gt;Cant we utilize our existing authentication mechanism?&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Yes,we can&lt;/span&gt;.&lt;br /&gt;&lt;div style="text-align: left;"&gt;  &lt;p&gt;from some changes in .&lt;span class="glossaryitem"&gt;htaccess&lt;/span&gt;, we need not to alter any settings in Apache's httpd.conf&lt;!--[if gte vml 1]&gt;&lt;v:shapetype id="_x0000_t75" coordsize="21600,21600" spt="75" preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"&gt;  &lt;v:stroke joinstyle="miter"&gt;  &lt;v:formulas&gt;   &lt;v:f eqn="if lineDrawn pixelLineWidth 0"&gt;   &lt;v:f eqn="sum @0 1 0"&gt;   &lt;v:f eqn="sum 0 0 @1"&gt;   &lt;v:f eqn="prod @2 1 2"&gt;   &lt;v:f eqn="prod @3 21600 pixelWidth"&gt;   &lt;v:f eqn="prod @3 21600 pixelHeight"&gt;   &lt;v:f eqn="sum @0 0 1"&gt;   &lt;v:f eqn="prod @6 1 2"&gt;   &lt;v:f eqn="prod @7 21600 pixelWidth"&gt;   &lt;v:f eqn="sum @8 21600 0"&gt;   &lt;v:f eqn="prod @7 21600 pixelHeight"&gt;   &lt;v:f eqn="sum @10 21600 0"&gt;  &lt;/v:formulas&gt;  &lt;v:path extrusionok="f" gradientshapeok="t" connecttype="rect"&gt;  &lt;o:lock ext="edit" aspectratio="t"&gt; &lt;/v:shapetype&gt;&lt;v:shape id="_x0000_i1025" type="#_x0000_t75" alt="" style="'width:14.25pt;"&gt;  &lt;v:imagedata src="file:///D:\DOCUME~1\Comnet\LOCALS~1\Temp\msohtml1\01\clip_image001.gif" href="http://portal.ofb.net/kb/admin/tools/FCKeditor/editor/images/smiley/msn/regular_smile.gif"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;.&lt;/p&gt;&lt;p&gt;Following lines have been added in .&lt;span class="glossaryitem"&gt;htaccess&lt;/span&gt; to allow LDAP &lt;span class="glossaryitem"&gt;Authentication&lt;/span&gt; and allow only certain users.&lt;/p&gt;  &lt;p style="color: rgb(255, 0, 0);"&gt;&lt;span style="font-family:Arial;"&gt;AuthType Basic&lt;br /&gt;AuthName "Message which will appear in Login Window"&lt;br /&gt;&lt;span style="font-size:85%;"&gt; #AuthUserFile /usr/local/apache/passwd/passwd&lt;/span&gt;  (&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;Not needed anymore&lt;/span&gt;&lt;/span&gt;)&lt;br /&gt;AuthLDAPURL ldap://linuxadmin.ofb.net:389/ou=people,o=ofb (Fake address)&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="color: rgb(255, 0, 0);"&gt;&lt;span style="font-family:Arial;"&gt;require user "shailesh.mishra"&lt;br /&gt;require user "tom"&lt;br /&gt;require user "harry"&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="color: rgb(255, 102, 0);font-family:Arial;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=";font-family:Arial;color:black;"  &gt;&lt;!--[if gte vml 1]&gt;&lt;v:shape id="_x0000_i1026" type="#_x0000_t75" alt="" style="'width:14.25pt;height:14.25pt'"&gt;  &lt;v:imagedata src="file:///D:\DOCUME~1\Comnet\LOCALS~1\Temp\msohtml1\01\clip_image002.gif" href="http://portal.ofb.net/kb/admin/tools/FCKeditor/editor/images/smiley/msn/lightbulb.gif"&gt; &lt;/v:shape&gt;&lt;![endif]--&gt;&lt;!--[if !vml]--&gt;&lt;!--[endif]--&gt;It is assumed that LDAP server is running in linuxadmin.ofb.net (Fake address) on port 389 with ou=people,o=ofb.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=";font-family:Arial;color:black;"  &gt; Although all these directive could have been written in httpd.conf itself but its always a good idea not to fiddle with existing settings.&lt;/span&gt;&lt;/p&gt;  &lt;/div&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2530524320304382470-1611675767060746148?l=rheladmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://rheladmin.blogspot.com/feeds/1611675767060746148/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=2530524320304382470&amp;postID=1611675767060746148" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/1611675767060746148?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/1611675767060746148?v=2" /><link rel="alternate" type="text/html" href="http://rheladmin.blogspot.com/2007/09/ldap-authentication-in-apache-directory.html" title="LDAP Authentication in Apache Directory Protection?" /><author><name>Shailesh</name><uri>http://www.blogger.com/profile/14423811927652257632</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CE8CQns7cSp7ImA9WB9TEUQ.&quot;"><id>tag:blogger.com,1999:blog-2530524320304382470.post-3137866579592116302</id><published>2007-09-19T14:23:00.000+05:30</published><updated>2007-09-19T14:37:43.509+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-09-19T14:37:43.509+05:30</app:edited><title>How to implement password protection in sensitive directory in Apache Web Server?</title><content type="html">If any website contains sensitive information or is intended for only a small group of known people, apache provides some standard ways of protecting. Method mentioned below is applicable in Apache 2.x.Location of Apache configuration file may differ.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;Basics of password protection in Website&lt;/span&gt;&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;•Make adjustments in /etc/httpd/conf/httpd.conf ( Apache 2.0 in RHEL Destro)&lt;br /&gt;•Make password file (using htpasswd utility)&lt;br /&gt;•Prepare .htaccess file (to provide user names who are authorized to access)&lt;br /&gt;&lt;br /&gt;Adjustments in httpd.conf:-&lt;br /&gt;&lt;br /&gt;We need to have a server configuration that permits putting authentication directives in these files. This is done with the AllowOverride directive.Following directive have been in added in httpd.conf under :-&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-size:100%;" &gt;AllowOverride AuthConfig&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);font-size:100%;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;AllowOverride must be “&lt;span style="font-weight: bold;"&gt;None&lt;/span&gt;” in all the other situations. It is good security practice and it also improves Apache performance. In case of virtual hosting (shared hosting with single IP),AllowOverride should in disabled(by equating it None) in main configuration section of Apache and it should be enabled inside &lt;virtual host=""&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Make password file :&lt;/span&gt;-&lt;br /&gt;&lt;br /&gt;You'll need to create a password file. This file should be placed somewhere not accessible from the web. To create the file, use the htpasswd utility that came with Apache. htpasswd stands for HyperText Password.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;% htpasswd -c /usr/local/apache/passwd/passwd shailesh.mishra&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-c is being used for the first user so that &lt;span style="font-weight: bold;"&gt;htpasswd&lt;/span&gt; utility can create the file. Above command will create one password file named “passwd” in location /usr/local/apache/passwd.&lt;br /&gt;&lt;br /&gt;htpasswd will ask you for the password, and then ask you to type it again to confirm it.&lt;br /&gt;&lt;br /&gt;To add more users, use only htpasswd (without –c,or else it will again creat another file). Password is encrypted.&lt;br /&gt;&lt;br /&gt;Prepare &lt;span style="font-weight: bold;"&gt;.htaccess&lt;/span&gt; file :-&lt;br /&gt;&lt;br /&gt;Till now, we have configured httpd to accept user authentication for a particular directory. We have also made password file. But we need to attach this password file so that it can be used for user verification. This will be done with the help of .htaccess file. We need to create one file with the name .htaccess with the following content and store in the directory which needs to be protected.This file must be named as .htaccess as this name is specified in Apache Configuration file httpd.conf)&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;AuthType Basic&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;AuthName "Any Message which will be displayed in Login Box"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;AuthUserFile /usr/local/apache/passwd/passwd&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Require valid-user&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If all the steps are properly followed, when user tries to access the password protected site, Login window will appear. User can login by providing user-id and password.&lt;br /&gt;&lt;br /&gt;Parameter &lt;span style="font-weight: bold;"&gt;AuthConfig&lt;/span&gt; is used to tell Apache that authentication needs to be implemented.&lt;br /&gt;&lt;br /&gt;&lt;/virtual&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2530524320304382470-3137866579592116302?l=rheladmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://rheladmin.blogspot.com/feeds/3137866579592116302/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=2530524320304382470&amp;postID=3137866579592116302" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/3137866579592116302?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/3137866579592116302?v=2" /><link rel="alternate" type="text/html" href="http://rheladmin.blogspot.com/2007/09/how-to-implement-password-protection-in.html" title="How to implement password protection in sensitive directory in Apache Web Server?" /><author><name>Shailesh</name><uri>http://www.blogger.com/profile/14423811927652257632</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;A0cAQHY4fSp7ImA9WB9TEUo.&quot;"><id>tag:blogger.com,1999:blog-2530524320304382470.post-1822052837380621595</id><published>2007-09-13T12:27:00.000+05:30</published><updated>2007-09-19T10:47:21.835+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-09-19T10:47:21.835+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="GAM SERVER" /><category scheme="http://www.blogger.com/atom/ns#" term="IMAP" /><title>What is gam server ? How to stop?</title><content type="html">&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;/p&gt;&lt;div style="text-align: justify;"&gt;&lt;blockquote&gt;It is a known bug in RHEL.&lt;br /&gt;It hogs all the processors and some time claims 99% of CPU time. This type of behavior is mainly contributed to screen saver. As We are run our server in INIT 3 level,so screen saver is not the culprit in our case.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Gam_server is the running instance name of “gemin” which is by default loaded with RHEL.Its the successor of FAM (File Alteration Module).FAM (or gam_server) is used to decrease CPU cycle by effectively implementing Locking/Unlocking file handles. When used with &lt;/span&gt;&lt;span style="font-weight: bold;" class="glossaryitem"&gt;IMAP&lt;/span&gt;&lt;span&gt;&lt;span style="font-weight: bold;"&gt; , it is claimed that it will ease shared folder implementation.&lt;/span&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;In our scenario,huge number of gam_servers(sometimes &gt; 350) were running and virtually doing nothing.At the same time, these processes use to fire mails to root which could not be delivered thus giving unnecessary load to Postfix(these mails were lying in Q and postfix tries to resend Q’ed mails after certain intervals)Courier-&lt;span class="glossaryitem"&gt;IMAP&lt;/span&gt; has been compiled with FAM module so it was the part and parcel of it. We have not implemented shared folders so I toggled two parameters of &lt;strong&gt;imapd&lt;/strong&gt;.Two parameters&lt;span style="color: rgb(51, 51, 51);"&gt; &lt;/span&gt;IMAP_USELOCKS and IMAP_ENHANCEDIDLE are used to implement shared folders.If you not interested in shared folders(Some webmail client like squirrelmail lets you to implement shared folder ) you can disable these two parameters.&lt;strong&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;strong&gt;&lt;span style="background: aqua none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:red;" &gt;IMAP_USELOCKS=0 &lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div&gt;      &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;&lt;strong&gt;&lt;span style="background: aqua none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;color:red;" &gt;IMAP_ENHANCEDIDLE=0&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;Changed (toggled parameter) is written in &lt;strong&gt;&lt;span style="color:red;"&gt;RED BOLD&lt;/span&gt;&lt;/strong&gt;. Both these parameters are used in conjunction with Shared Folder Implementation.&lt;/p&gt;&lt;div style="text-align: justify;"&gt;  &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&gt;After restarting imapd,no gam_server will be  spawned.&lt;/p&gt;&lt;div style="text-align: justify;"&gt;  &lt;/div&gt;&lt;p style="text-align: justify;" class="MsoNormal"&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/2530524320304382470-1822052837380621595?l=rheladmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://rheladmin.blogspot.com/feeds/1822052837380621595/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=2530524320304382470&amp;postID=1822052837380621595" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/1822052837380621595?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/1822052837380621595?v=2" /><link rel="alternate" type="text/html" href="http://rheladmin.blogspot.com/2007/09/what-is-gam-server-how-to-stop.html" title="What is gam server ? How to stop?" /><author><name>Shailesh</name><uri>http://www.blogger.com/profile/14423811927652257632</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>2</thr:total></entry><entry gd:etag="W/&quot;CEIDRHwzfSp7ImA9WB9TEUQ.&quot;"><id>tag:blogger.com,1999:blog-2530524320304382470.post-8615421768866213764</id><published>2007-09-12T18:08:00.000+05:30</published><updated>2007-09-19T14:32:55.285+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-09-19T14:32:55.285+05:30</app:edited><title>DDS-4 20/40 GB stores 20 GB data NOT 40 GB</title><content type="html">Today, i came to know that 20/40 GB(150 mm) DDS-4 tape stores roughly around 20 GB data.Hardware or software compression may not be very useful.So beware,DDS-4 will store only 20 GB data not 40 GB as i was thinking.&lt;br /&gt;After seeing from the log that  tar command is not sucessful and tape is not getting ejected automatically,i sensed that something was wrong.I can not recall the exact error message but it was something related to less storage available on tape.&lt;br /&gt;As the users data are getting increased,we need to think on this front too.For the time being,i used -M switch in tar command (it allows more than one tape cartridges).&lt;br /&gt;tar -cvMf  /dev/st0 /home.Please be aware that software zipping (Z )will not work with multi volume.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2530524320304382470-8615421768866213764?l=rheladmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://rheladmin.blogspot.com/feeds/8615421768866213764/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=2530524320304382470&amp;postID=8615421768866213764" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/8615421768866213764?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2530524320304382470/posts/default/8615421768866213764?v=2" /><link rel="alternate" type="text/html" href="http://rheladmin.blogspot.com/2007/09/dds-4-2040-gb-stores-20-gb-data-not-40.html" title="DDS-4 20/40 GB stores 20 GB data NOT 40 GB" /><author><name>Shailesh</name><uri>http://www.blogger.com/profile/14423811927652257632</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry></feed>

