<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5221947840660016642</id><updated>2012-01-30T11:26:52.442-08:00</updated><category term='facebook'/><category term='Ncell'/><category term='Internet'/><category term='Dongle'/><category term='Switching'/><category term='Mysql'/><category term='Linux-howto'/><category term='Misc'/><category term='Grep Sed n Awk'/><category term='Grub'/><category term='X'/><category term='Gnome'/><category term='PHP'/><category term='Regex'/><category term='Netbeans'/><category term='Firefox'/><category term='Linux'/><category term='Sound'/><category term='Linux-fun'/><category term='GPG'/><category term='Tools'/><category term='Bash'/><category term='Phpmyadmin'/><category term='Video'/><category term='Linux-tips'/><category term='Udev'/><category term='GLX'/><title type='text'>How To ..</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>51</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-7929139159675591313</id><published>2011-07-10T04:56:00.000-07:00</published><updated>2011-07-10T04:56:25.276-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Gnome'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Reset Compiz in Ubuntu 11.04</title><content type='html'>If your window title bar is gone. or you have messed the compiz in any other way in Ubuntu. Just open up a terminal and enter the following command:&lt;br /&gt;&lt;pre class="sh"&gt;gconftool-2 --recursive-unset /apps/compiz-1&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-7929139159675591313?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/7929139159675591313/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=7929139159675591313&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/7929139159675591313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/7929139159675591313'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2011/07/reset-compiz-in-ubuntu-1104.html' title='Reset Compiz in Ubuntu 11.04'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-1444641716081440502</id><published>2011-07-10T03:58:00.000-07:00</published><updated>2011-07-10T03:58:24.805-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='X'/><category scheme='http://www.blogger.com/atom/ns#' term='GLX'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Solve -- Xlib:  extension GLX missing on display</title><content type='html'>Recently I was playing with &lt;a href="http://en.wikipedia.org/wiki/OpenCL"&gt;OpenCL&lt;/a&gt; in my system. Due to its dependency, I had to mess up with different packages. I even installed &lt;a href="http://software.intel.com/en-us/articles/opencl-sdk/"&gt;Intel® OpenCL™&lt;/a&gt;. And suddenly on next boot Something went wrong. &lt;br /&gt;And this is what I did to revert back:&lt;br /&gt;&lt;pre class="sh"&gt;sudo apt-get purge nvidia*&lt;br /&gt;sudo apt-get install --reinstall xserver-xorg-video-intel  libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core&lt;br /&gt;sudo dpkg-reconfigure xserver-xorg&lt;br /&gt;sudo update-alternatives --remove gl_conf /usr/lib/nvidia-current/ld.so.conf&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Hope it helps you too.&lt;br /&gt;&lt;br /&gt;Reference:&lt;br /&gt;https://theiszm.wordpress.com/2010/06/27/glx-missing-on-display/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-1444641716081440502?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/1444641716081440502/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=1444641716081440502&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/1444641716081440502'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/1444641716081440502'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2011/07/solve-xlib-extension-glx-missing-on.html' title='Solve -- Xlib:  extension GLX missing on display'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-5228683592545656524</id><published>2011-06-26T06:46:00.000-07:00</published><updated>2011-06-26T06:46:34.397-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Video'/><category scheme='http://www.blogger.com/atom/ns#' term='Firefox'/><category scheme='http://www.blogger.com/atom/ns#' term='Bash'/><title type='text'>Save Streamed Flash Video [Firefox-4] [Linux]</title><content type='html'>It cost me almost half an hour to find the location, where Firefox saves the streamed video. And I made a script for it as I often need it. Here's the script, hope it helps you:&lt;br /&gt;&lt;br /&gt;&lt;pre class="sh"&gt;file /proc/$(pidof npviewer.bin)/fd/* | grep -i "flash" | \&lt;br /&gt;  cut -d':'  -f1 | xargs -i{} cp {} ./ &lt;/pre&gt;&lt;br /&gt;Details of what the command will do:&lt;br /&gt;Fifefox-4 uses an external process (npviewer.bin) to manage external plugins. So what I did was grabbed a copy of the deleted flash file (yea it deletes the file, but keeps a secret opening for itself) from npviewer. &lt;br /&gt;Finally all the cached video are copied to current path named with some random numbers (technically, the number is file-descriptor).&lt;br /&gt;&lt;br /&gt;&lt;span style="color:red"&gt;Warning: Execute the command after complete streaming and before closing the firefox(-tab).&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-5228683592545656524?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/5228683592545656524/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=5228683592545656524&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/5228683592545656524'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/5228683592545656524'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2011/06/save-streamed-flash-video-firefox-4.html' title='Save Streamed Flash Video [Firefox-4] [Linux]'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-3558820568793300938</id><published>2011-04-04T08:28:00.000-07:00</published><updated>2011-04-04T08:50:40.025-07:00</updated><title type='text'>Nikon Intervalometer using Nepaluino (Arduino)</title><content type='html'>Recently I got a chance to attend the first &lt;a href="http://nepaluino.com/"&gt;Nepaluino&lt;/a&gt; workshop (Sincere thanks to &lt;a href="http://twitter.com/ujwal2"&gt;Ujwal Shrestha&lt;/a&gt;). It was real fun to program Nepaluino with hackers.&lt;br /&gt;For those who don't know what Nepaluino is: its a Arduino clone. More on this from the founder of Nepaluino -&gt; &lt;a href="http://ujwal.shrestha.me/the-story-behind-nepaluino/"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Few days after that we decided to build Intervalometer using Nepaluino. As I own a Nikon D90, I set myself to build one for it. Thanks for the help, &lt;a href="http://ujwal.shrestha.me/"&gt;Ujwal&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;So lets start.&lt;br /&gt;First connect the Circuit. Its pretty easy Just connect the Nepaluino digital pin-13, the IR transmitter, the register and the Ground in series.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;img style="padding:1px;" border="0" height="276" width="320" src="http://3.bp.blogspot.com/-AQ3TxrSy-ak/TZnoFIKPHSI/AAAAAAAABeg/uHD6lZHqXag/s320/intervalometer_D90.JPG" /&gt;&lt;/div&gt;&lt;br /&gt;Next compile the following code in Arduino IDE and upload to Nepaluino.&lt;br /&gt;&lt;pre style='font: 12px "bitstream vera sans mono",monaco,"lucida console","courier new",courier,serif;  margin: 0.9em 0; overflow: auto; padding: 8px;'&gt;/*&lt;br /&gt;LUCKYLARRY.CO.UK - IR Remote control for Nikon using Arduino&lt;br /&gt;Mimics the infrared signal to trigger the remote for any Nikon camera&lt;br /&gt;which can use the ML-L1 and ML-L3 remotes. Can be used as an intervalometer&lt;br /&gt;for time lapse photography.&lt;br /&gt;The IR sequence I used is originally taken from: http://www.bigmike.it/ircontrol/&lt;br /&gt;You should be able to use my pulse methods to alter to suit other cameras/ hardware.&lt;br /&gt;micros() is an Arduino function that calls the time in Microseconds since your program&lt;br /&gt;first ran. Arduino doesn't reliably work with microseconds so we work our timings by&lt;br /&gt;taking the current reading and then adding our delay on to the end of it rather than rely&lt;br /&gt;on the in built timer.&lt;br /&gt;*/&lt;br /&gt;int pinIRLED = 13;                                      // assign the Infrared emitter/ diode to pin 13&lt;br /&gt;void setup() {&lt;br /&gt;  pinMode(pinIRLED, OUTPUT);                            // set the pin as an output&lt;br /&gt;}&lt;br /&gt;// sets the pulse of the IR signal.&lt;br /&gt;void pulseON(int pulseTime) {&lt;br /&gt;  unsigned long endPulse = micros() + pulseTime;        // create the microseconds to pulse for&lt;br /&gt;  while( micros() &lt; endPulse) {&lt;br /&gt;    digitalWrite(pinIRLED, HIGH);                       // turn IR on&lt;br /&gt;    delayMicroseconds(13);                              // half the clock cycle for 38Khz (26.32×10-6s) - e.g. the 'on' part of our wave&lt;br /&gt;    digitalWrite(pinIRLED, LOW);                        // turn IR off&lt;br /&gt;    delayMicroseconds(13);                              // delay for the other half of the cycle to generate wave/ oscillation&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;void pulseOFF(unsigned long startDelay) {&lt;br /&gt;  unsigned long endDelay = micros() + startDelay;       // create the microseconds to delay for&lt;br /&gt;  while(micros() &lt; endDelay);&lt;br /&gt;}&lt;br /&gt;void takePicture() {&lt;br /&gt;  for (int i=0; i &lt; 2; i++) {&lt;br /&gt;    pulseON(2000);                                      // pulse for 2000 uS (Microseconds)&lt;br /&gt;    pulseOFF(27850);                                    // turn pulse off for 27850 us&lt;br /&gt;    pulseON(390);                                       // and so on&lt;br /&gt;    pulseOFF(1580);&lt;br /&gt;    pulseON(410);&lt;br /&gt;    pulseOFF(3580);&lt;br /&gt;    pulseON(400);&lt;br /&gt;    pulseOFF(63200);&lt;br /&gt;  }                                                     // loop the signal twice.&lt;br /&gt;}&lt;br /&gt;void loop() {&lt;br /&gt;  takePicture();                                        // take the picture&lt;br /&gt;  delay(5000);                                          // delay in milliseconds which allows us to do timelapse photography - 1 second = 1000 milliseconds&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;Thats it. Now your Intervalometer is ready. It clicks the shutter every 5 secs.Notes:Compatible with: &lt;a href="http://www.nikonusa.com/Nikon-Products/Product/Remote-Cords/4730/ML-L3-Wireless-Remote-Control-%28Infrared%29.html#tab-ProductDetail.ProductTabs.CompatibleWith"&gt;All Nikon Cameras supported by ML-L3&lt;/a&gt;Ref: &lt;a href="http://luckylarry.co.uk/arduino-projects/arduino-ir-remote-intervalometer-for-nikon-d80-that-means-timelapse-photography-yarrr/"&gt;Arduino – IR remote/ intervalometer for Nikon D80 DSLR&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-3558820568793300938?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/3558820568793300938/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=3558820568793300938&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/3558820568793300938'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/3558820568793300938'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2011/04/nikon-intervalometer-using-nepaluino.html' title='Nikon Intervalometer using Nepaluino (Arduino)'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-AQ3TxrSy-ak/TZnoFIKPHSI/AAAAAAAABeg/uHD6lZHqXag/s72-c/intervalometer_D90.JPG' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-475037425663693730</id><published>2010-10-10T06:06:00.000-07:00</published><updated>2010-12-30T22:17:07.602-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ncell'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Dongle'/><category scheme='http://www.blogger.com/atom/ns#' term='Internet'/><title type='text'>Connect to internet using Ncell Connect (E1550)</title><content type='html'>First of all sincere thanks to &lt;a href="http://twitter.com/amitagrhere"&gt;Amit&lt;/a&gt; for providing me his Ncell-Connect dongle to try it out in linux.&lt;br /&gt;&lt;br /&gt;Ncell has recently launched a &lt;a href="http://www.ncell.com.np/connect/about-ncell-connect"&gt;data service&lt;/a&gt; in Nepal called Ncell Connect. Ncell provides E1550 dongle to to its user. E1550 is uses a Switchable USB Device (storage cum serial device).&lt;br /&gt;In linux, it is detected as storage device only, and one, need to switch the device to modem mode.&lt;br /&gt;So here's, how to install it in ubuntu(linux).&lt;br /&gt;1. Install "usb-modeswitch"&lt;br /&gt;2. Instruct Udev to call mode-switcher whenever the device is plugged in:&lt;br /&gt;&lt;font style="color:red"&gt;&lt;em&gt;Update:&lt;/em&gt; Command to switch to root Privilege added.&lt;/font&gt;&lt;br /&gt;&lt;pre class="sh"&gt;sudo -s&lt;br /&gt;apt-get install usb-modeswitch&lt;br /&gt;cat &amp;gt; /etc/udev/rules.d/99-ncell-connect.rules &amp;lt;&amp;lt;EOT&lt;br /&gt;# Ncell Connect switch mode to usbserial (E1550 device id =&amp;gt; 12d1:1446)&lt;br /&gt;SUBSYSTEM=="usb", ATTRS{idProduct}=="1446", ATTRS{idVendor}=="12d1", RUN+="/lib/udev/modem-modeswitch --vendor 0x12d1 --product 0x1446 --type option-zerocd"&lt;br /&gt;EOT&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;3. Insert the device.&lt;br /&gt;4. Create a new "Mobile Brodband" connection &lt;br /&gt;4.1 Goto System-&amp;gt;Preferences-&amp;gt;Network Connections &lt;br /&gt;4.2 Goto "Mobile Brodband" Tab&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;img border="0" height="223" src="http://4.bp.blogspot.com/_A7mX0bIsP7M/TLG5fYq7NUI/AAAAAAAABc4/HhsraR8tZxY/s320/Screenshot.png" width="320" /&gt;&lt;/div&gt;&lt;br /&gt;4.3 Create a new "Mobile Brodband" connection, following are the details that you require:&lt;br /&gt;Device: HUAWEI Technology HuAWEI Mobile [if the list is empty, you messed up Something wrong, Restart from step 1]&lt;br /&gt;Country: Nepal&lt;br /&gt;Service Provider: Ncell&lt;br /&gt;APN: web&lt;br /&gt;Number: *99#&lt;br /&gt;Leave other fields empty.&lt;br /&gt;&lt;br /&gt;That's it. Enjoy!!&lt;br /&gt;Happy Dashain&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-475037425663693730?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/475037425663693730/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=475037425663693730&amp;isPopup=true' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/475037425663693730'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/475037425663693730'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2010/10/connect-to-internet-using-ncell-connect.html' title='Connect to internet using Ncell Connect (E1550)'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_A7mX0bIsP7M/TLG5fYq7NUI/AAAAAAAABc4/HhsraR8tZxY/s72-c/Screenshot.png' height='72' width='72'/><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-7966282309514802985</id><published>2010-06-09T05:09:00.000-07:00</published><updated>2010-06-09T05:09:26.110-07:00</updated><title type='text'>Convert ascii text to hex in linux (bash)</title><content type='html'>If you want to convert your ascii text to hex, fire up the bash-terminal and enter the following command:&lt;br /&gt;&lt;pre class="sh"&gt;$ echo -n 'text' | xxd -ps | sed -e ':a' -e 's/\([0-9]\{2\}\|^\)\([0-9]\{2\}\)/\1\\x\2/;ta'&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-7966282309514802985?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/7966282309514802985/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=7966282309514802985&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/7966282309514802985'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/7966282309514802985'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2010/06/convert-ascii-text-to-hex-in-linux-bash.html' title='Convert ascii text to hex in linux (bash)'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-9003094068456449170</id><published>2010-03-02T04:45:00.000-08:00</published><updated>2010-03-02T04:45:00.418-08:00</updated><title type='text'>solve temporary file issue with amavis</title><content type='html'>Problem:&lt;br /&gt;amavis[6872]: (!!)TROUBLE in process_request: Can't create file /var/lib/amavis/tmp/amavis-20100302T122841-06872/email.txt: File exists at /usr/sbin/amavisd-new line 4856&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;&lt;pre class='sh'&gt; # perl -MCPAN -e shell;&lt;br /&gt; cpan&gt; install File::Temp&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-9003094068456449170?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/9003094068456449170/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=9003094068456449170&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/9003094068456449170'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/9003094068456449170'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2010/03/solve-temporary-file-issue-with-amavis.html' title='solve temporary file issue with amavis'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-7544701876708707738</id><published>2009-12-23T22:00:00.000-08:00</published><updated>2009-12-23T22:01:38.625-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Grep Sed n Awk'/><category scheme='http://www.blogger.com/atom/ns#' term='Bash'/><title type='text'>Format Numbers to be Comma Separated</title><content type='html'>I have a number 1234567890, and I want to insert a comma at the gap of three digits like this:1,234,567,890&lt;br /&gt;&lt;br /&gt;If this is the problem running in your head then the following one liner will be helpful to you.&lt;br /&gt;&lt;br /&gt;&lt;pre class="sh"&gt;$ echo "1234567890" | sed -e ':a' -e 's/\(.*[0-9]\)\([0-9]\{3\}\)/\1,\2/;ta'&lt;br /&gt;1,234,567,890&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-7544701876708707738?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/7544701876708707738/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=7544701876708707738&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/7544701876708707738'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/7544701876708707738'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2009/12/format-numbers-to-be-comma-separated.html' title='Format Numbers to be Comma Separated'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-3180208269322107057</id><published>2009-12-15T09:18:00.000-08:00</published><updated>2009-12-15T09:36:14.747-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Video'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Convert VOB to AVI using ffmpeg</title><content type='html'>Suppose you have a myVideo.vob and you want to convert to avi format. &lt;br /&gt;Open a terminal and execute the following command&lt;br /&gt;&lt;br /&gt;&lt;pre class='sh'&gt;$ ffmpeg -i myVideo.vob myvideo.avi&lt;/pre&gt;&lt;!--If you have multiple VOB files and want to merge them to a single avi, you can use the same command using multiple -i switch. Like this:&lt;pre class='sh'&gt;$ ffmpeg -i myVideo01.vob -i myVideo02.vob myvideo.avi&lt;/pre&gt;--&gt;&lt;br /&gt;Possible errors:&lt;br /&gt;1 "&lt;b&gt;ffmpeg: symbol lookup error: ffmpeg: undefined symbol: avcodec_channel_layout_num_channels&lt;/b&gt;"&lt;br /&gt;Solution:&lt;br /&gt;&lt;pre class='sh'&gt;$ export LD_LIBRARY_PATH=/usr/local/lib/ &amp;&amp; ffmpeg -i myVideo.vob myvideo.avi&lt;/pre&gt;&lt;br /&gt;If this doesnt solve the problem then retry that after installing the libavcodec52 and libavutil49 packages:&lt;br /&gt;&lt;pre class='sh'&gt;$ sudo apt-get install libavcodec52  libavutil49&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-3180208269322107057?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/3180208269322107057/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=3180208269322107057&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/3180208269322107057'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/3180208269322107057'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2009/12/convert-vob-to-avi-using-ffmpeg.html' title='Convert VOB to AVI using ffmpeg'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-1742385583955273874</id><published>2009-09-29T21:36:00.000-07:00</published><updated>2009-09-30T00:28:23.258-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tools'/><category scheme='http://www.blogger.com/atom/ns#' term='facebook'/><category scheme='http://www.blogger.com/atom/ns#' term='Bash'/><title type='text'>Bulk upload photos to facebook [BASH]</title><content type='html'>I got tired of uploading one photo at a time. So I googled a bit, and found few scripts but none did convince me. So I set to write one by myself. And my focus was to keep it short and simple(&lt;a href="http://en.wikipedia.org/wiki/KISS_principle"&gt;KISS&lt;/a&gt;).&lt;br /&gt;&lt;br /&gt;The tool is a python script with following features:&lt;br /&gt;* Bulk upload the pictures to facebook.&lt;br /&gt;* Supports upload from specified folder or current folder (default).&lt;br /&gt;* Allows to choose from available albums.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Usage:&lt;/span&gt;&lt;br /&gt;upload2facebook [-a|--aid &amp;lt;album_id&amp;gt;] [&amp;lt;path&amp;gt;]&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Install:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-size:85%;" &gt;(Don't forget to read the notes below)&lt;/span&gt;&lt;br /&gt;In Debian (Ubuntu, Kubuntu,...)&lt;album_id&gt;&lt;path&gt; system:&lt;br /&gt;1. Install from ppa &lt;a href="https://launchpad.net/%7Essapkota/+archive/ppa"&gt;https://launchpad.net/~ssapkota/+archive/ppa&lt;/a&gt;&lt;br /&gt;2. Install directly from deb-package -&gt; &lt;a href="https://launchpad.net/%7Essapkota/+archive/ppa/+build/1268633/+files/upload2facebook_0.2_i386.deb"&gt;upload2facebook_0.2_i386.deb&lt;/a&gt; , &lt;a href="http://launchpadlibrarian.net/32737208/upload2facebook_0.2_i386.changes"&gt;Package Detail&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;In RPM (Fedora, Centos) system&lt;br /&gt;3. Install the rpm -&gt; &lt;a href="http://ssapkota.com.np/downloads/upload2facebook-0.2-2.i386.rpm"&gt;http://ssapkota.com.np/downloads/upload2facebook-0.2-2.i386.rpm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;4. Get the source, do whatever you like -&gt; &lt;a href="https://launchpad.net/%7Essapkota/+archive/ppa/+files/upload2facebook_0.2.tar.gz"&gt;upload2facebook_0.2.tar.gz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Note-1:&lt;/span&gt;&lt;br /&gt;During the installation of this tool, it  will ask you to enter the Application Key and Application Secret Key. To get this two key you need to register an application for yourself at facebook. Follow the following (necessary) steps:&lt;br /&gt;1. Go to &lt;a href="http://www.facebook.com/developers/"&gt;http://www.facebook.com/developers&lt;/a&gt; and click on &lt;span style="font-weight: bold;"&gt;Setup Up New Application&lt;/span&gt; at the top right corner.&lt;br /&gt;2. Enter the &lt;span style="font-weight: bold;"&gt;Application Name&lt;/span&gt; (I suggest : &lt;span style="font-weight: bold;"&gt;Photo Uploader&lt;/span&gt;)&lt;br /&gt;3. Then click &lt;span style="font-weight: bold;"&gt;Agree&lt;/span&gt; and then &lt;span style="font-weight: bold;"&gt;Save Changes&lt;/span&gt;&lt;br /&gt;4. After this you will get &lt;/path&gt;&lt;/album_id&gt;&lt;span style="font-weight: bold;"&gt;API Key&lt;/span&gt; and &lt;span style="font-weight: bold;"&gt;Secret&lt;/span&gt;. Copy it and save it somewhere; you'd need later. Remember, these keys are meant to be secret and shouldn't be shared (So, did I ;) ).&lt;br /&gt;5. You need to do one more thing to make it work; On the &lt;span style="font-weight: bold;"&gt;left-navigation&lt;/span&gt; click on the &lt;span style="font-weight: bold;"&gt;Canvas&lt;/span&gt; and then enter a URL(may be your website/blog link) as &lt;span style="font-weight: bold;"&gt;Canvas Callback URL&lt;/span&gt;. I don't think this is of any use for command line application, but to make the application work you need to set this.&lt;br /&gt;6. Thats it.  Return to the installer and Enter your App Key and App Secret.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Note-2:&lt;/span&gt;&lt;br /&gt;1. The tool is developed and tested in Ubuntu and works in all the Debian system.&lt;br /&gt;2. The RPM package is generated using &lt;a href="http://kitenet.net/%7Ejoey/code/alien/"&gt;alien&lt;/a&gt; and have not been tested.&lt;br /&gt;3. The code is written in python and is OS independent, One can easily port to any other Operation system.&lt;br /&gt;4. If you have tested the tool in other system or have ported it to other OS, please post the status in the comment.&lt;br /&gt;&lt;br /&gt;Enjoy the tool. :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-1742385583955273874?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/1742385583955273874/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=1742385583955273874&amp;isPopup=true' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/1742385583955273874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/1742385583955273874'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2009/09/bulk-upload-photos-to-facebook-bash.html' title='Bulk upload photos to facebook [BASH]'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-5003613123236487517</id><published>2009-06-29T00:48:00.000-07:00</published><updated>2009-06-29T01:16:09.174-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='Regex'/><title type='text'>Verify IPV4 address in php using regex</title><content type='html'>A simple function in php to verify IPV4 Address. It is completely based in regex and does full ip verifying.&lt;br /&gt;It tests the ip for;&lt;br /&gt;1. Need 4 numeric blocks separated by a dot.&lt;br /&gt;2. Each numeric block must noot exceed 255.&lt;br /&gt;3. Shouldn't contain space. So remember to trim before calling this function.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;function isINetAddress($ipaddr){&lt;br /&gt;if( preg_match( "/^((?:25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9]).){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])$/m",$ipaddr) &gt; 0)&lt;br /&gt; return true;&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;This can't me more simpler. ;)&lt;br /&gt;Enjoy!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-5003613123236487517?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/5003613123236487517/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=5003613123236487517&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/5003613123236487517'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/5003613123236487517'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2009/06/verify-ipv4-address-in-php-using-regex.html' title='Verify IPV4 address in php using regex'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-7012629273669218961</id><published>2009-05-24T03:21:00.000-07:00</published><updated>2009-07-07T00:06:35.757-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux-tips'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Bash'/><title type='text'>Bluk rename files in Linux</title><content type='html'>Today one of my friend asked me to bulk rename all files in a folder. He had a collection of songs named randomly with no extension. He also wanted to add the extension, mp3 in all files(Yes, he was sure about the encoding)&lt;br /&gt;I opened a terminal in that folder and executed the following command.&lt;br /&gt;&lt;pre class="sh"&gt;NUM=1&lt;br /&gt;for SONG in ./*&lt;br /&gt;do&lt;br /&gt;mv $SONG song$NUM.mp3&lt;br /&gt;let NUM=NUM+1&lt;br /&gt;done&lt;/pre&gt;&lt;br /&gt;So lets peek what the above script does:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Defined a variable NUM and initialized it with 1.&lt;/li&gt;&lt;li&gt;Defined a foreach loop. Here for each files in current path the for loop is executed.&lt;/li&gt;&lt;li&gt;Rename(move) the file $SONG to song&amp;lt;num&amp;gt;&lt;num&gt;.mp3&lt;/num&gt;&lt;/li&gt;&lt;li&gt;Increase the value of variable NUM by 1.&lt;/li&gt;&lt;li&gt;end. ;)&lt;/li&gt;&lt;/ol&gt;So if you want to rename in a different fashion you can hack the line &lt;code style="font-weight: bold;"&gt;mv $&lt;/code&gt;&lt;code style="font-weight: bold;"&gt;SONG&lt;/code&gt;&lt;code style="font-weight: bold;"&gt; song$NUM.mp3 &lt;/code&gt;in any way you like. &lt;span style="color: rgb(255, 0, 0);"&gt;But Remember the second argument to the mv command must vary for each loop, otherwise you will end up deleting all files except the last one.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-7012629273669218961?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/7012629273669218961/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=7012629273669218961&amp;isPopup=true' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/7012629273669218961'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/7012629273669218961'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2009/05/bluk-rename-files-in-linux.html' title='Bluk rename files in Linux'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-4572708169574430275</id><published>2009-05-11T09:11:00.000-07:00</published><updated>2009-07-07T00:30:50.318-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux-howto'/><category scheme='http://www.blogger.com/atom/ns#' term='Sound'/><title type='text'>Solve no sound problem in Ubuntu</title><content type='html'>One after another 17 days have passed.. till today my laptop was completely silent when i booted into Ubuntu. But now, just 10 mins back, after a lot of hit and trial with driver model, I could make make my laptop speak. Here's what I did.&lt;br /&gt;&lt;quote&gt;Though I specified this as ubuntu problem in title, it the problem of alsa; it's not recognizing your device.&lt;/quote&gt;&lt;br /&gt;&lt;br /&gt;I completely forgot what I did to mess up my laptop-sound-system, so i thought to start afresh.&lt;br /&gt;I removed the alsa and pulseaudio completely. And One thing I would like to mention: I am completely unfamiliar about the interaction of alsa and pulseaudio with the sound system. This is my first deal with sound system of linux to this depth.&lt;br /&gt;&lt;pre class="sh"&gt;sudo apt-get --purge remove linux-sound-base alsa-base alsa-utils \&lt;br /&gt;       "pulseaudio-*"&lt;/pre&gt;&lt;br /&gt;Then I did a quick Reboot; just playing safe. (Jaunty boots on/off so fast, I am fan of it.)&lt;br /&gt;Next I reinstalled the alsa with pulseaudio.&lt;br /&gt;&lt;pre class="sh"&gt;sudo apt-get install linux-sound-base alsa-base alsa-utils \&lt;br /&gt;       libasound2-plugins "pulseaudio-*" paman padevchooser \&lt;br /&gt;       paprefs pavucontrol pavumeter &lt;/pre&gt;&lt;br /&gt;Then, I appended following lines to the file &lt;strong&gt;/etc/modprobe.d/alsa-base.conf&lt;/strong&gt;&lt;br /&gt;&lt;div class="output"&gt;alias snd-card-0 snd-hda-intel&lt;br /&gt;alias sound-slot-0 snd-hda-intel&lt;br /&gt;options snd-hda-intel &lt;strong&gt;model=dell-m6&lt;/strong&gt;&lt;br /&gt;options snd-hda-intel enable_msi=1&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;The bold faced "model=dell-m6" was the main hack for the system to work.&lt;br /&gt;&lt;br /&gt;Then after another quick boot, I got the sound.&lt;br /&gt;&lt;br /&gt;During this I refered a lot of pages, But the most useful and the one that is well documented is: &lt;a href="http://ubuntuforums.org/showthread.php?t=205449" target="_blank"&gt;Comprehensive Sound Problem Solutions Guide&lt;/a&gt;&lt;br /&gt;And this is &lt;a href="https://lists.ubuntu.com/archives/kernel-team/2008-November/004180.html" target="_blank"&gt;the page&lt;/a&gt; where I got the model of the sound-card(dell-m6) from.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-4572708169574430275?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/4572708169574430275/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=4572708169574430275&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/4572708169574430275'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/4572708169574430275'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2009/05/solve-no-sound-problem-in-ubuntu.html' title='Solve no sound problem in Ubuntu'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-3394732651346960078</id><published>2009-04-30T06:32:00.000-07:00</published><updated>2009-11-27T02:49:20.154-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Grep Sed n Awk'/><category scheme='http://www.blogger.com/atom/ns#' term='Bash'/><title type='text'>Utilize Grep Sed and Awk</title><content type='html'>In this post I will list commands that I use and include at least one of grep,sed or awk.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;code&gt;cat filename | grep "phrase"&lt;/code&gt;&lt;br /&gt;Search line containing phrase in file&lt;/li&gt;&lt;li&gt;&lt;code&gt;cat filename | grep -v "phrase"&lt;/code&gt;&lt;br /&gt;Search line not containing phrase in file&lt;/li&gt;&lt;li&gt;&lt;code&gt;cat filename | grep "phrase1\|phrase2"&lt;/code&gt;&lt;br /&gt;Search lines containing phrase1 or phrase2 in file.&lt;/li&gt;&lt;li&gt;&lt;code&gt;sed -i "s/phrase1/phrase2/g" ./filename&lt;/code&gt;&lt;br /&gt;Replace phrase1 with phrase2 in file.&lt;/li&gt;&lt;li&gt;&lt;code&gt;sed -i "s/[ ]*\(.*\)[ ]*/\1/g" ./filename&lt;/code&gt;&lt;br /&gt;Trim spaces of each line of the file.&lt;/li&gt;&lt;li&gt;&lt;code&gt;awk '{if($7=="2") $7="5"; print;}' file&lt;/code&gt;&lt;br /&gt;Conditional modification. Field no.7 is is replaced by "5" if it is "2". The default field seperator is &lt;space&gt;.&lt;/space&gt;&lt;/li&gt;&lt;li&gt;&lt;code&gt;uptime | awk 'BEGIN {FS=" "} { gsub(",",""); if (index($0,"day")) {gsub(":"," hours, ",$5);print $3" "$4", "$5" minutes"} else {gsub(":"," hours, ",$3); print $3" minutes"}}'&lt;/code&gt;&lt;br /&gt;Get the Uptime in a proper and clear format.&lt;/li&gt;&lt;li&gt;&lt;code&gt;ls | grep -v 'file or folder or regex' | xargs -I{} mv {} /target/folder/&lt;/code&gt;&lt;br /&gt;Move all but one to /target/folder. &lt;u&gt;You can also use it to move all the files/directories in current directory to another directory in the same path.&lt;/u&gt;&lt;font color="red"&gt;Be Aware: The Target directory should exist. Just to be at the safe side, I suggest not to miss the slash (/) at the end. This will give you warning/error if you messed up something. &lt;/font&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;For now I have just listed few that came in my mind; just thought to prepare a seed.&lt;br /&gt;I'll promise to grow this list as soon as they come to my mind.&lt;br /&gt;&lt;br /&gt;Note: If you have some commands in your mind, that you regularly use, plz post it as comment.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-3394732651346960078?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/3394732651346960078/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=3394732651346960078&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/3394732651346960078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/3394732651346960078'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2009/04/utilize-grep-sed-and-awk.html' title='Utilize Grep Sed and Awk'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-5882522588910126432</id><published>2009-03-24T06:38:00.000-07:00</published><updated>2009-07-09T04:45:53.060-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Gnome'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux-howto'/><title type='text'>make scite, a default editor in gnome</title><content type='html'>Personally, I prefer scite over gedit (The one that is included by default in gnome). So soon after every system upgrade (fresh installation), I simply remove gedit and install scite:&lt;br /&gt;&lt;pre class="sh"&gt;sudo sh -c "apt-get -y remove gedit &amp;&amp; apt-get -y install scite"&lt;/pre&gt;&lt;br /&gt;Now to make it a default text editor run:&lt;br /&gt;&lt;pre class="sh"&gt;sudo update-alternatives --install /usr/bin/gnome-text-editor \&lt;br /&gt;    gnome-text-editor /usr/share/scite 1&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-5882522588910126432?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/5882522588910126432/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=5882522588910126432&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/5882522588910126432'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/5882522588910126432'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2009/03/make-scite-default-editor-in-gnome.html' title='make scite, a default editor in gnome'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-7436448069601740240</id><published>2009-02-17T06:58:00.000-08:00</published><updated>2009-02-28T16:36:38.268-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tools'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Terminal tool for websms  (NTC service)</title><content type='html'>Websms is a service provided by &lt;a href="http://websms.ntc.net.np"&gt;NTC&lt;/a&gt;.&lt;br /&gt;It is service that allows us to send 10 SMS per day via its web-interface.&lt;br /&gt;&lt;br /&gt;Each time when I need to send a SMS, I had to open the site,login(no auto remember facility) and send SMS. So I thought to create a tool that would save time. &lt;br /&gt;&lt;br /&gt;You can download the debian package from here: &lt;a href="http://ssapkota.com.np/downloads/websms_1.01_all.deb"&gt;websms_1.01_all.deb&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Install it using:&lt;br /&gt;&lt;code&gt;dpkg -i ./path/to/websms_1.01_all.deb&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Synopse:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;websms help&lt;/span&gt;&lt;br /&gt;This displays the help for this tool.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;websms addcontact &amp;lt;nick&amp;gt; &amp;lt;Mobile Number&amp;gt;&lt;/span&gt;&lt;br /&gt;You can store the mobile number with (nick)name in the contacts list. Later you can use the (nick)name to send SMS to him/her.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;websms viewcontacts&lt;/span&gt;&lt;br /&gt;You can view the complete list of your contacts.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;websms send &amp;lt;nick | Mobile Number&amp;gt; &amp;lt;Message&amp;gt; &lt;/span&gt;&lt;br /&gt;Send the SMS by Mobile Number or by (nick)name that you stored earlier.The message length cannot exceed above 142.&lt;br /&gt;&lt;br /&gt;Examples:&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;$ websms addcontact sweety 98********&lt;/li&gt;&lt;br /&gt;&lt;li&gt;$ websms send sweety "I will be late."&lt;/li&gt;&lt;br /&gt;&lt;li&gt;$ websms send 98******** "Call me back. --suraj"&lt;/li&gt;&lt;br /&gt;&lt;li&gt;$ cat joke | websms send 98******** &lt;br&gt;&lt;br /&gt;Be sure that the size of file "joke" doesnt exceed 142 bytes.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;$ websms viewcontacts&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;Enjoy!&lt;br /&gt;&lt;br /&gt;Note:The secure-info and the contact-list are located in ~/.websms directory.&lt;br /&gt;&lt;br /&gt;&lt;font color="red"&gt;EDIT:&lt;br/&gt; On the request of you Guys I have added the RPM package too:&lt;/font&gt;&lt;br /&gt;Direct Download Link:&lt;a href="http://ssapkota.com.np/downloads/websms-1.01-2.noarch.rpm"&gt;websms-1.01-2.noarch.rpm&lt;/a&gt;&lt;br /&gt;&lt;small&gt;[Note:The RPM package was generated with &lt;a href="http://kitenet.net/~joey/code/alien/" target="_blank"&gt;alien&lt;/a&gt;.]&lt;/small&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-7436448069601740240?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/7436448069601740240/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=7436448069601740240&amp;isPopup=true' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/7436448069601740240'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/7436448069601740240'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2009/02/terminal-tool-for-websms-ntc-service.html' title='Terminal tool for websms  (NTC service)'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-730901768443372251</id><published>2009-01-05T11:24:00.000-08:00</published><updated>2009-01-29T10:19:05.895-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux-tips'/><title type='text'>Search with single click</title><content type='html'>Searching cant be any more easy than this.Just select and click.&lt;br /&gt;Here is how you can search anything you select with just a single click.&lt;br /&gt;First install this package "googlizer"&lt;br /&gt;&lt;code&gt;apt-get install googlizer&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Just drag it to the panel(from Applications-&gt;Internet) for easy access and enjoy.&lt;br /&gt;Select any text anywhere and just click on it.&lt;br /&gt;&lt;br /&gt;You can even use it with other links.. May be answers.com or wikipedia.org. Here's, how you do it.&lt;br /&gt;&lt;br /&gt;Right click on the googlizer button on the panel and open its properties. And in the command text area type the following to convert it to answerizer ;)&lt;br /&gt;&lt;div class="output"&gt;googlizer -u "http://www.answers.com/topic/"&lt;/div&gt;&lt;br /&gt;If you want to look it better click on the googlizer Icon at the top left of the properties dialog and change it as you want.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;The core thing that the googlizer does is just copies the text in X'selection and appends it to the end of the link that you provide, and finally opens it in Browser. If you do not provide any link then it uses "http://www.google.com/search?q=".&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;For Wikipedia-izer, whatsoever,&lt;br /&gt;&lt;div class="output"&gt;googlizer -u "http://en.wikipedia.org/wiki/"&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;*Please leave in comment if you use it for any other.&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-730901768443372251?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/730901768443372251/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=730901768443372251&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/730901768443372251'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/730901768443372251'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2009/01/search-with-single-click.html' title='Search with single click'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-5128133945278940239</id><published>2008-12-28T13:17:00.000-08:00</published><updated>2009-01-29T10:50:24.653-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux-fun'/><category scheme='http://www.blogger.com/atom/ns#' term='Gnome'/><title type='text'>gegls in Ubuntu</title><content type='html'>Got to know about this easter-egg-thing in ubuntu. &lt;br /&gt;&lt;blockquote cite="http://en.wikipedia.org/wiki/Easter_egg_(media)"&gt;A virtual Easter egg is an intentional hidden message or feature in an object such as a movie, book, CD, DVD, computer program, web page or video game.&lt;/blockquote&gt;&lt;br /&gt;This is just a funny hidden game.&lt;br /&gt;Open the Run application Dialog using ALT + F2 and then type "gegls from outer space" without the quotes and then just hit Enter.&lt;br /&gt;&lt;br /&gt;The game pops up.&lt;br /&gt;Screenshot:&lt;br /&gt;&lt;img src="http://3.bp.blogspot.com/_A7mX0bIsP7M/SVfv3nkzNTI/AAAAAAAAAbc/5PaOuULMTHM/s320/gegls+from+outer+space.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5284956426537743666" /&gt;&lt;br /&gt;&lt;br /&gt;Enjoy the game!&lt;br /&gt;&lt;br /&gt;Got it from &lt;a href="http://www.eeggs.com/perl-bin/withpics.cgi" target="_blank"&gt;ester egg archive&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-5128133945278940239?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/5128133945278940239/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=5128133945278940239&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/5128133945278940239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/5128133945278940239'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2008/12/gegls-in-ubuntu.html' title='gegls in Ubuntu'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_A7mX0bIsP7M/SVfv3nkzNTI/AAAAAAAAAbc/5PaOuULMTHM/s72-c/gegls+from+outer+space.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-2537442605154494811</id><published>2008-12-17T10:36:00.000-08:00</published><updated>2009-01-29T10:20:17.500-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux-howto'/><title type='text'>Schedule a job in cron</title><content type='html'>For the task that you have to run regularly in some period, scheduling it in the cron is the one and only way for it.&lt;br /&gt;For this run  this in terminal:&lt;br /&gt;&lt;code&gt;crontab -e&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;This will start the vi editor and load the current cron table file for this user, or a blank file if none exists. In a new line type the following&lt;br /&gt;&lt;br /&gt;&lt;div class="output"&gt; A B C D E &amp;lt path to the script &amp;gt [Arguments if any] &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Where:&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt; A = minute of the hour &lt;/li&gt;&lt;br /&gt;&lt;li&gt; B = hour of the day &lt;/li&gt;&lt;br /&gt;&lt;li&gt; C = day of the month &lt;/li&gt;&lt;br /&gt;&lt;li&gt; D = month of the year &lt;/li&gt;&lt;br /&gt;&lt;li&gt; E = day of the week &lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;      To schedule a Task daily at 9 in the moring that lies in /home/sata/script. I use the following.&lt;br /&gt;&lt;div class="output"&gt;0 9 * * * /home/sata/script&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-2537442605154494811?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/2537442605154494811/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=2537442605154494811&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/2537442605154494811'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/2537442605154494811'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2008/12/schedule-job-in-cron.html' title='Schedule a job in cron'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-6509593499427339413</id><published>2008-11-15T11:25:00.000-08:00</published><updated>2009-01-29T10:46:37.641-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Mysql'/><title type='text'>solve "Communications link failure" in matlab</title><content type='html'>Recently while i was working on my project in matlab. I got the following error.&lt;br /&gt;&lt;blockquote&gt;Connection failed: Communications link failure&lt;br /&gt;&lt;br /&gt;Last packet sent to the server was 0 ms ago.&lt;br /&gt;??? No constructor 'com.mathworks.toolbox.database.closeTheDatabaseConnection' with matching&lt;br /&gt;signature found.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;After I lost 2 hrs of my time, I remembered I had gone through the &lt;a href="http://howtoxyz.blogspot.com/2008/09/solve-commysqljdbccommunicationsexcepti.html"&gt;same error in Hibernate/mysql&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;The solution is so simple:&lt;br /&gt;Just comment out the following line in my.cnf(the mysql configuration file). :)&lt;br /&gt;&lt;div class="output"&gt;skip-networking&lt;/div&gt;&lt;br /&gt;so that it looks like this:&lt;br /&gt;&lt;div class="output"&gt;#skip-networking&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Finally restart the service mysql.&lt;br /&gt;&lt;br /&gt;To know why see my earlier post:&lt;a href="http://howtoxyz.blogspot.com/2008/09/solve-commysqljdbccommunicationsexcepti.html"&gt;http://howtoxyz.blogspot.com/2008/09/solve-commysqljdbccommunicationsexcepti.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-6509593499427339413?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/6509593499427339413/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=6509593499427339413&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/6509593499427339413'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/6509593499427339413'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2008/11/solve-communications-link-failure-in.html' title='solve &quot;Communications link failure&quot; in matlab'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-1629328221214953837</id><published>2008-11-11T23:59:00.000-08:00</published><updated>2009-01-29T10:21:51.828-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux-howto'/><title type='text'>Run GUI application as another user.</title><content type='html'>I knew that if there is some flaw in irc-client it will leave a security loop in the system. And the attacker get the privilege of the user running the irc-client. And you know what it will lead to.&lt;br /&gt;So specially to run the &lt;a href="http://www.xchat.org/" target="_blank"&gt;X-chat&lt;/a&gt; (a irc client), I created another user irc with very less privilege.&lt;br /&gt;&lt;br /&gt;Then I tried running the xchat as follows:&lt;br /&gt;&lt;div class="output"&gt;suraj $ su irc&lt;br /&gt;Password: &lt;br /&gt;irc$ xchat&lt;br /&gt;No protocol specified&lt;br /&gt;&lt;br /&gt;(xchat:6966): Gtk-WARNING **: cannot open display: :0.0&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Hum.. There occured a problem. The app couldn't get handle to the grapics display.&lt;br /&gt;&lt;br /&gt;So here is the solution:&lt;br /&gt;&lt;div class="output"&gt;$ sudo apt-get install sux&lt;/div&gt;&lt;br /&gt;and run &lt;br /&gt;&lt;div class="output"&gt;$ sux irc xchat&lt;br /&gt;Password: &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Provide the password of the user irc and see the application launching.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-1629328221214953837?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/1629328221214953837/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=1629328221214953837&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/1629328221214953837'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/1629328221214953837'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2008/11/run-gui-application-as-another-user.html' title='Run GUI application as another user.'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-578768361084343747</id><published>2008-10-30T21:38:00.000-07:00</published><updated>2009-01-29T10:22:18.652-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux-howto'/><title type='text'>Disable root ssh login</title><content type='html'>Disabling ssh is one of the major security enhancement. It is just a simple task. What you need to do is edit a file ("removing a #") and restart the service. Here it goes,&lt;br /&gt;First you need to find the following line and remove the comment from the file "/etc/ssh/sshd_config".&lt;br /&gt;&lt;div class="output"&gt;&lt;strong&gt;#&lt;/strong&gt;PermitRootLogin no&lt;/div&gt;&lt;br /&gt;ie. Just remove the preceding "&lt;strong&gt;#&lt;/strong&gt;"&lt;br /&gt;&lt;br /&gt;You can edit it in your favorite editor. But remember you need to be have root access to edit it.&lt;br /&gt;&lt;br /&gt;Or simply you can run the following command from terminal&lt;br /&gt;&lt;code&gt;sudo sed -i "s/#PermitRootLogin/PermitRootLogin/g" /etc/ssh/sshd_config&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Now, For this to take effect, you need to restart the service:&lt;br /&gt;&lt;code&gt;sudo /etc/init.d/sshd restart&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-578768361084343747?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/578768361084343747/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=578768361084343747&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/578768361084343747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/578768361084343747'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2008/10/disable-root-ssh-login.html' title='Disable root ssh login'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-2122696743767128490</id><published>2008-09-29T14:11:00.000-07:00</published><updated>2009-01-29T10:47:11.024-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux-howto'/><category scheme='http://www.blogger.com/atom/ns#' term='Mysql'/><title type='text'>reset mysql root password</title><content type='html'>Recently, one person left me in his system to solve one of his problem associated with webservice.&lt;br /&gt;He left me and went somewhere and asked me to solve the problem before I left.&lt;br /&gt;&lt;br /&gt;During this i requited the mysql root password, but he want there. So i googled to reset the mysql password. And here is what i did to reset the password.&lt;br /&gt;&lt;br /&gt;&lt;div class="output"&gt;$ sudo /etc/init.d/mysql stop&lt;br /&gt;&lt;br /&gt;$ sudo mysqld_safe --skip-grant-tables --user=root&lt;br /&gt;&lt;br /&gt;$ sudo mysql -u root&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Run this query in mysql prompt:&lt;br /&gt;&lt;div class="output"&gt;mysql&gt; UPDATE mysql.user SET Password=PASSWORD('newpassword') WHERE User='root';&lt;br /&gt;mysql&gt; FLUSH PRIVILEGES;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Finally kill this mysql process and restart it safely:&lt;br /&gt;&lt;br /&gt;&lt;div class="output"&gt;$ sudo /etc/init.d/mysql start&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;ref: http://www.linuxweblog.com/blogs/sandip/20060330/reset-mysql-root-password&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-2122696743767128490?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/2122696743767128490/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=2122696743767128490&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/2122696743767128490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/2122696743767128490'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2008/09/reset-mysql-root-password.html' title='reset mysql root password'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-7370063980991696255</id><published>2008-09-28T01:14:00.000-07:00</published><updated>2009-01-29T10:47:01.845-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Mysql'/><title type='text'>solve "com.mysql.jdbc.CommunicationsException"</title><content type='html'>This is the error that I got when trying to connect to mysql (of lampp package, yes in linux) using Hibernate in java.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;WARN 2008-09-28 13:55:17,116  org.hibernate.cfg.SettingsFactory -s Could not obtain connection metadata&lt;br /&gt;com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: &lt;br /&gt;&lt;br /&gt;** BEGIN NESTED EXCEPTION ** &lt;br /&gt;&lt;br /&gt;java.net.ConnectException&lt;br /&gt;MESSAGE: Connection refused&lt;br /&gt;&lt;br /&gt;STACKTRACE:&lt;br /&gt;&lt;br /&gt;java.net.ConnectException: Connection refused&lt;br /&gt;        at java.net.PlainSocketImpl.socketConnect(Native Method)&lt;br /&gt;        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)&lt;br /&gt;        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)&lt;br /&gt;        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)&lt;br /&gt;        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)&lt;br /&gt;        at java.net.Socket.connect(Socket.java:519)&lt;br /&gt;        at java.net.Socket.connect(Socket.java:469)&lt;br /&gt;        at java.net.Socket.&lt;init&gt;(Socket.java:366)&lt;br /&gt;        at java.net.Socket.&lt;init&gt;(Socket.java:209)&lt;br /&gt;        at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:256)&lt;br /&gt;        at com.mysql.jdbc.MysqlIO.&lt;init&gt;(MysqlIO.java:271)&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Basically, the problem here is because of jdbc connector, which was unable to connect to the database. There are two ways of communication with mysql in linux.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Don't listen on a TCP/IP port at all, if all processes that need to connect to mysqld run on the same host. There interaction with mysqld are made via Unix sockets or named pipes which is .sock file.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;B. Simply listen on a TCP/IP port. This allows remote communication to the database too.&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;Lampp initial configuration sets the first method of communication. And the sock file is created in &amp;lt; lampp root dir &amp;gt;/var/mysql/mysql.sock . But by default the jdbc search it in "/var/run/mysql/mysql.sock" (somewhere like this). Due to this problem, jdbc wont be able to connect to the database.&lt;br /&gt;&lt;br /&gt;There are many ways to solve this:&lt;br /&gt;The simple one is to switch to second type of communication method.&lt;br /&gt;find the following line in &amp;lt;lampp root dir &amp;gt;/etc/my.cnf&lt;br /&gt;&lt;div class="output"&gt;skip-networking&lt;/div&gt;&lt;br /&gt;and comment it.&lt;br /&gt;&lt;div class="output"&gt;# skip-networking&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Hope this helps you out.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-7370063980991696255?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/7370063980991696255/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=7370063980991696255&amp;isPopup=true' title='12 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/7370063980991696255'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/7370063980991696255'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2008/09/solve-commysqljdbccommunicationsexcepti.html' title='solve &quot;com.mysql.jdbc.CommunicationsException&quot;'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>12</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-509822638849473280</id><published>2008-08-08T13:57:00.000-07:00</published><updated>2009-01-29T10:24:00.118-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux-howto'/><title type='text'>Change your terminal prompt (bash)</title><content type='html'>I always get messed up with the output and the prompt. I wanted to so sth that would make the prompt distinguishable. I also hate the (increasing) length of prompt ie showing the full current path.&lt;br /&gt;&lt;br /&gt;Ok here's what and how I did. It easy and a bit tricky.&lt;br /&gt;&lt;br /&gt;You must have known that while starting a (bash) terminal, the terminal itself runs the script in the "~/.bashrc" file. If you didnt know, know it now.&lt;br /&gt;&lt;br /&gt;Ok. Its straight forward, what we do now is add few lines to the end of the file. So open the file in any editer you like and add the following line at the end of the file&lt;br /&gt;&lt;br /&gt;&lt;div class="output"&gt;BLUE=$(tput setaf 4)&lt;br /&gt;BOLD=$(tput bold)&lt;br /&gt;RESET=$(tput sgr0)&lt;br /&gt;PS1="\[$BLUE\][\u@\h]\[$RESET\] "&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Here the env variable PS1 is the normal terminal prompt. FYI PS2 contains the continuation prompt in bash. &lt;br /&gt;So what this says is "DISPLAY A PROMPT IN BLUE COLOR SHOWING [USERNAME@HOSTNAME] AS PROMPT".&lt;br /&gt;&lt;br /&gt;Here is the screenshot of my (gnome-)terminal:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_A7mX0bIsP7M/SJy7yf4z88I/AAAAAAAAAJ8/suiXqIELxeE/s1600-h/prompt-gnome-term.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://3.bp.blogspot.com/_A7mX0bIsP7M/SJy7yf4z88I/AAAAAAAAAJ8/suiXqIELxeE/s320/prompt-gnome-term.png" border="0" alt="gnome-terminal"id="BLOGGER_PHOTO_ID_5232263343325311938" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Zoomed&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_A7mX0bIsP7M/SJy7Mjo0AgI/AAAAAAAAAJ0/5lWZpK0Mixw/s1600-h/prompt-gnome-term-zoom.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://1.bp.blogspot.com/_A7mX0bIsP7M/SJy7Mjo0AgI/AAAAAAAAAJ0/5lWZpK0Mixw/s320/prompt-gnome-term-zoom.png" border="0" alt="Zoomed gnome-termial"id="BLOGGER_PHOTO_ID_5232262691496919554" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;EDIT: &lt;br /&gt;Here is a list of Escape Sequence that yuu can use:&lt;br /&gt;&lt;a href="http://tldp.org/HOWTO/Bash-Prompt-HOWTO/bash-prompt-escape-sequences.html" target="_blank"&gt;http://tldp.org/HOWTO/Bash-Prompt-HOWTO/bash-prompt-escape-sequences.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-509822638849473280?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/509822638849473280/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=509822638849473280&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/509822638849473280'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/509822638849473280'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2008/08/change-your-terminal-prompt-bash.html' title='Change your terminal prompt (bash)'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_A7mX0bIsP7M/SJy7yf4z88I/AAAAAAAAAJ8/suiXqIELxeE/s72-c/prompt-gnome-term.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-3839509402797005587</id><published>2008-07-29T02:31:00.000-07:00</published><updated>2009-04-21T00:17:29.804-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Gnome'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Applications menu not working in Ubuntu</title><content type='html'>&lt;p&gt;This was the problem faced by &lt;a href="http://sankalptricks.blogspot.com/" target="_blank"&gt;Sanaklp&lt;/a&gt;, one of my friend. He was trying to install some apps via apt-get. during the installation he was warned about for no space in root partition. Somehow the system was working fine even after all this. But once he rebooted his system, he couldnt see any sub-menu under "Applications" menu. At the moment i reached there and he asked me to resolve the problem. &lt;/p&gt;&lt;p&gt;I thought that some configuration associated with the menu must be wrong and I was right. I just deleted the config file at /home/&lt;affected_user&gt;/.config/menus/applications.menu.&lt;/p&gt;&lt;code&gt;$ rm /home/&amp;lt;username&amp;gt;/.config/menus/applications.menu &lt;/code&gt;&lt;p&gt;What happens after you delete this file is the system assumes your menu to be same as the default. Whenever you change the menu (Right click and "Edit Menus"), the system will again generate the file which you deleted earlier.&lt;/p&gt;&lt;p&gt;Relogin and your system must be fine now.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-3839509402797005587?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/3839509402797005587/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=3839509402797005587&amp;isPopup=true' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/3839509402797005587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/3839509402797005587'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2008/07/applications-menu-not-working-in-ubuntu.html' title='Applications menu not working in Ubuntu'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-5536058755872049012</id><published>2008-07-22T09:10:00.000-07:00</published><updated>2009-01-29T10:25:29.413-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux-howto'/><title type='text'>NETDEV WATCHDOG: eth0: transmit timed out</title><content type='html'>&lt;blockquote&gt;NETDEV WATCHDOG: eth0: transmit timed out&lt;br /&gt;eth0: Transmit timeout, status 00000004 00000249&lt;/blockquote&gt;&lt;br /&gt;This was the error that i got in my kernel log message.&lt;br /&gt;&lt;br /&gt;I was unable to use internet in my laptop "MS 1006". I tried setting up the network in either way (dhcp and static) but non of these solved the problem. I got terribly wired, as i could see no other message beside "destination host unreachable" and waiting for never offering, DHCP.&lt;br /&gt;&lt;br /&gt;I even wasted 2 days and even googled for many keywords. But i couldnt get the solution. But finally the end of the second day was fruitful. I solved it.&lt;br /&gt;&lt;br /&gt;This was due to the interrupt conflict that occured between the acpi and network modules. &lt;br /&gt;I turned off acpi while booting by adding following words at the end of the boot option.&lt;br /&gt;&lt;br /&gt;Before:&lt;br /&gt;&lt;div class="output"&gt;&lt;br /&gt;title  Ubuntu 8.04, kernel 2.6.24-16-generic&lt;br /&gt;root  (hd0,1)&lt;br /&gt;kernel  /boot/vmlinuz-2.6.24-16-generic root=UUID=e89b77d0-3183-4036-b508-15d9a23dc86c ro quiet splash&lt;br /&gt;initrd  /boot/initrd.img-2.6.24-16-generic&lt;br /&gt;quiet&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;After:&lt;br /&gt;&lt;div class="output"&gt;&lt;br /&gt;title  Ubuntu 8.04, kernel 2.6.24-16-generic&lt;br /&gt;root  (hd0,1)&lt;br /&gt;kernel  /boot/vmlinuz-2.6.24-16-generic root=UUID=e89b77d0-3183-4036-b508-15d9a23dc86c &lt;strong&gt;acpi=off&lt;/strong&gt; ro quiet splash&lt;br /&gt;initrd  /boot/initrd.img-2.6.24-16-generic&lt;br /&gt;quiet&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Enjoy the net.&lt;br /&gt;&lt;br /&gt;ref:&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;&lt;a href="https://bugs.launchpad.net/ubuntu/+source/linux/+bug/183588" target="_blank"&gt;https://bugs.launchpad.net/ubuntu/+source/linux/+bug/183588&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a href="http://bugzilla.kernel.org/show_bug.cgi?id=7595" target="_blank"&gt;http://bugzilla.kernel.org/show_bug.cgi?id=7595&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-5536058755872049012?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/5536058755872049012/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=5536058755872049012&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/5536058755872049012'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/5536058755872049012'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2008/07/netdev-watchdog-eth0-transmit-timed-out.html' title='NETDEV WATCHDOG: eth0: transmit timed out'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-7358923985057277253</id><published>2008-07-17T00:33:00.000-07:00</published><updated>2009-01-29T10:26:11.386-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux-howto'/><title type='text'>Solve [mount_point cannot contain the following characters: newline, G_DIR_SEPARATOR (usually /)]</title><content type='html'>I recently suffered from this problem. I googled it and finally solved it.&lt;br /&gt;This is a bug filed &lt;a href="https://bugs.launchpad.net/ubuntu/+source/gnome-mount/+bug/107668" target="_blank"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;I specified the mount point like "sata/160GB", expecting it to mount the device in "/media/sata/160GB". But the problem started here. The system expects only a word here with no slashes(/) in it.  While mounting it just creates a folder which you provided, in /media and mounts the volume there.&lt;br /&gt;&lt;br /&gt;And this is what I did:&lt;br /&gt; &lt;br /&gt;Open gconf-editor in terminal:&lt;br /&gt;&lt;code&gt;$ gconf-editor&lt;/code&gt;&lt;br /&gt;In the left panel:&lt;br /&gt; Goto: &lt;div class="output"&gt; System -&gt;  Storage -&gt; volumes &lt;/div&gt;&lt;br /&gt;Here you will see the mount point you specified for the device.&lt;br /&gt;Change it to just a single word (OR just remove it :) )&lt;br /&gt;Thats it. Replug your device.&lt;br /&gt;&lt;br /&gt;Enjoy!!!&lt;br /&gt;&lt;br /&gt;EDIT:&lt;br /&gt;1. Do not use sudo for this purpose.&lt;br /&gt;See &lt;a href="http://howtoxyz.blogspot.com/2008/07/how-to-mountpoint-cannot-contain.html?showComment=1219768980000#c4909540062531724633"&gt;this comment by Anonym...&lt;/a&gt; (Thanx to Anonym) for detail.&lt;br /&gt;&lt;br /&gt;2. Sometimes instead of &lt;strong&gt;System -&gt;  Storage -&gt; volumes&lt;/strong&gt; you may also get &lt;strong&gt;System -&gt;  Storage -&gt; drives&lt;/strong&gt; , depending upon what you messed up. The rest process is same.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-7358923985057277253?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/7358923985057277253/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=7358923985057277253&amp;isPopup=true' title='38 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/7358923985057277253'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/7358923985057277253'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2008/07/how-to-mountpoint-cannot-contain.html' title='Solve [mount_point cannot contain the following characters: newline, G_DIR_SEPARATOR (usually /)]'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>38</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-6466306339546920394</id><published>2008-07-13T03:56:00.000-07:00</published><updated>2009-12-30T09:56:13.554-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux-howto'/><category scheme='http://www.blogger.com/atom/ns#' term='Udev'/><title type='text'>writing-udev-rules, the other way</title><content type='html'>Here's my earlier post on about writing the udev rules:&lt;br /&gt;&lt;a href="http://howtoxyz.blogspot.com/2008/07/writing-udev-rules.html"&gt;writing-udev-rules, the easier way&lt;/a&gt;&lt;br /&gt;This will give you a bit of understanding about what a udev-rule is and how can you write a udev rule on the basis of vender-id and product-id.&lt;br /&gt;&lt;br /&gt;Here is the other way (Its easier but a bit time consuming):&lt;br /&gt;So here you go..&lt;br /&gt;Insert your usb-device, and watch the log:&lt;br /&gt;&lt;code&gt;# tail -f /var/log/messages&lt;br /&gt;&lt;/code&gt;&lt;div class="output"&gt;Jul 13 16:47:20 workbench kernel: [ 5418.740803] sd 7:0:0:0: [sdb] 312581808 512-byte hardware sectors (160042 MB)&lt;br /&gt;Jul 13 16:47:20 workbench kernel: [ 5418.743055] sd 7:0:0:0: [sdb] Write Protect is off&lt;br /&gt;Jul 13 16:47:21 workbench kernel: [ 5418.743072]  sdb: sdb1&lt;br /&gt;Jul 13 16:47:21 workbench kernel: [ 5419.323103] sd 7:0:0:0: [sdb] Attached SCSI disk&lt;br /&gt;Jul 13 16:47:21 workbench kernel: [ 5419.323163] sd 7:0:0:0: Attached scsi generic sg2 type 0&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Notice the third-last line. It shows that the device is mounted as sdb1.&lt;br /&gt;Now lets dig into it.&lt;br /&gt;&lt;code&gt;# udevinfo -q path -n /dev/sdb1&lt;br /&gt;&lt;/code&gt;&lt;div class="output"&gt;/block/sdb/sdb1&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;This shows the devpath of the device.&lt;br /&gt;From this devpath you can see a lot of information.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;# udevinfo -a -p /block/sdb/sdb1&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;At the very first line of the output you will see:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;div class="output"&gt;&lt;br /&gt;"Udevinfo starts with the device specified by the devpath and then&lt;br /&gt;walks up the chain of parent devices. It prints for every device&lt;br /&gt;found, all possible attributes in the udev rules key format.&lt;br /&gt;A rule to match, can be composed by the attributes of the device&lt;br /&gt;and the attributes from one single parent device."&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;This pretty much explains itself.&lt;br /&gt;&lt;br /&gt;And the (trimmed-)output is:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;div class="output"&gt;looking at device '/block/sdb/sdb1':&lt;br /&gt;KERNEL=="sdb1"&lt;br /&gt;SUBSYSTEM=="block"&lt;br /&gt;DRIVER==""&lt;br /&gt;ATTR{dev}=="8:17"&lt;br /&gt;ATTR{start}=="63"&lt;br /&gt;ATTR{size}=="312576642"&lt;br /&gt;ATTR{stat}=="   11011    11620        0        0"&lt;br /&gt;&lt;br /&gt;looking at parent device '/block/sdb':&lt;br /&gt;KERNELS=="sdb"&lt;br /&gt;SUBSYSTEMS=="block"&lt;br /&gt;DRIVERS==""&lt;br /&gt;ATTRS{dev}=="8:16"&lt;br /&gt;ATTRS{range}=="16"&lt;br /&gt;ATTRS{removable}=="0"&lt;br /&gt;ATTRS{size}=="312581808"&lt;br /&gt;ATTRS{stat}=="     206    10881    12228     1688        0        0        0        0        0     1272     1688"&lt;br /&gt;ATTRS{capability}=="12"&lt;br /&gt;&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;looking at parent device '/devices/pci0000:00/0000:00:1d.7':&lt;br /&gt;KERNELS=="0000:00:1d.7"&lt;br /&gt;SUBSYSTEMS=="pci"&lt;br /&gt;DRIVERS=="ehci_hcd"&lt;br /&gt;ATTRS{vendor}=="0x8086"&lt;br /&gt;ATTRS{device}=="0x24dd"&lt;br /&gt;ATTRS{subsystem_vendor}=="0x8086"&lt;br /&gt;ATTRS{subsystem_device}=="0x4246"&lt;br /&gt;ATTRS{class}=="0x0c0320"&lt;br /&gt;ATTRS{irq}=="19"&lt;br /&gt;ATTRS{local_cpus}=="ff"&lt;br /&gt;ATTRS{modalias}=="pci:v00008086d000024DDsv00008086sd00004246bc0Csc03i20"&lt;br /&gt;ATTRS{broken_parity_status}=="0"&lt;br /&gt;ATTRS{msi_bus}==""&lt;br /&gt;&lt;br /&gt;looking at parent device '/devices/pci0000:00':&lt;br /&gt;KERNELS=="pci0000:00"&lt;br /&gt;SUBSYSTEMS==""&lt;br /&gt;DRIVERS==""&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So you can choose any block and write the rule for that.&lt;br /&gt;Let me zoom into a block&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;div class="output"&gt;looking at device '/block/sdb/sdb1':&lt;br /&gt;KERNEL=="sdb1"&lt;br /&gt;SUBSYSTEM=="block"&lt;br /&gt;DRIVER==""&lt;br /&gt;ATTR{dev}=="8:17"&lt;br /&gt;ATTR{start}=="63"&lt;br /&gt;ATTR{size}=="312576642"&lt;br /&gt;ATTR{stat}=="   11011    11620        0        0"&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;So here's the rule for this :&lt;br /&gt;KERNEL=="sdb1", SUBSYSTEM=="block", ATTR{dev}=="8:17", ATTR{start}=="63", ATTR{size}=="312576642", SYMLINK+="myDisk"&lt;br /&gt;&lt;br /&gt;Now, this is also not the only rule. Go on! Generate your own rule. Mind with the spaces like in case of ATTR{stat}=="   11011    11620        0        0".&lt;br /&gt;&lt;br /&gt;Finally place the rule in /etc/udev/rules.d/60-persistent-storage.rules. Then Plug out the device and again plug-in to see the change.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;# ls /dev/ | grep my&lt;br /&gt;&lt;/code&gt;&lt;div class="output"&gt;myDisk&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;That's it.&lt;br /&gt;If you want to learn more about it:&lt;br /&gt;http://reactivated.net/writing_udev_rules.html&lt;br /&gt;http://ubuntuforums.org/showthread.php?t=168221&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-6466306339546920394?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/6466306339546920394/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=6466306339546920394&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/6466306339546920394'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/6466306339546920394'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2008/07/writing-udev-rules-other-way.html' title='writing-udev-rules, the other way'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-7740323286366920936</id><published>2008-07-13T03:16:00.000-07:00</published><updated>2009-01-29T10:49:41.885-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux-howto'/><title type='text'>Writing udev-rules, the easier way</title><content type='html'>What is udev-rules?&lt;br /&gt;udev is the device manager for the Linux 2.6 kernel series. Its primary function is managing device nodes in /dev. It is the successor of devfs and hotplug, which means that it handles the /dev directory and all user space actions when adding/removing devices, including firmware load.&lt;br /&gt;&lt;br /&gt;Okay, here i will show you howto write udev-rule for a USB hardisk.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;# lsusb &lt;br /&gt;&lt;div class="output"&gt;&lt;br /&gt;Bus 005 Device 003: ID 04fc:0c25 Sunplus Technology Co., Ltd &lt;br /&gt;Bus 005 Device 001: ID 0000:0000  &lt;br /&gt;Bus 004 Device 001: ID 0000:0000  &lt;br /&gt;Bus 003 Device 001: ID 0000:0000  &lt;br /&gt;Bus 002 Device 001: ID 0000:0000  &lt;br /&gt;Bus 001 Device 004: ID 062a:0000 Creative Labs Optical Mouse&lt;br /&gt;Bus 001 Device 001: ID 0000:0000 &lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;This gives us two information, one of them is what we want.&lt;br /&gt;Very first line shows that I have a Device with vernder id: 04fc and product id:0c25 named "Sunplus Technology Co., Ltd "&lt;br /&gt;&lt;br /&gt;The second-last line points my USB-mouse, which is not of much interest now.&lt;br /&gt;&lt;br /&gt;Now move to the /etc/udev/rules.d directory&lt;br /&gt;&lt;code&gt;&lt;br /&gt;# cd /etc/udev/rules.d&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;As the device is a storage device we will be writing the rule in "60-persistent-storage.rules"&lt;br /&gt;So open this file with your prefered editor (I recommend scite in gui and vim in console) and add the following line:&lt;br /&gt;&lt;code&gt;KERNEL=="sd*[0-9]",SYSFS{idVendor}=="04fc",SYSFS{idProduct}=="0c25", SYMLINK+="sata"&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;This informs udev-manager, that if any storage device with vendour-id, 04fc and product-id 0c25 is plugged into the system add a symlink in /dev with name, sata.&lt;br /&gt;&lt;br /&gt;Note: This rule is specific to the device only. And also this is not the only rule that you can write. &lt;br /&gt;&lt;br /&gt;This is the easiest way. And there is another way round to work on this: &lt;a href="http://howtoxyz.blogspot.com/2008/07/writing-udev-rules-other-way.html"&gt;&gt;Here&lt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-7740323286366920936?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/7740323286366920936/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=7740323286366920936&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/7740323286366920936'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/7740323286366920936'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2008/07/writing-udev-rules.html' title='Writing udev-rules, the easier way'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-7786259224868935615</id><published>2008-07-11T11:43:00.000-07:00</published><updated>2009-01-29T10:27:24.572-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux-howto'/><category scheme='http://www.blogger.com/atom/ns#' term='GPG'/><title type='text'>Generate your gpg-key</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.gnupg.org/share/logo-gnupg-light-purple-bg.png"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 200px;" src="http://www.gnupg.org/share/logo-gnupg-light-purple-bg.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;GNU Privacy Guard (GnuPG or GPG) is a replacement for the PGP suite of cryptographic software. It is freely available and is a part of Free Software Foundation's GNU software project.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Generating your gpg-key in linux&lt;/strong&gt;&lt;br /&gt;Terminal,:) the following:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;~$ gpg --gen-key&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;You will be asked with the following options:&lt;br /&gt;&lt;div class="output"&gt;(1) DSA and Elgamal (default)&lt;br /&gt;(2) DSA (sign only)&lt;br /&gt;(5) RSA (sign only)&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;*nux-platform developers are crazy... there is no any reason for sth like this 1, 2 and then suddenly 5 ;)&lt;br /&gt;&lt;br /&gt;Choose the option according to your choice if you dont know what DSA and RSA are. Just &lt;a href="http://www.google.com.np/search?q=DSA+and+RSA"&gt;gooooogle them&lt;/a&gt;. &lt;em&gt;I recommend choosing (2) as it gives better security. Remember it's just for signing purpose.&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="output"&gt;DSA keypair will have 1024 bits.&lt;br /&gt;Please specify how long the key should be valid.&lt;br /&gt;         0 = key does not expire&lt;br /&gt;      &lt;n&gt;  = key expires in n days&lt;br /&gt;      &lt;n&gt;w = key expires in n weeks&lt;br /&gt;      &lt;n&gt;m = key expires in n months&lt;br /&gt;      &lt;n&gt;y = key expires in n years&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Choose 0 if you dont want it to expire.&lt;br /&gt;Provide your Real name ( at least 5 chars ), Email address and Comment.&lt;br /&gt;&lt;br /&gt;Conform (enter alpha-O) it and wait few secs and your key is ready.&lt;br /&gt;&lt;br /&gt;Ps: You may be asked to move your mouse or do any thing on your desktop to refill the pool of random numbers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-7786259224868935615?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/7786259224868935615/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=7786259224868935615&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/7786259224868935615'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/7786259224868935615'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2008/07/generate-your-gpg-key.html' title='Generate your gpg-key'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-3997433970533724638</id><published>2008-06-18T09:49:00.000-07:00</published><updated>2009-01-29T10:27:41.295-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Misc'/><title type='text'>I helped mozilla to make record.</title><content type='html'>I helped mozilla to make the record of more than 8M (and counting) download in a day.&lt;br /&gt;Here's my certificate.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_A7mX0bIsP7M/SFk99Wb-nKI/AAAAAAAAAHU/jz0rMlArVuU/s1600-h/moz_cert.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://3.bp.blogspot.com/_A7mX0bIsP7M/SFk99Wb-nKI/AAAAAAAAAHU/jz0rMlArVuU/s320/moz_cert.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5213266167862303906" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;where is yours?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-3997433970533724638?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/3997433970533724638/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=3997433970533724638&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/3997433970533724638'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/3997433970533724638'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2008/06/i-healped-mozilla-to-make-record.html' title='I helped mozilla to make record.'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_A7mX0bIsP7M/SFk99Wb-nKI/AAAAAAAAAHU/jz0rMlArVuU/s72-c/moz_cert.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-8568739656971630249</id><published>2008-06-05T17:16:00.000-07:00</published><updated>2009-01-29T10:27:58.807-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux-tips'/><title type='text'>Removing the login message.</title><content type='html'>I dont know about you, but i dont like the message like "... you have new message ...." that is shown after logging in. &lt;br /&gt;If you are like me and want to remove the message. Follow the following procedure. Its pretty simple:&lt;br /&gt;&lt;br /&gt;    Just create a file named ".hushlogin" in the home directory of the current user.&lt;br /&gt;$ touch .hushlogin&lt;br /&gt;    &lt;br /&gt;    If you want to hide this message for each new user that is created you can create the file named ".hushlogin" in /etc/skel directory.&lt;br /&gt;&lt;br /&gt;# touch /etc/skel/.hushlogin&lt;br /&gt;&lt;br /&gt;Remember you need root access in the second case.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-8568739656971630249?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/8568739656971630249/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=8568739656971630249&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/8568739656971630249'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/8568739656971630249'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2008/06/removing-login-message.html' title='Removing the login message.'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-7001573269832907616</id><published>2008-04-16T10:48:00.000-07:00</published><updated>2009-01-29T10:43:53.088-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Misc'/><title type='text'>UserAgent switcher in Mozilla</title><content type='html'>Here's a user-agent switcher for mozilla:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://chrispederick.com/work/user-agent-switcher/"&gt;http://chrispederick.com/work/user-agent-switcher/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I hope it will be of great use.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;Happy Hacking!&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;EDIT:&lt;/span&gt;&lt;br /&gt;I got a video tutorial for it too. Find it &lt;a href="http://securitytube.net/Changing-your-Firefox-User-Agent-to-Emulate-Googlebot-video.aspx" target="_blank"&gt;here&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-7001573269832907616?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/7001573269832907616/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=7001573269832907616&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/7001573269832907616'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/7001573269832907616'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2008/04/useragent-switcher.html' title='UserAgent switcher in Mozilla'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-835398541792209988</id><published>2008-03-18T11:56:00.000-07:00</published><updated>2009-01-29T10:48:38.415-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux-howto'/><title type='text'>Change ssh Welcome Banner</title><content type='html'>/etc/motd&lt;br /&gt;&lt;br /&gt;Everything you write in this file is shown as welcome banner when someone enters your into your box via ssh.&lt;br /&gt;&lt;br /&gt;So &lt;em&gt; sudo gedit /etc/motd&lt;/em&gt;  :) enjoy!!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-835398541792209988?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/835398541792209988/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=835398541792209988&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/835398541792209988'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/835398541792209988'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2008/03/change-ssh-welcome-banner.html' title='Change ssh Welcome Banner'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-6826821847793394931</id><published>2008-03-18T11:53:00.000-07:00</published><updated>2009-06-17T05:09:43.286-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux-howto'/><category scheme='http://www.blogger.com/atom/ns#' term='Grub'/><title type='text'>Reinstall Ubuntu Grub Bootloader After Windows Wipes it Out</title><content type='html'>Here's the quick and easy way to re-enable Grub.&lt;br /&gt;&lt;br /&gt;1) Boot off the LiveCD&lt;br /&gt;&lt;br /&gt;2) Open a Terminal and type in the following commands, noting that the first command will put you into the grub "prompt", and the next 3 commands will be executed there. Also note that hd0,0 implies the first hard drive and the first partition on that drive, which is where you probably installed grub to during installation. If not, then adjust accordingly.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;$ sudo grub&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&gt; find /boot/grub/stage1&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&gt; root &amp;lt;the output of above command&amp;gt;&lt;br /&gt; &gt; setup (hd0)&lt;br /&gt; &gt; quit&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Reboot (removing the livecd), and your boot menu should be back.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.howtogeek.com/howto/ubuntu/reinstall-ubuntu-grub-bootloader-after-windows-wipes-it-out/" target="_blank"&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-6826821847793394931?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/6826821847793394931/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=6826821847793394931&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/6826821847793394931'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/6826821847793394931'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2008/03/reinstall-ubuntu-grub-bootloader-after.html' title='Reinstall Ubuntu Grub Bootloader After Windows Wipes it Out'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-6951221593969111257</id><published>2007-12-29T10:36:00.000-08:00</published><updated>2009-01-29T10:30:36.078-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux-howto'/><category scheme='http://www.blogger.com/atom/ns#' term='X'/><title type='text'>Multiple X-clients in Linux</title><content type='html'>&lt;span style="font-style:italic;"&gt;Before starting note that this is tested in ubuntu (a debian-based distro).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Here i will be assuming that you are familiar with X-system in linux.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Perhaps you know, what you will get when you press F1 to F8 with control and alt key. Well, if you don't know let me just brief it for you. By default, there are six virtual terminals in linux, F1 through F6.By pressing &amp;lt;ctrl&amp;gt; + &amp;lt;shift&amp;gt; + Fx you can switch to corresponding terminal. Next in F7 there is you your desktop manager. If you are reading this from linux, I must say this is where you currently are. In F8 you will see system logs. From F9 - F12 ...? Yes, this is where we will run other instance of desktop manager.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;A brief intro about X-system:&lt;/span&gt;&lt;br /&gt; In x-system there are two main parts X-server and X-clients. X-server simply communicates your hardware with the x-clients and a desktop manager gives a gui-environment to make the communication between the user and the x-client easier. &lt;br /&gt;For detail goto &lt;a href="http://en.wikipedia.org/wiki/X-server"&gt;wiki-page&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt; Okay, Lets kick off:&lt;/span&gt;&lt;br /&gt;It's just a single command. Open a terminal and login using any user-account and just enter the following command:&lt;br /&gt;&lt;br /&gt;~$ startx -- :1 &amp; &lt;br /&gt;&lt;br /&gt;This command starts a new desktop-manager in screen:1 and the '&amp;' symbol simply backgrounds the process.&lt;br /&gt;&lt;br /&gt;The desktop manager on which you currently are, is Screen:0 ==&gt; F7 and by issuing :1 as argument you are requesting to start it on Screen:1 ==&gt; F9 (as you know in F8 there is system log)&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Note: You might get it in F8 too or even other in other ditros.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Similarly you can start other three x-client from F10-F12 simply by choosing a from screen 2-4. By starting the x-client as user 'xyz' you will be logged in as same user. And remember you cannot start multiple x-clients in same screen.&lt;br /&gt;&lt;span style="font-style:italic;"&gt;In some distro you may also get some error or warning if you try to run it as root.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Note: I have tested it in Ubuntu. If you have tested it successfully in other distro then please post it as a comment.&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-6951221593969111257?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/6951221593969111257/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=6951221593969111257&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/6951221593969111257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/6951221593969111257'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2007/12/multiple-x-clients-in-linux.html' title='Multiple X-clients in Linux'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-1088865849113343411</id><published>2007-12-07T11:03:00.000-08:00</published><updated>2009-01-29T10:31:22.820-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux-tips'/><title type='text'>Shortcuts in Terminal (console)</title><content type='html'>Must of use face the problem with cutting and pasting in terminal... I know it because i did felt it a few days back too. &lt;br /&gt;I don't know how but it was my luck that that i pressed ctrl+l insted of shift+l. I got amazed when i saw it cleared my console .. OMG it was a short to clear the terminal screen...&lt;br /&gt;&lt;br /&gt;Soon after that i tested with each combination and here are the shortcuts that i found working...&lt;br /&gt;&lt;br /&gt;ctrl+L = clear the screen&lt;br /&gt;ctrl+W = clear the current word&lt;br /&gt;ctrl+K = clears everything after the current curser position&lt;br /&gt;ctrl+T = swaps last two letters&lt;br /&gt;ctrl+U = cut&lt;br /&gt;ctrl+Y = paste&lt;br /&gt;ctrl+I = autocomplete (similar to pressing tab-key)&lt;br /&gt;ctrl+P = Previous command (similar to pressing up-arrow)&lt;br /&gt;ctrl+A = Move the cursor to the begenning &lt;br /&gt;ctrl+D = same as what DEL-key does&lt;br /&gt;ctrl+H = same as what BACKSPACE-Key does&lt;br /&gt;&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;please comment if you have any more...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-1088865849113343411?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/1088865849113343411/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=1088865849113343411&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/1088865849113343411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/1088865849113343411'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2007/12/shortcuts-in-terminal-console.html' title='Shortcuts in Terminal (console)'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-2447577784355160819</id><published>2007-11-30T08:17:00.000-08:00</published><updated>2009-01-29T10:47:51.740-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Phpmyadmin'/><title type='text'>Getting Relational(Designer) view in Phpmyadmin</title><content type='html'>Its just simple....&lt;br /&gt;just go to the phpmyadmin folder&lt;br /&gt;In my case i am using lampp and and the path to phpmyadmin is:&lt;br /&gt;&lt;strong&gt;/opt/lampp/phpmyadmin&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;open the file:&lt;br /&gt;&lt;strong&gt;confing.inc.php&lt;/strong&gt;&lt;br /&gt;&lt;em&gt;Note: You should be root (or use sudo command) to open the file.&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Find the line:&lt;br /&gt;&lt;strong&gt;$cfg['Servers'][$i]['pmadb']         = '';&lt;/strong&gt;&lt;br /&gt;Edit it to: &lt;br /&gt;&lt;strong&gt;$cfg['Servers'][$i]['pmadb']         = 'phpmyadmin';&lt;/strong&gt;&lt;br /&gt;and save the file.&lt;br /&gt;And also conform the the following lines exists and exactly same as below:&lt;br /&gt;&lt;strong&gt;$cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';&lt;br /&gt;$cfg['Servers'][$i]['relation'] = 'pma_relation';&lt;br /&gt;$cfg['Servers'][$i]['table_info'] = 'pma_table_info';&lt;br /&gt;$cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';&lt;br /&gt;$cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';&lt;br /&gt;$cfg['Servers'][$i]['column_info'] = 'pma_column_info';&lt;br /&gt;$cfg['Servers'][$i]['history'] = 'pma_history';&lt;br /&gt;$cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Reopen phpmyadmin and you will get, what you are searching for.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-2447577784355160819?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/2447577784355160819/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=2447577784355160819&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/2447577784355160819'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/2447577784355160819'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2007/11/getting-relationaldesigner-view-in.html' title='Getting Relational(Designer) view in Phpmyadmin'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-8461211953416225179</id><published>2007-11-29T08:40:00.000-08:00</published><updated>2009-01-29T10:32:14.794-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux-howto'/><title type='text'>Limiting the power of Sudoers</title><content type='html'>Basically in linux, a default user "root" have full access to any kind of file (every thing is file in linux, yes! even device!!!). Sometimes it is necessary for other users in the same system to access some file which are inaccessible for him by default. Command "sudo" helps to solve this problem. It is used as follows:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;$sudo &amp;lt;command-inacessable_by_default arguments_if_any&amp;gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;This Sudo command limits the user's power on the basis of the configuration made on the file &lt;strong&gt;"/etc/sudoers"&lt;/strong&gt;.&lt;br /&gt;Generally in default case you might see something like this:&lt;br /&gt;&lt;strong&gt;&lt;em&gt;root    ALL=(ALL) ALL&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;Above, you can see ALL 3 times. But what does it mean? &lt;br /&gt;The first ALL: Run from any(all) host&lt;br /&gt;The Second ALL: From any Terminal&lt;br /&gt;The third ALL: Can Run any command&lt;br /&gt;&lt;br /&gt;So, the line means the "root" run any command from any terminal from any host.&lt;br /&gt;Now, how to change this? Dont ever attempt to change the power of root :) any thing may happen to your system. I cannot predict what will happen, but it is not obviously going to be good.&lt;br /&gt;&lt;br /&gt;Yes, but you can add another user to sudoers list and limit his authority(power).Lets kick off:&lt;br /&gt;&lt;br /&gt;Let me add another user "foo" which can have full acess to "ifconfig" command from current host.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt;foo HOST=(ALL) COMMAND&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;what do you think? will it work. Obviously not.&lt;br /&gt;&lt;br /&gt;What does HOST and COMMAND mean?&lt;br /&gt;HOST is just an alias to host(s), which i defined here.&lt;br /&gt;Similarly COMMAND is a alias to command(s)&lt;br /&gt;&lt;br /&gt;We should also define these aliases in the same file (etc/sudoers)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;em&gt; Host_Alias     HOST = 127.0.0.1&lt;br /&gt; Cmnd_Alias     COMMAND =/sbin/ifconfig&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;If you want to give "foo" to access other commands too. you can simply append the line line with a seperator comma(,). ie:&lt;br /&gt;&lt;strong&gt;&lt;em&gt;Cmnd_Alias     COMMAND =/sbin/ifconfig, &amp;lt;path to other command(1)&amp;gt;,&amp;lt;path to other command(2)&amp;gt;...&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;In similar fashion you can also add add other hosts too.&lt;br /&gt;Further there are other 2 more types of aliases you can define:&lt;br /&gt;&lt;strong&gt;&lt;em&gt;User_Alias&lt;br /&gt; Runas_Alias&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;I hope you got it...&lt;br /&gt;&lt;br /&gt;you can find a detailed info by running the following line in console:&lt;br /&gt;&lt;strong&gt;&lt;em&gt;man sudoers&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;A visual defination of sudo:&lt;br /&gt;&lt;a href="http://howtoxyz.blogspot.com/2007/11/this-is-what-sudo-is.html"&gt;http://howtoxyz.blogspot.com/2007/11/this-is-what-sudo-is.html&lt;/a&gt; :)&lt;br /&gt;&lt;br /&gt;ref: http://www.go2linux.org/sudoers-how-to&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-8461211953416225179?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/8461211953416225179/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=8461211953416225179&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/8461211953416225179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/8461211953416225179'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2007/11/limiting-power-of-sudoers.html' title='Limiting the power of Sudoers'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-709339567353626611</id><published>2007-11-28T12:38:00.000-08:00</published><updated>2009-01-29T10:45:05.359-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux-fun'/><title type='text'>Tux in Text</title><content type='html'>Have you ever seen Text-Art of linux?&lt;br /&gt;In either case you must visit this site, &lt;a href="http://www.100mb.nl/" target="_blank"&gt; http://www.100mb.nl &lt;/a&gt;. This site contains a text picture of the Penguin (the icon of linux).&lt;br /&gt;Great Art. I cannot stop myself to appreciate it.&lt;br /&gt;&lt;br /&gt;If I am not mistaken,the text is the code of linux kernel (Obviously... not complete)&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.100mb.nl/" target="_blank"&gt;Visit it @ http://www.100mb.nl &lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-709339567353626611?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/709339567353626611/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=709339567353626611&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/709339567353626611'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/709339567353626611'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2007/11/tux-in-text.html' title='Tux in Text'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-6284734573247199587</id><published>2007-11-26T13:33:00.000-08:00</published><updated>2009-01-29T10:33:53.879-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Misc'/><title type='text'>check your download speed online...</title><content type='html'>To check your download speed just &lt;a href="http://www.whatismyip.com.np/checkdownlink/" target="_blank"&gt;click here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This site checks your download speed and even gives your ip. It also shows your download speed in graph, comparing with standard connection types.&lt;br /&gt;&lt;a href="http://www.whatismyip.com.np/checkdownlink/" target="_blank"&gt;http://www.whatismyip.com.np/checkdownlink&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Its also provides you to browse anonymously from &lt;a href="http://www.whatismyip.com.np/tools/proxy/" target="_blank"&gt;http://www.whatismyip.com.np/tools/proxy&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;EDIT: This isnt working anymore.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-6284734573247199587?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/6284734573247199587/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=6284734573247199587&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/6284734573247199587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/6284734573247199587'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2007/11/check-your-download-speed-online.html' title='check your download speed online...'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-7096785088118308896</id><published>2007-11-25T11:54:00.000-08:00</published><updated>2009-01-29T10:45:36.904-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux-fun'/><title type='text'>This is what sudo is.</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_A7mX0bIsP7M/R0nTa2sIjwI/AAAAAAAAAD4/lu2ytwgXIXg/s1600-h/sudo.png"&gt;&lt;img style="cursor:pointer; cursor:hand;" src="http://3.bp.blogspot.com/_A7mX0bIsP7M/R0nTa2sIjwI/AAAAAAAAAD4/lu2ytwgXIXg/s320/sudo.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5136869308303445762" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;:)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-7096785088118308896?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/7096785088118308896/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=7096785088118308896&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/7096785088118308896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/7096785088118308896'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2007/11/this-is-what-sudo-is.html' title='This is what sudo is.'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_A7mX0bIsP7M/R0nTa2sIjwI/AAAAAAAAAD4/lu2ytwgXIXg/s72-c/sudo.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-3259175000916331921</id><published>2007-11-25T11:11:00.000-08:00</published><updated>2009-01-29T10:34:37.364-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Netbeans'/><title type='text'>Configuring Netbeans to new look and feel</title><content type='html'>Everybody wants to be unique. Isn't it...&lt;br /&gt;I too want. I changed the default look and feel of the &lt;a href="http://www.netbeans.org" target="_blank"&gt;netbeans&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;strong&gt;Adding theme&lt;/strong&gt;&lt;/u&gt;&lt;br /&gt;&lt;div class="output"&gt;&amp;lt;path to netbeans&amp;gt;/netbeans -cp:p ${substance}\substance.jar&lt;br /&gt;-laf org.jvnet.substance.SubstanceLookAndFeel&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;strong&gt;Adding Watermark&lt;/strong&gt;&lt;/u&gt;&lt;br /&gt;&lt;div class="output"&gt;"&amp;lt;path to netbeans&amp;gt;/netbeans" -J-Dsubstancelaf.watermark = org.jvnet.substance.watermark.SubstanceKatakanaWatermark&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;strong&gt;Changing buttons laf&lt;/strong&gt;&lt;/u&gt;&lt;br /&gt;"&amp;lt;path to netbeans&amp;gt;/netbeans" &lt;br /&gt;-J-Dsubstancelaf.gradientPainter=org.jvnet.substance.painter.WaveGradientPainter&lt;br /&gt;&lt;br /&gt;Note: I am using the substance look and feel. You can download it from &lt;a href="https://substance.dev.java.net/servlets/ProjectDocumentList" target="_blank"&gt;https://substance.dev.java.net/servlets/ProjectDocumentList&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;And finally here is what i am using recently,&lt;br /&gt;&lt;div class="output"&gt;/opt/netbeans-5.5/bin/netbeans" -cp:p /opt/mymodules/substance/lib/substance.jar -laf org.jvnet.substance.SubstanceLookAndFeel -J -Dsubstancelaf.watermark = org.jvnet.substance.watermark.SubstanceBinaryWatermark&lt;/div&gt;&lt;br /&gt;Yea I have my netbeans in /opt folder and i run linux in my system.&lt;br /&gt;&lt;br /&gt;With similar options you can also change java's default laf.&lt;br /&gt;&lt;br /&gt;for more detail info:&lt;a href="http://www.netbeans.org/kb/41/substance-look-and-feel.html" target="_blank"&gt;laf@netbeans&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-3259175000916331921?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/3259175000916331921/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=3259175000916331921&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/3259175000916331921'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/3259175000916331921'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2007/11/configuring-netbeans-to-new-look-and.html' title='Configuring Netbeans to new look and feel'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-2339919055232288391</id><published>2007-11-25T10:49:00.000-08:00</published><updated>2009-01-29T10:34:57.128-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux-tips'/><title type='text'>Opening file as root with just few clicks...</title><content type='html'>[I tested it in ubuntu]&lt;br /&gt;For basic user, I hope need not to go to terminal for any of of the region beside editing a file as root. You might feel bored about this. Here's a handy shortcut... ( yea, you wont need to go to terminal each time.)&lt;br /&gt;&lt;br /&gt;First goto to the following directory create a file.&lt;br /&gt;&lt;strong&gt;/home/&amp;lt;current_user&amp;gt;/.gnome2/nautilus-scripts&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;create a file with name "Open as root"&lt;br /&gt;and copy and paste all this code into the file:&lt;br /&gt;&lt;strong&gt;for a in $NAUTILUS_SCRIPT_SELECTED_URIS; do&lt;br /&gt;gksudo "gnome-open $a" &amp;&lt;br /&gt;done&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;and save that.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;and its done...&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Right click&lt;/strong&gt; on any file/ folder while browsing from &lt;strong&gt;"nautilus"&lt;/strong&gt; and goto the &lt;strong&gt;Scripts&lt;/strong&gt; menu and select &lt;strong&gt;"Open as root"&lt;/strong&gt; .... give your password to open it.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;Note: You should be in sudo-ers list to accomplish this.&lt;/em&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-2339919055232288391?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/2339919055232288391/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=2339919055232288391&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/2339919055232288391'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/2339919055232288391'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2007/11/opening-file-as-root-with-just-few.html' title='Opening file as root with just few clicks...'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-3102354553009236267</id><published>2007-11-19T10:22:00.000-08:00</published><updated>2009-05-08T00:36:46.816-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Misc'/><title type='text'>!0 mins email</title><content type='html'>yea an email-address for only 10 mins. Is this of any use. yea, let me explain.&lt;br /&gt;Have you ever registered for any site, that require an email address for just verification purpose. Obviously it will verify you, but beside this you end up getting spam-email in your inbox too. For this case you can use the e-mail address given by &lt;a href="http://10minutemail.com" target="_blank"&gt;http://10minutemail.com&lt;/a&gt;. You can check the mail received and reply too. If required you can even extend the lifetime of the email for 10 more mins.&lt;br /&gt;&lt;br /&gt; Get a 10-min email-address at: &lt;a href="http://10minutemail.com" target="_blank"&gt;http://10minutemail.com&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-3102354553009236267?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/3102354553009236267/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=3102354553009236267&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/3102354553009236267'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/3102354553009236267'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2007/11/0-mins-email.html' title='!0 mins email'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-3213187049759971819</id><published>2007-10-28T10:16:00.000-07:00</published><updated>2009-01-29T10:37:02.960-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux-howto'/><title type='text'>batch resizing images in linux</title><content type='html'>we often need to decrease the image size before uploading. You must be using some graphical software to resize them. Its not that tedious if its one or two but what if you have to resize a large numbers of images!!!. This is what i do.&lt;br /&gt;&lt;br /&gt;Basically two commands are used here.&lt;br /&gt;1. djpeg - decompress a JPEG file to an image file&lt;br /&gt;2. cjpeg - compress an image file to a JPEG file&lt;br /&gt;&lt;br /&gt;So to resize, i run this script on a folder containing the image files.&lt;br /&gt;&lt;br /&gt;#!/bin/sh&lt;br /&gt;&lt;br /&gt;mkdir resized&lt;br /&gt;for i in *.JPG&lt;br /&gt;do&lt;br /&gt;echo 'Resizing image..' $i&lt;br /&gt;djpeg -scale 1/2 $i | cjpeg &gt; resized/$i&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;After script is done, a folder named 'resized' is created containing the resized images.&lt;br /&gt;&lt;br /&gt;Note:&lt;br /&gt;Both djpeg and cjpeg aren't installed by default, they're part of libjpeg-progs package. Under Ubuntu you can get it by&lt;br /&gt;&lt;br /&gt;sudo apt-get install libjpeg-progs&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;(source: jwalanta.blogspot.com)&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-3213187049759971819?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/3213187049759971819/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=3213187049759971819&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/3213187049759971819'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/3213187049759971819'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2007/10/batch-resizing-images-in-linux.html' title='batch resizing images in linux'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-332693110849937852</id><published>2007-09-29T13:14:00.000-07:00</published><updated>2009-01-29T10:49:48.895-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Switching'/><title type='text'>switch from xp to linux,</title><content type='html'>I know its was not easy for me to switch from xp to linux(ubuntu). The first thing that made me difficult was that there was not any type of media-player that could play my mp3-library. Though there was totem movie player it didnt played my library due to missing codec.&lt;br /&gt;The next first thing that made me difficult to use linux was the name given to applications. Most of them were irrelevant for me. Lets take "amarok", it didnt have any significant meaning (at least not for me). I heard its name from my friend and got to know that it was audio-player.&lt;br /&gt;There were so many of other problems i faced that include burining a disk,installing from tar.gz or tar.bz2 by making own compilation, or using internet, etc&lt;br /&gt;&lt;br /&gt;Though i found it a bit later after i switched to linux. This link was very helpful for me.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.linuxalt.com/" Target="_blank"&gt;The Linux alternative project&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="#ff0000"&gt;Edit:&lt;/font&gt;&lt;br /&gt;One More:&lt;br /&gt;&lt;a href="http://www.webi.org/osalternative.html" Target="_blank"&gt;http://www.webi.org/osalternative.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-332693110849937852?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/332693110849937852/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=332693110849937852&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/332693110849937852'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/332693110849937852'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2007/09/switch-from-xp-to-linux.html' title='switch from xp to linux,'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-1371460348593853715</id><published>2007-09-27T12:07:00.000-07:00</published><updated>2009-01-29T10:38:40.724-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Misc'/><title type='text'>real-time traffic data on your blog/site</title><content type='html'>You might be wondering, is there any service provider that serves real-time traffic data in your site. The answer is yes, &lt;br /&gt;And here is the solution&lt;br /&gt;&lt;br /&gt;&lt;a href="http://feedjit.com/"&gt;http://feedjit.com/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;you can also see it aside in this blog.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-1371460348593853715?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/1371460348593853715/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=1371460348593853715&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/1371460348593853715'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/1371460348593853715'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2007/09/real-time-traffic-data-on-your-blogsite.html' title='real-time traffic data on your blog/site'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-6239659120969740174</id><published>2007-09-13T08:25:00.000-07:00</published><updated>2009-01-29T10:38:56.937-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Misc'/><title type='text'>How to Download From YouTube?</title><content type='html'>Just copy the link location of your video from you tube.&lt;br /&gt;&lt;br /&gt;And Open any of the following site and Enter your link to &lt;span style="font-weight:bold;"&gt;youTube Video&lt;/span&gt; there.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://video.qooqle.jp/dl/" target="blank"&gt;http://video.qooqle.jp/dl/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.kissyoutube.com" target="blank"&gt;http://www.kissyoutube.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can also use extension for mozilla internet explorer. You can get the extension here;&lt;br /&gt;&lt;a href="http://javimoya.com/blog/youtube_en.php" target="blank"&gt;http://javimoya.com/blog/youtube_en.php&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-6239659120969740174?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/6239659120969740174/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=6239659120969740174&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/6239659120969740174'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/6239659120969740174'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2007/09/how-to-download-from-youtube.html' title='How to Download From YouTube?'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5221947840660016642.post-4759194986750473844</id><published>2007-08-12T11:08:00.000-07:00</published><updated>2009-01-29T10:40:12.320-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Misc'/><title type='text'>How to hide your file?</title><content type='html'>&lt;span style="font-weight:bold;"&gt;This howto is for Microsoft OS'es only.&lt;/span&gt;&lt;br /&gt;1.Gather your image and the files you wish to lodge into it. Here I have a meeting.txt which which I will slap inside my secret.jpg &lt;br /&gt;&lt;br /&gt;2.Add the files you want to hide into a new RAR archive &lt;br /&gt;Open Command Prompt &lt;br /&gt;&lt;br /&gt;3.Go to the folder where your files are located, in this case 'C:\hidden' &lt;br /&gt;Type 'copy /b secret.jpg + meeting.txt.rar lizard.jpg' where secret.jpg is the original picture, meeting.txt.rar is the file to be hidden, and lizard.jpg is the file which contains both. &lt;br /&gt;&lt;br /&gt;4.Test the JPG by opening it, and verifying it still opens. If it does, try opening the file with WinRar! &lt;br /&gt;&lt;br /&gt;5.The completed RAR file!&lt;br /&gt;&lt;br /&gt;The link to the original page:&lt;br /&gt;http://www.thetechtray.net/2007/05/30/hiding-files-in-jpegs&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5221947840660016642-4759194986750473844?l=howtoxyz.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://howtoxyz.blogspot.com/feeds/4759194986750473844/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5221947840660016642&amp;postID=4759194986750473844&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/4759194986750473844'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5221947840660016642/posts/default/4759194986750473844'/><link rel='alternate' type='text/html' href='http://howtoxyz.blogspot.com/2007/08/how-to-hide-your-file.html' title='How to hide your file?'/><author><name>Suraj Sapkota</name><uri>http://www.blogger.com/profile/15256778858506568218</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
