<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3729335648800464148</id><updated>2012-01-22T23:40:42.105-08:00</updated><category term='Unix'/><category term='Fedora'/><category term='block'/><category term='Rundeck'/><category term='SysAdmin'/><category term='Manifests'/><category term='admin'/><category term='Debian'/><category term='security'/><category term='google talk'/><category term='Puppet-Module'/><category term='cpu memory'/><category term='user'/><category term='Facter'/><category term='Custom Facts'/><category term='sudo'/><category term='load average'/><category term='Ruby'/><category term='uptime'/><category term='Linux'/><category term='Wifi'/><category term='sonicwall'/><category term='Broadcom'/><category term='Apache'/><category term='ubuntu'/><category term='Puppet'/><category term='Monit'/><category term='messangers'/><category term='Monitoring'/><category term='IM'/><title type='text'>Don't know still thinking..</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://abtomar.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3729335648800464148/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://abtomar.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Abhishek Tomar</name><uri>https://profiles.google.com/102219043365259985808</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-hh800cSg-hw/AAAAAAAAAAI/AAAAAAAAELU/gxg6c2oEUsM/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>14</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3729335648800464148.post-7488965819578375484</id><published>2012-01-19T01:01:00.000-08:00</published><updated>2012-01-19T01:13:40.732-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SysAdmin'/><category scheme='http://www.blogger.com/atom/ns#' term='Puppet'/><category scheme='http://www.blogger.com/atom/ns#' term='Monitoring'/><category scheme='http://www.blogger.com/atom/ns#' term='Manifests'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='Puppet-Module'/><category scheme='http://www.blogger.com/atom/ns#' term='Monit'/><title type='text'>Puppet Monit Module</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span class="Apple-style-span" style="background-color: white; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: white; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;a href="http://mmonit.com/monit/" style="background-color: white; font-family: Arial, Helvetica, sans-serif;" target="_blank"&gt;Monit&lt;/a&gt;&lt;span class="Apple-style-span" style="background-color: white; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;is a utility for managing and monitoring, processes, files, directories and devices on a UNIX system. Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;For installing and configuring it, one can use the following &amp;nbsp;puppet module. I have t&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;ested it on Debian GNU/Linux 6.0 Squeeze and Ubuntu 10.4 LTS with Puppet 2.6.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Installation --&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Clone this repo to a monit directory under your Puppet modules directory:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-style: italic;"&gt;git clone git://github.com/abhishektomar/Puppet-Monit.git monit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;If you don't have a Puppet Master you can create a manifest file based on the notes below and run Puppet in stand-alone mode providing the module directory you cloned this repo to:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-style: italic;"&gt;puppet apply --modulepath=modules monit_test.pp&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Usage--&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;To install and configure monit, include the module in "nodes.pp" file:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-style: italic;"&gt;include monit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;You can override defaults in the monit config by including the module with this special syntax:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-style: italic;"&gt;monit::monitrc { "/etc/monit/monitrc":&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;rootfs =&amp;gt; "/dev/sda1",&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fqdn =&amp;gt; "prod.example.com",&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;hostname =&amp;gt; "example",&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;mailserver =&amp;gt; "smtp.example.com",&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;username =&amp;gt; "anything",&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;password =&amp;gt; "anythnig",&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;datafs =&amp;gt; "/dev/sdc"&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="font-style: italic;"&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;I have added following to monitor the ssh service --&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-style: italic;"&gt;monit::ssh { "/etc/monit/conf.d/ssh.monit":&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; sshdaemon =&amp;gt; "ssh",&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ssh_port =&amp;gt; 22,&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3729335648800464148-7488965819578375484?l=abtomar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://abtomar.blogspot.com/feeds/7488965819578375484/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3729335648800464148&amp;postID=7488965819578375484' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3729335648800464148/posts/default/7488965819578375484'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3729335648800464148/posts/default/7488965819578375484'/><link rel='alternate' type='text/html' href='http://abtomar.blogspot.com/2012/01/puppet-monit-module.html' title='Puppet Monit Module'/><author><name>Abhishek Tomar</name><uri>https://profiles.google.com/102219043365259985808</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-hh800cSg-hw/AAAAAAAAAAI/AAAAAAAAELU/gxg6c2oEUsM/s512-c/photo.jpg'/></author><thr:total>0</thr:total><georss:featurename>New Delhi, Delhi, India</georss:featurename><georss:point>28.635308 77.22496</georss:point><georss:box>28.4123265 76.909103 28.858289499999998 77.54081699999999</georss:box></entry><entry><id>tag:blogger.com,1999:blog-3729335648800464148.post-3382875203526045173</id><published>2012-01-02T10:51:00.000-08:00</published><updated>2012-01-05T10:59:19.075-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='uptime'/><category scheme='http://www.blogger.com/atom/ns#' term='load average'/><category scheme='http://www.blogger.com/atom/ns#' term='Ruby'/><category scheme='http://www.blogger.com/atom/ns#' term='cpu memory'/><title type='text'>Server-Status on your browser</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-_dulSYTCixk/TwPgYk6520I/AAAAAAAAEL8/rUxoEhN1hy4/s1600/srvr-status.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="320" src="http://4.bp.blogspot.com/-_dulSYTCixk/TwPgYk6520I/AAAAAAAAEL8/rUxoEhN1hy4/s320/srvr-status.png" width="219" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="color: #222222; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Formonitoring servers I am using monit, but I've been tired of checkingmails, for that I have written this small application which shows allthe Servers "Load" and uptime in the browser. It involvestwo scripts. First is running ssh and gathering the information fromservers and writing it in a file.Second Script reads the informationcopied and displays it in browser.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: #222222; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;**Note --&amp;nbsp;By default, For making SSH connection it reads ~/.ssh/config file. Copy your id_rsa.pub to&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;servers for secure and password less login.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;You can use different path for the application by changing in "config.yaml" file.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;e.g.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;:outputfile: "/path/to/output/file"&lt;path outputfile="" the="" to=""&gt;&lt;/path&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;:sshconf: "/path/to/ssh/configfile"&lt;path conf="" file="" ssh="" the="" to=""&gt;&lt;/path&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="font-family: 'Century Schoolbook L', serif; font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="background-color: white; color: #222222;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Following are the prerequisites to make it work&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: maroon; font-family: 'Courier New', Courier, monospace;"&gt;Ruby&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: maroon; font-family: 'Courier New', Courier, monospace;"&gt;     Ruby-gem&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: maroon; font-family: 'Courier New', Courier, monospace;"&gt;     Sinatra&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Installation :-&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: green; font-family: 'Courier New', Courier, monospace;"&gt;      &lt;i&gt;$git clone git://github.com/abhishektomar/Server-Load.git&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: green; font-family: 'Courier New', Courier, monospace;"&gt;      &lt;i&gt;$cd Server-Load &lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="font-family: 'Century Schoolbook L', serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="font-family: 'Century Schoolbook L', serif;"&gt;CronEntry (This will gather required information from servers everymin) --&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: green; font-family: 'Courier New', Courier, monospace;"&gt;&lt;i&gt;*&lt;/i&gt;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New', Courier, monospace;"&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New', Courier, monospace;"&gt;&lt;i&gt;*&lt;/i&gt;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New', Courier, monospace;"&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New', Courier, monospace;"&gt;&lt;i&gt;*&lt;/i&gt;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New', Courier, monospace;"&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New', Courier, monospace;"&gt;&lt;i&gt;*&lt;/i&gt;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New', Courier, monospace;"&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New', Courier, monospace;"&gt;&lt;i&gt;*&lt;/i&gt;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New', Courier, monospace;"&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New', Courier, monospace;"&gt;&lt;i&gt;/usr/bin/ruby path/to/uptime.rb&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="font-family: 'Century Schoolbook L', serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="font-family: 'Century Schoolbook L', serif;"&gt;Afterwards,Run the following --&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="color: green; font-family: 'Courier New', Courier, monospace;"&gt;&lt;i&gt;$&lt;/i&gt;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New', Courier, monospace;"&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New', Courier, monospace;"&gt;&lt;i&gt;ruby&lt;/i&gt;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New', Courier, monospace;"&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;span style="color: green; font-family: 'Courier New', Courier, monospace;"&gt;&lt;i&gt;webapp.rb&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Open&lt;span style="color: #20124d;"&gt;http://localhost:4567&lt;/span&gt; in your browser.&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Thisis just a prototype. I will keep updating this application. So keepchecking this post or follow the application on &lt;a href="https://github.com/abhishektomar/Server-Load" target="_blank"&gt;git-hub&lt;/a&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;span style="font-family: 'Century Schoolbook L', serif; font-size: x-small;"&gt;&lt;br /&gt;&lt;/span&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/3729335648800464148-3382875203526045173?l=abtomar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://abtomar.blogspot.com/feeds/3382875203526045173/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3729335648800464148&amp;postID=3382875203526045173' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3729335648800464148/posts/default/3382875203526045173'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3729335648800464148/posts/default/3382875203526045173'/><link rel='alternate' type='text/html' href='http://abtomar.blogspot.com/2012/01/server-status-on-your-browser.html' title='Server-Status on your browser'/><author><name>Abhishek Tomar</name><uri>https://profiles.google.com/102219043365259985808</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-hh800cSg-hw/AAAAAAAAAAI/AAAAAAAAELU/gxg6c2oEUsM/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-_dulSYTCixk/TwPgYk6520I/AAAAAAAAEL8/rUxoEhN1hy4/s72-c/srvr-status.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3729335648800464148.post-2871752865067030542</id><published>2011-12-16T09:39:00.000-08:00</published><updated>2011-12-16T09:40:45.072-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Puppet'/><category scheme='http://www.blogger.com/atom/ns#' term='Ruby'/><category scheme='http://www.blogger.com/atom/ns#' term='Facter'/><category scheme='http://www.blogger.com/atom/ns#' term='Rundeck'/><category scheme='http://www.blogger.com/atom/ns#' term='Custom Facts'/><title type='text'>Writing custom facts about Facter</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Century Schoolbook L', serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I'musing "rundeck" for runnig scripts on several nodes at once. I usedifferent tags for my servers, so it becomes easy to deploy anyapplication using rundeck, it reads the tags and runs the script.&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: 'Century Schoolbook L', serif;"&gt;&amp;nbsp;My“rundeck” machine is getting node information from“puppet-rundeck”. Puppet gets the same from facter. For my work Ineed some custom facts so given below is the detailed process.&lt;/span&gt;&lt;br /&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: #b84747;"&gt;&lt;span style="font-family: 'Century Schoolbook L', serif;"&gt;O/S –ubuntu&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Century Schoolbook L', serif;"&gt;Facterpath - &lt;span style="color: #00ae00;"&gt;&lt;i&gt;/usr/lib/ruby/1.8/facter/environment.rb&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: navy;"&gt;&lt;span style="font-family: 'Century Schoolbook L', serif;"&gt;##createthe script environment.rb&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: navy;"&gt;&lt;span style="font-family: 'Century Schoolbook L', serif;"&gt;#Fact: tags     # Purpose: Returns the operating system tags&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: navy;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: #ff3366;"&gt;&lt;span style="font-family: 'Century Schoolbook L', serif;"&gt;&lt;i&gt;Facter.add(:environment)do&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: #ff3366;"&gt;&lt;span style="font-family: 'Century Schoolbook L', serif;"&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;setcodedo&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: #ff3366;"&gt;&lt;span style="font-family: 'Century Schoolbook L', serif;"&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;%x{/bin/tags.sh-i}.chomp&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: #ff3366;"&gt;&lt;span style="font-family: 'Century Schoolbook L', serif;"&gt;&lt;i&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: #ff3366;"&gt;&lt;span style="font-family: 'Century Schoolbook L', serif;"&gt;&lt;i&gt;end&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Century Schoolbook L', serif;"&gt;Nowyou can see that this little ruby script is executing “tags.sh”file. What I've written in my bash file is as follows:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: navy;"&gt;&lt;span style="font-family: 'Century Schoolbook L', serif;"&gt;#!/bin/sh&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: #ff3366;"&gt;&lt;span style="font-family: 'Century Schoolbook L', serif;"&gt;echo"client backup puppet"&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Century Schoolbook L', serif;"&gt;sowhenever I run&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: #94006b;"&gt;&lt;span style="font-family: 'Century Schoolbook L', serif;"&gt;&lt;i&gt;$facter environment&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Century Schoolbook L', serif;"&gt;I getthe following output---&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: #00ae00;"&gt;&lt;span style="font-family: 'Century Schoolbook L', serif;"&gt;clientbackup puppet&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="color: black;"&gt;&lt;span style="font-family: 'Century Schoolbook L', serif;"&gt;That'show I'm getting what I want. :)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3729335648800464148-2871752865067030542?l=abtomar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://abtomar.blogspot.com/feeds/2871752865067030542/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3729335648800464148&amp;postID=2871752865067030542' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3729335648800464148/posts/default/2871752865067030542'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3729335648800464148/posts/default/2871752865067030542'/><link rel='alternate' type='text/html' href='http://abtomar.blogspot.com/2011/12/writing-custom-facts-about-facter.html' title='Writing custom facts about Facter'/><author><name>Abhishek Tomar</name><uri>https://profiles.google.com/102219043365259985808</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-hh800cSg-hw/AAAAAAAAAAI/AAAAAAAAELU/gxg6c2oEUsM/s512-c/photo.jpg'/></author><thr:total>0</thr:total><georss:featurename>New Delhi, Delhi, India</georss:featurename><georss:point>28.635308 77.22496</georss:point><georss:box>28.4123265 76.909103 28.858289499999998 77.54081699999999</georss:box></entry><entry><id>tag:blogger.com,1999:blog-3729335648800464148.post-1702961745289562516</id><published>2011-12-15T01:29:00.000-08:00</published><updated>2011-12-16T02:37:12.175-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='admin'/><category scheme='http://www.blogger.com/atom/ns#' term='sudo'/><category scheme='http://www.blogger.com/atom/ns#' term='user'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian'/><category scheme='http://www.blogger.com/atom/ns#' term='ubuntu'/><title type='text'>SUDO Without Password</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="background-color: rgba(255, 255, 255, 0.917969); color: #222222; font-family: arial, sans-serif; font-size: 13px; text-align: -webkit-auto;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;b&gt;### Irked with entering password over and over again in sudo -&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Use this simple trick --&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;##open visudo&lt;/div&gt;&lt;div&gt;sudo visudo&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;add the following line -&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;username&gt;&lt;username&gt;&lt;b&gt;USERNAME &amp;nbsp; &amp;nbsp; ALL=(ALL) &amp;nbsp;NOPASSWD:ALL &amp;nbsp;&lt;/b&gt;&lt;/username&gt;&lt;/username&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;##change "USERNAME"&amp;nbsp;&lt;username&gt; with your username&lt;/username&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;That's it. You are done. Now try using sudo it won't ask you for the password. :)&lt;/div&gt;&lt;div style="font-style: italic;"&gt;&lt;br /&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/3729335648800464148-1702961745289562516?l=abtomar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://abtomar.blogspot.com/feeds/1702961745289562516/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3729335648800464148&amp;postID=1702961745289562516' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3729335648800464148/posts/default/1702961745289562516'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3729335648800464148/posts/default/1702961745289562516'/><link rel='alternate' type='text/html' href='http://abtomar.blogspot.com/2011/12/sudo-without-password.html' title='SUDO Without Password'/><author><name>Abhishek Tomar</name><uri>https://profiles.google.com/102219043365259985808</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-hh800cSg-hw/AAAAAAAAAAI/AAAAAAAAELU/gxg6c2oEUsM/s512-c/photo.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3729335648800464148.post-9147427081210219517</id><published>2011-10-04T08:48:00.000-07:00</published><updated>2011-10-04T08:49:56.588-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Broadcom'/><category scheme='http://www.blogger.com/atom/ns#' term='Wifi'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Fedora'/><title type='text'>Installing Broadcom Wifi-driver Fedora</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;I am using 'Dell Vostro 3400'. Earlier i was using ubuntu on my laptop, every thing was fine, but Ubuntu's new release 'UNITY' is seriously not for me so I switched to Fedora, but after installing it I found, my wifi is not working and I didn't even get any option like ubuntu. So after some googling I found this (Hope this will help someone else too) -&lt;br /&gt;&lt;br /&gt;You can find the driver in the RPM Fusion repository.&lt;br /&gt;&lt;br /&gt;Do the following -&lt;br /&gt;&lt;br /&gt;For rpmfusion free release&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&lt;b&gt;$ su -c 'rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm'&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #3d85c6;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;For rpmfusion non free release&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&lt;b&gt;$ su -c 'rpm -Uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm'&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;Once you have upgraded the rpmfusion free and non-free release in your system then update the system using the following command. Type the password for the user when prompted.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&amp;nbsp;$su -c 'yum install kmod-wl'&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;That's it, your Wlan driver is installed. Now reboot your system and it's ready to use.&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #990000;"&gt;&lt;b&gt;Note :&lt;/b&gt;&lt;/span&gt; if still you are not able to connect your wifi-access point (I, too faced this problem. I wasn't able to connect to my wifi network because of some authentication problem). Run the following command -&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #134f5c;"&gt;&lt;b&gt;$nm-applet-editor&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;and manually put your access point information and you are ready to use your wifi network.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Best of luck.&lt;br /&gt;&lt;div&gt;&lt;br /&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/3729335648800464148-9147427081210219517?l=abtomar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://abtomar.blogspot.com/feeds/9147427081210219517/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3729335648800464148&amp;postID=9147427081210219517' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3729335648800464148/posts/default/9147427081210219517'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3729335648800464148/posts/default/9147427081210219517'/><link rel='alternate' type='text/html' href='http://abtomar.blogspot.com/2011/10/installing-broadcom-wifi-driver-fedora.html' title='Installing Broadcom Wifi-driver Fedora'/><author><name>Abhishek Tomar</name><uri>https://profiles.google.com/102219043365259985808</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-hh800cSg-hw/AAAAAAAAAAI/AAAAAAAAELU/gxg6c2oEUsM/s512-c/photo.jpg'/></author><thr:total>1</thr:total><georss:featurename>New Delhi, Delhi, India</georss:featurename><georss:point>28.635308 77.22496</georss:point><georss:box>28.4123265 76.909103 28.858289499999998 77.54081699999999</georss:box></entry><entry><id>tag:blogger.com,1999:blog-3729335648800464148.post-1163406259821027672</id><published>2011-03-24T07:43:00.000-07:00</published><updated>2011-03-24T10:53:06.903-07:00</updated><title type='text'>Updating Plymouth Theme in Ubuntu</title><content type='html'>&lt;div&gt;-- Install Plymouth Theme&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;$ sudo apt-get install plymouth-theme*&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now run the command:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;$ sudo update-alternatives --config default.plymouth&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;and it should lists currently installed themes and you can type the number and hit enter to choose one you want to use.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;There are 5 choices for the alternative default.plymouth (providing /lib/plymouth/themes/default.plymouth).&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" &gt;  Selection    Path                                                               Priority   Status&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" &gt;------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" &gt;  0            /lib/plymouth/themes/ubuntustudio-logo/ubuntustudio-logo.plymouth          150       auto mode&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" &gt;  1            /lib/plymouth/themes/elementary-logo/elementary-logo.plymouth                   100       manual mode&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" &gt;  2            /lib/plymouth/themes/smooth-greeting/smooth-greeting.plymouth                   120       manual mode&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" &gt; *3            /lib/plymouth/themes/ubuntu-logo/ubuntu-logo.plymouth                                  100       manual mode&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" &gt;  4            /lib/plymouth/themes/ubuntustudio-logo/ubuntustudio-logo.plymouth           150       manual mode&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" &gt;  5            /lib/plymouth/themes/xubuntu-logo/xubuntu-logo.plymouth                               150       manual mode&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Press enter to keep the current choice[*], or change it by pressing up and down keys..&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Finally,execute following command to apply changes and restart your machine to see the new cool splash screen!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;$ sudo update-initramfs -u&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;update-initramfs: Generating /boot/initrd.img-2.6.35-28-generic&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;And, you are done. CHEERS !!&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3729335648800464148-1163406259821027672?l=abtomar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://abtomar.blogspot.com/feeds/1163406259821027672/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3729335648800464148&amp;postID=1163406259821027672' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3729335648800464148/posts/default/1163406259821027672'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3729335648800464148/posts/default/1163406259821027672'/><link rel='alternate' type='text/html' href='http://abtomar.blogspot.com/2011/03/updating-plymouth-theme-in-ubuntu.html' title='Updating Plymouth Theme in Ubuntu'/><author><name>Abhishek Tomar</name><uri>https://profiles.google.com/102219043365259985808</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-hh800cSg-hw/AAAAAAAAAAI/AAAAAAAAELU/gxg6c2oEUsM/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3729335648800464148.post-1402135803305324475</id><published>2010-10-12T03:49:00.000-07:00</published><updated>2010-10-12T04:07:35.944-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Debian'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><category scheme='http://www.blogger.com/atom/ns#' term='Apache'/><title type='text'>(Debian) Apache Tips:Hide Apache Server Information &amp; PHP software version</title><content type='html'>&lt;style type="text/css"&gt;p { margin-bottom: 0.21cm; }&lt;/style&gt;  &lt;p style="margin-bottom: 0.5cm;"&gt;By default, Apache will send version and modules information (e.g., mod_php, mod_perl, mod_ssl) in every HTTP header.  &lt;/p&gt; &lt;p style="margin-bottom: 0.5cm;"&gt;For checking it wheather it is showing in your system or not do the following --&lt;/p&gt; &lt;p&gt;&lt;span style="font-style: italic;"&gt;t&lt;/span&gt;&lt;i&gt;elnet www.xyz.com 80&lt;br /&gt;Trying www.xyz.com.com…&lt;br /&gt;Connected to www.xyz.com.&lt;br /&gt;Escape character is ‘^]’.&lt;br /&gt;HEAD / HTTP/1.0 &lt;- after this press 2 times ENTER&lt;/i&gt;&lt;/p&gt; &lt;p&gt;&lt;i&gt;HTTP/1.1 200 OK&lt;br /&gt;Date: Fri, 09 Jan 2007 18:18:26 GMT&lt;br /&gt;&lt;b&gt;Server: Apache/2.0.55 (Debian) PHP/5.1.2-1+b1 mod_ssl/2.0.55 OpenSSL/0.9.8b&lt;/b&gt;&lt;br /&gt;Connection: close&lt;br /&gt;Content-Type: text/html; charset=UTF-8&lt;/i&gt;&lt;/p&gt; &lt;p&gt;&lt;i&gt;Connection closed by foreign host.&lt;/i&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;&lt;a name="KonaLink0"&gt;&lt;/a&gt;In the above xyz it is showing all the details about your web server and php this is not recommended for security reasons.We need to hide this information with the following procedure.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;Hide Apache Information --&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;To hide the information, add the following two in,&lt;/p&gt; &lt;p&gt;&lt;span style="color: rgb(71, 184, 184);"&gt;&lt;i&gt;&lt;b&gt;# vi /etc/apache2/conf.d/security&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: rgb(0, 71, 255);"&gt;ServerTokens ProductOnly&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="color: rgb(0, 71, 255);"&gt;ServerSignature Off&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Now Restart the web server,&lt;/p&gt; &lt;p&gt;#/etc/init.d/apache2 restart&lt;/p&gt; &lt;p&gt;Now the output for apache header looks like below&lt;/p&gt; &lt;p&gt;Server: Apache&lt;/p&gt; &lt;p&gt;&lt;strong&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;Hide PHP Version Details --&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;To hide the PHP version you need to edit the /etc/php5/apache2/php.ini file&lt;/p&gt; &lt;p&gt;Change the following option&lt;/p&gt; &lt;p&gt;expose_php On&lt;/p&gt; &lt;p&gt;to&lt;/p&gt; &lt;p&gt;&lt;span style="color: rgb(0, 71, 255);"&gt;expose_php Off&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Now you need to restart your web server,&lt;/p&gt; &lt;p&gt;&lt;i&gt;&lt;b&gt;#/etc/init.d/apache2 restart&lt;/b&gt;&lt;/i&gt;&lt;/p&gt; &lt;p&gt;After making this change PHP will no longer add it’s signature to the web server header.&lt;/p&gt; &lt;p style="margin-bottom: 0cm;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3729335648800464148-1402135803305324475?l=abtomar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://abtomar.blogspot.com/feeds/1402135803305324475/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3729335648800464148&amp;postID=1402135803305324475' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3729335648800464148/posts/default/1402135803305324475'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3729335648800464148/posts/default/1402135803305324475'/><link rel='alternate' type='text/html' href='http://abtomar.blogspot.com/2010/10/debian-apache-tipshide-apache-server.html' title='(Debian) Apache Tips:Hide Apache Server Information &amp; PHP software version'/><author><name>Abhishek Tomar</name><uri>https://profiles.google.com/102219043365259985808</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-hh800cSg-hw/AAAAAAAAAAI/AAAAAAAAELU/gxg6c2oEUsM/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3729335648800464148.post-1839738026442639555</id><published>2010-04-28T03:38:00.001-07:00</published><updated>2010-04-28T03:39:19.890-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='security'/><category scheme='http://www.blogger.com/atom/ns#' term='Apache'/><title type='text'>turn off directory browsing</title><content type='html'>&lt;h3&gt;For security reasons, you might have to turn off the directory browsing in your Apache Server. By doing so, users can not see the directory listing in your web docs.&lt;/h3&gt;  &lt;p&gt;--basic httpd.conf entry: &lt;/p&gt;  &lt;p&gt;&amp;lt;Directory &amp;quot;/rep1/www&amp;quot;&amp;gt;   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; Options Indexes FollowSymLinks    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; AllowOverride None    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; Order allow,deny    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; Allow from all    &lt;br /&gt;&amp;lt;/Directory&amp;gt; &lt;/p&gt;  &lt;p&gt;which allows users to browse the directory structure.--To turn off directory browsing you can add “-“ in front of Indexes after options. &lt;/p&gt;  &lt;p&gt;&amp;lt;Directory &amp;quot;/rep1/www&amp;quot;&amp;gt;   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; Options -Indexes FollowSymLinks    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; AllowOverride None    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; Order allow,deny    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; Allow from all    &lt;br /&gt;&amp;lt;/Directory&amp;gt; &lt;/p&gt;  &lt;p&gt;Well, It’s done and now the user will receives a '403 forbidden' error. &lt;/p&gt;  &lt;p&gt;Cheers!!&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3729335648800464148-1839738026442639555?l=abtomar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://abtomar.blogspot.com/feeds/1839738026442639555/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3729335648800464148&amp;postID=1839738026442639555' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3729335648800464148/posts/default/1839738026442639555'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3729335648800464148/posts/default/1839738026442639555'/><link rel='alternate' type='text/html' href='http://abtomar.blogspot.com/2010/04/turn-off-directory-browsing.html' title='turn off directory browsing'/><author><name>Abhishek Tomar</name><uri>https://profiles.google.com/102219043365259985808</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-hh800cSg-hw/AAAAAAAAAAI/AAAAAAAAELU/gxg6c2oEUsM/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3729335648800464148.post-6124960048958282313</id><published>2010-04-21T01:38:00.001-07:00</published><updated>2010-04-21T02:04:58.312-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Setting up awstats with apache 2 &amp; geoip on debian-ubuntu</title><content type='html'>&lt;p&gt;&lt;a href="http://awstats.sourceforge.net/"&gt;Awstats&lt;/a&gt; is a &lt;strong&gt;web log analyzer&lt;/strong&gt;. It gives really useful statistics about traffic on your web sites.This &lt;b&gt;log analyzer&lt;/b&gt; works as a &lt;b&gt;CGI or from command line&lt;/b&gt; and shows you all possible information your log contains, in &lt;b&gt;few graphical web &lt;a href="http://lh4.ggpht.com/_xBtYbStHES4/S865b8HuIRI/AAAAAAAACU4/PYAh8frnf24/s1600-h/awstats%5B35%5D.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; margin-left: 0px; border-left-width: 0px; margin-right: 0px" title="Awstats Monthly View" border="0" alt="Awstats Monthly View" align="left" src="http://lh4.ggpht.com/_xBtYbStHES4/S865ddHQJ1I/AAAAAAAACU8/s8zGJu9-XhY/awstats_thumb%5B46%5D.png?imgmax=800" width="472" height="276" /&gt;&lt;/a&gt;pages&lt;/b&gt;. &lt;/p&gt;  &lt;p&gt;yesterday, it took me many hour to configure it on my server, I took help from many blogs to complete it.&lt;/p&gt;  &lt;p&gt;Hope this can help someone.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;1. Installing Awstats:&lt;/strong&gt;     &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;&lt;a href="mailto:ab@web1:~$"&gt;ab@web1:~$&lt;/a&gt; sudo apt-get install awstats&lt;/p&gt;  &lt;p&gt;This command will install awstats.Now we have to configure Apache.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;2. Configuring Apache2:&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Now make the following changes in &lt;em&gt;awstats.conf&lt;/em&gt; file.&lt;/p&gt;  &lt;p&gt;&lt;a href="mailto:ab@web1:~$"&gt;ab@web1:~$&lt;/a&gt; sudo vi /etc/apache2/awstats.conf&lt;/p&gt;  &lt;p&gt;&lt;em&gt;Alias /awstatsclasses &amp;quot;/usr/share/awstats/lib/&amp;quot;      &lt;br /&gt;Alias /awstats-icon/ &amp;quot;/usr/share/awstats/icon/&amp;quot;       &lt;br /&gt;Alias /awstatscss &amp;quot;/usr/share/doc/awstats/examples/css&amp;quot;       &lt;br /&gt;ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/       &lt;br /&gt;ScriptAlias /awstats/ /usr/lib/cgi-bin/       &lt;br /&gt;Options ExecCGI -MultiViews +SymLinksIfOwnerMatch&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;After, Making these changes, we have to include this file (/etc/apache2/awstats.conf) in to our &lt;em&gt;apache.conf&lt;/em&gt; file, so we can access it over http.&lt;/p&gt;  &lt;p&gt;&lt;a href="mailto:ab@web1:~$"&gt;ab@web1:~$&lt;/a&gt; sudo vi /etc/apache2/apache2.conf&lt;/p&gt;  &lt;p&gt;&lt;em&gt;Include /etc/apache2/awstats.conf&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;Now, reload the apache.&lt;/p&gt;  &lt;p&gt;&lt;a href="mailto:ab@web1:~$"&gt;ab@web1:~$&lt;/a&gt;&amp;#160; sudo /etc/init.d/apache2 reload&lt;/p&gt;  &lt;p&gt;Now you can try to open &lt;a href="http://www.mysite.com/awstats/awstats.pl"&gt;http://www.mysite.com/awstats/awstats.pl&lt;/a&gt; but you will get this error:&amp;#160; Error: SiteDomain parameter not defined in your config/domain file. You must edit it for using this version of AWStats.&lt;/p&gt;  &lt;p&gt;That means we have to configure Awstats.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;3. Configuring Awstats:&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;By default awstats provides a default configuration file named &lt;strong&gt;/etc/awstats/awstats.conf&lt;/strong&gt;. Copy this file to /etc/awstats/awstats.www.mysite.com.conf:&lt;/p&gt;  &lt;p&gt;&lt;em&gt;~$sudo cp /etc/awstats/awstats.conf /etc/awstats/awstats.www.mysite.com.conf&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;and edit the file:&lt;/p&gt;  &lt;p&gt;&lt;em&gt;~$sudo vi /etc/awstats/awstats.www.mysite.com.conf&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;and check for the following lines and edit those for your needs:&lt;/p&gt;  &lt;p&gt;LogFile=&amp;quot;/var/log/apache2/access.log&amp;quot;    &lt;br /&gt;SiteDomain=&amp;quot;mysite.com&amp;quot;&lt;/p&gt;  &lt;p&gt;This is all setted up, now you need to generate the first stats.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;4. Generating the First Stats:&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;in order to generate the first stats, you need to call the script as root using the following command line:&lt;/p&gt;  &lt;p&gt;~:$sudo -u www-data /usr/bin/perl /usr/lib/cgi-bin/awstats.pl -update -config=www.mysite.com&lt;/p&gt;  &lt;p&gt;After finishing this you can try to open &lt;a href="http://www.mysite.com/awstats/awstats.pl"&gt;http://www.mysite.com/awstats/awstats.pl&lt;/a&gt; this will show you the stats.&lt;/p&gt;  &lt;p&gt;Now for automatic update the stats you need to put the following command in your cron.&lt;/p&gt;  &lt;p&gt;0 2 * * * www-data [ -x /usr/lib/cgi-bin/awstats.pl -a -f /etc/awstats/awstats.conf -a -r /var/log/apache/access.log ] &amp;amp;&amp;amp; /usr/lib/cgi-bin/awstats.pl -config=mysite.com -update &amp;gt;/dev/null&lt;/p&gt;  &lt;h3&gt;GeoIP Information for AWStats&lt;/h3&gt;  &lt;h4&gt;Improve country and city location information in your web analytics reports&lt;/h4&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_xBtYbStHES4/S865e1f42_I/AAAAAAAACVA/eNPBlMPT6bI/s1600-h/Untitled%5B24%5D.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; margin-left: 0px; border-left-width: 0px; margin-right: 0px" title="Awstats showing country info" border="0" alt="Awstats showing country info" src="http://lh4.ggpht.com/_xBtYbStHES4/S865gp2Tr9I/AAAAAAAACVE/EDS1GSTn5qs/Untitled_thumb%5B26%5D.png?imgmax=800" width="646" height="269" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;AWStats offers three different ways to provide Country level information about visitors (&amp;quot;hosts&amp;quot;) connecting to your site. By default, the host domain extension is used if you have performed &lt;strong&gt;reverse DNS look-up&lt;/strong&gt;. While this results in human readable host names as well, reverse DNS lookup is time consuming. Alternatively, &lt;strong&gt;GeoIP plugins&lt;/strong&gt; can be used. They match the host IP with a database of IP allocations which is already installed locally on your computer, significantly reducing the time needed to match a host to a location. There are two country level GeoIP databases available. A &lt;strong&gt;Geo::IPFree&lt;/strong&gt; Perl module is available, but it does not appear that the database is being maintained. The better solution is MaxMind's &lt;strong&gt;Geo::IP GeoLite Country&lt;/strong&gt; open source version, said to be 97% accurate.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Download the current GeoLite Country, GeoLite City and Organization (AS Numbers)databases&lt;/strong&gt;    &lt;br /&gt;wget &lt;a href="http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz"&gt;http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz&lt;/a&gt;    &lt;br /&gt;wget &lt;a href="http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz"&gt;http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz&lt;/a&gt;    &lt;br /&gt;wget &lt;a href="http://geolite.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz"&gt;http://geolite.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Move data files to directory and unzip. &lt;/p&gt;  &lt;p&gt;mv GeoIP.dat.gz /usr/local/share/GeoIP/   &lt;br /&gt;gunzip /usr/local/share/GeoIP/GeoIP.dat.gz    &lt;br /&gt;mv GeoLiteCity.dat.gz /usr/local/share/GeoIP/    &lt;br /&gt;gunzip /usr/local/share/GeoIP/GeoLiteCity.dat.gz    &lt;br /&gt;mv GeoIPASNum.dat.gz /usr/local/share/GeoIP/    &lt;br /&gt;gunzip /usr/local/share/GeoIP/GeoIPASNum.dat.gz    &lt;br /&gt;Install the GeoIP program. &lt;/p&gt;  &lt;p&gt;1. wget &lt;a href="http://geolite.maxmind.com/download/geoip/api/c/GeoIP-1.4.5.tar.gz"&gt;http://geolite.maxmind.com/download/geoip/api/c/GeoIP-1.4.5.tar.gz&lt;/a&gt;    &lt;br /&gt;tar -xvzf GeoIP-1.4.5.tar.gz     &lt;br /&gt;cd GeoIP-1.4.5    &lt;br /&gt;./configure    &lt;br /&gt;make    &lt;br /&gt;make check    &lt;br /&gt;sudo make install &lt;/p&gt;  &lt;p&gt;2.wget &lt;a href="http://geolite.maxmind.com/download/geoip/api/perl/Geo-IP-1.35.tar.gz"&gt;http://geolite.maxmind.com/download/geoip/api/perl/Geo-IP-1.35.tar.gz&lt;/a&gt;    &lt;br /&gt;tar -xvzf Geo-IP-1.35.tar.gz    &lt;br /&gt;cd Geo-IP-1.35    &lt;br /&gt;perl Makefile.PL LIBS='-L/usr/local/lib'    &lt;br /&gt;make    &lt;br /&gt;make test    &lt;br /&gt;sudo make install &lt;/p&gt;  &lt;p&gt;Update your awstats.mysite.conf configuration file &lt;/p&gt;  &lt;p&gt;Look for the following geoip LoadPlugin options in your AWStats configuration file. Update them with the full path to each of the two database files. &lt;/p&gt;  &lt;p&gt;LoadPlugin=&amp;quot;geoip GEOIP_STANDARD /usr/local/share/GeoIP/GeoIP.dat&amp;quot;   &lt;br /&gt;LoadPlugin=&amp;quot;geoip_city_maxmind GEOIP_STANDARD /usr/local/share/GeoIP/GeoLiteCity.dat&amp;quot;    &lt;br /&gt;LoadPlugin=&amp;quot;geoip_org_maxmind GEOIP_STANDARD /usr/local/share/GeoIP/GeoIPASNum.dat&amp;quot; &lt;/p&gt;  &lt;p&gt;Well, It’s done and now you can check the stats with country info. &lt;/p&gt;  &lt;p&gt;Cheers!!&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3729335648800464148-6124960048958282313?l=abtomar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://abtomar.blogspot.com/feeds/6124960048958282313/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3729335648800464148&amp;postID=6124960048958282313' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3729335648800464148/posts/default/6124960048958282313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3729335648800464148/posts/default/6124960048958282313'/><link rel='alternate' type='text/html' href='http://abtomar.blogspot.com/2010/04/setting-up-awstats-with-apache-2-geoip.html' title='Setting up awstats with apache 2 &amp;amp; geoip on debian-ubuntu'/><author><name>Abhishek Tomar</name><uri>https://profiles.google.com/102219043365259985808</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-hh800cSg-hw/AAAAAAAAAAI/AAAAAAAAELU/gxg6c2oEUsM/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_xBtYbStHES4/S865ddHQJ1I/AAAAAAAACU8/s8zGJu9-XhY/s72-c/awstats_thumb%5B46%5D.png?imgmax=800' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3729335648800464148.post-1548940713228364096</id><published>2010-04-15T02:00:00.001-07:00</published><updated>2010-04-15T07:10:00.175-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sonicwall'/><category scheme='http://www.blogger.com/atom/ns#' term='google talk'/><category scheme='http://www.blogger.com/atom/ns#' term='block'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><category scheme='http://www.blogger.com/atom/ns#' term='IM'/><category scheme='http://www.blogger.com/atom/ns#' term='messangers'/><title type='text'>Blocking Google Talk or other IM services in your Organization through sonic wall.</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_xBtYbStHES4/S8bVzKhdYYI/AAAAAAAACSM/ocW8d97DZhc/s1600/2.bmp"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 294px; height: 320px;" src="http://2.bp.blogspot.com/_xBtYbStHES4/S8bVzKhdYYI/AAAAAAAACSM/ocW8d97DZhc/s320/2.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5460286673208041858" /&gt;&lt;/a&gt;&lt;br /&gt;•Open sonic wall in your browser. Go To Security Services tab.&lt;br /&gt;&lt;br /&gt;•Click on Intrusion Prevention&lt;br /&gt;&lt;br /&gt;•Now Choose IM Category.&lt;br /&gt;&lt;br /&gt;•Here you will get lots of IM (Instant Messengers) list. You can choose any IM from the list and edit it as shown in the image.&lt;br /&gt; &lt;br /&gt;•After this, click on OK.&lt;br /&gt;&lt;br /&gt;•Now you would be back on Intrusion Prevention page. Here click on Accept button. And, you are done. &lt;br /&gt;&lt;br /&gt;You can block any of the IM service by following the same rule.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Cheers!!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3729335648800464148-1548940713228364096?l=abtomar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://abtomar.blogspot.com/feeds/1548940713228364096/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3729335648800464148&amp;postID=1548940713228364096' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3729335648800464148/posts/default/1548940713228364096'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3729335648800464148/posts/default/1548940713228364096'/><link rel='alternate' type='text/html' href='http://abtomar.blogspot.com/2010/04/blocking-google-talk-and-other.html' title='Blocking Google Talk or other IM services in your Organization through sonic wall.'/><author><name>Abhishek Tomar</name><uri>https://profiles.google.com/102219043365259985808</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-hh800cSg-hw/AAAAAAAAAAI/AAAAAAAAELU/gxg6c2oEUsM/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_xBtYbStHES4/S8bVzKhdYYI/AAAAAAAACSM/ocW8d97DZhc/s72-c/2.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3729335648800464148.post-1798649474015091208</id><published>2009-03-13T02:09:00.001-07:00</published><updated>2009-03-13T02:11:27.609-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Disable Ping (ICMP) Responses With Linux</title><content type='html'>&lt;p&gt;This is a kernel parameter that you can set with /etc/sysctl.conf by adding two lines: &lt;/p&gt;  &lt;p&gt;# &lt;b&gt;tail -n 2 /etc/sysctl.conf&lt;/b&gt;    &lt;br /&gt;net.ipv4.icmp_echo_ignore_broadcasts = 1    &lt;br /&gt;net.ipv4.icmp_echo_ignore_all = 1&lt;/p&gt;  &lt;p&gt;Apply the changes by using the sysctl -p command: &lt;/p&gt;  &lt;p&gt;# &lt;b&gt;sysctl -p&lt;/b&gt;    &lt;br /&gt;.    &lt;br /&gt;.    &lt;br /&gt;net.ipv4.icmp_echo_ignore_broadcasts = 1    &lt;br /&gt;net.ipv4.icmp_echo_ignore_all = 1    &lt;br /&gt;#&lt;/p&gt;  &lt;p&gt;There are various security reasons why you would want to do this. There are also some administration reasons why you shouldn't do this. :) &lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3729335648800464148-1798649474015091208?l=abtomar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://abtomar.blogspot.com/feeds/1798649474015091208/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3729335648800464148&amp;postID=1798649474015091208' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3729335648800464148/posts/default/1798649474015091208'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3729335648800464148/posts/default/1798649474015091208'/><link rel='alternate' type='text/html' href='http://abtomar.blogspot.com/2009/03/disable-ping-icmp-responses-with-linux.html' title='Disable Ping (ICMP) Responses With Linux'/><author><name>Abhishek Tomar</name><uri>https://profiles.google.com/102219043365259985808</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-hh800cSg-hw/AAAAAAAAAAI/AAAAAAAAELU/gxg6c2oEUsM/s512-c/photo.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3729335648800464148.post-536851464213593991</id><published>2008-11-06T23:32:00.000-08:00</published><updated>2008-11-06T23:34:10.709-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>How To install Google Picasa into Ubuntu Linux</title><content type='html'>&lt;p&gt;1. Open your /etc/apt/sources.list file with gedit:&lt;/p&gt;&lt;p&gt;$ sudo gedit /etc/apt/sources.list&lt;/p&gt;&lt;p&gt;2. Add the following line and save file:&lt;/p&gt;&lt;p&gt;deb http://dl.google.com/linux/deb/ testing non-free&lt;/p&gt;&lt;p&gt;3. Download GPG key from here and run this command:&lt;/p&gt;&lt;p&gt;$ sudo apt-key add linux_signing_key.pub&lt;/p&gt;&lt;p&gt;4. Install Picasa:&lt;/p&gt;&lt;p&gt;$ sudo apt-get update&lt;br /&gt;$ sudo apt-get install picasa&lt;/p&gt;&lt;p&gt;Now you can run Picasa by clicking Applications → Graphics → Picasa → Picasa.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3729335648800464148-536851464213593991?l=abtomar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://abtomar.blogspot.com/feeds/536851464213593991/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3729335648800464148&amp;postID=536851464213593991' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3729335648800464148/posts/default/536851464213593991'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3729335648800464148/posts/default/536851464213593991'/><link rel='alternate' type='text/html' href='http://abtomar.blogspot.com/2008/11/how-to-install-google-picasa-into.html' title='How To install Google Picasa into Ubuntu Linux'/><author><name>Abhishek Tomar</name><uri>https://profiles.google.com/102219043365259985808</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-hh800cSg-hw/AAAAAAAAAAI/AAAAAAAAELU/gxg6c2oEUsM/s512-c/photo.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3729335648800464148.post-3508657903036925761</id><published>2008-11-04T02:56:00.000-08:00</published><updated>2008-11-04T03:14:03.870-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>TataIndicom USB internet configuration in Linux</title><content type='html'>Many of us have USB internet dongles from &lt;a href="http://www.kenneyjacob.com/tag/tataindicom/" class="internal_tag" rel="tag" title="Posts tagged with tataindicom"&gt;TataIndicom&lt;/a&gt; or Reliance. Here is how you can configure it to work with &lt;a href="http://www.kenneyjacob.com/tag/linux/" class="internal_tag" rel="tag" title="Posts tagged with linux"&gt;linux&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;First Install &lt;span style="font-weight: bold; color: rgb(255, 102, 0);"&gt;wvdial&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic; color: rgb(51, 204, 0);"&gt;apt-get install wvdial&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;then,&lt;br /&gt;&lt;p&gt;Edit the /etc/wvdial.conf file to add these extra lines.&lt;/p&gt; &lt;p style="color: rgb(0, 0, 153);"&gt;&lt;em&gt;[Dialer Defaults]&lt;/em&gt;&lt;/p&gt; &lt;p style="color: rgb(0, 0, 153);"&gt;&lt;em&gt;Modem=/dev/ttyUSB0&lt;br /&gt;Baud=115200&lt;br /&gt;Dial Command = ATDT&lt;br /&gt;Baud=115200&lt;br /&gt;Dial Command = ATDT&lt;br /&gt;init1=ATZ&lt;br /&gt;init2=AT+CRM=1&lt;br /&gt;Flow Control= Hardware (CRTSCTS)&lt;br /&gt;Username = internet&lt;br /&gt;Password = internet&lt;br /&gt;Phone = #777&lt;br /&gt;Stupid Mode = 1&lt;/em&gt;&lt;/p&gt; &lt;p&gt;The line  &lt;em&gt;Modem=/dev/ttyUSB0 &lt;/em&gt; needs to be changed according to your machine settings. To find out the exact device, follow the procedure.&lt;/p&gt; &lt;ol&gt;&lt;li&gt; unplug the device&lt;/li&gt;&lt;li&gt;goto /dev/&lt;/li&gt;&lt;li&gt;plug the device&lt;/li&gt;&lt;li&gt;type ls and find the latest device detected &lt;span style="font-style: italic; color: rgb(255, 0, 0); font-weight: bold;"&gt;(ls -alt )&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;replace the /dev/ttyUSB0 with the new device path&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;For &lt;a href="http://www.kenneyjacob.com/tag/tataindicom/" class="internal_tag" rel="tag" title="Posts tagged with tataindicom"&gt;TataIndicom&lt;/a&gt; all the above settings including the phone number, username and password are correct. You need not change anything except for the modem name.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3729335648800464148-3508657903036925761?l=abtomar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://abtomar.blogspot.com/feeds/3508657903036925761/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3729335648800464148&amp;postID=3508657903036925761' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3729335648800464148/posts/default/3508657903036925761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3729335648800464148/posts/default/3508657903036925761'/><link rel='alternate' type='text/html' href='http://abtomar.blogspot.com/2008/11/tataindicom-usb-internet-configuration.html' title='TataIndicom USB internet configuration in Linux'/><author><name>Abhishek Tomar</name><uri>https://profiles.google.com/102219043365259985808</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-hh800cSg-hw/AAAAAAAAAAI/AAAAAAAAELU/gxg6c2oEUsM/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3729335648800464148.post-6468751788956829665</id><published>2008-11-02T16:53:00.000-08:00</published><updated>2008-11-03T03:16:35.805-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>How to Edit PDF Files in Linux Using GIMP</title><content type='html'>&lt;div class="thumb tright"&gt; &lt;div class="thumbinner" style="width: 252px;"&gt;&lt;a href="http://www.wikihow.com/Image:Gimpsave.jpg" class="image" title="Select file type in The Gimp"&gt;&lt;img alt="Select file type in The Gimp" src="http://www.wikihow.com/images/thumb/d/d6/Gimpsave.jpg/250px-Gimpsave.jpg" class="thumbimage" border="0" height="200" width="250" /&gt;&lt;/a&gt; &lt;div class="thumbcaption"&gt; &lt;div class="magnify"&gt;&lt;a href="http://www.wikihow.com/Image:Gimpsave.jpg" class="internal" title="Enlarge"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt; Select file type in The Gimp&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;p&gt;If you have ever downloaded a Portable Document Format file to your Linux PC that needed editing (such as an application that you did not want to fill out by hand), you'll find very few PDF editing tools. You can edit PDF files online, but here is a workable, if not elegant solution using GIMP.&lt;/p&gt;  &lt;script type="text/javascript"&gt;&lt;!-- google_ad_client = "pub-9543332082073187"; /* test slot code */ google_ad_slot = "1310823768"; google_ad_width = 468; google_ad_height = 60; //--&gt; &lt;/script&gt;  &lt;script type="text/javascript"&gt;  &lt;!--- var e = document.getElementById('embed_ads'); var r = document.referrer;  if (e &amp;&amp; r &amp;&amp; (r.indexOf("http://www.google") == 0 || r.indexOf("http://google") == 0)) { e.setAttribute('style', 'display: inline; clear: both; height: 80px; width:500px;');  }  //---&gt; &lt;/script&gt;   &lt;div id="steps"&gt;   &lt;a name="Steps" id="Steps"&gt;&lt;/a&gt; &lt;h2&gt;&lt;span class="editsection1"&gt;&lt;/span&gt;&lt;span&gt;Steps&lt;/span&gt;&lt;/h2&gt; &lt;ol&gt;&lt;li&gt;Download and install the Gimp image editor, either using your favorite package manager, or from their &lt;a href="http://www.gimp.org/" class="external text" title="http://www.gimp.org/" rel="nofollow"&gt;website&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Open the Gimp, and open the PDF document you wish to edit. For multiple page documents, it is easier on your computer to edit them one page at a time. If you choose more than one page, they will open in individual windows.&lt;/li&gt;&lt;li&gt;Make the necessary changes to the document.&lt;/li&gt;&lt;li&gt;Save the document as a Gimp XCF file (you'll have to save several different pages if it is a multi-page document).&lt;/li&gt;&lt;li&gt;Close the document, then open the resulting image in Krita.&lt;/li&gt;&lt;li&gt; &lt;div class="thumb tright"&gt; &lt;div class="thumbinner" style="width: 252px;"&gt;&lt;a href="http://www.wikihow.com/Image:Kritaprint.jpg" class="image" title="Printing to PDF with Krita"&gt;&lt;img alt="Printing to PDF with Krita" src="http://www.wikihow.com/images/thumb/5/57/Kritaprint.jpg/250px-Kritaprint.jpg" class="thumbimage" border="0" height="200" width="250" /&gt;&lt;/a&gt; &lt;div class="thumbcaption"&gt;  Printing to PDF with Krita&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; Go to File&gt;Print, then choose Print to PDF. In the same dialogue box, choose the destination folder and name of the output document (such as wiki_pg1.pdf).&lt;/li&gt;&lt;li&gt;Open the resulting document to make sure everything worked properly.&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;&lt;br /&gt;&lt;/p&gt; &lt;/div&gt; &lt;div id="tips"&gt;   &lt;a name="Tips" id="Tips"&gt;&lt;/a&gt; &lt;h2&gt;&lt;span class="editsection1"&gt;&lt;/span&gt;&lt;span&gt;Tips&lt;/span&gt;&lt;/h2&gt; &lt;ul&gt;&lt;li&gt;Alternatively use an online PDF editor such as &lt;a href="http://www.pdfescape.com/" class="external text" title="http://www.pdfescape.com/" rel="nofollow"&gt;PDFEscape&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;Don't print to PDF from the Gimp. Some people never have a problem, but many experience trouble with the conversion to a PDF file.&lt;/li&gt;&lt;li&gt;If you don't have Krita, choose a different graphic manipulation program. There are many OSS options to choose from.&lt;/li&gt;&lt;li&gt;If you like to do things from the command line or need to script a batch conversion you may find ImageMajick's convert -adjoin -format pdf works for you.&lt;/li&gt;&lt;/ul&gt; &lt;ul&gt;&lt;li&gt;Acrobat Reader 7 works with Linux, so feel free to use it if you just need to view a PDF, or print one out, or try evince or xpdf instead.&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;&lt;br /&gt;&lt;/p&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3729335648800464148-6468751788956829665?l=abtomar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://abtomar.blogspot.com/feeds/6468751788956829665/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3729335648800464148&amp;postID=6468751788956829665' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3729335648800464148/posts/default/6468751788956829665'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3729335648800464148/posts/default/6468751788956829665'/><link rel='alternate' type='text/html' href='http://abtomar.blogspot.com/2008/11/how-to-edit-pdf-files-in-linux-using.html' title='How to Edit PDF Files in Linux Using GIMP'/><author><name>Abhishek Tomar</name><uri>https://profiles.google.com/102219043365259985808</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-hh800cSg-hw/AAAAAAAAAAI/AAAAAAAAELU/gxg6c2oEUsM/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry></feed>
