<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Functional Verification Blog &#187; Linux</title>
	<atom:link href="http://blog.asicguru.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.asicguru.com</link>
	<description>A Functional Verification Blog</description>
	<lastBuildDate>Tue, 18 May 2010 16:19:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ignoring files in svn stat</title>
		<link>http://blog.asicguru.com/2009/04/ignoring-files-in-svn-stat/</link>
		<comments>http://blog.asicguru.com/2009/04/ignoring-files-in-svn-stat/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 06:18:23 +0000</pubDate>
		<dc:creator>Puneet</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://asicguru.com/blog/?p=55</guid>
		<description><![CDATA[Sometimes when you have your object files inside your source directory and you try to do &#8220;svn stat&#8221;, It gives too verbose information about the gernerated object files with ? sign. You can mark them as ignore in svn using propedit so that next time when you do &#8220;svn stat&#8221; they wont be compared.
You can [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes when you have your object files inside your source directory and you try to do &#8220;svn stat&#8221;, It gives too verbose information about the gernerated object files with ? sign. You can mark them as ignore in svn using propedit so that next time when you do &#8220;svn stat&#8221; they wont be compared.</p>
<p>You can do it using :</p>
<p>svn propedit svn:ignore objects/</p>
<p>and in the log file enter &#8216;*&#8217;.  With the above command svn will ignore all files inside objects for comparison in svn stat.</p>
<p>Thanks,</p>
<p>Puneet</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.asicguru.com/2009/04/ignoring-files-in-svn-stat/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Usefull vimdiff commands to view diff and merge</title>
		<link>http://blog.asicguru.com/2008/10/usefull-vimdiff-commands-to-view-diff-and-merge/</link>
		<comments>http://blog.asicguru.com/2008/10/usefull-vimdiff-commands-to-view-diff-and-merge/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 12:20:55 +0000</pubDate>
		<dc:creator>Puneet</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://puneetworld.com/archives/48</guid>
		<description><![CDATA[Diffing the files and merging them is one of the very common task we do everyday. Following are few very useful commands to view the diff using vim and merge them using the vimdiff commands instead of copying and pasting from one file to another. 
To diff two files using vim : 
vimdiff  file1 [...]]]></description>
			<content:encoded><![CDATA[<p>Diffing the files and merging them is one of the very common task we do everyday. Following are few very useful commands to view the diff using vim and merge them using the vimdiff commands instead of copying and pasting from one file to another. </p>
<p>To diff two files using vim : </p>
<p>vimdiff  file1 file2<br />or <br />vim -d file1 file2</p>
<p>Ofcourse you can use gvim also but I don&#8217;t prefer using GVIM. </p>
<p>gvimdiff file1 file2 </p>
<p>Commands : </p>
<p>[c : Jump to previous diff<br />]c : Jump to the next diff</p>
<p>do or :diffget : Diff obtain (get the changes to the current buffer/file from the other buffer)<br />dp or :diffput : Diff Put (Put the changes from the current buffer/file to the other buffer)</p>
<p>As this being one of very command task I do, I have mapped them to single keys for the easy access.<br /> 
<p>nmap &lt;F7&gt; [czz <br />nmap &lt;F8&gt; ]czz<br />nmap &lt;F2&gt; do<br />nmap &lt;F3&gt; dp</p>
<p>The zz in the end of the command [c will center at the point of the diff so that we can view the diff clearly.</p>
<p>~Enjoy Vim</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.asicguru.com/2008/10/usefull-vimdiff-commands-to-view-diff-and-merge/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Sourcing a Shell script into perl</title>
		<link>http://blog.asicguru.com/2008/08/sourcing-a-shell-script-into-perl/</link>
		<comments>http://blog.asicguru.com/2008/08/sourcing-a-shell-script-into-perl/#comments</comments>
		<pubDate>Thu, 21 Aug 2008 13:37:28 +0000</pubDate>
		<dc:creator>Puneet</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://puneetworld.com/archives/37</guid>
		<description><![CDATA[A lot of times we require to source the shell variables or shell script into the perl environment. One way to do this is you add very variable into the perl script something like :
$ENV{&#8221;SOME_VAR&#8221;} = &#8220;SOME_VAL&#8221;;
The other best way to do this task is parse the shell file and source all the environment variables [...]]]></description>
			<content:encoded><![CDATA[<p>A lot of times we require to source the shell variables or shell script into the perl environment. One way to do this is you add very variable into the perl script something like :</p>
<p>$ENV{&#8221;SOME_VAR&#8221;} = &#8220;SOME_VAL&#8221;;</p>
<p>The other best way to do this task is parse the shell file and source all the environment variables in to perl script environment. This way we don&#8217;t need to modify your perl script every time the shell script is modified. <img src='http://blog.asicguru.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>my ($envar, $enval);<br />open IN, &#8220;. ./3rdParty.env; env |&#8221;<br />  or die &#8220;Could not run shell: $!\n&#8221;;<br />while ( &lt;IN&gt; ) {<br />  print  $_;<br />  chomp;<br />  ($envar,$enval) = split /=/,$_,2;<br />  $ENV{$envar} = $enval;<br />}<br />close IN;</p>
<p>This is very useful if the shell script is changed very frequently by the users.</p>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.asicguru.com/2008/08/sourcing-a-shell-script-into-perl/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Changing Case in VIM</title>
		<link>http://blog.asicguru.com/2008/08/changing-case-in-vim/</link>
		<comments>http://blog.asicguru.com/2008/08/changing-case-in-vim/#comments</comments>
		<pubDate>Thu, 21 Aug 2008 09:32:10 +0000</pubDate>
		<dc:creator>Puneet</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://puneetworld.com/archives/33</guid>
		<description><![CDATA[Sometimes we need to change the case of the letters in vim. Here is how you can do it with vim. Search and replace it with &#8220;\U&#38;&#8221; or &#8220;\L&#38;&#8221; or upper and lower letters. 
changing to CAPITAL LETTERS : 
:%s/^.*$/\U&#38;/g
Changing to lower letters :
:%s/^.*$/\L&#38;/g
Enjoy Power of VIM

]]></description>
			<content:encoded><![CDATA[<p>Sometimes we need to change the case of the letters in vim. Here is how you can do it with vim. Search and replace it with &#8220;\U&amp;&#8221; or &#8220;\L&amp;&#8221; or upper and lower letters. </p>
<p>changing to CAPITAL LETTERS : </p>
<p>:%s/^.*$/\U&amp;/g</p>
<p>Changing to lower letters :</p>
<p>:%s/^.*$/\L&amp;/g</p>
<p>Enjoy Power of VIM</p>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.asicguru.com/2008/08/changing-case-in-vim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LILO vs. GRUB</title>
		<link>http://blog.asicguru.com/2007/03/lilo-vs-grub/</link>
		<comments>http://blog.asicguru.com/2007/03/lilo-vs-grub/#comments</comments>
		<pubDate>Tue, 06 Mar 2007 09:33:28 +0000</pubDate>
		<dc:creator>Puneet</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://puneetworld.com/archives/21</guid>
		<description><![CDATA[Two most popular boot loaders on linux systems are LILO and GRUB. If there are more then I dont know  . First question is what is a boot loader ?
Boot loader loads the operating system to memory. When the system boots it reads the MBR(master boot record) of your system and You can store [...]]]></description>
			<content:encoded><![CDATA[<p>Two most popular boot loaders on linux systems are LILO and GRUB. If there are more then I dont know <img src='http://blog.asicguru.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> . First question is what is a boot loader ?</p>
<p>Boot loader loads the operating system to memory. When the system boots it reads the MBR(master boot record) of your system and You can store the boot record of only one operating system in a single MBR, so a problem becomes apparent when you require multiple operating systems. Hence the need for more flexible boot loaders and here comes LILO and GRUB in picture. Here are the main differences between these two.</p>
<ul>
<li>LILO has no interactive command interface, whereas GRUB does.</li>
<li>LILO does not support booting from a network, whereas GRUB does.</li>
<li>LILO stores information about the location of the kernel or other  operating system on the Master Boot Record (MBR). Every time a new  operating system or kernel is added to the system, the Stage 1 LILO  bootloader has to be manually overwritten, otherwise there is no way to  boot the new OS or kernel. This method is more risky than the method  used by GRUB because a mis-configured LILO configuration file may leave  the system unbootable (a popular way to fix this problem is to boot  from Knoppix or another live CD, chroot into the partition with  mis-configured lilo.conf and correct the problem). On the other hand,  correcting a mis-configured GRUB is comparatively simple as GRUB will  default to its command line interface where the user can boot the  system manually. This flexibility is probably the main reason why many  users nowadays prefer GRUB over LILO.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.asicguru.com/2007/03/lilo-vs-grub/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux runlevels and boot process</title>
		<link>http://blog.asicguru.com/2007/03/linux-runlevels-and-boot-process/</link>
		<comments>http://blog.asicguru.com/2007/03/linux-runlevels-and-boot-process/#comments</comments>
		<pubDate>Mon, 05 Mar 2007 08:38:16 +0000</pubDate>
		<dc:creator>Puneet</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://puneetworld.com/archives/20</guid>
		<description><![CDATA[I always see lots of directories in /etc/rc.d/ like rc.0, rc.1, rc.2, rc.3, rc.4, rc.5, and rc.6. Once I tried to find out what are all these. Then I came to know these are runlevels. Then the question came how do they get triggered and whats the difference between these runlevels. Here is what I [...]]]></description>
			<content:encoded><![CDATA[<p>I always see lots of directories in /etc/rc.d/ like rc.0, rc.1, rc.2, rc.3, rc.4, rc.5, and rc.6. Once I tried to find out what are all these. Then I came to know these are runlevels. Then the question came how do they get triggered and whats the difference between these runlevels. Here is what I found :</p>
<p>When you turn on the system following things happens :</p>
<blockquote><p>1. Boot loader finds the  kernel image from disk and loads it in to memory.</p>
<p>2. Kernel initializes the devices and its drivers</p>
<p>3. Kernel mounts the root file system</p>
<p>4. Kernel starts a program called init.</p>
<p>5. init start all the rest processes.</p></blockquote>
<p><strong>init</strong></p>
<p>There is nothing special about init. It is a program just like any other on the Linux system, and you&#8217;ll find it in /sbin along with other system binaries. The main purpose of init<code> </code>is to start and stop other programs in a particular sequence. All you have to know is how this sequence works.</p>
<p>Most linux system are System V (derived from AT&#038;T System V) based . Another is based on BSD (Berkeley Software Distribution). What&#8217;s the difference between the two? Basically BSD doesn&#8217;t have any runlevels. This means that System V  are more flexible</p>
<p>Most Linux distros put startup scripts in the rc subdirectories (rc1.d, rc2.d, etc.), whereas BSD systems house the system scripts in /etc/rc.d. Slackware&#8217;s init setup is similar to BSD systems, though Slackware does have runlevels and has had System V compatibility since Slackware 7.</p>
<p><strong> Runlevels :</strong></p>
<p>At any given time on a Linux system, a certain base set of processes is running. This state of the machine is called its <em>runlevel</em>, and it is denoted with a number from 0 through 6. The system spends most of its time in a single runlevel.<br />
You will also find a file named /etc/inittab. The system uses these files (and/or directories) to control the services to be started. If you look in the file /etc/inittab you will see something like:</p>
<p>id:5:initdefault:</p>
<p>l0:0:wait:/etc/rc.d/rc.0</p>
<p>l6:6:wait:/etc/rc.d/rc.6</p>
<p>x1:4:wait:/etc/rc.d/rc.4</p>
<p>First line means that the default runlevel on the system is 5. All lines in the inittab file take this form, with four fields separated by colons occurring in the following order:</p>
<div style="padding-right: 3em">
<li>A unique identifier (a short string, such as <code>id</code> in the preceding example)</li>
<li>The applicable runlevel number(s)</li>
<li>The action that <code>init</code> should take (in the preceding example, the action is to set the default runlevel to 5)</li>
<li>A command to execute (optional)</li>
</div>
<blockquote />
<table cellspacing="5">
<tr>
<td><strong>Run Level</strong></td>
<td style="width: 22%"><strong>Generic</strong></td>
<td style="width: 22%"><strong> <a href="http://fedora.redhat.com/">Linux/Fedora Core</a> </strong></td>
<td style="width: 22%"><strong> <a href="http://www.slackware.org/">Slackware</a> </strong></td>
<td style="width: 22%"><strong> <a href="http://www.debian.org/">Debian</a> </strong></td>
</tr>
<tr>
<td>0</td>
<td>Halt</td>
<td>Halt</td>
<td>Halt</td>
<td>Halt</td>
</tr>
<tr>
<td style="width: 20px">1</td>
<td>Single-user mode</td>
<td>Single-user mode</td>
<td>Single-user mode</td>
<td>Single-user mode</td>
</tr>
<tr>
<td>2</td>
<td>Basic multi-user mode (without networking)</td>
<td>User definable (Unused)</td>
<td>User definable &#8211; configured the same as runlevel 3</td>
<td>Multi-user mode</td>
</tr>
<tr>
<td>3</td>
<td>Full (text based) multi-user mode</td>
<td>Multi-user mode</td>
<td>Multi-user mode &#8211; default Slackware runlevel</td>
</tr>
<tr>
<td>4</td>
<td>Not used</td>
<td>Not used</td>
<td>X11 with KDM/GDM/XDM (session managers)</td>
<td>Multi-user mode</td>
</tr>
<tr>
<td>5</td>
<td>Full (GUI based) multi-user mode</td>
<td>Full multi-user mode (with an X-based login screen) &#8211; default runlevel</td>
<td>User definable &#8211; configured the same as runlevel 3</td>
<td>Multi-user mode</td>
</tr>
<tr>
<td>6</td>
<td>Reboot</td>
<td>Reboot</td>
<td>Reboot</td>
<td>Reboot</td>
</tr>
</table>
]]></content:encoded>
			<wfw:commentRss>http://blog.asicguru.com/2007/03/linux-runlevels-and-boot-process/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart the system.</title>
		<link>http://blog.asicguru.com/2006/12/firefox-is-already-running-but-is-not-responding-to-open-a-new-window-you-must-first-close-the-existing-firefox-process-or-restart-the-system/</link>
		<comments>http://blog.asicguru.com/2006/12/firefox-is-already-running-but-is-not-responding-to-open-a-new-window-you-must-first-close-the-existing-firefox-process-or-restart-the-system/#comments</comments>
		<pubDate>Thu, 14 Dec 2006 12:06:53 +0000</pubDate>
		<dc:creator>Puneet</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://puneetworld.com/archives/17</guid>
		<description><![CDATA[Sometimes when you try to start firefox, it gives error &#8220;Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart the system&#8221; and exits. This problem occur generally because of unclean shutdown or power reboots. Whenever we start firefox it creates a [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes when you try to start firefox, it gives error &#8220;<strong>Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart the system</strong>&#8221; and exits. This problem occur generally because of unclean shutdown or power reboots. Whenever we start firefox it creates a lock or .parentlock file in your firefox profile directory(~.mozilla/firefox/profile/.parentlock etc) and because of unclean shutdown not able to delete the file. This problem persists even if you try to reinstall the firefox.<br />
<strong> Simple solutions</strong> to this problem is remove the lock or .parentlock file :</p>
<p>> rm -rf .mozilla/firefox/lprrz8oe.default/.parentlock or<br />
> rm -rf .mozilla/firefox/lprrz8oe.default/lock</p>
<p>ENJOY BROWSING !!!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.asicguru.com/2006/12/firefox-is-already-running-but-is-not-responding-to-open-a-new-window-you-must-first-close-the-existing-firefox-process-or-restart-the-system/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to start openoffice faster in linux</title>
		<link>http://blog.asicguru.com/2006/11/how-to-start-openoffice-faster-in-linux/</link>
		<comments>http://blog.asicguru.com/2006/11/how-to-start-openoffice-faster-in-linux/#comments</comments>
		<pubDate>Thu, 02 Nov 2006 09:37:49 +0000</pubDate>
		<dc:creator>Puneet</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://puneetworld.com/http:/puneetworld.com/?page_id=2</guid>
		<description><![CDATA[I have a system with 1GB ram but the openoffice takes a long time to start up. Once I thought do some &#8220;googling and find out what is the  solution to this problem.
This is because by default the application only uses 9MB of the RAM for it&#8217;s graphic cache. To increase the Graphic Cache, [...]]]></description>
			<content:encoded><![CDATA[<p>I have a system with 1GB ram but the openoffice takes a long time to start up. Once I thought do some &#8220;googling and find out what is the  solution to this problem.</p>
<p>This is because by default the application only uses 9MB of the RAM for it&#8217;s graphic cache. To increase the Graphic Cache, go to &#8220;Tools > Options > OpenOffice.org > Memory&#8221; and increase the &#8220;Graphics Cache&#8221; from 9M to about 128MB (or whatever you want). Restart OpenOffice and you will notice that the latency has now dissapeared.</p>
<p>While you are at it, the Memory per object setting allocates memory for each object. The default is 2.4 MB which may need to be increased if you are working with high quality images or decreased if you are not really using images and you need to save on memory resources.</p>
<p>Enjoy!!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.asicguru.com/2006/11/how-to-start-openoffice-faster-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
