<?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:blogger='http://schemas.google.com/blogger/2008' 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-5398861963683420649</id><updated>2024-09-09T11:33:00.916+05:30</updated><category term="Linux"/><category term="Ubuntu"/><category term="7z"/><category term="7zip"/><category term="Eclipse"/><category term="Indian PAN Card"/><category term="Mac"/><category term="Mavericks"/><category term="OSx"/><category term="PAN"/><category term="Reissue"/><category term="Skills"/><category term="Software"/><category term="Vi"/><category term="Vim"/><category term="Yosemite"/><category term="settings"/><category term="shortcuts"/><category term="tips"/><category term="tricks"/><category term="unzip"/><category term="vi search string"/><title type='text'>I Work I Learn I Share!</title><subtitle type='html'>I do work sometimes and take a note of what I learn (actually for my own reference). See if it helps you. Use the comments section to help me improve.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://iworkilearniteach.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://iworkilearniteach.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Mukul</name><uri>http://www.blogger.com/profile/11752271026026214791</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>27</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5398861963683420649.post-3510388626083660397</id><published>2014-12-22T15:33:00.004+05:30</published><updated>2014-12-22T16:35:42.957+05:30</updated><title type='text'>Income Tax India</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Some of the points I have learned while filing Income Tax.&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;/h4&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Capital Gains from shares/equity&lt;/h3&gt;
STCG = Short Term Capital Gain (less than 12 months)&lt;br /&gt;
STCL = Short Term Capital Loss&lt;br /&gt;
LTCG = Long Term Capital Gain (greater than 12 months)&lt;br /&gt;
LTCL = Long Term Capital Loss&lt;br /&gt;
STT = Securities Transaction Tax&lt;br /&gt;
&lt;br /&gt;
STCG Taxed at 15% + educational cess&lt;br /&gt;
LTCG if STT paid then Tax exempt&lt;br /&gt;
LTCG if STT not paid - 10% without indexation or 20% with indexation (you may choose option as mentioned &lt;a href=&quot;http://www.hsbc.co.in/1/2/personal/investments/useful-info/useful-info-tax&quot;&gt;here&lt;/a&gt;)&lt;br /&gt;
&lt;br /&gt;
STCL can be set off by STCG or LTCG&lt;br /&gt;
LTCL can be set off by LTCG and carried forward for 8 years&lt;br /&gt;
&lt;br /&gt;
LTCL for which STT is paid is dead loss and cannot be set-off. Reason is LTCG for which STT is paid is exempted from tax and hence LTCL cannot be set-off.&lt;br /&gt;
&lt;br /&gt;
LTCL for which STT is not paid can be carried forward for 8 years to set-off with LTCG.&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
LTA Claims&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;Block of 4 years set by government&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;2010-13&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;2014-17&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Block calculated from Jan 2010 to Dec 2013 ie calendar year and not financial year.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;2 journeys in a block of 4 years are exempted.&lt;/li&gt;
&lt;li&gt;If you were not able to claim at least one LTA in previous block you can claim an extra journey in the first year of next block. For eg. if you did not claim or claimed only one LTA in 2010-13 you can claim 1 journey in 2014 (note only in the first year and not in the entire block).&lt;/li&gt;
&lt;li&gt;A journey is considered as one to and fro travel as mentioned &lt;a href=&quot;http://www.hinote.in/tax-exemption-leave-travel-allowance-lta-part-ii&quot;&gt;here&lt;/a&gt;. There are various calculations if your journey involved multiple stops and multiple mode of transportation. See the same link for more information.&lt;/li&gt;
&lt;li&gt;You can claim for dependents and wife (even if not dependent) but the same journey cannot be claimed twice.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;References: &lt;a href=&quot;http://www.charteredclub.com/leave-travel-allowance/&quot;&gt;here&lt;/a&gt;&amp;nbsp;and &lt;a href=&quot;http://www.hinote.in/tax-exemption-leave-travel-allowance-lta-part-ii&quot;&gt;here&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iworkilearniteach.blogspot.com/feeds/3510388626083660397/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iworkilearniteach.blogspot.com/2014/12/income-tax-india.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/3510388626083660397'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/3510388626083660397'/><link rel='alternate' type='text/html' href='http://iworkilearniteach.blogspot.com/2014/12/income-tax-india.html' title='Income Tax India'/><author><name>Mukul</name><uri>http://www.blogger.com/profile/11752271026026214791</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5398861963683420649.post-3273708626346769408</id><published>2014-09-05T11:12:00.004+05:30</published><updated>2014-09-20T08:41:10.440+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="settings"/><category scheme="http://www.blogger.com/atom/ns#" term="shortcuts"/><category scheme="http://www.blogger.com/atom/ns#" term="Skills"/><category scheme="http://www.blogger.com/atom/ns#" term="Software"/><category scheme="http://www.blogger.com/atom/ns#" term="tips"/><category scheme="http://www.blogger.com/atom/ns#" term="tricks"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="Vi"/><category scheme="http://www.blogger.com/atom/ns#" term="vi search string"/><category scheme="http://www.blogger.com/atom/ns#" term="Vim"/><title type='text'>Tricks to ease your work life!</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
Learnings&lt;/h2&gt;
Following skills/tricks/tools once learned or used will help you pretty far in your work life. You might not even notice impact of the learnings I have mentioned below, but they will surely help you in the software and related works. Take a look and decide it for yourself.&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
General&lt;/h3&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;First and foremost learn how to type. This is true for anyone who has some part of there job related to computers and typing. Reach to a stage where you can use your all 10 fingers without looking at the keyboard. You will save a lot of effort and time just by learning this skill.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Linux Platform&lt;/h3&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;create&amp;nbsp;&lt;i&gt;alias&amp;nbsp;&lt;/i&gt;for the commands you frequently use. Pretty naive but good for starters on Linux.&lt;/li&gt;
&lt;li&gt;If you are on a linux platform and you need to diff between two files you might already know a &lt;i&gt;diff &lt;/i&gt;utility pre installed in any linux machine. Next time use &lt;i&gt;vimdiff &lt;/i&gt;as it gives a visual diff.&lt;/li&gt;
&lt;li&gt;&lt;i&gt;find ./ -name foo* &lt;/i&gt;Use this command to find a file from this (&lt;i&gt;./&lt;/i&gt;) folder onwards. I use this one very often.&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
VIM&lt;/h4&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;Keep learning more tricks and shortcut for vim. This is never ending process and you grow leaps and bounds every time you learn a new shortcut or trick. I have to admit I haven&#39;t learned many lately. Knowing how to type helps a lot in this.&lt;/span&gt;&lt;/h4&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Use a &lt;i&gt;.vimrc &lt;/i&gt;file in your home directory if you use &lt;i&gt;vim &lt;/i&gt;often for editing. I have seen lot of people not take advantage of this. My &lt;i&gt;.vimrc &lt;/i&gt;file looks something like this and this is absolute minimal. There are lot of other settings available which I haven&#39;t explored.&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;







&lt;div class=&quot;p1&quot;&gt;
&lt;i&gt;se incsearch&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;i&gt;se hlsearch&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;i&gt;syntax on&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;i&gt;se nu&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;i&gt;se ts=4&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;i&gt;se shiftwidth=4&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;i&gt;se expandtab&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;i&gt;se ai&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;i&gt;se ic&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;i&gt;set sm&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;i&gt;set wrap&lt;/i&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;When you have horizontal split screen in order to minimise the other split screen use the shortcut &lt;i&gt;Ctrl+_ . &lt;/i&gt;I took some amount of time to figure this one out. Just because I did not know this shortcut I was away from split screen for quiet some time.&lt;/li&gt;
&lt;li&gt;Make search easy by using following.&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;&lt;i&gt;&amp;nbsp;/search-string&lt;/i&gt;&amp;nbsp;to search ahead.&lt;/li&gt;
&lt;li&gt;&lt;i&gt;?search-string&lt;/i&gt;&amp;nbsp;to search backwards.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Use n and N to navigate forward and backwards.&lt;/li&gt;
&lt;li&gt;&lt;i&gt;/search-string1.*search-string2&lt;/i&gt;&amp;nbsp;to search two strings in order in a line. Eg. &lt;i&gt;/command.*ivr&lt;/i&gt;&amp;nbsp;will search for &lt;i&gt;command&lt;/i&gt; followed by &lt;i&gt;ivr&lt;/i&gt; in any line.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&lt;i&gt;/search-string1\|search-string2&lt;/i&gt;&amp;nbsp;to search with OR option. Eg. &lt;i&gt;/command\|ivr&lt;/i&gt;&amp;nbsp;to search for &lt;i&gt;command&lt;/i&gt; or &lt;i&gt;ivr&lt;/i&gt; in the file.&lt;/li&gt;
&lt;li&gt;More options available &lt;a href=&quot;http://www.mpa-garching.mpg.de/~gaoliang/vi/ch06_03.htm&quot;&gt;here&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;/ul&gt;
&lt;div&gt;
For more details see my &lt;a href=&quot;http://iworkilearniteach.blogspot.in/2010/07/shortcut-for-word-completion-in-vim.html&quot;&gt;previous blog&lt;/a&gt;&amp;nbsp;and &lt;a href=&quot;http://thomer.com/vi/vi.html&quot;&gt;this&lt;/a&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Eclipse&lt;/h3&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;i&gt;Ctrl+Shift+R&lt;/i&gt; or &lt;i&gt;Cmd+Shift+R&lt;/i&gt;: &amp;nbsp;To search for a file.&lt;/li&gt;
&lt;li&gt;&lt;i&gt;F4 &lt;/i&gt;or &lt;i&gt;Clrl+T/Cmd+T&lt;/i&gt;: Click on a class declaration and press &lt;i&gt;F4&lt;/i&gt;. You will see the type hierarchy. This is very useful to find the subclasses and superclasses of a class.&lt;/li&gt;
&lt;li&gt;&lt;i&gt;Ctrl+Shift+G&lt;/i&gt; or &lt;i&gt;Cmd+Shift+G&lt;/i&gt;: Use this to find all the references of a Java type, variable or method in the project.&lt;/li&gt;
&lt;li&gt;&lt;i&gt;Ctrl+H&lt;/i&gt;: To search for a string in the whole project.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;PS: &amp;nbsp;This list is not a comprehensive.&amp;nbsp;&lt;/i&gt;&lt;i&gt;This is a list of useful tips/shortcuts/settings/tricks I use&lt;/i&gt;&lt;i&gt;. I will keep on adding as I learn and remember more tricks. This also assumes prior knowledge, so, ignore sections you do not know yet or not useful in your work environment. Most of the stuff here is trivial but doesn&#39;t have explanation, so figure out if you want to know more.&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iworkilearniteach.blogspot.com/feeds/3273708626346769408/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iworkilearniteach.blogspot.com/2014/09/tricks-to-ease-your-work-life.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/3273708626346769408'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/3273708626346769408'/><link rel='alternate' type='text/html' href='http://iworkilearniteach.blogspot.com/2014/09/tricks-to-ease-your-work-life.html' title='Tricks to ease your work life!'/><author><name>Mukul</name><uri>http://www.blogger.com/profile/11752271026026214791</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5398861963683420649.post-6723927742468129516</id><published>2014-01-03T11:35:00.000+05:30</published><updated>2014-01-03T11:53:34.636+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>Multiple physical interfaces with IPs on same Subnet on Linux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;I faced a problem in one of the systems where two IP addresses were configured on the same subnet. These IP addresses were each configured on 2 different physical interfaces on the same machine. Thus, each of them had different MAC address. Now, in this configuration there was a large amount of packet loss and things were not working as desired. &lt;/span&gt;Such a setup doesn&#39;t work. Linux routes based on destination IP addresses and tries to match that with the routes configured on the system. When you have two physical interfaces configured with the same subnet and if the destination address matches both the subnets then Linux system/Ubuntu throws the packets randomly on either of the interfaces. Thus, a lot of packet loss is observed. Such a setup should not be used, although you can make lot of routes to make it work (which will become complicated), it should be avoided.&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iworkilearniteach.blogspot.com/feeds/6723927742468129516/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iworkilearniteach.blogspot.com/2014/01/multiple-physical-interfaces-with-ips.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/6723927742468129516'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/6723927742468129516'/><link rel='alternate' type='text/html' href='http://iworkilearniteach.blogspot.com/2014/01/multiple-physical-interfaces-with-ips.html' title='Multiple physical interfaces with IPs on same Subnet on Linux'/><author><name>Mukul</name><uri>http://www.blogger.com/profile/11752271026026214791</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5398861963683420649.post-458938472618083281</id><published>2013-11-27T12:57:00.002+05:30</published><updated>2014-11-18T12:33:58.855+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="7z"/><category scheme="http://www.blogger.com/atom/ns#" term="7zip"/><category scheme="http://www.blogger.com/atom/ns#" term="Mac"/><category scheme="http://www.blogger.com/atom/ns#" term="Mavericks"/><category scheme="http://www.blogger.com/atom/ns#" term="OSx"/><category scheme="http://www.blogger.com/atom/ns#" term="unzip"/><category scheme="http://www.blogger.com/atom/ns#" term="Yosemite"/><title type='text'>Unzip .7z on Mavericks OS</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
After downloading and installing multiple applications for unzipping a file in .7z format I found Keka. This worked on Macbook with Mavericks OS. You can download it from&lt;br /&gt;
&lt;a href=&quot;http://www.kekaosx.com/en/&quot;&gt;http://www.kekaosx.com/en/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
After installing it shows a settings page. You will need to drag your file into that page (though it doesn&#39;t show anything like that). I was confused at first but when I dragged and dropped my .7z zipped file, I got option to extract files.&amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iworkilearniteach.blogspot.com/feeds/458938472618083281/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iworkilearniteach.blogspot.com/2013/11/unzip-7z-on-mavericks-os.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/458938472618083281'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/458938472618083281'/><link rel='alternate' type='text/html' href='http://iworkilearniteach.blogspot.com/2013/11/unzip-7z-on-mavericks-os.html' title='Unzip .7z on Mavericks OS'/><author><name>Mukul</name><uri>http://www.blogger.com/profile/11752271026026214791</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5398861963683420649.post-4398204224855625834</id><published>2013-11-02T13:21:00.001+05:30</published><updated>2013-11-02T13:21:34.436+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Indian PAN Card"/><category scheme="http://www.blogger.com/atom/ns#" term="PAN"/><category scheme="http://www.blogger.com/atom/ns#" term="Reissue"/><title type='text'>Reissue PAN card online (in India)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
My wallet which contained PAN card was stolen recently when I went for a holiday in Sri Lanka. I then requested for a new PAN card from the Income Tax department and it was reissued within 15 days. I have listed down the procedure for people who wish to do the same.&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Note that I used this procedure around October of this month and this might change in future.&lt;/div&gt;
&lt;ol class=&quot;ol1&quot;&gt;
&lt;li class=&quot;li1&quot;&gt;I selected &quot;Reprint of PAN card&quot; from this link&amp;nbsp;&lt;a href=&quot;https://tin.tin.nsdl.com/pan/&quot;&gt;&lt;span class=&quot;s1&quot;&gt;https://tin.tin.nsdl.com/pan/&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;li2&quot;&gt;&lt;span class=&quot;s2&quot;&gt;Then select &quot;&lt;a href=&quot;https://tin.tin.nsdl.com/pan/correction.html&quot;&gt;&lt;span class=&quot;s3&quot;&gt;Online Application for Changes Or Correction in PAN Data (PAN Change Request Form)&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;b&gt;&quot;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;li1&quot;&gt;Read the instructions and then towards the end of the page select &quot;Individual&quot; in &quot;Ap&lt;span class=&quot;s4&quot;&gt;ply for New PAN Card Or / And Changes Or Correction in PAN Data&quot;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;li3&quot;&gt;You will be taken to a form. Fill this form with all your details. You should check on the left boxes only for the fields you want to change. If you do not want to change any of the fields (which should match with the data stored in Income Tax department), uncheck all the fields in the left column. I wanted my Address of communication to be changed from my previous values, so I checked only that field.&lt;/li&gt;
&lt;li class=&quot;li3&quot;&gt;You will need a proof of identity (POI) and a proof of address (POA)&lt;/li&gt;
&lt;li class=&quot;li3&quot;&gt;Select the payment option. I chose Net Banking. The fees was Rs 96/-.&lt;/li&gt;
&lt;li class=&quot;li3&quot;&gt;Submit the form and verify the details.&lt;/li&gt;
&lt;li class=&quot;li3&quot;&gt;You will be taken to the payment gateway. Pay the money and you will get an acknowledgement number.&lt;/li&gt;
&lt;li class=&quot;li3&quot;&gt;Take the printout of this Acknowledgement of Application Form and paste your photographs as mentioned in it. Sign it and attach a copy of POI, POA and all the other proofs you mentioned in the &amp;nbsp;Application form. All these needs to be sent through mail to NSDL on the address mentioned in the Acknowledgement. Note that this should reach them within 15 days otherwise your fees will be forfeited.&amp;nbsp;&lt;/li&gt;
&lt;li class=&quot;li3&quot;&gt;You will receive your new PAN card in some time through mail. You will be intimated about the process through SMSs&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;p3&quot;&gt;
Note that the procedure is same for issuing PAN card for the first time. However, I have only tried to reissue the PAN card and a address change in my previous PAN card.&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;p4&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iworkilearniteach.blogspot.com/feeds/4398204224855625834/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iworkilearniteach.blogspot.com/2013/11/reissue-pan-card-online-in-india.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/4398204224855625834'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/4398204224855625834'/><link rel='alternate' type='text/html' href='http://iworkilearniteach.blogspot.com/2013/11/reissue-pan-card-online-in-india.html' title='Reissue PAN card online (in India)'/><author><name>Mukul</name><uri>http://www.blogger.com/profile/11752271026026214791</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5398861963683420649.post-1402233811505588198</id><published>2013-04-01T19:54:00.000+05:30</published><updated>2013-04-01T19:54:06.656+05:30</updated><title type='text'>Terminal Capability Set message in H323</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In TerminalCapabilitySet of H323 messages Capability set of the UA are listed. The capability field for H225 of FECC is configured with receiveDataApplicationCapability or receiveTransmitDataApplicationCapability. In most of the video conferencing products I have seen that any of the two values are assumed as send and receive capabilities.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iworkilearniteach.blogspot.com/feeds/1402233811505588198/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iworkilearniteach.blogspot.com/2013/04/terminal-capability-set-message-in-h323.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/1402233811505588198'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/1402233811505588198'/><link rel='alternate' type='text/html' href='http://iworkilearniteach.blogspot.com/2013/04/terminal-capability-set-message-in-h323.html' title='Terminal Capability Set message in H323'/><author><name>Mukul</name><uri>http://www.blogger.com/profile/11752271026026214791</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5398861963683420649.post-4244831951370646430</id><published>2012-12-31T15:52:00.000+05:30</published><updated>2013-01-02T01:39:48.199+05:30</updated><title type='text'> http://lp.zpdownload.info/mv/ keeps appearing in browser</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b&gt;Problem: &lt;/b&gt;Today I started seeing&amp;nbsp;&amp;nbsp;http://lp.zpdownload.info/mv/ website from time to time in my browser. Whenever I tried to open something this site was appearing again and again. It started today but I don&#39;t know how. If you press the Download button appearing in this website it downloads some exe which I did not run.&lt;br /&gt;
&lt;b&gt;Solution: &lt;/b&gt;I just cleared my browsers Cache and cookies and it has stopped appearing. I hope it helps others who are facing the same problem.&lt;br /&gt;
&lt;b&gt;Problem 2:&lt;/b&gt;&amp;nbsp;Even after this some advertisements were appearing in some of the websites from different sources. The ads mentioned &quot;ads not from this site&quot;.&lt;br /&gt;
&lt;b&gt;Solution 2: &lt;/b&gt;I deleted the user profile in my chrome browser. In the folder&amp;nbsp;&lt;span style=&quot;background-color: white; color: #222222; font-family: monospace; font-size: 13px; line-height: 19.433332443237305px;&quot;&gt;~/Library/Application Support/Google/Chrome/&amp;nbsp;&lt;/span&gt;I deleted &lt;i&gt;default &lt;/i&gt;folder in my Mac. Of course quit the browser and restart it. It deleted my history and all other information browser information stored locally. However, the problem was solved&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iworkilearniteach.blogspot.com/feeds/4244831951370646430/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iworkilearniteach.blogspot.com/2012/12/httplpzpdownloadinfomv-keeps-appearing.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/4244831951370646430'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/4244831951370646430'/><link rel='alternate' type='text/html' href='http://iworkilearniteach.blogspot.com/2012/12/httplpzpdownloadinfomv-keeps-appearing.html' title=' http://lp.zpdownload.info/mv/ keeps appearing in browser'/><author><name>Mukul</name><uri>http://www.blogger.com/profile/11752271026026214791</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5398861963683420649.post-3577771858147711346</id><published>2012-08-02T14:57:00.004+05:30</published><updated>2013-03-25T14:06:59.064+05:30</updated><title type='text'>How to execute psql commands in django or python?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Use psycopg2 to execute raw psql commands from python or from django.&lt;br /&gt;
Example&lt;br /&gt;
&lt;br /&gt;
conn = psycopg2.connect(&quot;dbname=&#39;application&#39;&quot;)&lt;br /&gt;
cur = conn.cursor()&lt;br /&gt;
cur.execute(&quot;&quot;&quot;command&quot;&quot;&quot;)&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
For details see&amp;nbsp;&lt;a href=&quot;http://wiki.postgresql.org/wiki/Psycopg2_Tutorial&quot;&gt;http://wiki.postgresql.org/wiki/Psycopg2_Tutorial&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iworkilearniteach.blogspot.com/feeds/3577771858147711346/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iworkilearniteach.blogspot.com/2012/08/how-to-execute-psql-commands-in-django.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/3577771858147711346'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/3577771858147711346'/><link rel='alternate' type='text/html' href='http://iworkilearniteach.blogspot.com/2012/08/how-to-execute-psql-commands-in-django.html' title='How to execute psql commands in django or python?'/><author><name>Mukul</name><uri>http://www.blogger.com/profile/11752271026026214791</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5398861963683420649.post-6357341030723665619</id><published>2012-03-02T19:30:00.001+05:30</published><updated>2012-03-02T19:31:16.452+05:30</updated><title type='text'>SIP and related protocols</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;It gives a comprehensive list of various SIP and related protocols. Lot of RFC&#39;s in this, enough for me right now :).&lt;br /&gt;
&lt;a href=&quot;http://www.packetizer.com/ipmc/sip/standards.html&quot;&gt;http://www.packetizer.com/ipmc/sip/standards.html&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iworkilearniteach.blogspot.com/feeds/6357341030723665619/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iworkilearniteach.blogspot.com/2012/03/sip-and-related-protocols.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/6357341030723665619'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/6357341030723665619'/><link rel='alternate' type='text/html' href='http://iworkilearniteach.blogspot.com/2012/03/sip-and-related-protocols.html' title='SIP and related protocols'/><author><name>Mukul</name><uri>http://www.blogger.com/profile/11752271026026214791</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5398861963683420649.post-1393772824799253175</id><published>2012-02-20T17:48:00.000+05:30</published><updated>2014-09-05T11:18:18.127+05:30</updated><title type='text'>How to make the logrotate not move file?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I faced a problem logrotate as my application was continuously writing in the log files. The logrotate daemon moved my &lt;i&gt;output.log&lt;/i&gt; file to &lt;i&gt;output.log.1&lt;/i&gt;. Since, the file pointer accessed by my application has not changed when the file was moved, the application starts writing into &lt;i&gt;output.log.1&lt;/i&gt; instead of &lt;i&gt;output.log&lt;/i&gt;. Thus, &lt;i&gt;output.log&lt;/i&gt; remained empty. To avoid this you just need a slight tweaking in your logrotate configuration file. Add &quot;&lt;i&gt;&lt;b&gt;copytruncate&lt;/b&gt;&lt;/i&gt;&quot; in logrotate configuration file of your application. This will make &lt;i&gt;logrotate.d&lt;/i&gt; to first copy the contents of &lt;i&gt;output.log&lt;/i&gt; to &lt;i&gt;output.log.1&lt;/i&gt; and then truncate output.log. Thus, your file pointer doesn&#39;t change. I hope this helps.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iworkilearniteach.blogspot.com/feeds/1393772824799253175/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iworkilearniteach.blogspot.com/2012/02/how-to-make-logrotate-not-move-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/1393772824799253175'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/1393772824799253175'/><link rel='alternate' type='text/html' href='http://iworkilearniteach.blogspot.com/2012/02/how-to-make-logrotate-not-move-file.html' title='How to make the logrotate not move file?'/><author><name>Mukul</name><uri>http://www.blogger.com/profile/11752271026026214791</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5398861963683420649.post-5900687589194072105</id><published>2012-01-17T17:54:00.002+05:30</published><updated>2014-09-05T11:16:00.559+05:30</updated><title type='text'>How to take screenshot in MaC?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Cmd+Shift+3 : The screenshot will be saved on your desktop.&lt;br /&gt;
Cmd+Shift+4: If you want to take a portion of your screen&#39;s screen shot. It will prompt you with a different cursor and when you click and drag it will take a screen shot of the portion you have selected.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iworkilearniteach.blogspot.com/feeds/5900687589194072105/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iworkilearniteach.blogspot.com/2012/01/how-to-take-screenshot-in-mac.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/5900687589194072105'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/5900687589194072105'/><link rel='alternate' type='text/html' href='http://iworkilearniteach.blogspot.com/2012/01/how-to-take-screenshot-in-mac.html' title='How to take screenshot in MaC?'/><author><name>Mukul</name><uri>http://www.blogger.com/profile/11752271026026214791</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5398861963683420649.post-5472381763134544460</id><published>2011-03-22T15:40:00.003+05:30</published><updated>2011-03-22T15:40:33.385+05:30</updated><title type='text'>Static, Shared and Dynamic library details</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Following link contains well explained complete details about libraries in C/C++ in linux&lt;br /&gt;
&lt;a href=&quot;http://www.yolinux.com/TUTORIALS/LibraryArchives-StaticAndDynamic.html&quot;&gt;http://www.yolinux.com/TUTORIALS/LibraryArchives-StaticAndDynamic.html&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iworkilearniteach.blogspot.com/feeds/5472381763134544460/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iworkilearniteach.blogspot.com/2011/03/static-shared-and-dynamic-library.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/5472381763134544460'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/5472381763134544460'/><link rel='alternate' type='text/html' href='http://iworkilearniteach.blogspot.com/2011/03/static-shared-and-dynamic-library.html' title='Static, Shared and Dynamic library details'/><author><name>Mukul</name><uri>http://www.blogger.com/profile/11752271026026214791</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5398861963683420649.post-3537510337408683106</id><published>2010-12-16T17:26:00.001+05:30</published><updated>2010-12-16T17:26:15.157+05:30</updated><title type='text'>corefile using gdb</title><content type='html'>/usr/bin/gdb &lt;binary&gt; -c corefile &lt;br /&gt;
&lt;/binary&gt;</content><link rel='replies' type='application/atom+xml' href='http://iworkilearniteach.blogspot.com/feeds/3537510337408683106/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iworkilearniteach.blogspot.com/2010/12/corefile-using-gdb.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/3537510337408683106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/3537510337408683106'/><link rel='alternate' type='text/html' href='http://iworkilearniteach.blogspot.com/2010/12/corefile-using-gdb.html' title='corefile using gdb'/><author><name>Mukul</name><uri>http://www.blogger.com/profile/11752271026026214791</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5398861963683420649.post-8798745097671543562</id><published>2010-07-12T18:23:00.005+05:30</published><updated>2014-09-20T08:41:37.376+05:30</updated><title type='text'>Vim useful shortcuts</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;To go to the end of file you can use &quot;shift+g&quot; or &quot;G&quot; (capital). &quot;1G&quot; can be used to go to first line. Similarly &quot;&lt;num&gt;G&quot; can be used to go to line number num. Also &quot;:$&quot; takes you to the last line but I find it a little cumbersome as you will have to press two keys (if you ignore shift which is required in both the commands. Similarly, &quot;:&lt;num&gt;&quot; can be used to go to some line number.&lt;/num&gt;&lt;/num&gt;&lt;/li&gt;
&lt;li&gt;To complete the word in vim while coding you can use &quot;&lt;b&gt;ctrl + p&quot;&lt;/b&gt;. It shows the options available with the first few letters. It also looks inside the included files. You can use the arrow keys to select the appropriate word. You should press ctrl+p in insert mode.&lt;/li&gt;
&lt;li&gt;To copy and paste similar commands in a file use &lt;b&gt;q &lt;/b&gt;and say&lt;i&gt; &lt;/i&gt;&lt;b&gt;w&lt;/b&gt;&amp;nbsp;&lt;b&gt;&lt;any-key&gt;&lt;/any-key&gt;&lt;/b&gt; . Then start entering the set of commands that you would want to redo. Press &lt;b&gt;q &lt;/b&gt;again and then use &lt;b&gt;@ &lt;same-key&gt;&lt;/same-key&gt;&lt;/b&gt; combination to redo what was stored.&lt;/li&gt;
&lt;li&gt;To search for the man or manual pages from inside the vim you can use &quot;shift+k&quot; or &quot;K&quot; (caps) to get the manual page for the keyword your cursor is currently on.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Make search easy by using following.&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;&lt;i&gt;&amp;nbsp;/search-string&lt;/i&gt;&amp;nbsp;to search ahead in a file.&lt;/li&gt;
&lt;li&gt;&lt;i&gt;?search-string&lt;/i&gt;&amp;nbsp;to search backwards in a file.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Use n and N to navigate forward and backwards.&lt;/li&gt;
&lt;li&gt;&lt;i&gt;/search-string1.*search-string2&lt;/i&gt;&amp;nbsp;to search two strings in order in a line. Eg.&amp;nbsp;&lt;i&gt;/command.*ivr&lt;/i&gt;&amp;nbsp;will search for&amp;nbsp;&lt;i&gt;command&lt;/i&gt;&amp;nbsp;followed by&amp;nbsp;&lt;i&gt;ivr&lt;/i&gt;&amp;nbsp;in any line. Here . means any character and * means any number of character that immediately precedes it. Here, * is preceded by . and hence .* is any number of any character followed by &lt;i&gt;ivr&lt;/i&gt;. This can be concatenated for more number of search-strings within the same line.&lt;/li&gt;
&lt;li&gt;&lt;i&gt;/search-string1\|search-string2&lt;/i&gt;&amp;nbsp;to search with OR option. Eg.&amp;nbsp;&lt;i&gt;/command\|ivr&lt;/i&gt;&amp;nbsp;to search for &lt;i&gt;command&lt;/i&gt; or &lt;i&gt;ivr&lt;/i&gt; in the file. Concatenate it to search for more than two keywords.&lt;/li&gt;
&lt;li&gt;More options available&amp;nbsp;&lt;a href=&quot;http://www.mpa-garching.mpg.de/~gaoliang/vi/ch06_03.htm&quot;&gt;here&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;In your home in bash shell you can create a &quot;.vimrc&quot; file for putting permanent settings in vi or vim every time you open a file using vi or vim command. Some useful examples which I use are&lt;/li&gt;
&lt;/ul&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;se incsearch: For incremental search. When you search for a word it will start searching from the first word you type otherwise unless you type the whole word and press Enter search will not start.&lt;/li&gt;
&lt;li&gt;se hlsearch: It highlights the searched keyword.&lt;/li&gt;
&lt;li&gt;se nu: It shows the line number on each line. However, you should also know &quot;se nonu&quot; it removes the number from line. The line numbers could be a problem when you use mouse to copy and paste contents.&lt;/li&gt;
&lt;li&gt;se ts=4: It sets the tabspace to 4 spaces&lt;/li&gt;
&lt;li&gt;se expandtab: It expands the tabs to spaces. I feel every coder should have this particular setting because I find a lot of people use tabs and spaces interchangeably when indenting there code. As different people can have different tabspace settings the indentation will not appear proper to everyone. Anyway, its just a suggestion and everyone doesn&#39;t care about what others see so up to you&lt;/li&gt;
&lt;li&gt;se autoindent: It sets auto indentation. It is another useful setting for coders as indentation will not be automatically done when you are editing code. If you don&#39;t have &quot;se expandtab&quot; setting then it will put tabs infront. However, setting is not useful when you have to copy lot of code using mouse as it will auto indent every line having brackets or like. While copying you can turn this off using &quot;se noautoindent&quot;&lt;/li&gt;
&lt;li&gt;se shiftwidth=4: It sets the shiftwidth to 4 when you are using autoindenting feature of Vim. The autoindentation of your code can be done by pressing &quot;v&quot; to go into visual mode and then using arrow key (or by some other way) to select all the code you want vi to correct the indentation. Then press &quot;=&quot; and all the code will be indented properly. This setting will make the indentation after a curly brace to be of 4 spaces.&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
For the complete list of key bindings in vi see this&amp;nbsp;&lt;a href=&quot;http://hea-www.harvard.edu/~fine/Tech/vi.html&quot;&gt;http://hea-www.harvard.edu/~fine/Tech/vi.html&lt;/a&gt;&lt;br /&gt;
Other Useful links&lt;br /&gt;
&lt;a href=&quot;http://thomer.com/vi/vi.html&quot;&gt;http://thomer.com/vi/vi.html&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iworkilearniteach.blogspot.com/feeds/8798745097671543562/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iworkilearniteach.blogspot.com/2010/07/shortcut-for-word-completion-in-vim.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/8798745097671543562'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/8798745097671543562'/><link rel='alternate' type='text/html' href='http://iworkilearniteach.blogspot.com/2010/07/shortcut-for-word-completion-in-vim.html' title='Vim useful shortcuts'/><author><name>Mukul</name><uri>http://www.blogger.com/profile/11752271026026214791</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5398861963683420649.post-4074168894044727315</id><published>2010-07-12T15:19:00.001+05:30</published><updated>2011-02-11T19:39:28.123+05:30</updated><title type='text'>How to install a rpm in a local folder?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;To install a rpm in a folder of your choice use the --relocate&lt;u&gt; OLDPATH=NEWPATH&lt;/u&gt; option.&lt;br /&gt;
&lt;br /&gt;
&amp;gt; rpm -ivh --relocate /=/home/xyz/ foo.rpm&lt;br /&gt;
&lt;br /&gt;
One more way to get the contents of the rpm without installing it is&amp;nbsp; &lt;br /&gt;
&lt;pre&gt;&lt;strong&gt;&lt;strong&gt;rpm2cpio my-rpm-1.0.rpm | cpio -idmv&lt;/strong&gt;&lt;/strong&gt;&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iworkilearniteach.blogspot.com/feeds/4074168894044727315/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iworkilearniteach.blogspot.com/2010/07/how-to-install-rpm-in-local-folder.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/4074168894044727315'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/4074168894044727315'/><link rel='alternate' type='text/html' href='http://iworkilearniteach.blogspot.com/2010/07/how-to-install-rpm-in-local-folder.html' title='How to install a rpm in a local folder?'/><author><name>Mukul</name><uri>http://www.blogger.com/profile/11752271026026214791</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5398861963683420649.post-8815026202994215071</id><published>2010-06-15T17:32:00.001+05:30</published><updated>2010-06-15T17:34:26.614+05:30</updated><title type='text'>How to enable IP routing in a host?</title><content type='html'>To enable &lt;span class=&quot;goog-spellcheck-word&quot; style=&quot;-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: yellow none repeat scroll 0% 0%;&quot;&gt;IP&lt;/span&gt; routing in a &lt;span class=&quot;goog-spellcheck-word&quot; style=&quot;-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: yellow none repeat scroll 0% 0%;&quot;&gt;linux&lt;/span&gt; host (RHEL5). Edit the /&lt;span class=&quot;goog-spellcheck-word&quot; style=&quot;-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: yellow none repeat scroll 0% 0%;&quot;&gt;proc&lt;/span&gt;/&lt;span class=&quot;goog-spellcheck-word&quot; style=&quot;-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: yellow none repeat scroll 0% 0%;&quot;&gt;sys&lt;/span&gt;/net/ipv4/&lt;span class=&quot;goog-spellcheck-word&quot; style=&quot;-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: yellow none repeat scroll 0% 0%;&quot;&gt;ip&lt;/span&gt;_forward and set it as 1 so that&lt;br /&gt;
&lt;br /&gt;
cat /proc/sys/net/ipv4/ip_forward&lt;br /&gt;
1</content><link rel='replies' type='application/atom+xml' href='http://iworkilearniteach.blogspot.com/feeds/8815026202994215071/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iworkilearniteach.blogspot.com/2010/06/how-to-enable-ip-routing-in-host-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/8815026202994215071'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/8815026202994215071'/><link rel='alternate' type='text/html' href='http://iworkilearniteach.blogspot.com/2010/06/how-to-enable-ip-routing-in-host-to.html' title='How to enable IP routing in a host?'/><author><name>Mukul</name><uri>http://www.blogger.com/profile/11752271026026214791</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5398861963683420649.post-7337459098846116731</id><published>2010-02-19T15:09:00.002+05:30</published><updated>2013-04-05T18:51:20.373+05:30</updated><title type='text'>IMS/SIP FAQs and bookmarks</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Some good FAQs about SIP and IMS can be found in this link. These can help you in related interviews or general knowledge of SIP and IMS.&lt;br /&gt;
&lt;a href=&quot;http://www.sipknowledge.com/faq_main.htm&quot;&gt;http://www.sipknowledge.com/faq_main.htm&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.voipuser.org/forum_topic_7295.html&quot;&gt;http://www.voipuser.org/forum_topic_7295.html&amp;nbsp;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.iptel.org/sip/&quot;&gt;http://www.iptel.org/sip/ &lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://arstechnica.com/business/2010/01/voip-in-depth-an-introduction-to-the-sip-protocol-part-1/&quot;&gt;http://arstechnica.com/business/2010/01/voip-in-depth-an-introduction-to-the-sip-protocol-part-1/&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iworkilearniteach.blogspot.com/feeds/7337459098846116731/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iworkilearniteach.blogspot.com/2010/02/imssip-faqs-and-bookmarks.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/7337459098846116731'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/7337459098846116731'/><link rel='alternate' type='text/html' href='http://iworkilearniteach.blogspot.com/2010/02/imssip-faqs-and-bookmarks.html' title='IMS/SIP FAQs and bookmarks'/><author><name>Mukul</name><uri>http://www.blogger.com/profile/11752271026026214791</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5398861963683420649.post-2514656630168087859</id><published>2010-02-05T13:33:00.002+05:30</published><updated>2010-02-18T11:26:38.631+05:30</updated><title type='text'>How to write an ISO in DVD for Linux?</title><content type='html'>&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;To format a rewritable dvd use the following command&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;i&gt;dvd+rw-format -force /dev/dvd&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Use the following command to create ISO in Red Hat linux. &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span class=&quot;newfield_richtext&quot; style=&quot;font-size: small;&quot;&gt;&lt;i&gt;growisofs -dvd-compat -Z /dev/dvd=foo.iso&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Replace foo.iso by the name of the ISO you want to create&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iworkilearniteach.blogspot.com/feeds/2514656630168087859/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iworkilearniteach.blogspot.com/2010/02/how-to-creat-iso-in-linux-machine.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/2514656630168087859'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/2514656630168087859'/><link rel='alternate' type='text/html' href='http://iworkilearniteach.blogspot.com/2010/02/how-to-creat-iso-in-linux-machine.html' title='How to write an ISO in DVD for Linux?'/><author><name>Mukul</name><uri>http://www.blogger.com/profile/11752271026026214791</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5398861963683420649.post-5268676844808314173</id><published>2010-02-05T13:10:00.002+05:30</published><updated>2010-02-18T11:14:45.501+05:30</updated><title type='text'>Fencing in RHEL5</title><content type='html'>&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Do you know that fencing is mandatory in RHEL5. I found some useful FAQ&#39;s about fencing&amp;nbsp; &lt;a href=&quot;http://sources.redhat.com/cluster/wiki/FAQ/Fencing&quot;&gt;http://sources.redhat.com/cluster/wiki/FAQ/Fencing&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iworkilearniteach.blogspot.com/feeds/5268676844808314173/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iworkilearniteach.blogspot.com/2010/02/fencing-in-rhel5.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/5268676844808314173'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/5268676844808314173'/><link rel='alternate' type='text/html' href='http://iworkilearniteach.blogspot.com/2010/02/fencing-in-rhel5.html' title='Fencing in RHEL5'/><author><name>Mukul</name><uri>http://www.blogger.com/profile/11752271026026214791</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5398861963683420649.post-6815682685353769440</id><published>2009-11-24T14:25:00.001+05:30</published><updated>2010-02-18T11:14:35.082+05:30</updated><title type='text'>Tcpdump an example!</title><content type='html'>&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;tcpdump -i any port 2300 or &quot;ports&quot; -s 20000 -w &quot;filename.cap&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;i&gt;any &lt;/i&gt;caputres for all the interfaces. &lt;i&gt;-s &lt;/i&gt;option gives the size limit. &lt;i&gt;port&amp;nbsp; &lt;/i&gt;gives the ports on which the packets are to be captured.&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iworkilearniteach.blogspot.com/feeds/6815682685353769440/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iworkilearniteach.blogspot.com/2009/11/tcpdump-example.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/6815682685353769440'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/6815682685353769440'/><link rel='alternate' type='text/html' href='http://iworkilearniteach.blogspot.com/2009/11/tcpdump-example.html' title='Tcpdump an example!'/><author><name>Mukul</name><uri>http://www.blogger.com/profile/11752271026026214791</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5398861963683420649.post-7626913396490555484</id><published>2009-11-18T17:47:00.004+05:30</published><updated>2011-12-22T16:09:45.905+05:30</updated><title type='text'>How to find a directory in linux?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;find ./ -type d -name dir-name&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;-type d defines that the name is the directory name.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;To find a file use&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;find ./ -name file-name&lt;file-name&gt;&lt;/file-name&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iworkilearniteach.blogspot.com/feeds/7626913396490555484/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iworkilearniteach.blogspot.com/2009/11/how-to-find-directory-in-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/7626913396490555484'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/7626913396490555484'/><link rel='alternate' type='text/html' href='http://iworkilearniteach.blogspot.com/2009/11/how-to-find-directory-in-linux.html' title='How to find a directory in linux?'/><author><name>Mukul</name><uri>http://www.blogger.com/profile/11752271026026214791</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5398861963683420649.post-403988413559841584</id><published>2009-10-09T14:01:00.002+05:30</published><updated>2012-12-17T13:21:10.167+05:30</updated><title type='text'>pam_tty_audit.so for all keystrokes for all users!</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Hi Miloslav Trma, &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;I was trying to log all the keystrokes by all the users by using pam_tty_audit.so. I appended &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;session&amp;nbsp;&amp;nbsp;&amp;nbsp; required&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pam_tty_audit.so enable=*&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;in /etc/pam.d/ ((sshd, login, su, su-l, sudo)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;but could get tty logs only for the root and&lt;b&gt; not for all other users. &lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Can this package work for logging all the keystrokes for all the users? What options should I give to get all the keystrokes for all the users? Thanks in advance.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Regards&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;color: #888888; font-size: small;&quot;&gt;Mukul Agrawal&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Hello,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;im&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;----- &quot;Mukul Agrawal&quot; &amp;lt;&lt;a href=&quot;mailto:mukul.agrawal1@gmail.com&quot; target=&quot;_blank&quot;&gt;mukul.agrawal1@gmail.com&lt;/a&gt;&amp;gt; wrote: &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;gt; I was trying to log all the keystrokes by all the users by using pam_tty_audit.so. I appended &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;gt; session&amp;nbsp;&amp;nbsp;&amp;nbsp; required&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pam_tty_audit.so enable=*&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;gt; in /etc/pam.d/ ((sshd, login, su, su-l, sudo)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;gt;  but could get tty logs only for the root and&lt;b&gt; not for all other users. &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;gt; Can this package work for logging all the keystrokes for all the users?&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Yes.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;im&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;gt; What options should I give to get all the keystrokes for all the users? Thanks in advance.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;The above looks about right.&amp;nbsp; What did you specifically do to test tty logging?&amp;nbsp; What appeared in the audit log, and in /var/log/secure?&amp;nbsp; What version of kernel do you use?&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mirek&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Hi Mirek,&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Thanks for your reply. The details of the issue are noted below.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;im&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;What did you specifically do to test tty logging? What appeared in the audit log, and in /var/log/secure?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Suppose I have configured pam_tty_audit in PC1&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;I login as a local user of PC1 from a remote machine using ssh. In &lt;i&gt;/var/log/secure&lt;/i&gt; I see&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;i&gt;pam_tty_audit(sshd:session): changed status from 0 to 1&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Now if I type &quot;&lt;i&gt;ls&lt;/i&gt;&quot; command on PC1 I donot get any audit logs (with &lt;i&gt;type=TTY&lt;/i&gt;&lt;i&gt;USER_TTY&lt;/i&gt;) in &lt;i&gt;/var/log/audit/audit.log&lt;/i&gt;. Neither does &quot;&lt;i&gt;aureport --tty&lt;/i&gt;&quot; command gives the keystrokes for the local user. &lt;/span&gt; or &lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Though when i login (using su) as root all the keystrokes get recorded and are out in &quot;&lt;i&gt;aureport --tty&lt;/i&gt;&quot; also.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;To be double sure I used &quot;&lt;i&gt;su &lt;local-user&gt;&lt;/local-user&gt;&lt;/i&gt;&quot; to login again as local user, still no keystrokes were recorded. Though in &lt;i&gt;/var/log/secure &lt;/i&gt;I see &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;i&gt;su: pam_tty_audit(su:session): changed status from 0 to 1&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;The other twist is that for a local user if I create &quot;&lt;i&gt;vi temp&quot;&lt;/i&gt; file and type and save something all the keystrokes get recorded. Though, when I remove this temporary file just the command &quot;&lt;i&gt;rm&lt;/i&gt;&quot; gets recorded (and not all keystrokes). Also, note that the only logs which record this are under &lt;i&gt;type=TTY&lt;/i&gt; in&lt;i&gt; /var/log/audit/audit.log&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;im&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;What version of kernel do you use?&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;I am using RHEL5 - Linux  2.6.18-128.el5 , &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;the pam rpm version is pam-0.99.6.2-4.el5,&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;and the audit rpm version is audit-1.7.13-2 &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br clear=&quot;all&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Regards&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Mukul Agrawal&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;im&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Hello,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;----- &quot;Mukul Agrawal&quot; &amp;lt;&lt;a href=&quot;mailto:mukul.agrawal1@gmail.com&quot; target=&quot;_blank&quot;&gt;mukul.agrawal1@gmail.com&lt;/a&gt;&amp;gt; wrote: &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;im&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;gt; Thanks for your reply. The details of the issue are noted below.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;gt; What did you specifically do to test tty logging? What appeared in the audit log, and in /var/log/secure?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;gt; Suppose I have configured pam_tty_audit in PC1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;gt; I login as a local user of PC1 from a remote machine using ssh. In &lt;i&gt;/var/log/secure&lt;/i&gt; I see&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;gt; &lt;i&gt;pam_tty_audit(sshd:session): changed status from 0 to 1&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;gt;   Now if I type &quot;&lt;i&gt;ls&lt;/i&gt;&quot; command on PC1 I donot get any audit logs (with &lt;i&gt;type=TTY&lt;/i&gt; or &lt;i&gt;USER_TTY&lt;/i&gt;) in &lt;i&gt;/var/log/audit/audit.log&lt;/i&gt;. Neither does &quot;&lt;i&gt;aureport --tty&lt;/i&gt;&quot; command gives the keystrokes for the local user. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;gt;  &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;gt; Though when i login (using su) as root all the keystrokes get recorded and are out in &quot;&lt;i&gt;aureport --tty&lt;/i&gt;&quot; also.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;snip&gt;&lt;/snip&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;im&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;gt; The other twist is that for a local user if I create &quot;&lt;i&gt;vi temp&quot;&lt;/i&gt; file and type and save something all the keystrokes get recorded. Though, when I remove this temporary file just the command &quot;&lt;i&gt;rm&lt;/i&gt;&quot; gets recorded (and not all keystrokes). Also, note that the only logs which record this are under &lt;i&gt;type=TTY&lt;/i&gt; in&lt;i&gt; /var/log/audit/audit.log&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Unprivileged users are not allowed to send USER_TTY records (to prevent flooding the audit log).&amp;nbsp; Therefore the bash commands are logged in TTY records only when bash exits, or the number of collected characters is large enough.&amp;nbsp; That&#39;s why the &quot;ls&quot; command is not logged as soon as it is entered; to test this reliably, try logging the user out before checking the audit log.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;im&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;gt; What version of kernel do you use?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;gt; I am using RHEL5 - Linux  2.6.18-128.el5 , &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;gt; the pam rpm version is pam-0.99.6.2-4.el5,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;gt; and the audit rpm version is audit-1.7.13-2 &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Oh.&amp;nbsp; I&#39;m sorry about the late replies - please contact official Red Hat support (&lt;a href=&quot;https://www.redhat.com/apps/support/&quot; target=&quot;_blank&quot;&gt;https://www.redhat.com/apps/&lt;wbr&gt;&lt;/wbr&gt;support/&lt;/a&gt;) to ensure your queries get a quick response.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mirek&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://iworkilearniteach.blogspot.com/feeds/403988413559841584/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iworkilearniteach.blogspot.com/2009/10/pamttyauditso-for-all-keystrokes-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/403988413559841584'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/403988413559841584'/><link rel='alternate' type='text/html' href='http://iworkilearniteach.blogspot.com/2009/10/pamttyauditso-for-all-keystrokes-for.html' title='pam_tty_audit.so for all keystrokes for all users!'/><author><name>Mukul</name><uri>http://www.blogger.com/profile/11752271026026214791</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5398861963683420649.post-5243782958860000881</id><published>2009-10-06T10:47:00.002+05:30</published><updated>2011-12-22T16:04:26.862+05:30</updated><title type='text'>tits-bits-2</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Sep_23:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;i&gt;pidof &lt;/i&gt;returns the process id of a process configured in /etc/init.d/&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Sep_29&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;How to use scp or secure copy&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;scp (file-name) (user)@(ip-address):&lt;file-name&gt;&lt;user&gt;&lt;ip-address&gt;&lt;br /&gt;
Type the password then and get the file transferred&lt;br /&gt;
In order to transfer a file from remote machine using scp use&lt;/ip-address&gt;&lt;/user&gt;&lt;/file-name&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;file-name&gt;&lt;user&gt;&lt;ip-address&gt;scp (user)@(ip-address):/path/of/file/in/remote/mc .&lt;/ip-address&gt;&lt;/user&gt;&lt;/file-name&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;file-name&gt;&lt;user&gt;&lt;ip-address&gt;&lt;br /&gt;
Oct_1:&lt;br /&gt;
diff -b ignores the number of blank lines&lt;br /&gt;
&lt;br /&gt;
This wildcard options can be useful in commands&lt;br /&gt;
&lt;/ip-address&gt;&lt;/user&gt;&lt;/file-name&gt;&lt;/span&gt;&lt;/div&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;i&gt;Wildcard&lt;/i&gt;&lt;/span&gt;&lt;/td&gt;    &lt;td&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;i&gt;Matches&lt;/i&gt;&lt;/span&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;   &lt;td&gt;&lt;span style=&quot;font-size: small;&quot;&gt;*&lt;/span&gt;&lt;/td&gt;   &lt;td&gt;&lt;span style=&quot;font-size: small;&quot;&gt;zero or more characters&lt;/span&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;   &lt;td&gt;&lt;span style=&quot;font-size: small;&quot;&gt;?&lt;/span&gt;&lt;/td&gt;   &lt;td&gt;&lt;span style=&quot;font-size: small;&quot;&gt;exactly one character&lt;/span&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;   &lt;td&gt;&lt;span style=&quot;font-size: small;&quot;&gt;[abcde]&lt;/span&gt;&lt;/td&gt;   &lt;td&gt;&lt;span style=&quot;font-size: small;&quot;&gt;exactly one character listed&lt;/span&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;   &lt;td&gt;&lt;span style=&quot;font-size: small;&quot;&gt;[a-e]&lt;/span&gt;&lt;/td&gt;   &lt;td&gt;&lt;span style=&quot;font-size: small;&quot;&gt;exactly one character in the given range&lt;/span&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;   &lt;td&gt;&lt;span style=&quot;font-size: small;&quot;&gt;[!abcde]&lt;/span&gt;&lt;/td&gt;   &lt;td&gt;&lt;span style=&quot;font-size: small;&quot;&gt;any character that is not listed&lt;/span&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;   &lt;td&gt;&lt;span style=&quot;font-size: small;&quot;&gt;[!a-e]&lt;/span&gt;&lt;/td&gt;   &lt;td&gt;&lt;span style=&quot;font-size: small;&quot;&gt;any character that is not in the given range&lt;/span&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr&gt;   &lt;td&gt;&lt;span style=&quot;font-size: small;&quot;&gt;{debian,linux}&lt;/span&gt;&lt;/td&gt;   &lt;td&gt;&lt;span style=&quot;font-size: small;&quot;&gt;exactly one entire word in the options given&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;The last wildcard did not work with grep&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;/var/run/ directory contains the pids of various processes running on the linux machine&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iworkilearniteach.blogspot.com/feeds/5243782958860000881/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iworkilearniteach.blogspot.com/2009/10/tits-bits-2.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/5243782958860000881'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/5243782958860000881'/><link rel='alternate' type='text/html' href='http://iworkilearniteach.blogspot.com/2009/10/tits-bits-2.html' title='tits-bits-2'/><author><name>Mukul</name><uri>http://www.blogger.com/profile/11752271026026214791</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5398861963683420649.post-256048520497697165</id><published>2009-10-04T10:17:00.001+05:30</published><updated>2010-02-18T11:13:24.948+05:30</updated><title type='text'>How to build a source rpm</title><content type='html'>&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;To install a source rpm first the rpms should be made from the source RPM. Execute the following command first.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;i&gt;rpm -ivh&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;i&gt;cd /home/your_userid/rpm/SPECS &lt;/i&gt;(or the place you have configured)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;i&gt;rpmbuild -bb somepackage.spec&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;The rpms will be created in the directory&lt;i&gt; ../RPMS &lt;/i&gt;under the various architecture directories like i386, i686 etc. You can install these rpms by the same command&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;i&gt;rpm -ivh rpm-name&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt; &lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iworkilearniteach.blogspot.com/feeds/256048520497697165/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iworkilearniteach.blogspot.com/2009/10/how-to-build-source-rpm.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/256048520497697165'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/256048520497697165'/><link rel='alternate' type='text/html' href='http://iworkilearniteach.blogspot.com/2009/10/how-to-build-source-rpm.html' title='How to build a source rpm'/><author><name>Mukul</name><uri>http://www.blogger.com/profile/11752271026026214791</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5398861963683420649.post-8365289274018856531</id><published>2009-09-24T19:58:00.002+05:30</published><updated>2010-02-18T11:13:12.715+05:30</updated><title type='text'>ttysnoop..</title><content type='html'>&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;You can use ttysnoop to snoop or spy on a user. You can easily find the RPM for this on the internet. ttysnoop works on client server model. The code can easily be modified to log all the logins to your PC into a file. ttysnoop client is not required for this. You can replace login file by ttysnoops file but make sure to keep the old login file by some other name on your PC. ttysnoop uses the old login file which should be specified in snooptab file created by the RPM (instead of /bin/login replace it to /bin/login.orig or whatever name you want to give to login file). All kinds of login (i mean remote login by ssh or telnet or anything else) can be snooped by doing this. Also, you will need some changes in the ttysnoops code to transfer everything in a file.&lt;br /&gt;
For more details you can use the comments section. I will try to solve.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Recently I have come across few more options which could be useful.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;i&gt;aureport &lt;/i&gt;can record all the keystrokes if your man page for aureport shows --tty option ( The audit RPM which comes by default with RHEL5 doesnt have the --tty option. Mine was audit-1.7.7. Upgrade it to audit-1.7.13 or higher version) &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Use the &lt;i&gt;pam_tty_audit.so &lt;/i&gt;file. read the man page and append &lt;i&gt;/etc/pam.d/&lt;/i&gt; (&lt;i&gt;su, su-l, sudo, gdm, sshd, login &lt;/i&gt;etc.) with the following line&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;i&gt;session required pam_tty_audit.so disable=* enable=root  &lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;I found that this thing worked only to log root tty strokes. When I changed root by some user name it did not work.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;psacct could also be useful. You can see the link &lt;a href=&quot;http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html&quot; target=&quot;_blank&quot;&gt;http://www.cyberciti.biz/tips/&lt;wbr&gt;&lt;/wbr&gt;howto-log-user-activity-using-&lt;wbr&gt;&lt;/wbr&gt;process-accounting.html&lt;/a&gt;&amp;nbsp; for more details&lt;/span&gt;  &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://iworkilearniteach.blogspot.com/feeds/8365289274018856531/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://iworkilearniteach.blogspot.com/2009/09/ttysnoop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/8365289274018856531'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5398861963683420649/posts/default/8365289274018856531'/><link rel='alternate' type='text/html' href='http://iworkilearniteach.blogspot.com/2009/09/ttysnoop.html' title='ttysnoop..'/><author><name>Mukul</name><uri>http://www.blogger.com/profile/11752271026026214791</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>