<?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-8380149803912347063</id><updated>2011-11-28T06:48:29.772-08:00</updated><category term='Printing'/><category term='Lenny'/><category term='Fedora'/><category term='opencv'/><category term='Desktop'/><category term='gdb'/><category term='cygwin'/><category term='PDF'/><category term='Debian'/><category term='Gimp'/><category term='Image'/><category term='Images'/><category term='Basics'/><category term='bash'/><category term='Plotting'/><category term='VLC'/><category term='linux commands'/><category term='Jaunty'/><category term='GCC'/><category term='VoIP'/><category term='Flash'/><category term='Data backup'/><category term='General'/><category term='Chrome'/><category term='vim'/><category term='Communication'/><category term='Ubuntu'/><category term='Softwares'/><category term='computing'/><category term='hardware'/><title type='text'>Linux adventures</title><subtitle type='html'>Its about GNU/LINUX, Free softwares, Open Source and above all living with them ....</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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>39</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8380149803912347063.post-8931318569449020883</id><published>2011-02-12T03:49:00.001-08:00</published><updated>2011-02-12T03:49:35.863-08:00</updated><title type='text'>Preserving image size while converting from PS to PDF</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;$ ps2pdf -dEPSCrop file.ps&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-8931318569449020883?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/8931318569449020883/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=8931318569449020883' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/8931318569449020883'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/8931318569449020883'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2011/02/preserving-image-size-while-converting.html' title='Preserving image size while converting from PS to PDF'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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-8380149803912347063.post-8137180895726241401</id><published>2010-08-15T22:58:00.000-07:00</published><updated>2010-08-15T23:11:05.650-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PDF'/><title type='text'>Working with PDFs</title><content type='html'>Join PDF files using &lt;b&gt;ghostscript&lt;/b&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=finished.pdf file1.pdf file2.pdf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Merge Two or More PDFs into a New Document using &lt;b&gt;PDFtk&lt;/b&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;tt&gt;pdftk 1.pdf 2.pdf 3.pdf cat output 123.pdf&lt;/tt&gt;&lt;/blockquote&gt;or (Using Handles):&lt;br /&gt;&lt;blockquote&gt;&lt;tt&gt;pdftk A=1.pdf B=2.pdf cat A B output 12.pdf&lt;/tt&gt;&lt;/blockquote&gt;or (Using Wildcards):&lt;br /&gt;&lt;blockquote&gt;&lt;tt&gt;pdftk *.pdf cat output combined.pdf&lt;/tt&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-8137180895726241401?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/8137180895726241401/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=8137180895726241401' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/8137180895726241401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/8137180895726241401'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2010/08/working-with-pdfs.html' title='Working with PDFs'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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-8380149803912347063.post-5236533582374784090</id><published>2010-06-09T05:24:00.000-07:00</published><updated>2010-06-09T05:24:08.557-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><title type='text'>Processes keeping your device busy while Unmounting</title><content type='html'>&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Many a times, when you are trying to unmount your usb device, you find it busy and can't figure out what process is keeping it busy. Some of the commands which can help you in this matter are "fuser" and "lsof".&amp;nbsp;&lt;b&gt;fuser&lt;/b&gt;&amp;nbsp;displays the PID of processes using specified files or file systems.&amp;nbsp;&lt;b&gt;lsof&amp;nbsp;&lt;/b&gt;&amp;nbsp;list the open files. &amp;nbsp;Just observe the output of my lsof command:&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;[Wed Jun 09|swg@insane:intel]$ lsof |grep Transcend&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;bash &amp;nbsp; &amp;nbsp; &amp;nbsp; 8619 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;swg &amp;nbsp;cwd &amp;nbsp; &amp;nbsp; &amp;nbsp; DIR &amp;nbsp; &amp;nbsp; &amp;nbsp; 8,17 &amp;nbsp; &amp;nbsp; 4096 &amp;nbsp; &amp;nbsp; &amp;nbsp;470 /media/Transcend/intel&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;lsof &amp;nbsp; &amp;nbsp; &amp;nbsp;13006 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;swg &amp;nbsp;cwd &amp;nbsp; &amp;nbsp; &amp;nbsp; DIR &amp;nbsp; &amp;nbsp; &amp;nbsp; 8,17 &amp;nbsp; &amp;nbsp; 4096 &amp;nbsp; &amp;nbsp; &amp;nbsp;470 /media/Transcend/intel&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;grep &amp;nbsp; &amp;nbsp; &amp;nbsp;13007 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;swg &amp;nbsp;cwd &amp;nbsp; &amp;nbsp; &amp;nbsp; DIR &amp;nbsp; &amp;nbsp; &amp;nbsp; 8,17 &amp;nbsp; &amp;nbsp; 4096 &amp;nbsp; &amp;nbsp; &amp;nbsp;470 /media/Transcend/intel&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;lsof &amp;nbsp; &amp;nbsp; &amp;nbsp;13008 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;swg &amp;nbsp;cwd &amp;nbsp; &amp;nbsp; &amp;nbsp; DIR &amp;nbsp; &amp;nbsp; &amp;nbsp; 8,17 &amp;nbsp; &amp;nbsp; 4096 &amp;nbsp; &amp;nbsp; &amp;nbsp;470 /media/Transcend/intel&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Transcend is my usb device which I want to unmount and it is giving me a 'device busy' error. I find that "current working directory" is accessing the this device apart from the other two commands about which I am aware of. &amp;nbsp;Hence, I need to come out of this directory called "/media/Transcend/intel" and do an unmount on the usb device.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-5236533582374784090?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/5236533582374784090/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=5236533582374784090' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/5236533582374784090'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/5236533582374784090'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2010/06/processes-keeping-your-device-busy.html' title='Processes keeping your device busy while Unmounting'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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-8380149803912347063.post-32379539260871677</id><published>2010-06-07T05:02:00.000-07:00</published><updated>2010-06-07T05:03:16.622-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Lenny'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian'/><category scheme='http://www.blogger.com/atom/ns#' term='Printing'/><title type='text'>Printing to a Samsung SCX-4300 printer shared on Windows XP from Debian Lenny</title><content type='html'>I got a Samsung SCX-4300 multi-function printer at my office. Currently, it is connected to a windows machine through a USB cable. I wanted to be able to use it as a network printer for my Debian laptop. After a bit of search on google, I could find a solution that worked for me. I must thank Anupam for helping me out during this process. I derived my understanding from &lt;a href="http://www.linuxquestions.org/questions/linux-software-2/printing-from-my-debian-box-to-a-printer-on-windows-xp-750876/"&gt;this&lt;/a&gt; page and this article summarizes the steps that I followed.&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Install &amp;nbsp;"smbclient (including Samba)" and "cups" related packages using APT.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;I share the printer on windows machine as "EE-Print". I connect to it through samba client using following command:&lt;br /&gt;&lt;br /&gt;$ smbclient -L EE-Print&lt;br /&gt;Enter swg's password:&lt;br /&gt;Domain=[EE-PRINT] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Sharename &amp;nbsp; &amp;nbsp; &amp;nbsp; Type &amp;nbsp; &amp;nbsp; &amp;nbsp;Comment&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;--------- &amp;nbsp; &amp;nbsp; &amp;nbsp; ---- &amp;nbsp; &amp;nbsp; &amp;nbsp;-------&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;E$ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Disk &amp;nbsp; &amp;nbsp; &amp;nbsp;Default share&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;IPC$ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IPC &amp;nbsp; &amp;nbsp; &amp;nbsp; Remote IPC&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;print$ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Disk &amp;nbsp; &amp;nbsp; &amp;nbsp;Printer Drivers&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;SharedDocs &amp;nbsp; &amp;nbsp; &amp;nbsp;Disk &amp;nbsp; &amp;nbsp; &lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;G$ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Disk &amp;nbsp; &amp;nbsp; &amp;nbsp;Default share&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Printer3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Printer &amp;nbsp; HP LaserJet P2050 Series PCL6&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Printer4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Printer &amp;nbsp; Network Printer&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Printer5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Printer &amp;nbsp; HP LaserJet 5&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;F$ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Disk &amp;nbsp; &amp;nbsp; &amp;nbsp;Default share&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;ADMIN$ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Disk &amp;nbsp; &amp;nbsp; &amp;nbsp;Remote Admin&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;C$ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Disk &amp;nbsp; &amp;nbsp; &amp;nbsp;Default share&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Samsung &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Printer &amp;nbsp; Samsung SCX-4300 Series&lt;br /&gt;&lt;br /&gt;Domain=[EE-PRINT] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Server &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Comment&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;--------- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-------&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Workgroup &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Master&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Now we open the browser and open the CUPS web-interface by typing in the following URL:&lt;br /&gt;http://localhost:631/&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Now add a new printer, give a name to it and&amp;nbsp;&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;"&gt;Set the device type to "Windows Printer via SAMBA".&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;"&gt;Set the URI which includes the name that was listed earlier by smbclient, for example something like "smb://EE-Print/Samsung". If the printer is passworded, you would use something like "smb://username:password@EE-Print/Samsung".&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;"&gt;You need to install linux driver for the printer "Samsung SCX-4300". The linux driver can be downloaded from the Samsung's official &lt;a href="http://www.samsung.com/hk_en/consumer/detail/detail.do?tab=support&amp;amp;group=computer-peripherals&amp;amp;dType=D&amp;amp;type=printers-multifunction&amp;amp;menu2=detail&amp;amp;menu=download&amp;amp;cttID=2161671&amp;amp;disp_nm=SCX-4300&amp;amp;model_nm=SCX-4300&amp;amp;model_cd=SCX-4300/XSS&amp;amp;language=&amp;amp;subtype=monochrome-laser-multifunction-printers-faxes&amp;amp;mType=DR&amp;amp;prd_ia_cd=06010300&amp;amp;vType=&amp;amp;cate_type=all"&gt;site&lt;/a&gt;. Untar the pack and run the "autorun" script file as a root. It has a gui interface which guides through various installation process. Currently install it as a local usb based printer.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;"&gt;Once you have installed the driver, restart the CUPS server and click on "modify properties" option for the printer. When it asks for a driver, then select "Samsung scx-4300 series" from the drop down menu. It will now ask for the root username and password. Remember to enter "root" in the username field and give root password in the password field.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;"&gt;Now you should be able to print your test page.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-32379539260871677?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/32379539260871677/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=32379539260871677' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/32379539260871677'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/32379539260871677'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2010/06/printing-to-samsung-scx-4300-printer.html' title='Printing to a Samsung SCX-4300 printer shared on Windows XP from Debian Lenny'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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-8380149803912347063.post-2727554675657084371</id><published>2010-04-12T08:08:00.000-07:00</published><updated>2010-04-13T20:17:58.351-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Lenny'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian'/><title type='text'>Reliance NetConnect Broadband on Debian Lenny</title><content type='html'>Instructions for meant for people in India. Apart from the vendor information, other things should work for just anyone and anywhere.&lt;br /&gt;&lt;br /&gt;Useful Links:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;a href="http://www.zyxware.com/articles/1341/installing-reliance-plug-and-play-netconnect-in-debian-lenny-and-variants-like-ubuntu-mint"&gt;Link1&lt;/a&gt;. The usb_modeswitch can be downloaded from this &lt;a href="http://www.draisberghof.de/usb_modeswitch/"&gt;link&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;&lt;a href="http://peeths-workspace.blogspot.com/2009/04/reliance-netconnect-usb-card-on-linux.html"&gt;Link2&lt;/a&gt;.&amp;nbsp;&lt;/li&gt;&lt;li&gt;&lt;a href="http://icewalkerz.blogspot.com/2009/08/configuring-reliance-netconnect-on.html"&gt;Link3&lt;/a&gt;.&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Basic steps are as follows:&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Install &lt;b&gt;usb_modeswitch&lt;/b&gt; package. You need to have tcl and libusb (along with the headers) installed on your system. Go through the README that comes with the usb_modeswitch package.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Plugin your reliance netconnect device and run "lsusb" to find it vendor and product id.&lt;br /&gt;&lt;br /&gt;$ lsusb&lt;br /&gt;Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub&lt;br /&gt;Bus 003 Device 002: ID 064e:a101 Suyin Corp. Acer CrystalEye Webcam&lt;br /&gt;Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub&lt;br /&gt;Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub&lt;br /&gt;Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub&lt;br /&gt;Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub&lt;br /&gt;&lt;b&gt;Bus 005 Device 006: ID 12d1:140b Huawei Technologies Co., Ltd. EC1260 Wireless Data Modem HSD USB Card&lt;/b&gt;&lt;br /&gt;Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub&lt;br /&gt;Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Copy following lines to /etc/usb_modeswitch.conf&lt;br /&gt;&lt;br /&gt;# Huawei EC1260&lt;br /&gt;DefaultVendor= 0x12d1&lt;br /&gt;DefaultProduct=0x140b&lt;br /&gt;TargetClass=0xff &lt;br /&gt;CheckSuccess=20&lt;br /&gt;HuaweiMode=1&lt;br /&gt;&lt;br /&gt;I don't know much about the last 3 items. I copied the contents from a file named "12d1:1414" inside the folder /etc/usb_modeswitch.d/. Now run following command:&lt;br /&gt;&lt;br /&gt;$ sudo usb_modeswitch -c /etc/usb_modeswitch.conf&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Install the packages "&lt;b&gt;wvdial&lt;/b&gt;" and "&lt;b&gt;gnome-ppp&lt;/b&gt;" using synaptic manager (apt-get). You can download the packages manually as stated in the second link above. However, you may face dependency issue.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #404040; font-family: monospace; font-size: 12px; line-height: 20px;"&gt;$ sudo modprobe usbserial vendor=0x12d1 product=0x140b&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;$ sudo wvdialconf&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Now edit the file /etc/wvdial.conf and add additional lines if you have to. Some of these lines are generated automatically by wvdialconf and hence you should not delete any of these. You should add your phone number, username and password and last few lines if necessary.&lt;br /&gt;&lt;br /&gt;[Dialer Defaults]&lt;br /&gt;Init1 = ATZ&lt;br /&gt;Init2 = ATQ0 V1 E1 S0=0 &amp;amp;C1 &amp;amp;D2 +FCLASS=0&lt;br /&gt;Modem Type = Analog Modem&lt;br /&gt;Phone = #777&lt;br /&gt;ISDN = 0&lt;br /&gt;New PPPD = yes&lt;br /&gt;Modem = /dev/ttyUSB0&lt;br /&gt;Username = 93xxxxxxxx&lt;br /&gt;Password = 93xxxxxxxx&lt;br /&gt;Baud = 9600&lt;br /&gt;Stupid Mode = 1&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #404040; font-family: monospace; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 20px;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: 'Times New Roman';"&gt;&lt;span class="Apple-style-span" style="font-size: medium; line-height: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="color: #404040; font-family: monospace; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 20px;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: 'Times New Roman';"&gt;&lt;span class="Apple-style-span" style="font-size: medium; line-height: normal;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;Now you should be ready to test your network connection. On a console, run the following command:&lt;/span&gt; &lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; $ sudo wvdial&lt;br /&gt;&lt;br /&gt;--&amp;gt; WvDial: Internet dialer version 1.60&lt;br /&gt;--&amp;gt; Warning: section [Dialer netconnect] does not exist in wvdial.conf.&lt;br /&gt;--&amp;gt; Warning: inherited section [Modem0] does not exist in wvdial.conf&lt;br /&gt;--&amp;gt; Cannot get information for serial port.&lt;br /&gt;--&amp;gt; Initializing modem.&lt;br /&gt;--&amp;gt; Sending: ATZ&lt;br /&gt;ATZ&lt;br /&gt;OK&lt;br /&gt;--&amp;gt; Sending: ATQ0 V1 E1 S0=0 &amp;amp;C1 &amp;amp;D2 +FCLASS=0&lt;br /&gt;ATQ0 V1 E1 S0=0 &amp;amp;C1 &amp;amp;D2 +FCLASS=0&lt;br /&gt;OK&lt;br /&gt;--&amp;gt; Modem initialized.&lt;br /&gt;--&amp;gt; Sending: ATDT#777&lt;br /&gt;--&amp;gt; Waiting for carrier.&lt;br /&gt;ATDT#777&lt;br /&gt;CONNECT&lt;br /&gt;--&amp;gt; Carrier detected. &amp;nbsp;Starting PPP immediately.&lt;br /&gt;--&amp;gt; Starting pppd at Mon Apr 12 18:32:25 2010&lt;br /&gt;--&amp;gt; Pid of pppd: 17509&lt;br /&gt;--&amp;gt; Using interface ppp0&lt;br /&gt;--&amp;gt; pppd: ��[06][08]P�[06][08]&lt;br /&gt;--&amp;gt; pppd: ��[06][08]P�[06][08]&lt;br /&gt;--&amp;gt; pppd: ��[06][08]P�[06][08]&lt;br /&gt;--&amp;gt; pppd: ��[06][08]P�[06][08]&lt;br /&gt;--&amp;gt; local &amp;nbsp;IP address 115.184.110.26&lt;br /&gt;--&amp;gt; pppd: ��[06][08]P�[06][08]&lt;br /&gt;--&amp;gt; remote IP address 220.224.141.145&lt;br /&gt;--&amp;gt; pppd: ��[06][08]P�[06][08]&lt;br /&gt;--&amp;gt; primary &amp;nbsp; DNS address 202.138.103.100&lt;br /&gt;--&amp;gt; pppd: ��[06][08]P�[06][08]&lt;br /&gt;--&amp;gt; secondary DNS address 202.138.96.2&lt;br /&gt;--&amp;gt; pppd: ��[06][08]P�[06][08]&lt;/span&gt;  &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Keep it running on the console. You configure your network manager (system-&amp;gt;admin-&amp;gt;network) &amp;nbsp;to use "PPP" connection as a default mode for connecting the internet. You may think of disabling other connections. For PPP connection, under general tab, check the box "Enable this connection" and select "serial modem" as the connection type. You can also fill in the phone number along with username and password. Under modem tab, it uses /dev/modem as the port (I don't know if it is correct). Under options, I have checked the box "set modem as default route to internet".&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-2727554675657084371?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/2727554675657084371/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=2727554675657084371' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/2727554675657084371'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/2727554675657084371'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2010/04/reliance-netconnect-broadband-on-debian.html' title='Reliance NetConnect Broadband on Debian Lenny'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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-8380149803912347063.post-2138300865893373711</id><published>2010-03-28T22:50:00.000-07:00</published><updated>2010-03-29T17:16:10.579-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vim'/><category scheme='http://www.blogger.com/atom/ns#' term='gdb'/><title type='text'>Vim, GDB</title><content type='html'>In this aspect, Emacs has a better GDB interface. The best interface for using GDB with vim seems to be &lt;a href="http://clewn.sourceforge.net/"&gt;the clewn project&lt;/a&gt;. The installation is fairly easy. &lt;a href="http://chunhao.net/blog/how-to-connect-vim-with-gdb-using-clewn"&gt;This&lt;/a&gt; page describes the process of installing and using gdb with vim. However, Clewn works only with gvim and not with vim. If you are using vim on a console, you need to recompile vim with vimgdb patch. The process is described on the Clewn webpage. You can click&amp;nbsp;&lt;a href="http://clewn.sourceforge.net/install.html#vimgdb"&gt;here&lt;/a&gt;&amp;nbsp;. This option is little cumbersome as one has to download the source and compile it with the vimgdb patch. Since I like gvim, I prefer to use clewn.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-2138300865893373711?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/2138300865893373711/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=2138300865893373711' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/2138300865893373711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/2138300865893373711'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2010/03/vim-gdb.html' title='Vim, GDB'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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-8380149803912347063.post-2583583396632439647</id><published>2010-03-25T02:13:00.000-07:00</published><updated>2010-03-28T23:11:25.177-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vim'/><title type='text'>VIM, auto Completion</title><content type='html'>IF you are only interested in auto-completing long words as you type, then you look &lt;a href="http://www.linux.org/docs/ldp/howto/C-editing-with-VIM-HOWTO/auto-complete.html"&gt;here&lt;/a&gt;. &amp;nbsp; Basically it says :&lt;br /&gt;&lt;br /&gt;&lt;i&gt;The function A_Very_Long_Function_Name() can be quite exasperating to type over and over again. While still in &lt;b&gt;insert-mode&lt;/b&gt;, one can auto-complete a word by either searching forwards or backwards. In function, Another_Function() one can type A_Very... and hit&amp;nbsp;&lt;/i&gt;&lt;b class="KEYCAP"&gt;&lt;i&gt;CTRL-P&lt;/i&gt;&lt;/b&gt;&lt;i&gt;. The first matching word will be displayed first. In this case it would be A_Very_Long_Variable_Name. To complete it correctly, one can hit&amp;nbsp;&lt;/i&gt;&lt;b class="KEYCAP"&gt;&lt;i&gt;CTRL-P&lt;/i&gt;&lt;/b&gt;&lt;i&gt;again and the search continues upwards to the next matching word, which is A_Very_Long_Function_Name. As soon as the correct word is matched you can continue typing. VIM remains in &lt;b&gt;insert-mode&lt;/b&gt; during the entire process.&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;However, if you are interested in having declarations for all functions available in C++ or in a library, you need to use &lt;b&gt;ctags. &amp;nbsp;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;A very good explanation of the process to set it up is available &lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;a href="http://blogs.gnome.org/lharris/2008/07/20/code-completion-with-vim-7/"&gt;here&lt;/a&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;. It is quite long. I would just enumerate the steps for the sake of brevity. I tried it on both Debian 5.0 and Ubuntu 9.10 and it works perfectly.&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Install exuberant-ctags&lt;br /&gt;&lt;br /&gt;$ sudo apt-get install ctags&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Download &lt;a href="http://www.vim.org/scripts/script.php?script_id=1520"&gt;omnicppcomplete&lt;/a&gt; package and extract the zip file into your ~/.vim/ folder. After this .vim folder should look something like this. It may contain other folders depending on the original content of your .vim folder. IF you don't have a .vim folder in your home directory, then create now.&lt;br /&gt;&lt;br /&gt;$ cd ~/.vim&lt;br /&gt;$ ls&lt;br /&gt;after &amp;nbsp;autoload &amp;nbsp;doc &amp;nbsp;ftplugin omnicppcomplete-0.41.zip&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Generate tags for C++ . ctags generates a file called "tags". You should rename it to something like "cpp.tags". You can have different such files for different libraries.&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: monospace;"&gt;$ ctags -R --c++-kinds=+p --fields=+iaS --extra=+q /usr/include/c++&lt;br /&gt;$ mv tags cpp.tags&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Now add following lines to ~/.vimrc file&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: monospace;"&gt;set tags+=~/.vim/cpp.tags&lt;br /&gt;set nocp&lt;br /&gt;filetype plugin on&lt;br /&gt;map&amp;nbsp;&lt;c-f6&gt;&amp;nbsp;&lt;c-f6&gt;:!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .&lt;br /&gt;&lt;br /&gt;Last command maps CTRL-F6 to generate tags in the current directory directly from vim editor.&lt;br /&gt;&lt;br /&gt;&lt;/c-f6&gt;&lt;/c-f6&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="Apple-style-span" style="font-family: monospace;"&gt;Open Vim and run following command to see the help files related omnicomplete.&lt;br /&gt;&lt;br /&gt;:helptags $HOME/.vim/doc&lt;br /&gt;:h omnicppcomplete&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman';"&gt;&lt;span class="Apple-style-span" style="font-family: monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-2583583396632439647?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/2583583396632439647/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=2583583396632439647' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/2583583396632439647'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/2583583396632439647'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2010/03/vim-command-completion.html' title='VIM, auto Completion'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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-8380149803912347063.post-5387814619022183198</id><published>2010-03-14T22:36:00.000-07:00</published><updated>2010-03-14T22:36:37.931-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Printing'/><title type='text'>Printing text files : a2ps</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Usually it is easier to convert a text file directly into PS files and then into a pdf file.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;$ a2ps -R &amp;nbsp;-1 -o abc.ps abc.cpp&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;$ ps2pdf abc.ps abc.pdf&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;-1 : &amp;nbsp;Predefined layout: 1 x 1 portrait, 80 chars/line, major rows (i.e. alias for&amp;nbsp;&lt;/span&gt;&lt;samp&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;`&lt;/span&gt;--columns=1 --rows=1 --portrait --chars-per-line=80 --major=row&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;s'&lt;/span&gt;&lt;/samp&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;-o : Output file&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-5387814619022183198?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/5387814619022183198/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=5387814619022183198' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/5387814619022183198'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/5387814619022183198'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2010/03/printing-text-files-a2ps.html' title='Printing text files : a2ps'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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-8380149803912347063.post-1591068084600105172</id><published>2010-03-08T00:38:00.000-08:00</published><updated>2010-03-08T00:38:33.633-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Lenny'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian'/><title type='text'>Installing Debian Lenny from a USB flash disk</title><content type='html'>I tried the instructions available at this &lt;a href="http://www.debian.org/releases/stable/i386/ch04s03.html.en"&gt;link&lt;/a&gt; and it worked for me. I will just summarize the steps that I followed . &amp;nbsp;I am assuming that&amp;nbsp;your flash disk is identified as /dev/sdf by your system. (Check dmesg output). If you have a bigger disk, you can create multiple partitions using fdisk. We will use /dev/sdf1 for our discussion.&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Create a Fat16 partition using fdisk. Some information about this is available &lt;a href="http://www.debuntu.org/how-to-install-ubuntu-linux-on-usb-bar"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;# umount /dev/sdf1&lt;br /&gt;# mkdosfs /dev/sdf1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Use syslinux as a boot loader&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;# syslinux /dev/sdf1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Download the current Debian hd-media installer images from &lt;a href="http://ftp.debian.org/debian/dists/lenny/main/installer-i386/current/images/hd-media/"&gt;here&lt;/a&gt;. &amp;nbsp;Download vmlinuz, initrd.gz from this page.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Download the current Debian netinstall cd image from &lt;a href="http://ftp.de.debian.org/debian-cd/current/i386/iso-cd/"&gt;here&lt;/a&gt;. &amp;nbsp;Note that the versions of these two images must match.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Copy necessary files into the disk&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;# mount /dev/sdf1 /mnt/usb&lt;br /&gt;# cp vmlinuz /mnt/usb/&lt;br /&gt;# cp initrd.gz /mnt/usb/&lt;br /&gt;# cp debian-504-i386-netinst.iso /mnt/usb&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Create 'syslinux.cfg' file inside /mnt/usb/ containing following lines :&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;default vmlinuz&lt;br /&gt;append initrd=initrd.gz&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Now unmount the usb disk and fix or create the mbr&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;# umount /dev/sdf1&lt;br /&gt;#install-mbr /dev/sdf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Now plug into the system where you want to install Debian. You need to select USB device as your first boot device.&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-1591068084600105172?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/1591068084600105172/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=1591068084600105172' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/1591068084600105172'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/1591068084600105172'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2010/03/installing-debian-lenny-from-usb-flash.html' title='Installing Debian Lenny from a USB flash disk'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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-8380149803912347063.post-2451529765949449267</id><published>2010-02-26T17:17:00.000-08:00</published><updated>2010-02-26T17:17:56.746-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VLC'/><category scheme='http://www.blogger.com/atom/ns#' term='Lenny'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian'/><title type='text'>Debian 5.0 Lenny</title><content type='html'>I moved over from Ubuntu 9.04 to Debian 5.0 recently. It was not because I did not like Ubuntu. I think Ubuntu is simply great and it has made Linux as user friendly as Windows. But I faced problems in compiling and installing some scientific packages. Hence, I had to move over to Debian. Moreover, I had been using Debian for a long time (nearly 4 years) before switching to Ubuntu. I am quite happy to be back to Debian. The current version 5.0 is certainly better than its predecessors. GUI functions are more stable. I have all the ingredients necessary for my work. I really don't worry about having latest packages as long as the current package is stable and it works. On this aspect, I faced trouble with Ubuntu sometimes. I am planning keep updating my readers about the problems I faced with Debian 5.0 and how to get around them.&lt;br /&gt;&lt;br /&gt;Today, I would talk about the problem of VLC player not showing the video. It happened because of debian-multimedia repository. It upgraded some codes and vlc player stopped displaying video. The solution is to remove the debian-multimedia repository from /etc/apt/sources.list and then do the following :&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;$ sudo apt-get update&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="line-height: 15px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;$ apt-get remove&amp;nbsp; ffmpeg libavcodec51 libavdevice52 libavformat52 libavutil49 libpostproc51 libswscale0&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;$ apt-get install ffmpeg libavcodec51 libavdevice52 libavformat52 libavutil49 libpostproc51 libswscale0&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="line-height: 15px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="line-height: 15px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;$ apt-get install vlc&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: small; line-height: 15px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="line-height: 15px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;After this, your VLC player should work normally. It worked for me.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="line-height: 15px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="line-height: 15px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-2451529765949449267?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/2451529765949449267/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=2451529765949449267' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/2451529765949449267'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/2451529765949449267'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2010/02/debian-50-lenny.html' title='Debian 5.0 Lenny'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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-8380149803912347063.post-8150646864561038164</id><published>2010-02-25T18:08:00.000-08:00</published><updated>2010-02-25T18:08:30.934-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Chrome'/><category scheme='http://www.blogger.com/atom/ns#' term='Flash'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Adobe flash on Google Chrome, Ubuntu</title><content type='html'>If you are not able to see Youtube videos on Google chrome, then probably your flashplayer is not working properly.&lt;br /&gt;&lt;br /&gt;For 64 bit machines, download the Adobe flashplayer from this &lt;a href="http://labs.adobe.com/downloads/flashplayer10_64bit.html"&gt;link&lt;/a&gt;. &lt;br /&gt;For 32 bit machines, download from &lt;a href="http://get.adobe.com/flashplayer/"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Extract from the tar ball :&lt;br /&gt;&lt;br /&gt;$ tar -xzvf libflashplayer-10.0.45.2.linux-x86_64.so.tar.gz&lt;br /&gt;&lt;br /&gt;make a directory :&lt;br /&gt;&lt;br /&gt;$ sudo mkdir /opt/google/chrome/plugins&lt;br /&gt;&lt;br /&gt;$ sudo cp libflashplayer.so /opt/google/chrome/plugins&lt;br /&gt;&lt;br /&gt;$ google-chrome --enable-plugins&lt;br /&gt;&lt;br /&gt;You can change this command in your application menu as described &lt;a href="http://maketecheasier.com/enable-flash-support-in-google-chrome-in-ubuntu/2009/08/19"&gt;here&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-8150646864561038164?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/8150646864561038164/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=8150646864561038164' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/8150646864561038164'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/8150646864561038164'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2010/02/adobe-flash-on-google-chrome-ubuntu.html' title='Adobe flash on Google Chrome, Ubuntu'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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-8380149803912347063.post-5373942599374927199</id><published>2010-01-30T05:07:00.000-08:00</published><updated>2010-01-30T05:07:52.123-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Softwares'/><title type='text'>Google IME for Indian Languages ...</title><content type='html'>&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Using indian languages on a computer had never been so easy. I mean you can type directly in hindi in any windows application - notepad or word or web browser. Thanks to the google transliteration IME. You really don't need to remember the hindi key sequence (which is the case when you use window's native IME support. You can just type in the roman characters and it converts them into your native language (the same thing that happens in Gmail or in other google application. There is a free software called "&lt;a href="http://www.baraha.com/"&gt;Baraha&lt;/a&gt;" which does the same thing. I have been using this software for quite some time and I found it useful. However, its integration with other windows application is not that good.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;After saying all this, I suggest you to download google transliteration IME tool from this link and see for yourself.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;a href="http://www.google.com/ime/transliteration/"&gt;http://www.google.com/ime/transliteration/&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Also go through the installation instruction ....&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Here is a screenshot of how it looks on my computer. I advise you to enable the short-cut key for enabling and disabling google IME. The google IME icon is sitting at the bottom right corner of the screen.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_AAXneZZ_86c/S2PNFLwTZPI/AAAAAAAAC2w/HKc8OIojY74/s1600-h/google_translit.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_AAXneZZ_86c/S2PNFLwTZPI/AAAAAAAAC2w/HKc8OIojY74/s320/google_translit.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;In fact, I can write directly in Hindi here ... for instance ... क्या आप हिंदी देख सकते हैं ? यह बहुत अच्छा है.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-5373942599374927199?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/5373942599374927199/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=5373942599374927199' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/5373942599374927199'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/5373942599374927199'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2010/01/google-ime-for-indian-languages.html' title='Google IME for Indian Languages ...'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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://1.bp.blogspot.com/_AAXneZZ_86c/S2PNFLwTZPI/AAAAAAAAC2w/HKc8OIojY74/s72-c/google_translit.jpg' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8380149803912347063.post-6254320740074630902</id><published>2010-01-21T19:08:00.000-08:00</published><updated>2010-01-21T19:25:50.566-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Image'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Convert PS and EPS files into JPEG</title><content type='html'>I got this useful information from this &lt;a href="http://www.terminally-incoherent.com/blog/2007/04/23/convert-ps-and-eps-images-to-jpeg/"&gt;link&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;You can convert any ps or eps file into a jpeg using ghostscript:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;gs -sDEVICE=jpeg -dJPEGQ=100 -dNOPAUSE -dBATCH -dSAFER -r300 -sOutputFile=myfile.jpg myfile.eps&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This method has one flaw. It produces huge files. Depending on the eps file you may get something like 2000×3000 pixels which is slightly on the insane side. Also the file size of the JPG will be about 10 times that of the eps.&lt;br /&gt;We will now need to trim and resize the file using some Image Magic tools:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;mogrify -trim -resize 800x600 myfile.jpg&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In order to execute this command on multiple files,&amp;nbsp; use following bash script&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;for k in $(ls *.eps); do b=`basename ${k%.eps}`; gs -sDEVICE=jpeg -dJPEGQ=100 -dNOPAUSE -dBATCH -dSAFER -r300 -sOutputFile=$b.jpg $k; mogrify -trim -resize 800x600 $b.jpg; done&lt;/span&gt;&lt;br /&gt;&lt;code&gt;&amp;nbsp; &lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-6254320740074630902?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/6254320740074630902/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=6254320740074630902' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/6254320740074630902'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/6254320740074630902'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2010/01/convert-ps-and-eps-files-into-jpeg.html' title='Convert PS and EPS files into JPEG'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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-8380149803912347063.post-5158371007063739973</id><published>2010-01-09T19:20:00.000-08:00</published><updated>2010-01-09T19:20:40.489-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cygwin'/><title type='text'>Linux on windows: Cygwin</title><content type='html'>If you use applications that work on only windows (like gtalk, voipcall clients), then you feel like having linux environment on the side, so that you won't have reboot into linux for doing your work. For these people (including me), &lt;a href="http://www.cygwin.com/"&gt;Cygwin&lt;/a&gt; is a good choice. For instance you can have the bash shell, emacs, gnuplot, xfig, gvim, latex, xdvi all at one place ... &amp;nbsp;The installations is very easy. &amp;nbsp;Don't forget to install X server of cygwin (&lt;a href="http://x.cygwin.com/"&gt;cygwin/x&lt;/a&gt;) during the installation process. Particularly, latex is more neat to use on cygwin than installing miktex and other tools for the same purpose.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-5158371007063739973?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/5158371007063739973/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=5158371007063739973' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/5158371007063739973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/5158371007063739973'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2010/01/linux-on-windows-cygwin.html' title='Linux on windows: Cygwin'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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-8380149803912347063.post-2826695197690533424</id><published>2009-08-23T20:12:00.000-07:00</published><updated>2009-08-23T20:16:39.922-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='GCC'/><title type='text'>deprecated conversion warning for char* in GCC</title><content type='html'>g++-4.x gives following warning whenever a string with in double quotes is assigned to a char * :&lt;br /&gt;&lt;br /&gt;      warning: deprecated conversion from string constant to ‘char*’&lt;br /&gt;&lt;br /&gt;     Though there is no fix available as far as I know except for following two solutions:&lt;br /&gt;        1. convert 'char *' to 'const char*' whenever a string is to be assigned.&lt;br /&gt;        2. use a type cast to convert a string to a char*.&lt;br /&gt;&lt;br /&gt;     For example:&lt;br /&gt;&lt;br /&gt;     const char *name = "Adam Smith"&lt;br /&gt;     char *name = (char*) "Adam Smith"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To get rid of deprecated conversion warning, pass &lt;span style="font-weight: bold;"&gt;-Wno-write-strings&lt;/span&gt; option to g++&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-2826695197690533424?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/2826695197690533424/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=2826695197690533424' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/2826695197690533424'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/2826695197690533424'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2009/08/deprecated-conversion-warning-for-char.html' title='deprecated conversion warning for char* in GCC'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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-8380149803912347063.post-7003813775279135614</id><published>2009-08-23T19:49:00.000-07:00</published><updated>2009-08-23T19:51:42.475-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Jaunty'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='opencv'/><title type='text'>opencv on Ubuntu Jaunty</title><content type='html'>Opencv does not handle videos properly on Ubuntu Jaunty. In order to fix this, please follow the instructions given at this link:&lt;br /&gt;&lt;a href="http://gijs.pythonic.nl/blog/2009/may/3/getting-video-io-working-opencv-and-ubuntu-jaunty-/"&gt;&lt;br /&gt;http://gijs.pythonic.nl/blog/2009/may/3/getting-video-io-working-opencv-and-ubuntu-jaunty-/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-7003813775279135614?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/7003813775279135614/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=7003813775279135614' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/7003813775279135614'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/7003813775279135614'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2009/08/opencv-on-ubuntu-jaunty.html' title='opencv on Ubuntu Jaunty'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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-8380149803912347063.post-5257202687933467821</id><published>2009-08-10T17:31:00.000-07:00</published><updated>2009-08-10T17:34:42.107-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vim'/><category scheme='http://www.blogger.com/atom/ns#' term='Jaunty'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Vim-latex suite on  Ubuntu Jaunty</title><content type='html'>First install vim-latex package using synaptic packet manager. Then run following command on a terminal :&lt;br /&gt;&lt;br /&gt;$ sudo vim-addons -w install latex-suite&lt;br /&gt;&lt;br /&gt;Now opening a tex document with gvim should show tex related menus on the menu bar.&lt;br /&gt;&lt;br /&gt;If this does not help, then refer to ubuntu forums for solution. For instance check &lt;a href="http://ubuntuforums.org/showthread.php?t=695884"&gt;this&lt;/a&gt; link.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-5257202687933467821?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/5257202687933467821/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=5257202687933467821' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/5257202687933467821'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/5257202687933467821'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2009/08/vim-latex-suite-on-ubuntu-jaunty.html' title='Vim-latex suite on  Ubuntu Jaunty'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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-8380149803912347063.post-8452189341611010633</id><published>2009-07-10T02:56:00.000-07:00</published><updated>2009-07-10T03:01:18.232-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><category scheme='http://www.blogger.com/atom/ns#' term='Basics'/><category scheme='http://www.blogger.com/atom/ns#' term='linux commands'/><title type='text'>Automating chmod</title><content type='html'>Task is to change the permission modes for multiple directories&lt;br /&gt;&lt;br /&gt;$ find . -type d -print0 | xargs -0 chmod 771&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-8452189341611010633?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/8452189341611010633/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=8452189341611010633' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/8452189341611010633'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/8452189341611010633'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2009/07/automating-chmod.html' title='Automating chmod'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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-8380149803912347063.post-2197066568968267027</id><published>2009-06-30T04:13:00.000-07:00</published><updated>2009-06-30T05:32:30.790-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PDF'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>PDF Highlighting tool</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_AAXneZZ_86c/SkoCwFfvkFI/AAAAAAAACTs/46urgJ6voZc/s1600-h/Screenshot-Learning+Bayesian+Networks+-+Neapolitan+R.+E.*+-+PDF-XChange+Viewer+-+%5BLearning+Bayesian+Networks+-+Neapolitan+R.+E.%5D.png"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 200px; height: 142px;" src="http://4.bp.blogspot.com/_AAXneZZ_86c/SkoCwFfvkFI/AAAAAAAACTs/46urgJ6voZc/s200/Screenshot-Learning+Bayesian+Networks+-+Neapolitan+R.+E.*+-+PDF-XChange+Viewer+-+%5BLearning+Bayesian+Networks+-+Neapolitan+R.+E.%5D.png" alt="" id="BLOGGER_PHOTO_ID_5353094132215550034" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Earlier I talked about few tools for editing PDF files (for free) on linux. You can go through the discussion &lt;a href="http://insane-on-linux.blogspot.com/search/label/PDF"&gt;here&lt;/a&gt;.  I recently came across some more free tools that tend to make our life little easier, particularly when it comes to editing pdf files on linux. Some of these tools are as follows:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;a href="http://www.blogger.com/Scribus"&gt;Scribus&lt;/a&gt; : Limited capabilities&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.blogger.com/Inkscape"&gt;Inkscape&lt;/a&gt; : Limited capabilities&lt;/li&gt;&lt;li&gt;&lt;a href="Okular"&gt;Okular&lt;/a&gt; : Limited capabilities. You can do some highlighting and add annotations. But they don't seem to be very neat. Just give a look at some &lt;a href="http://okular.kde.org/screenshots.php"&gt;screenshots&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.docu-track.com/home/prod_user/PDF-XChange_Tools/pdfx_viewer"&gt;PDF-xchange-viewer&lt;/a&gt;. Its a windows based application which is free to download at present and can be run on linux using Wine. I could use it flawlessly on my Ubuntu Intrepid Ibex (8.10). Among all pdf editing tools, this seems to the best option for editing pdf files. Even though its not a native linux application, it is better than going back to windows just for editing a PDF file. However, I am still waiting for &lt;a href="http://www.gnupdf.org/"&gt;GNUpdf&lt;/a&gt; which, I believe, would provide a permanent relief to linux users in this regard.&lt;br /&gt;&lt;br /&gt;To get started, first use synaptic packet manager to install wine. For Ibex, follow the instructions given at this &lt;a href="http://ubuntuexperiment.wordpress.com/2008/11/09/installing-wine-on-ubuntu-810/"&gt;link&lt;/a&gt;. Download PDF-xchange-viewer from its website and run it using wine. That's all. It installs itself within a folder. A screenshot of PDF-xchange-viewer is shown in the adjacent thumbnail. Its really neat and close to what we find in Adobe Acrobat PDF editor.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.pdfescape.com/pdf/open/"&gt;PDFescape&lt;/a&gt;: You can edit PDF files online (particularly fill up forms) at this website. This is useful if you are in a hurry and can't install a PDF editing software on a public machine.&lt;br /&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/8380149803912347063-2197066568968267027?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/2197066568968267027/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=2197066568968267027' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/2197066568968267027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/2197066568968267027'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2009/06/pdf-highlighting-tool.html' title='PDF Highlighting tool'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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/_AAXneZZ_86c/SkoCwFfvkFI/AAAAAAAACTs/46urgJ6voZc/s72-c/Screenshot-Learning+Bayesian+Networks+-+Neapolitan+R.+E.*+-+PDF-XChange+Viewer+-+%5BLearning+Bayesian+Networks+-+Neapolitan+R.+E.%5D.png' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8380149803912347063.post-752851675993324513</id><published>2009-01-20T20:14:00.000-08:00</published><updated>2009-01-22T05:08:27.624-08:00</updated><title type='text'>Installing Essential softwares on Debian Etch</title><content type='html'>In order to install softwares like acroread and mplayer, include following line into your '/etc/apt/sources.list'&lt;br /&gt;&lt;br /&gt;deb http://www.debian-multimedia.org/ etch main&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Download the key-ring from this &lt;a href="http://www.debian-multimedia.org/pool/main/d/debian-multimedia-keyring/debian-multimedia-keyring_2008.10.16_all.deb"&gt;site&lt;/a&gt; and install it as follows:&lt;br /&gt;&lt;br /&gt;$ sudo dpkg -i debian-multimedia-keyring_2008.10.16_all.deb&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;and then run "apt-get update".  More information regarding this is available &lt;a href="http://www.linuxforums.org/forum/debian-linux-help/80445-howto-install-firefox-2-various-plugins-debian-etch.html"&gt;here&lt;/a&gt; and &lt;a href="http://www.debianadmin.com/how-to-install-adobe-flash-in-debian-etchlennysid.html"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;# sudo apt-get install acroread&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For flash, you need to install the package "flashplugin-nonfree" which is available in backports repository. Include following line into your sources.list file:&lt;br /&gt;&lt;br /&gt;deb http://www.backports.org/debian etch-backports main contrib non-free&lt;br /&gt;&lt;br /&gt;and now get keyrings for backport repository.&lt;br /&gt;&lt;br /&gt;#apt-get install debian-backports-keyring&lt;br /&gt;#apt-get update&lt;br /&gt;#apt-get -t etch-backports install flashplugin-nonfree&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-752851675993324513?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/752851675993324513/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=752851675993324513' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/752851675993324513'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/752851675993324513'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2009/01/installing-essential-softwares-on.html' title='Installing Essential softwares on Debian Etch'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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-8380149803912347063.post-1754410329309605348</id><published>2008-12-04T10:53:00.000-08:00</published><updated>2008-12-04T11:11:34.744-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hardware'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Mounting an external drive using volume label</title><content type='html'>The device nodes keep changing if you are pluggin in and out several different usb disks and in different orders. For various reasons for instance for file synchronization, it is useful to mount these drives according to their names.&lt;br /&gt;&lt;br /&gt;First of all, find out the correct device partitions for usb drives.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ sudo fdisk -l &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;Disk /dev/sda: 250.0 GB, 250059350016 bytes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;255 heads, 63 sectors/track, 30401 cylinders&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;Disk identifier: 0x4be002e1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;   Device Boot      Start         End      Blocks   Id  System&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;/dev/sda1               1        1402    11261533+  12  Compaq diagnostics&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;/dev/sda2   *        1403       15918   116592640    6  FAT16&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;/dev/sda3           15918       29975   112918572    f  W95 Ext'd (LBA)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;/dev/sda4           29976       30402     3420160   12  Compaq diagnostics&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;/dev/sda5           15918       22292    51200000    7  HPFS/NTFS&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;/dev/sda6           22293       22304       96358+  83  Linux&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;/dev/sda7           22305       22912     4883728+  82  Linux swap / Solaris&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;/dev/sda8           22913       26559    29294496   83  Linux&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;/dev/sda9           26560       29975    27438988+  83  Linux&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;Disk /dev/sdb: 320.0 GB, 320072933376 bytes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;255 heads, 63 sectors/track, 38913 cylinders&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;Disk identifier: 0x5b6ac646&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;   Device Boot      Start         End      Blocks   Id  System&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;/dev/sdb1               1       24315   195310206    c  W95 FAT32 (LBA)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;/dev/sdb2           24316       38913   117258435   82  Linux swap / Solaris&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The Usb disk is mounted at /dev/sdb.&lt;br /&gt;&lt;br /&gt;Before changing the label, unmount the device partitions. This is very important.&lt;br /&gt;&lt;br /&gt;$ sudo umount /dev/sdb1&lt;br /&gt;$ sudo umount /dev/sdb2&lt;br /&gt;&lt;br /&gt;Install "mtools" and "e2fsprogs"&lt;br /&gt;&lt;br /&gt;$ sudo apt-get install mtools e2fsprogs&lt;br /&gt;&lt;br /&gt;in order to label vfat partitions, we need 'mtools' and 'e2label' is needed for labelling ext2/3 partitions.&lt;br /&gt;&lt;br /&gt;$ sudo mlabel -i /dev/sdb1 -s :: SWG_WIN&lt;br /&gt;&lt;br /&gt;now check the label with following command&lt;br /&gt;&lt;br /&gt;$ sudo mlabel -i /dev/sdb1&lt;br /&gt;Volume label is SWG_WIN &lt;br /&gt;&lt;br /&gt;$ sudo e2label /dev/sdb2 swg_lin&lt;br /&gt;&lt;br /&gt;check the label using following command:&lt;br /&gt;$ sudo e2label /dev/sdb2&lt;br /&gt;swg_lin&lt;br /&gt;&lt;br /&gt;Now edit /etc/fstab and enter following lines:&lt;br /&gt;&lt;br /&gt;LABEL=SWG_WIN    /mnt/usb_win    vfat    user,rw,auto,umask=0    0    0&lt;br /&gt;LABEL=swg_lin    /mnt/usb_linux    ext3    user,rw,auto    0    0&lt;br /&gt;&lt;br /&gt;save the file and remount them&lt;br /&gt;&lt;br /&gt;$ sudo mount -a&lt;br /&gt;&lt;br /&gt;More information about changing partition labels are given &lt;a href="https://help.ubuntu.com/community/RenameUSBDrive"&gt;here&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-1754410329309605348?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/1754410329309605348/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=1754410329309605348' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/1754410329309605348'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/1754410329309605348'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2008/12/mounting-external-drive-using-volume.html' title='Mounting an external drive using volume label'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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-8380149803912347063.post-5352330278966986665</id><published>2008-11-30T05:17:00.000-08:00</published><updated>2008-11-30T06:26:56.018-08:00</updated><title type='text'>Drawing Rectangles in GIMP</title><content type='html'>Select a rectangular region by clicking "Rectangle Select Tool". Then click on Edit -&gt; stroke selection. Inside this tool, you can select different line styles like continuous, dashed etc. In order to change color of the line, click on "Foreground and background color" item available in Gimp's main menu. More elaborate discussion is available in the following link:&lt;br /&gt;&lt;br /&gt;http://pbs01.wordpress.com/2007/09/30/145/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-5352330278966986665?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/5352330278966986665/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=5352330278966986665' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/5352330278966986665'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/5352330278966986665'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2008/11/drawing-rectangles-in-gimp.html' title='Drawing Rectangles in GIMP'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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-8380149803912347063.post-2953519096072281179</id><published>2008-11-22T21:55:00.000-08:00</published><updated>2008-11-22T22:02:06.592-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><category scheme='http://www.blogger.com/atom/ns#' term='Communication'/><title type='text'>Setting UP NFS server/client on Ubuntu</title><content type='html'>&lt;b&gt;Install NFS Server Support&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;This is mostly a local copy of the instructions available at &lt;a href="http://www.ubuntugeek.com/nfs-server-and-client-configuration-in-ubuntu.html"&gt;this&lt;/a&gt; link. I have tried this howto and it works perfectly for me.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;at the terminal type&lt;br /&gt;&lt;i&gt;sudo apt-get install nfs-kernel-server nfs-common portmap&lt;/i&gt;&lt;br /&gt;&lt;span style="color:Red;"&gt;When configuring portmap do =not= bind loopback. If you do you can either edit /etc/default/portmap by hand or run:&lt;/span&gt;&lt;br /&gt;&lt;i&gt;sudo dpkg-reconfigure portmap&lt;br /&gt;sudo /etc/init.d/portmap restart&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Editing /etc/exports&lt;/b&gt;&lt;br /&gt;the /etc/exports file is used for creating a share on the NFS server&lt;br /&gt;&lt;br /&gt;invoke your favorite text editor or&lt;br /&gt;&lt;i&gt;sudo vi /etc/exports&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Here are some quick examples of what you could add to your /etc/exports&lt;br /&gt;&lt;br /&gt;For Full Read Write Permissions allowing any computer from 192.168.1.1 through 192.168.1.255&lt;br /&gt;&lt;ul&gt;&lt;li&gt;/files 192.168.1.1/24(rw,no_root_squash,async)&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Or for Read Only from a single machine&lt;br /&gt;&lt;ul&gt;&lt;li&gt;/files 192.168.1.2 (ro,async)&lt;/li&gt;&lt;/ul&gt;save this file and then in a terminal type&lt;br /&gt;&lt;i&gt;sudo /etc/init.d/nfs-kernel-server restart&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Also aftter making changes to /etc/exports in a terminal you must type&lt;br /&gt;&lt;i&gt;sudo exportfs -a&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Install NFS client support&lt;/b&gt;&lt;br /&gt;sudo apt-get install portmap nfs-common&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Mounting manually&lt;/b&gt;&lt;br /&gt;Example to mount server.mydomain.com:/files to /files. In this example server.mydomain.com is the name of the server containing the nfs share, and files is the name of the share on the nfs server&lt;br /&gt;&lt;br /&gt;The mount point /files must first exist on the client machine.  &lt;br /&gt;&lt;i&gt;cd /&lt;br /&gt;sudo mkdir files&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;to mount the share from a terminal type&lt;br /&gt;&lt;br /&gt;&lt;i&gt;sudo mount server.mydomain.com:/files /files&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Note you may need to restart above services:&lt;br /&gt;&lt;i&gt;sudo /etc/init.d/portmap restart&lt;br /&gt;sudo /etc/init.d/nfs-common restart&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Mounting at boot using /etc/fstab&lt;/b&gt;&lt;br /&gt;Invoke the text editor using your favorite editor, or&lt;br /&gt;&lt;i&gt;gksudo gedit /etc/fstab&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;In this example my /etc/fstab was like this: &lt;ul&gt;&lt;li&gt;server.mydomain.com:/files  /files   nfs rsize=8192,wsize=8192,timeo=14,intr&lt;/li&gt;&lt;/ul&gt;You could copy and paste my line, and change “servername.mydomain.com:/files”, and “/files” to match your server name:share name, and the name of the mount point you created.&lt;br /&gt;&lt;span style="color:Red;"&gt;It is a good idea to test this before a reboot in case a mistake was made. &lt;/span&gt;&lt;br /&gt;type&lt;br /&gt;&lt;i&gt;mount /files &lt;/i&gt;&lt;br /&gt;in a terminal, and the mount point /files will be mounted from the server.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-2953519096072281179?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/2953519096072281179/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=2953519096072281179' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/2953519096072281179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/2953519096072281179'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2008/11/setting-up-nfs-serverclient-on-ubuntu.html' title='Setting UP NFS server/client on Ubuntu'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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-8380149803912347063.post-2732684683964536537</id><published>2008-11-22T21:50:00.000-08:00</published><updated>2008-11-22T22:07:52.105-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VoIP'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Gtalk Voice chat on Ubuntu</title><content type='html'>After such a long wait, today I could talk to one of my friend in India through Gtalk on linux. I am talking about voice chat. I am very much impressed with Ubuntu. Its amazing. Things had never been so easy and comfortable.&lt;br /&gt;&lt;br /&gt;Presently Empathy supports voice calls through gtalk. The installation instructions are available &lt;a href="http://linuxmonk.wordpress.com/2008/08/17/voice-chat-in-linux-with-gtalk/"&gt;here&lt;/a&gt;.  Just for convenience, I am reproducing the set of instructions necessary to get you started with it. Visit the above site for user comments and more information if things don't work out for you.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Use Synaptic package manager, go to Settings-&gt;Repositories-&gt;Third Party Software and then click Add and add the following line&lt;/p&gt; &lt;blockquote&gt;&lt;p&gt;deb http://ppa.launchpad.net/telepathy/ubuntu hardy main&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Then, Install the following packages using Synaptic Pagakage manager.&lt;/p&gt; &lt;blockquote&gt; &lt;ol&gt;&lt;li&gt;Empathy&lt;/li&gt;&lt;li&gt;telepathy-gabble&lt;/li&gt;&lt;li&gt;telepathy-mission-control&lt;/li&gt;&lt;li&gt;telepathy-stream-engine&lt;/li&gt;&lt;/ol&gt; &lt;/blockquote&gt; &lt;p&gt;After successful installation, open the Empathy application and use the menu, Edit-&gt;Accouts to add your gtalk account. Enjoy using voice chat with your favorite gtalk account using Empathy in Linux.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-2732684683964536537?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/2732684683964536537/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=2732684683964536537' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/2732684683964536537'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/2732684683964536537'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2008/11/gtalk-voice-chat-on-ubuntu.html' title='Gtalk Voice chat on Ubuntu'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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-8380149803912347063.post-1849489138559334506</id><published>2008-10-07T18:15:00.001-07:00</published><updated>2008-10-07T18:34:18.510-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data backup'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Data Backup and File synchronization</title><content type='html'>If you work on  multiple systems like a desktop in office and a laptop in house, probably you would like to synchronize the files between the two. So far I have been using&lt;a href="http://docs.google.com/View?docID=dhjpj535_110hgws8sd3&amp;amp;revision=_latest#Using_USB_Mass_Storage_for_Backu"&gt; rsync&lt;/a&gt; to copy files from my laptop to a usb disk and then using this disk to synchronize data on my desktop at office. While rsync is faster and does not require much configuration, it is good for one way data transfer. But some time you end up with multiple copies or backing up unnecessary data files. For instance if you delete a file in one, you must do the same on the another simultaneously. Probably it can be solved by properly configuring rsync, but certainly its not straight forward for a normal user.  Recently I used gui based tool like &lt;a href="http://www.ubuntugeek.com/unison-file-synchronization-tool.html"&gt;Unison&lt;/a&gt; for file synchronization. I found it pretty much user friendly as it reports the conflicts and allows the user to decide what to do about it.  Another tool that I found useful is &lt;a href="http://www.backuphowto.info/backup-your-system-data-using-sbackup-ubuntu-linux"&gt;sBackup&lt;/a&gt; for creating backup of important files on your system.   These days our work and life depend too much on digital media. Hence backing them up against inadvertent system crashes or human errors, has become very much crucial. &lt;a href="http://www.backuphowto.info/backup-your-system-data-using-sbackup-ubuntu-linux"&gt;sBackup&lt;/a&gt; provides a simple gui to configure and setup backup process.  You can have complete control over the files you want to backup. You can exclude files based on extension or size.  You can set how frequently backup must be taken and you can get rid of old backups which are no more relevant.&lt;br /&gt;&lt;br /&gt;In short, file synchronization and backing up data is no more daunting on Linux.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-1849489138559334506?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/1849489138559334506/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=1849489138559334506' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/1849489138559334506'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/1849489138559334506'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2008/10/data-bank-and-file-synchronization.html' title='Data Backup and File synchronization'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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-8380149803912347063.post-1895460747490585127</id><published>2008-10-03T05:39:00.000-07:00</published><updated>2008-10-07T18:41:12.731-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='General'/><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu'/><title type='text'>Ubuntu - Most popular Linux</title><content type='html'>According to &lt;a href="http://distrowatch.com/"&gt;distrowatch&lt;/a&gt;, &lt;a href="http://www.ubuntu.com/"&gt;Ubuntu&lt;/a&gt; is the most popular linux distribution at the moment. I have used several distributions over the years like mandrake, redhat, fedora, debian. For last 2/3 years, I have been using Debian regularly and Fedora intermittently. However, one thing that annoyed me in Debian was its outdated packages. However I was afraid of going to Ubuntu as I thought it would be unstable and it would keep crashing all the time. After going through the reviews, I thought of giving it try.&lt;br /&gt;&lt;br /&gt;You won't belive, I was just overwhelmed at its first performance. All of my hardwares got working during the first install itself ... installing flash, media players, java plugin was as simpler than writing this blog itself ... Suddenly my system looked all new and fresh ... I thought speed would be less, but I was wrong again ... It was amazingly fast ...&lt;br /&gt;&lt;br /&gt;No wonder why Ubuntu is No. 1 Linux distro. You must give it a try ...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Some later additions:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Until now I preferred command line interfaces (CLI) for configuring applications like network setting, installing/uninstalling softwares, browsing and even cd writing. Its because I relied less on gui system. However after moving to Ubuntu, I started using much of gui stuff. &lt;/li&gt;&lt;li&gt;Secondly, the ubuntu forums are very good in the sense that I could get rid of most of my problems in a very short time.&lt;/li&gt;&lt;li&gt;Barring few glitches here and there, I found Ubuntu quite user friendly and easy to use.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-1895460747490585127?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/1895460747490585127/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=1895460747490585127' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/1895460747490585127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/1895460747490585127'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2008/10/ubuntu-most-popular-linux.html' title='Ubuntu - Most popular Linux'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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-8380149803912347063.post-5559381752470619531</id><published>2008-09-26T12:06:00.000-07:00</published><updated>2008-09-26T12:37:03.555-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Debian'/><title type='text'>APT - Pinning in Debian</title><content type='html'>Even though I myself use Debian, I suggest Fedora to others. Its because, most of these people are interested in packages than the OS. Fedora comes with all the latest packages and has a user friendly interface for most configuration tasks. Though I think, ubuntu is a good competitor to Fedora in this aspect. Since I have spent quite a lot of time with Debian (say 3 years), I find Debian more stable and easier to manage than other distros. Most of the available packages on Etch just work fine with no hiccups. The only drawback seems to be the fact these packages are outdated. If you are really not keen on new features and happy with the available features, then Debian Etch is the right choice. Because its really stable and it works without any problem on most of the systems. But many a times, you just can't do without newer packages. One way would be to go for Debian testing or unstable repositories. But I would be prefer a stable system with less number of new packages than an unstable system with many new packages. This is where APT Pinning comes into picture. This is about finding the right combination of all the repositories.  Here the administrator can consciously decide where to put the line between stability and the availability of new packages.&lt;br /&gt;&lt;br /&gt;More information on APT - Pinning&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://jaqque.sbih.org/kplug/apt-pinning.html"&gt;APT-Pinning for Beginners&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.weiqigao.com/blog/2007/11/04/getting_sun_java_6_on_debian_4_0_with_apt_pinning.html"&gt;Installing sun-java 6 on Debian Etch using APT-Pinning&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://wiki.debian.org/AptPinning"&gt;Debian Wiki on APT-Pinning&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-5559381752470619531?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/5559381752470619531/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=5559381752470619531' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/5559381752470619531'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/5559381752470619531'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2008/09/apt-pinning-in-debian.html' title='APT - Pinning in Debian'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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-8380149803912347063.post-7853033606711101068</id><published>2008-09-26T08:26:00.000-07:00</published><updated>2008-09-26T08:40:00.914-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Desktop'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian'/><title type='text'>Could not start kstartupconfig on Debian Etch 4.0</title><content type='html'>Today one of my fellow labmates asked me whether he can use KDE on his laptop. I installed debian on his system sometime back. If you are installing on a new system, then I would suggest you to get a &lt;a href="http://pkg-kde.alioth.debian.org/kde3.html"&gt;Debian KDE&lt;/a&gt; CD image, but if you want to install kde on your existing debian system that you installed using default Debian CD image, then you can read the rest of the article:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ apt-get install kdm kde-core&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;However when I log out and login again by choosing KDE as my window manager, I get following error:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;could not start kstartupconfig. Check your installation.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;One solution that worked for me is this:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ sudo chown -R username:users /home/username&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;'username' is the login name for the current user. After that I logged out and logged in again to get a working KDE session.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-7853033606711101068?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/7853033606711101068/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=7853033606711101068' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/7853033606711101068'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/7853033606711101068'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2008/09/could-not-start-kstartupconfig-on.html' title='Could not start kstartupconfig on Debian Etch 4.0'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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-8380149803912347063.post-453733500792077047</id><published>2008-09-22T16:07:00.000-07:00</published><updated>2008-09-22T16:16:14.616-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Images'/><category scheme='http://www.blogger.com/atom/ns#' term='Gimp'/><title type='text'>Resizing image using GIMP</title><content type='html'>A lot of information is available on web about how to use GIMP and hence I would be very precise and brief in my description. Basically, I am interested in reducing the resolution of the image without changing its print size. For this, you need to remember this formula:&lt;br /&gt;&lt;br /&gt;Print size = No. of Pixels / Resolution&lt;br /&gt;&lt;br /&gt;So, for different resolution, we need to choose different of pixels so that the size remains same. The formula would be&lt;br /&gt;&lt;br /&gt;NoP_1 / Res_1 = NoP_2 / Res_2&lt;br /&gt;&lt;br /&gt;So, the new number of pixels for new resolution would be given by&lt;br /&gt;&lt;br /&gt;NoP_2 = Res_2 * NoP_1 / Res_1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Load a new image onto GIMP from File -&gt; Open menu and then go to view -&gt; Info Window to know about current size and resolution.  Now go to button Image -&gt; Scale Image window and reduce the x and y resolution to a lower value and compute the x size and y size (in pixels) for this new resolution using above formula and change them accordingly. Then save the file in your desired format.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-453733500792077047?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/453733500792077047/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=453733500792077047' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/453733500792077047'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/453733500792077047'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2008/09/resizing-image-using-gimp.html' title='Resizing image using GIMP'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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-8380149803912347063.post-3264299793850465262</id><published>2008-09-11T04:03:00.000-07:00</published><updated>2008-09-12T05:09:37.667-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PDF'/><title type='text'>Editing PDF on Linux</title><content type='html'>I have been badly looking for a tool that can annotate, highlight a PDF file. Its because I need to read a lot of technical papers and I love to highlight the main points in that paper so that I wont' have to search for those key points. I did not want to jump to windows and install a pirated Adobe software to do the job. I wished if open source guys could help me in this regard. After saying that let me tell you I am desperately waiting for the first release of &lt;a href="http://gnupdf.org/"&gt;GNUpdf&lt;/a&gt;. Until it comes out, I have been looking for alternatives. Among various solutions, I would talk about only two options that I found useful:&lt;br /&gt;&lt;br /&gt;1. &lt;a href="http://pdfedit.petricek.net/"&gt;PDFedit&lt;/a&gt;. The only full-fledged pdf editor available for linux. However, it has many caveats and I hope new releases of this software solve the problems. One of the problems that it does not edit many files saying the document is "read-only".  Even though I set the option "allow editing read-only files" in Tools-&gt;option, still it does not work. Secondly, pdfedit freezes for few seconds during highlighting text.&lt;br /&gt;&lt;br /&gt;2. &lt;a href="http://xournal.sourceforge.net/"&gt;Xournal&lt;/a&gt;. It seems to be a better option for highlighting and annotating PDF files. &lt;a href="http://www.g-loaded.eu/2008/05/03/how-to-annotate-pdf-files-in-linux-using-xournal/"&gt;This&lt;/a&gt; page talks about configuring xournal for highlighting function. The interface is smooth and things seem to work for the time being. I would post more on this when I try them out.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Some other tools for editing PDF files on Linux are as follows:&lt;a href="http://www.wikihow.com/Edit-PDF-Files-in-Linux-Using-GIMP"&gt;&lt;br /&gt;&lt;/a&gt;&lt;ol&gt;&lt;li&gt;&lt;a href="http://www.wikihow.com/Edit-PDF-Files-in-Linux-Using-GIMP"&gt;Editing with Gimp&lt;/a&gt;.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.linux.com/feature/113907"&gt;Using flpsed and Xfig&lt;/a&gt;.&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;Now that I tried xournal, I must say its pretty good. At least it is not that buggy as compared to PDFedit. But PDFedit has more features and we can expect to get good behaviour in future releases. But as far as highlight and annotating is concerned, I am happy with xournal. Just see a snapshot of xournal window.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_AAXneZZ_86c/SMpU-qF0PyI/AAAAAAAAA10/LPg36Uh3MnQ/s1600-h/Screenshot-Xournal.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_AAXneZZ_86c/SMpU-qF0PyI/AAAAAAAAA10/LPg36Uh3MnQ/s320/Screenshot-Xournal.png" alt="" id="BLOGGER_PHOTO_ID_5245098151453671202" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-3264299793850465262?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/3264299793850465262/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=3264299793850465262' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/3264299793850465262'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/3264299793850465262'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2008/09/editing-pdf-on-linux.html' title='Editing PDF on Linux'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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/_AAXneZZ_86c/SMpU-qF0PyI/AAAAAAAAA10/LPg36Uh3MnQ/s72-c/Screenshot-Xournal.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8380149803912347063.post-169891718415709897</id><published>2008-08-16T04:39:00.000-07:00</published><updated>2008-09-26T08:40:24.994-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Fedora'/><category scheme='http://www.blogger.com/atom/ns#' term='Printing'/><title type='text'>Printing on a HP LaserJet over the network using Linux</title><content type='html'>The desktop given to me is connected to a printer HP Laserjet 2200 over network with an IP address. I wanted to configure it on Fedora. I already know about the fact that HP printers are well supported on Linux. This post might help you if are in similar kind of situation, that is, you want to connect to a network printer from a linux box over LAN. This post is only for the sake of convenience. If things don't work out and you need more information then you should visit &lt;a href="http://hplip.sourceforge.net/install/installtree.html"&gt;this&lt;/a&gt; link.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Lets first see the system configuration.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ uname -a&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Linux localhost.localdomain 2.6.25.14-108.fc9.x86_64 #1 SMP Mon Aug 4 13:46:35 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;So, basically I am using FC9 with x86_64 processor. This much is good enough for us.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Check if cups daemon is running. You can check at System-&gt;Administration-&gt;Services-&gt;Cups. It should be running. You can also check this on console using following command:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ sudo /sbin/chkconfig --list|grep cups&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;cups               0:off    1:off    2:on    3:on    4:on    5:on    6:off&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;So, Cups is running on run-level 3, 4 and 5. If it is not running, then you should make it run first. Its not dificult and following command should do the job.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ sudo /sbin/service cups start&lt;/span&gt;&lt;br /&gt;or&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ sudo /sbin/chkconfig --level 345 cups on&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now, check if hplip is available on your system.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ rpm -qa|grep hplip&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;hplip-2.8.2-2.fc9.x86_64&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;hplip-gui-2.8.2-2.fc9.x86_64&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In case they are not present, use Yum to get the required packages:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ sudo yum install hplip hplip-gui&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If HPLIP is already installed then try running hp-setup to configure your printer.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ sudo hp-setup&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_AAXneZZ_86c/SKbBcVb825I/AAAAAAAAAs0/YXhLnKGBayY/s1600-h/hplip1.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_AAXneZZ_86c/SKbBcVb825I/AAAAAAAAAs0/YXhLnKGBayY/s320/hplip1.png" alt="" id="BLOGGER_PHOTO_ID_5235084309399657362" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;I choose the second option 'Network connection'. Then click on next.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_AAXneZZ_86c/SKbByeOndtI/AAAAAAAAAs8/XVUvDe2YZAM/s1600-h/hplip2.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_AAXneZZ_86c/SKbByeOndtI/AAAAAAAAAs8/XVUvDe2YZAM/s320/hplip2.png" alt="" id="BLOGGER_PHOTO_ID_5235084689716770514" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;It lists the printers available on the network. I choose the the HP LaserJet 2200 that is assigned to me and then click next.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_AAXneZZ_86c/SKbCDdin7bI/AAAAAAAAAtE/SWSfCXzGN2Q/s1600-h/hplip3.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_AAXneZZ_86c/SKbCDdin7bI/AAAAAAAAAtE/SWSfCXzGN2Q/s320/hplip3.png" alt="" id="BLOGGER_PHOTO_ID_5235084981590027698" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;It asks me to select a suitable PPD file available in the list. Usually you should select the one that closely matches the description of the printer. In this case I retain the first selection.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_AAXneZZ_86c/SKbCVKPz9pI/AAAAAAAAAtM/8wUV8RARBRo/s1600-h/hplip4.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_AAXneZZ_86c/SKbCVKPz9pI/AAAAAAAAAtM/8wUV8RARBRo/s320/hplip4.png" alt="" id="BLOGGER_PHOTO_ID_5235085285648496274" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Here I add some description to my printer and click next. On the next screen it sends a test page for printer. It starts working !! I did not believe that the things would be this much simple. Because I remember spending days on getting my printer work on linux. I think those days are gone now. The life has certainly become more comfortable with linux.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-169891718415709897?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/169891718415709897/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=169891718415709897' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/169891718415709897'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/169891718415709897'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2008/08/printing-on-hp-laserjet-over-network.html' title='Printing on a HP LaserJet over the network using Linux'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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://2.bp.blogspot.com/_AAXneZZ_86c/SKbBcVb825I/AAAAAAAAAs0/YXhLnKGBayY/s72-c/hplip1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8380149803912347063.post-340152566540987578</id><published>2008-07-06T11:31:00.000-07:00</published><updated>2008-09-12T05:05:57.073-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Communication'/><title type='text'>Remote Access on Linux</title><content type='html'>VNC server and vncviewers are quite popular for accessing linux desktops remotely either from a windows or a linux client. I won't discuss much about them as a lot of information is available on web about this. I would rather give links to some webpages here:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://davidpasek.blogspot.com/2008/03/how-to-set-up-vnc-on-debian-gnulinux.html"&gt;David's professional Blog&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://newvibes.net/index.php/vncserver-on-debian-etch-with-xfce4"&gt;Vncserver with Debian Etch and XFCE4&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.penlug.org/twiki/bin/view/Main/TightVNC"&gt;More about TightVNC&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Rather than explaining things, I would just write down few commands to get you started. I am assuming you are using Debian Etch 4.0.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ sudo apt-get install vncserver&lt;/span&gt;&lt;br /&gt;&lt;code&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-family:courier new;"&gt;$ vncserver :1 -geometry 1024x768 -depth 24 -pixelformat rgb565&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;It might ask you to enter a password to be used by users to connect your system through vnc.&lt;/span&gt; &lt;/span&gt;&lt;/code&gt;&lt;span style="font-family:arial;"&gt;The first time vncserver is started up, it will also create  a configuration file, in your home directory, called &lt;/span&gt;&lt;code&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;$HOME/.vnc/xstartup&lt;/span&gt;. &lt;span style="font-size:100%;"&gt;Execute the follow to stop vncserver.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;$ vncserver -kill :1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;On your client,&lt;br /&gt;&lt;br /&gt;$ vncviewer &lt;your_server&gt;:1&lt;br /&gt;&lt;/your_server&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Best part is you can connect to a vncserver through an SSH tunnel using -via option with vncviewer. But install tightvncserver on the host machine. In order to use ssh tunnel, you need to provide username and password for ssh login. so the first password is for ssh login while the second password is for vncserver available in ~/.vnc/passwd. -Fullcolor option gives best display property for your vnc session.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;[control@cube:]$ vncviewer -via swg@172.28.52.111 -Fullcolor insane:1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;VNC Viewer Free Edition 4.1.1 for X - built Feb 26 2007 20:38:07&lt;br /&gt;Copyright (C) 2002-2005 RealVNC Ltd.&lt;br /&gt;See http://www.realvnc.com for information on VNC.&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;swg@172.28.52.111's password: ***&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Sun Apr 27 12:24:43 2008&lt;br /&gt;CConn:       connected to host localhost port 5599&lt;br /&gt;CConnection: Server supports RFB protocol version 3.3&lt;br /&gt;CConnection: Using RFB protocol version 3.3&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;Password: ***&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Sun Apr 27 12:24:45 2008&lt;br /&gt;TXImage:     Using default colormap and visual, TrueColor, depth 24.&lt;br /&gt;CConn:       Using pixel format depth 24 (32bpp) little-endian rgb888&lt;br /&gt;CConn:       Using ZRLE encoding&lt;br /&gt;&lt;br /&gt;Sun Apr 27 12:24:52 2008&lt;br /&gt;CConn:       Throughput 20000 kbit/s - changing to hextile encoding&lt;br /&gt;CConn:       Using hextile encoding&lt;br /&gt;&lt;br /&gt;&lt;your_vnc_server_ip&gt;&lt;br /&gt;&lt;/your_vnc_server_ip&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-340152566540987578?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/340152566540987578/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=340152566540987578' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/340152566540987578'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/340152566540987578'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2008/04/remote-access-on-linux.html' title='Remote Access on Linux'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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-8380149803912347063.post-116644566627919546</id><published>2008-07-06T04:23:00.000-07:00</published><updated>2008-09-12T05:05:50.349-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Communication'/><title type='text'>Connecting a Linux server from a windows client</title><content type='html'>There are two ways we can connect a linux machine from windows:&lt;br /&gt;&lt;br /&gt;1. Using Putty to establish a ssh connection and exporting display using xmanager&lt;br /&gt;&lt;br /&gt;2. Using VNC client to connect to vnc server running on linux machine.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I would describe both the methods as neatly as possible.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Putty+ Xmanager&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. Download "Xmanager" from this site.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.netsarang.com/download/down_xme2.html" target="_blank"&gt;http://www.netsarang.com&lt;wbr&gt;/download/down_xme2.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2. Install the Xmanager Enterprise 2.1 Build 0038 . In the serial&lt;br /&gt;field type "evaluation".&lt;br /&gt;&lt;br /&gt;3. Once installation is over, go to start -&gt; all programs -&gt; Xmanager&lt;br /&gt;Enterprise -&gt; xmanager-passive&lt;br /&gt;&lt;br /&gt;4. Now run "putty.exe". Enter the IP of the ssh server you want to&lt;br /&gt;connect. Click on  connection -&gt; ssh -&gt; x11 on the left hand side bar&lt;br /&gt;and on the right hand side click on "Enable X11 forwarding".&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;5. Now login to your ssh server and run any gui application.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;VNC Server - client&lt;br /&gt;&lt;br /&gt;&lt;/span&gt; 1. Download realvnc viewer from this site. It would ask you to enter&lt;br /&gt;user info. Don't enter anything and click on "proceed to download".&lt;br /&gt;&lt;br /&gt;http://www.realvnc.com/products/free/4.1/winvncviewer.html&lt;br /&gt;&lt;br /&gt;2. Download the following exe file and NOT the zipped one and put it on desktop.&lt;br /&gt;&lt;br /&gt;VNC Free Edition Viewer for Windows&lt;br /&gt;Stand-alone Viewer&lt;br /&gt;Version 4.1.2&lt;br /&gt;&lt;br /&gt;3. Double click on it. It would ask for Server. Enter following&lt;br /&gt;&lt;br /&gt;your_vnc_server:1&lt;br /&gt;&lt;br /&gt;4. Then it will ask for password only. Now enter the password provided to you.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;5. Enter the password and you can the linux desktop.&lt;br /&gt;&lt;br /&gt;Caution: First try to connect the vncserver from a linux desktop and make sure that it is working. Then only try from a windows machine.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-116644566627919546?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/116644566627919546/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=116644566627919546' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/116644566627919546'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/116644566627919546'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2008/07/connecting-linux-server-from-windows.html' title='Connecting a Linux server from a windows client'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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-8380149803912347063.post-2825084157418031411</id><published>2008-06-05T20:29:00.000-07:00</published><updated>2008-09-12T05:04:22.630-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Basics'/><title type='text'>Renaming multiple files on Linux</title><content type='html'>&lt;p style="font-family: verdana;"&gt;The syntax for the rename command is:&lt;/p&gt; &lt;p style="font-weight: bold; font-family: verdana;"&gt;rename [ -v ] [ -n ] [ -f ] perlexpr [ files ]&lt;/p&gt;&lt;p style="font-family: verdana;"&gt;-v : verbose&lt;/p&gt;&lt;p style="font-family: verdana;"&gt;-n : test run&lt;/p&gt;&lt;p style="font-family: verdana;"&gt;perlexpr: perl regular expression&lt;/p&gt;&lt;span style="color: rgb(51, 51, 255); font-family: verdana;"&gt;Example 1:&lt;/span&gt;&lt;span style="font-family: verdana;"&gt; change "*.htm" to "*.html"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-family: verdana;"&gt;$ rename -n ’s/\.htm$/\.html/’ *.htm&lt;/span&gt;&lt;br /&gt;&lt;p style="font-family: verdana;"&gt;s - substitute : s/old/new&lt;/p&gt;&lt;p style="font-family: verdana;"&gt;$ - end of string. That is search for only '.htm', not '.html'&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p style="font-family: verdana;"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Example 2:&lt;/span&gt; change filenames that have the pattern &lt;em&gt;########.JPG&lt;/em&gt; (8 numbers and capital .JPG) to something like &lt;em&gt;BeachPics_########.jpg&lt;/em&gt;&lt;/p&gt;&lt;p style="font-weight: bold; font-family: verdana;"&gt;$ rename -n 's/&lt;span style="color: rgb(255, 0, 0);"&gt;(\d{8})&lt;/span&gt;\.JPG$/BeachPics_&lt;span style="color: rgb(255, 0, 0);"&gt;$1&lt;/span&gt;\.jpg/' *.JPG&lt;/p&gt;&lt;p style="font-family: verdana;"&gt;00001111.JPG renamed as BeachPics_00001111.jpg&lt;br /&gt;00001112.JPG renamed as BeachPics_00001112.jpg&lt;br /&gt;00001113.JPG renamed as BeachPics_00001113.jpg&lt;/p&gt;&lt;p style="font-family: verdana;"&gt;\d{8} : count 8 digits&lt;/p&gt;&lt;p style="font-family: verdana;"&gt;(\d{8}) : Parenthesis is meant to save this as an argument for later use&lt;/p&gt;&lt;p style="font-family: verdana;"&gt;$1 : insert the string from the first set of parenthesis - in this case the 8 digits&lt;br /&gt;&lt;/p&gt;&lt;pre style="font-family: verdana;"&gt;&lt;strong&gt;$ rename -n 's/\d{5}&lt;span style="color: rgb(255, 0, 0);"&gt;(\d{3})&lt;/span&gt;\.JPG$/BeachPics_&lt;span style="color: rgb(255, 0, 0);"&gt;$1&lt;/span&gt;\.jpg/' *.JPG&lt;/strong&gt;&lt;br /&gt;00000123.JPG renamed as BeachPics_123.jpg&lt;br /&gt;00000124.JPG renamed as BeachPics_124.jpg&lt;br /&gt;00000125.JPG renamed as BeachPics_125.jpg&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Example 3:&lt;/span&gt; replace 'weight_' to 'ffn_wt_' in all the files&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;$ rename -n 's/weight_*/ffn_wt_/g' *.txt&lt;/span&gt;&lt;br /&gt;weight_far.txt renamed as ffn_wt_far.txt&lt;br /&gt;weight_near.txt renamed as ffn_wt_near.txt&lt;br /&gt;weight_top.txt renamed as ffn_wt_top.txt&lt;br /&gt;&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/8380149803912347063-2825084157418031411?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/2825084157418031411/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=2825084157418031411' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/2825084157418031411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/2825084157418031411'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2008/06/renaming-multiple-files-on-linux.html' title='Renaming multiple files on Linux'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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-8380149803912347063.post-9076693651538360751</id><published>2008-05-28T07:17:00.000-07:00</published><updated>2008-09-12T05:04:31.581-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Basics'/><title type='text'>Bash History</title><content type='html'>During last 5 years of using Linux, bash has been the application I used most. Yet, I know little about it. As I am writing more and more commands on the console, I am feeling a need for efficiency. This forced me to dig more into bash and its power! But as we all know, people have already done the hard work and kept things ready for us to make use of them.&lt;br /&gt;&lt;br /&gt;In this article I would take about Bash history commands and how to efficiently use them. I won't do much apart from providing some good links in this regard:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt; &lt;a href="http://www.deadman.org/bash.html"&gt;Deadman.org&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.catonmat.net/blog/the-definitive-guide-to-bash-command-line-history/"&gt;http://www.catonmat.net/blog/the-definitive-guide-to-bash-command-line-history/&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;Summary of some commands:&lt;br /&gt;&lt;br /&gt;&lt;ul id="g6vs"&gt;&lt;li id="bhkd"&gt;     &lt;span id="udoc"  style="font-size:100%;"&gt;&lt;b id="o:or"&gt;Bash History&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;&lt;ul id="iw8l"&gt;&lt;li id="th0t"&gt;&lt;span id="c_k1"  style="font-size:100%;"&gt;!! - repeat last command&lt;/span&gt;&lt;/li&gt;&lt;li id="vwj5"&gt;&lt;span id="wuyb"  style="font-size:100%;"&gt;!foo - repeat last command starting with 'foo'&lt;/span&gt;&lt;/li&gt;&lt;li id="z71h"&gt;&lt;span id="y.nf"  style="font-size:100%;"&gt;CTRL + R - command auto completion&lt;/span&gt;&lt;/li&gt;&lt;li id="z71h"&gt;&lt;span id="y.nf"  style="font-size:100%;"&gt;history - prints a numbered list of previously typed commands&lt;/span&gt;&lt;/li&gt;&lt;li id="z71h"&gt;&lt;span id="y.nf"  style="font-size:100%;"&gt;!N - executes Nth command in the history list&lt;br /&gt; &lt;/span&gt;&lt;/li&gt;&lt;li id="z71h"&gt;&lt;span id="y.nf"  style="font-size:100%;"&gt;!foo:p - prints a command without executing it&lt;/span&gt;&lt;/li&gt;&lt;li id="z71h"&gt;&lt;span id="y.nf"  style="font-size:100%;"&gt;!$ - last argument (word) of the previous command&lt;/span&gt;&lt;/li&gt;&lt;li id="z71h"&gt;&lt;span id="y.nf"  style="font-size:100%;"&gt;!* - all arguments of previous commands&lt;/span&gt;&lt;/li&gt;&lt;li id="z71h"&gt;&lt;span id="y.nf"  style="font-size:100%;"&gt;^error^correction - re-executes previous command by replacing 'error' with 'correction'&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li id="i1gg"&gt;&lt;span id="i216"  style="font-size:100%;"&gt;&lt;b id="vxaj"&gt;Home / END&lt;/b&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;ul id="unwk"&gt;&lt;li id="w3en"&gt;&lt;span id="yfxs"  style="font-size:100%;"&gt;CTRL + a - beginning of a line&lt;/span&gt;&lt;/li&gt;&lt;li id="von:"&gt;&lt;span id="o687"  style="font-size:100%;"&gt;CTRL + e - End of a line&lt;/span&gt;&lt;/li&gt;&lt;li id="von:"&gt;&lt;span id="o687"  style="font-size:100%;"&gt;CTRL + w - erase a word&lt;/span&gt;&lt;/li&gt;&lt;li id="von:"&gt;&lt;span id="o687"  style="font-size:100%;"&gt;CTRL + u - erase from here to the beginning of the line&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li id="wu49"&gt;&lt;span style="font-weight: bold;"&gt;Modifying History behaviour&lt;/span&gt;&lt;br /&gt;   &lt;br /&gt;   &lt;pre id="e-sn0"&gt;$ export HISTFILESIZE=500&lt;br /&gt;$ export HISTIGNORE="&amp;amp;:[ ]*:exit"&lt;br /&gt;            This ignores repeated commands, commands that start with a space and 'exit' and they are not added to bash history&lt;br /&gt;&lt;br /&gt;$ shopt -s histappend &lt;br /&gt;$ shopt -s histverify&lt;br /&gt;            allows users to verify a substituted history expansion.&lt;br /&gt;&lt;br /&gt;$ shopt -s histreedit&lt;br /&gt;            allows users to re-edit a failed history substitution&lt;br /&gt;&lt;br /&gt;Put these lines into .bashrc file so that you won't have to type them again and again&lt;br /&gt;&lt;/pre&gt; &lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-9076693651538360751?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/9076693651538360751/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=9076693651538360751' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/9076693651538360751'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/9076693651538360751'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2008/05/bash-history.html' title='Bash History'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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-8380149803912347063.post-5807450773239108829</id><published>2008-03-11T04:10:00.000-07:00</published><updated>2008-09-12T05:05:28.681-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Plotting'/><title type='text'>Tryst with Xmgrace</title><content type='html'>&lt;a href="http://plasma-gate.weizmann.ac.il/Grace/"&gt;Xmgrace&lt;/a&gt; is a great WYSIWYG 2D plotting software available with GNU/Linux. Unfortunately it does not support 3D plotting at the moment. If you want to produce good quality graphs for technical papers, you should try your hands at it.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Typesetting&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Grace permits quite complex typesetting on a per string basis. Any string displayed (titles, legends, tick marks,...) may contain special control codes to display subscripts, change fonts within the string etc. &lt;/p&gt;&lt;br /&gt;&lt;p&gt;Example: &lt;/p&gt; &lt;p&gt;F\sX\N(\xe\f{}) = sin(\xe\f{})\#{b7}e\S-X\N\#{b7&lt;wbr&gt;}cos(\xe\f{})  &lt;/p&gt; &lt;p&gt;prints roughly &lt;/p&gt; &lt;blockquote&gt;&lt;code&gt; &lt;/code&gt;&lt;pre&gt;                       -x&lt;br /&gt;     F (e) = sin(e)·e  ·cos(e)&lt;br /&gt;      x&lt;br /&gt;   &lt;br /&gt;&lt;/pre&gt; &lt;/blockquote&gt;  &lt;p&gt;using string's initial font and e prints as epsilon from the Symbol font. &lt;/p&gt; &lt;p&gt;NOTE: Characters from the upper half of the char table can be entered directly from the keyboard, using appropriate &lt;code&gt;xmodmap(1)&lt;/code&gt; settings, or with the help of the font tool ("Window/Font tool").&lt;/p&gt;&lt;table border="1" height="1469" width="528"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;br /&gt;Control code &lt;/td&gt;&lt;td&gt; Description &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \f{x} &lt;/td&gt;&lt;td&gt; switch to font named "x", e.g. \f{Times}&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \f{n} &lt;/td&gt;&lt;td&gt; switch to font number n &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \f{} &lt;/td&gt;&lt;td&gt; return to original font &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \R{x} &lt;/td&gt;&lt;td&gt; switch to color named "x" &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \R{n} &lt;/td&gt;&lt;td&gt; switch to color number n &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \R{} &lt;/td&gt;&lt;td&gt; return to original color &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \#{x} &lt;/td&gt;&lt;td&gt; treat "x" (must be of even length) as list of hexadecimal char codes &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \t{xx xy yx yy} &lt;/td&gt;&lt;td&gt; apply transformation matrix &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \t{} &lt;/td&gt;&lt;td&gt; reset transformation matrix &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \z{x} &lt;/td&gt;&lt;td&gt; zoom x times &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \z{} &lt;/td&gt;&lt;td&gt; return to original zoom &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \r{x} &lt;/td&gt;&lt;td&gt; rotate by x degrees &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \l{x} &lt;/td&gt;&lt;td&gt; slant by factor x &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \v{x} &lt;/td&gt;&lt;td&gt; shift vertically by x &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \v{} &lt;/td&gt;&lt;td&gt; return to unshifted baseline &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \V{x} &lt;/td&gt;&lt;td&gt; shift baseline by x &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \V{} &lt;/td&gt;&lt;td&gt; reset baseline &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \h{x} &lt;/td&gt;&lt;td&gt; horizontal shift by x &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \n &lt;/td&gt;&lt;td&gt; new line &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \u &lt;/td&gt;&lt;td&gt; begin underline &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \U &lt;/td&gt;&lt;td&gt; stop underline &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \o &lt;/td&gt;&lt;td&gt; begin overline &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \O &lt;/td&gt;&lt;td&gt; stop overline &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \Fk &lt;/td&gt;&lt;td&gt; enable kerning &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \FK &lt;/td&gt;&lt;td&gt; disable kerning &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \Fl &lt;/td&gt;&lt;td&gt; enable ligatures &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \FL &lt;/td&gt;&lt;td&gt; disable ligatures &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \m{n} &lt;/td&gt;&lt;td&gt; mark current position as n &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \M{n} &lt;/td&gt;&lt;td&gt; return to saved position n &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \dl &lt;/td&gt;&lt;td&gt; LtoR substring direction &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \dr &lt;/td&gt;&lt;td&gt; RtoL substring direction &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \dL &lt;/td&gt;&lt;td&gt; LtoR text advancing &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \dR &lt;/td&gt;&lt;td&gt; RtoL text advancing &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \x &lt;/td&gt;&lt;td&gt; switch to Symbol font (same as \f{Symbol}) &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \+ &lt;/td&gt;&lt;td&gt; increase size (same as \z{1.19} ; 1.19 = sqrt(sqrt(2))) &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \- &lt;/td&gt;&lt;td&gt; decrease size (same as \z{0.84} ; 0.84 = 1/sqrt(sqrt(2))) &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \s &lt;/td&gt;&lt;td&gt; begin subscripting (same as \v{-0.4}\z{0.71}) &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \S &lt;/td&gt;&lt;td&gt; begin superscripting (same as \v{0.6}\z{0.71}) &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \T{xx xy yx yy} &lt;/td&gt;&lt;td&gt; same as \t{}\t{xx xy yx yy} &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \Z{x} &lt;/td&gt;&lt;td&gt; absolute zoom x times (same as \z{}\z{x}) &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \q &lt;/td&gt;&lt;td&gt; make font oblique (same as \l{0.25}) &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \Q &lt;/td&gt;&lt;td&gt; undo oblique (same as \l{-0.25}) &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \N &lt;/td&gt;&lt;td&gt; return to normal style (same as \v{}\t{}) &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \\ &lt;/td&gt;&lt;td&gt; print \ &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \n &lt;/td&gt;&lt;td&gt; switch to font number n (0-9) (deprecated) &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \c &lt;/td&gt;&lt;td&gt; begin using upper 128 characters of set (deprecated) &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; \C &lt;/td&gt;&lt;td&gt; stop using upper 128 characters of set (deprecated) &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;&lt;b&gt;Putting Symbols into Axis labels:&lt;/b&gt;&lt;/p&gt;&lt;p&gt;If you need special characters or special formatting in your label, you can use grace escape sequences (the sequence will appear verbatim in the text field but will be rendered on the graph), see  typesetting above. If you don't remember the mapping between alphabetic characters and the glyph you need in some specific fonts (mainly symbol and zapfdingbats), &lt;b&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;you can invoke the font tool from the text field by hitting CTRL-e. You can change fonts and select characters from there, they will be copied back in the text field when you press the "Accept" button.&lt;/span&gt;&lt;/b&gt; Beware of the position of the cursor as you enter text or change font in the font tool, the character or command will be inserted at this position, not at the end of the string!&lt;/p&gt;&lt;br /&gt;Note that you should see \f{Symbol} in the Cstring field of font tool when you select a symbol. In case you don't, write down manually and then click on a symbol you wish to insert and then press 'Accept'.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;overlaying graphs&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Begin by selecting &lt;em&gt;Main:Edit/Overlay graphs&lt;/em&gt; to bring up the Overlay widget.  &lt;/li&gt;&lt;li&gt;Select the graph numbers with which we would like to deal. In this example, we will overlay graph 1 onto graph 0. At this point, only graph 0 is visible. We cannot see Graph 1 to select since it does not exist at this point. We need to create simply by pressing mouse button 3 in a graph list window and selecting create new. &lt;/li&gt;&lt;li&gt;The overlay type is determined by what is common among the overlayed graphs. In our example, the x axis is common so we will select &lt;em&gt;X-axes same, Y-axes different. &lt;/em&gt;This is important because we don't want to alter any axes of the Overlay graph which we set the same as the underlay graph. In this example, we don't want to alter the x-axis of graph 1.&lt;/li&gt;&lt;li&gt;We are now ready to label the graph axes and read the data. One thing we must be careful to do is to always make sure that we are working on the intended graph. Seeing as the graphs are overlain, clicking within the frame is ambiguous as to what graph is selected. The rule is that in a region of overlay, clicking will cycle between the graphs. Hence, if graph 1 is selecting, clicking within the frame will toggle to graph 0.&lt;/li&gt;&lt;li&gt;Making sure that graph 0 is active, bring up the Axis properties widget. Now set the y axis title to Gnus.&lt;/li&gt;&lt;li&gt;Select graph 1 as active as set the title as Gnats. Notice how it overlaps the Gnus. We want to put this on the right side. From the axis label and bar tab, select label Properties/Side=Opposite.&lt;/li&gt;&lt;li&gt;Label the x axis to label it. If graph 1 is the current graph, noticed how it is greyed out because only 1 x axis need be active. Select graph 0 and you should now be able to alter the axis label.&lt;/li&gt;&lt;li&gt;You are ready to read in data. Just make sure the graph that is active when you read in the data (or create your set) is the one in which you intend it to go.&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/8380149803912347063-5807450773239108829?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/5807450773239108829/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=5807450773239108829' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/5807450773239108829'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/5807450773239108829'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2008/03/tryst-with-xmgrace.html' title='Tryst with Xmgrace'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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-8380149803912347063.post-2063111346348496540</id><published>2008-03-08T21:18:00.000-08:00</published><updated>2008-09-26T08:40:38.593-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Fedora'/><category scheme='http://www.blogger.com/atom/ns#' term='computing'/><title type='text'>Installing Matlab 7 on Fedora 7</title><content type='html'>I will just list common problems and their probable solutions.&lt;br /&gt;&lt;br /&gt;Problem 1: The installer does not work.&lt;br /&gt;&lt;a href="http://www.mathworks.com/support/solutions/data/1-12E9FJ.html?solution=1-12E9FJ"&gt;http://www.mathworks.com/support/solutions/data/1-12E9FJ.html?solution=1-12E9FJ&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;         libXp.so.6: cannot open shared object file: No such file or directory&lt;br /&gt;&lt;br /&gt;You need to install "libXp-devel" package.&lt;br /&gt;&lt;br /&gt;# yum install libXp-devel&lt;br /&gt;&lt;br /&gt;Problem 2:&lt;/span&gt; Why does MATLAB fail to launch on Linux machines with an error about Assertion `c-&gt;xlib.lock'  failed&lt;br /&gt;&lt;p&gt;&lt;a href="http://www.mathworks.com/support/solutions/data/1-54UIFE.html?solution=1-54UIFE"&gt;http://www.mathworks.com/support/solutions/data/1-54UIFE.html?solution=1-54UIFE&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Problem 3: When launching matlab, you may get following error&lt;br /&gt;&lt;/p&gt;&lt;p&gt;error while loading shared libraries: /usr/local/matlab73/bin/glnx86/libmwlapack.so: cannot restore segment prot after reloc: Permission denied &lt;/p&gt; &lt;!--subject_end--&gt; &lt;!--problem description begin--&gt;There are two solutions - first, you disable SELINUX. The other solution is to allow the permission in SELinux administration itself.&lt;br /&gt;&lt;br /&gt;Open the &lt;code&gt;SELinux Administration&lt;/code&gt; GUI and set the following &lt;code&gt;Memory Protection Boolean&lt;/code&gt; to true.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;Allow all unconfirmed executables to use libraries&lt;br /&gt;requiring text relocation that are not labeled texttrel_shlib_t&lt;/code&gt;.&lt;br /&gt;&lt;br /&gt;or run following command on console&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;# chcon -t texrel_shlib_t /usr/local/matlab2006b/bin/glnx86/*.so&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-2063111346348496540?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/2063111346348496540/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=2063111346348496540' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/2063111346348496540'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/2063111346348496540'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2008/03/installing-matlab-7-on-fedora-7.html' title='Installing Matlab 7 on Fedora 7'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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-8380149803912347063.post-1941598131228630360</id><published>2008-03-01T07:58:00.000-08:00</published><updated>2008-09-26T08:40:46.204-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Debian'/><category scheme='http://www.blogger.com/atom/ns#' term='hardware'/><title type='text'>Microphone not working on Debian Etch</title><content type='html'>I use alsa driver for my sound card. Sound works perfectly. However, microphone did not work for me. I could finally got it working after little exercise. Here is what I did.&lt;br /&gt;&lt;br /&gt;If you are using gnome, then open "gnome-volume-control".&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ gnome-volume-control &amp;amp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Edit -&gt; preference -&gt; click on 'microphone' and 'capture'. Now make sure the microphone and capture switches are un-muted. Don't close this window and open gnome-sound-recorder.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ gnome-sound-recorder &amp;amp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Click on the record button and say something on the mic. You should be able to hear your voice once you play the recorded file. If everything goes well, then save the settings.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;$ sudo alsactl store&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-1941598131228630360?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/1941598131228630360/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=1941598131228630360' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/1941598131228630360'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/1941598131228630360'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2008/03/microphone-not-working-on-debian-etch.html' title='Microphone not working on Debian Etch'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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-8380149803912347063.post-1513795985067037093</id><published>2008-02-29T23:04:00.000-08:00</published><updated>2008-09-12T05:05:15.104-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VoIP'/><title type='text'>Voice Chat on Linux</title><content type='html'>I am looking for a solution for Linux. Very lately I have realized the power of voice chat. I am frequently carrying out research discussions with my guide who is right now abroad and he is going to be there for a long t&lt;span style="display: block;" id="formatbar_Buttons"&gt;&lt;span class="on down" style="display: block;" id="formatbar_CreateLink" title="Link" onmouseover="ButtonHoverOn(this);" onmouseout="ButtonHoverOff(this);" onmouseup="" onmousedown="CheckFormatting(event);FormatbarButton('richeditorframe', this, 8);ButtonMouseDown(this);"&gt;&lt;/span&gt;&lt;/span&gt;ime. Everytime he wishes to chat with me, I am forced to switch to an windows machine where gtalk is installed.&lt;br /&gt;&lt;br /&gt;I tried my hands at &lt;a href="http://kopete.kde.org/"&gt;Kopete&lt;/a&gt;, &lt;a href="http://www.pidgin.im/"&gt;pidgin&lt;/a&gt;, &lt;a href="http://ekiga.org/"&gt;ekiga&lt;/a&gt;, &lt;a href="http://www.jabbin.com/int/index.php/download/"&gt;jabbin&lt;/a&gt;, gaim, &lt;a href="http://psi-im.org/download/"&gt;psi&lt;/a&gt; etc. without much success. While text messaging is supported, I failed to configure voice chat on it. I know that voice chat is supported on skype. However, I don't want to create another account for it. Moreover I am google fan and won't like to switch over to skype so soon.  I would keep updating this thread about the improvements I made in this regard.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8380149803912347063-1513795985067037093?l=insane-on-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://insane-on-linux.blogspot.com/feeds/1513795985067037093/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8380149803912347063&amp;postID=1513795985067037093' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/1513795985067037093'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8380149803912347063/posts/default/1513795985067037093'/><link rel='alternate' type='text/html' href='http://insane-on-linux.blogspot.com/2008/02/voice-chat-on-linux.html' title='Voice Chat on Linux'/><author><name>Swagat</name><uri>http://www.blogger.com/profile/11841700195873984316</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>
