<?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>OpenPeta &#187; Common Errors And Solutions</title>
	<atom:link href="http://openpeta.com/index.php/category/common-errors-and-solutions/feed/" rel="self" type="application/rss+xml" />
	<link>http://openpeta.com</link>
	<description>Open Mind ....  Open Source ...</description>
	<lastBuildDate>Wed, 21 Jul 2010 03:20:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Ubuntu Tips and Tricks &#8211; 1</title>
		<link>http://openpeta.com/index.php/2009/05/ubuntu-tips-and-tricks/</link>
		<comments>http://openpeta.com/index.php/2009/05/ubuntu-tips-and-tricks/#comments</comments>
		<pubDate>Mon, 25 May 2009 01:18:01 +0000</pubDate>
		<dc:creator>ANTHONIRAJ</dc:creator>
				<category><![CDATA[Common Errors And Solutions]]></category>
		<category><![CDATA[Linux on NoteBook PCs]]></category>
		<category><![CDATA[Ubuntu Linux]]></category>

		<guid isPermaLink="false">http://www.openpeta.com/?p=231</guid>
		<description><![CDATA[Installing and Working NS2 [ Network Simulator ] is  very difficult in Ubuntu Linux . We need to change lot of configuration files and applying patches  . Like this lot of small issues are there in Ubuntu . so we decided to prepare small tips and tricks for those problems. one of my student prepared [...]]]></description>
			<content:encoded><![CDATA[<p>Installing and Working NS2 [ Network Simulator ] is  very difficult in Ubuntu Linux . We need to change lot of configuration files and applying patches  . Like this lot of small issues are there in Ubuntu . so we decided to prepare small tips and tricks for those problems. one of my student prepared some tips for the following issues</p>
<ol>
<li>Procedure to create and login as root from GUI  [ Not Recommended for Normal users]</li>
<li>Procedure to install NS2  [ Network Simulator] in ubuntu 8.10</li>
<li>Procedure to install VLC player in Ubuntu 8.10</li>
<li>Procedure to install Real player in Ubuntu 8.10                         ­</li>
</ol>
<p>Solutions are available in PDF file format . Just <a href="http://www.openpeta.com/wp-content/uploads/2009/05/ubuntu-tips.pdf" target="_blank">Click Here to Download</a> the file</p>
]]></content:encoded>
			<wfw:commentRss>http://openpeta.com/index.php/2009/05/ubuntu-tips-and-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Taking a Screenshot From A Daemon/Shell Script/Command Line</title>
		<link>http://openpeta.com/index.php/2009/04/taking-a-screenshot-from-a-daemonshell-scriptcommand-line/</link>
		<comments>http://openpeta.com/index.php/2009/04/taking-a-screenshot-from-a-daemonshell-scriptcommand-line/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 18:14:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Common Errors And Solutions]]></category>

		<guid isPermaLink="false">http://www.openpeta.com/2009/04/01/taking-a-screenshot-from-a-daemonshell-scriptcommand-line/</guid>
		<description><![CDATA[Taking a screenshot is very simple in Linux. Just hit the print screen button and we&#8217;re presented with a PNG file.But there are situations when we want to take a screenshot from a command line. Perhaps in a shell script, a daemon tool that we use to monitor the user&#8217;s activity. We would like to [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Taking a screenshot is very simple in Linux. Just hit the print screen button and we&#8217;re presented with a PNG file.But there are situations when we want to take a screenshot from a command line. Perhaps in a shell script, a daemon tool that we use to<br />
monitor the user&#8217;s activity. We would like to take a screenshot without  the user having to press the print screen button to log a user&#8217;s  activity. Perhaps to record the on screen activity in response to some suspicious user action.</p>
<p style="text-align: justify;">This is done using the xwd command in combination with other commands.</p>
<p style="text-align: justify;">The following command can be used to take screenshot without the user<br />
having to click on any window:</p>
<blockquote><p>xwd -root | xwdtopnm | pnmtopng &gt; Screenshot.png</p></blockquote>
<p>For this command to work you need the following packages:</p>
<p>1. x11-apps<br />
2. netpbm</p>
<p><span style="font-size:78%;">Raja Sekharan is a <a href="http://www.prototypepro.net">freelance web developer </a> who writes web development tutorials on his blog.  <a href="http://www.prototypepro.net">Prototype Pro</a>.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://openpeta.com/index.php/2009/04/taking-a-screenshot-from-a-daemonshell-scriptcommand-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Connecting Internet Using BSNL EVDO Card or Mobile GPRS in Fedora 9 / 10</title>
		<link>http://openpeta.com/index.php/2009/02/connecting-internet-using-bsnl-evdo-card-or-mobile-gprs-in-fedora-9-10/</link>
		<comments>http://openpeta.com/index.php/2009/02/connecting-internet-using-bsnl-evdo-card-or-mobile-gprs-in-fedora-9-10/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 11:52:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Common Errors And Solutions]]></category>
		<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://www.openpeta.com/2009/02/19/connecting-internet-using-bsnl-evdo-card-or-mobile-gprs-in-fedora-9-10/</guid>
		<description><![CDATA[http://linuxforadmin.blogspot.com/2008/03/how-to-connect-bsnl-evdo-datacard-in.html refer this link for configuring BSNL EVDO card in Linux . After configuring Card goto terminal in super user mode #suPassword : Use wvdial command for connecting Internet &#8230; #wvdial&#8211;> WvDial: Internet dialer version 1.60&#8211;> Cannot get information for serial port.&#8211;> Initializing modem.&#8211;> Sending: ATZATZOK&#8211;> Sending: ATQ0 V1 E1 S0=0 &#38;C1 &#38;D2 +FCLASS=0ATQ0 V1 [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-weight: bold; font-style: italic;">http://linuxforadmin.blogspot.com/2008/03/how-to-connect-bsnl-evdo-datacard-in.html</span></p>
<p>refer this link for configuring BSNL EVDO card in Linux . After configuring Card goto terminal in super user mode</p>
<p>#su<br />Password :</p>
<p>Use wvdial command for connecting Internet &#8230;</p>
<p>#wvdial<br />&#8211;> WvDial: Internet dialer version 1.60<br />&#8211;> Cannot get information for serial port.<br />&#8211;> Initializing modem.<br />&#8211;> Sending: ATZ<br />ATZ<br />OK<br />&#8211;> Sending: ATQ0 V1 E1 S0=0 &amp;C1 &amp;D2 +FCLASS=0<br />ATQ0 V1 E1 S0=0 &amp;C1 &amp;D2 +FCLASS=0<br />OK<br />&#8211;> Modem initialized.<br />&#8211;> Sending: ATDT#777<br />&#8211;> Waiting for carrier.<br />ATDT#777<br />CONNECT<br />&#8211;> Carrier detected.  Starting PPP immediately.<br />&#8211;> Starting pppd at Thu Feb 19 15:29:21 2009<br />&#8211;> Pid of pppd: 3989<br />&#8211;> Using interface ppp0<br />&#8211;> pppd: ���[08]`��[08]<br />&#8211;> pppd: ���[08]`��[08]<br />&#8211;> pppd: ���[08]`��[08]<br />&#8211;> pppd: ���[08]`��[08]<br />&#8211;> pppd: ���[08]`��[08]<br />&#8211;> local  IP address 10.3.2.53<br />&#8211;> pppd: ���[08]`��[08]<br />&#8211;> remote IP address 10.64.64.64<br />&#8211;> pppd: ���[08]`��[08]<br />&#8211;> primary   DNS address 218.248.240.181<br />&#8211;> pppd: ���[08]`��[08]<br />&#8211;> secondary DNS address 218.248.240.180<br />&#8211;> pppd: ���[08]`��[08]</p>
<p>Now Net is connected , even though You cant surf / browse / ping anything in Fedora . You need to configure the<br />name server . so goto the following file  and add this &#8220;nameserver 218.248.240.181&#8243;</p>
<p>#vi /etc/resolv.conf<br />nameserver 218.248.240.181</p>
<p>save and exit from the file &#8230;. Now  You can surf internet using firefox browser &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..</p>
]]></content:encoded>
			<wfw:commentRss>http://openpeta.com/index.php/2009/02/connecting-internet-using-bsnl-evdo-card-or-mobile-gprs-in-fedora-9-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joining Video Files Using Mencoder</title>
		<link>http://openpeta.com/index.php/2009/01/joining-video-files-using-mencoder/</link>
		<comments>http://openpeta.com/index.php/2009/01/joining-video-files-using-mencoder/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 03:07:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Common Errors And Solutions]]></category>
		<category><![CDATA[Installation]]></category>

		<guid isPermaLink="false">http://www.openpeta.com/2009/01/16/joining-video-files-using-mencoder/</guid>
		<description><![CDATA[Mencoder and cat commands are used to join the more than one video files .The video file may be .avi or .mpg. Here the steps for Ubuntu OS Step 1: Install the mencoder plugin sudo apt-get install mencoder mplayer Step 2 : Concatenate the files using cat command cat file1.avi file2.avi file3.avi &#62; out.avi Step [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Mencoder and cat commands are used to join the more than one video files .The video file may be .avi or .mpg. Here the steps for Ubuntu OS</p>
<p>Step 1: Install the mencoder plugin</p>
<blockquote><p><span style="font-weight: bold; font-style: italic;">sudo apt-get install mencoder mplayer</span></p></blockquote>
<p>Step 2 : Concatenate the files using cat command</p>
<blockquote><p><span style="font-weight: bold; font-style: italic;">cat file1.avi file2.avi file3.avi &gt; out.avi</span></p></blockquote>
<p>Step 3 : Encode the audio and video using mencoder</p>
<blockquote><p><span style="font-weight: bold; font-style: italic;">mencoder -forceidx -oac copy -ovc copy out.avi -o </span><span style="font-weight: bold; font-style: italic;">final.avi</span></p></blockquote>
<p>Now the final.avi has full movie&#8230;&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://openpeta.com/index.php/2009/01/joining-video-files-using-mencoder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>stdio.h: No such file or directory</title>
		<link>http://openpeta.com/index.php/2008/07/stdioh-no-such-file-or-directory/</link>
		<comments>http://openpeta.com/index.php/2008/07/stdioh-no-such-file-or-directory/#comments</comments>
		<pubDate>Fri, 25 Jul 2008 01:59:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Common Errors And Solutions]]></category>

		<guid isPermaLink="false">http://www.openpeta.com/2008/07/25/stdioh-no-such-file-or-directory/</guid>
		<description><![CDATA[sam.c:1:18: error: stdio.h: No such file or directorysam.c: In function ‘main’:sam.c:4: warning: incompatible implicit declaration of built-in function ‘printf’ This error occurs when you try to execute c program in Ubuntu . because of libc and libstdc++ package not installed in your Ubuntu. so first install the libc package using following command sudo apt-get install [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-weight: bold;">sam.c:1:18: error: stdio.h: No such file or directory</span><br /><span style="font-weight: bold;">sam.c: In function ‘main’:</span><br /><span style="font-weight: bold;">sam.c:4: warning: incompatible implicit declaration of built-in function ‘printf’</span></p>
<p>This error occurs when you try to execute c program in Ubuntu . because of libc and libstdc++ package not installed in your Ubuntu.</p>
<p>so first install the libc package using following command</p>
<p><span style="font-weight: bold;">sudo apt-get install build-essential</span></p>
<p>Now run your C program &#8230;..</p>
]]></content:encoded>
			<wfw:commentRss>http://openpeta.com/index.php/2008/07/stdioh-no-such-file-or-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Netbeans Display Problem in Ubuntu</title>
		<link>http://openpeta.com/index.php/2008/06/netbeans-display-problem-in-ubuntu/</link>
		<comments>http://openpeta.com/index.php/2008/06/netbeans-display-problem-in-ubuntu/#comments</comments>
		<pubDate>Mon, 30 Jun 2008 16:30:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Common Errors And Solutions]]></category>

		<guid isPermaLink="false">http://www.openpeta.com/2008/06/30/netbeans-display-problem-in-ubuntu/</guid>
		<description><![CDATA[Sometimes in Ubuntu or other linux OS , when you try to install Netbeans, you will get only blank netbeans window. this problem occurs due to AWT_Toolkit error. Solution 1. Goto terminal # vim /etc/profile Add the following Sysntax export AWT_TOOLKIT=MToolkit Save the file , now run or install netbeans &#8230;]]></description>
			<content:encoded><![CDATA[<p>Sometimes in Ubuntu or other linux OS , when you try to install Netbeans, you will get only blank netbeans window. this problem occurs due to AWT_Toolkit error.</p>
<p><span style="font-weight: bold;">Solution</span></p>
<p> 1. Goto terminal<br />       # vim /etc/profile<br /> Add the following Sysntax</p>
<div style="text-align: left;">       <span style="font-weight: bold;">export AWT_TOOLKIT=MToolkit</span></div>
<p>Save the file , now run or install netbeans &#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://openpeta.com/index.php/2008/06/netbeans-display-problem-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Netbeans 6.0 Installation Problem in Fedora 8</title>
		<link>http://openpeta.com/index.php/2008/04/netbeans-60-installation-problem-in-fedora-8/</link>
		<comments>http://openpeta.com/index.php/2008/04/netbeans-60-installation-problem-in-fedora-8/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 13:07:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Common Errors And Solutions]]></category>

		<guid isPermaLink="false">http://www.openpeta.com/2008/04/03/netbeans-60-installation-problem-in-fedora-8/</guid>
		<description><![CDATA[I Installed manually jdk 1.6.0 in my /usr/local/jdk1.6.0 path .When i try to install netbeans 6.0, i got some errors.Error details [root@antony]# ./netbeans-6.0-linux.sh Configuring the installer&#8230;Searching for JVM on the system&#8230;Java SE Development Kit (JDK) was not found on this computerJDK 6 or JDK 5 is required for installing the NetBeans IDE. Make sure that [...]]]></description>
			<content:encoded><![CDATA[<p>I Installed manually jdk 1.6.0 in my /usr/local/jdk1.6.0 path .<br />When i try to install netbeans 6.0, i got some errors.<br />Error details<br /> [root@antony]# <span style="font-weight: bold;">./netbeans-6.0-linux.sh </span><br />  Configuring the installer&#8230;<br />Searching for JVM on the system&#8230;<br />Java SE Development Kit (JDK) was not found on this computer<br />JDK 6 or JDK 5 is required for installing the NetBeans IDE. Make sure that the JDK is properly installed and run installer again.<br />You can specify valid JDK location using &#8211;javahome installer argument.</p>
<p>To download the JDK, visit http://java.sun.com/javase/downloads</p>
<p> So tried with &#8211;javahome options but again i got some errors</p>
<p>[root@antony]# <span style="font-weight: bold;">./netbeans-6.0-linux.sh  &#8211;javahome &#8220;/usr/local/jdk1.6.0/&#8221;</span><br />Configuring the installer&#8230;<br />Searching for JVM on the system&#8230;<br />Extracting installation data&#8230;<br />Running the installer wizard&#8230;<br /><span style="font-weight: bold;">java: xcb_xlib.c:50: xcb_xlib_unlock: Assertion `c->xlib.lock&#8217; failed.</span><br />./netbeans-6.0-linux.sh: line 1360:  8340 Aborted                 /usr/local/jdk1.6.0/bin/java -Xmx256m -Xms64m -Djava.io.tmpdir=/tmp -classpath /tmp/.nbi-4044410.tmp/bundle.jar org.netbeans.installer.Installer</p>
<p>Finally i found solution for this probelm,</p>
<p>Step 1:<br />   goto jre path in java installation directory<br />   [root@antony]# <span style="font-weight: bold;">cd /usr/local/jdk1.6.0/jre/lib/i386/</span><br />Step 2 :<br />   execute the following two commands<br />  [root@antony i386]# <span style="font-weight: bold;">sed -i &#8216;s/XINERAMA/FAKEEXTN/g&#8217; xawt/libmawt.so</span><br />  [root@antony i386]# <span style="font-weight: bold;">sed -i &#8216;s/XINERAMA/FAKEEXTN/g&#8217; headless/libmawt.so</span></p>
<p>Step 3 :<br />  Now execute netbeans with LAX_VM option<br />    [root@antony i386]# <span style="font-weight: bold;">./netbeans-6.0-linux.sh  LAX_VM /usr/local/jdk1.6.0/jre/bin/java</span></p>
<p>Thats all &#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://openpeta.com/index.php/2008/04/netbeans-60-installation-problem-in-fedora-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error Handling &#8211; Bad Interpreter : No such file or directory</title>
		<link>http://openpeta.com/index.php/2008/03/error-handling-bad-interpreter-no-such-file-or-directory/</link>
		<comments>http://openpeta.com/index.php/2008/03/error-handling-bad-interpreter-no-such-file-or-directory/#comments</comments>
		<pubDate>Fri, 21 Mar 2008 00:09:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Common Errors And Solutions]]></category>

		<guid isPermaLink="false">http://www.openpeta.com/2008/03/21/error-handling-bad-interpreter-no-such-file-or-directory/</guid>
		<description><![CDATA[Error : /bin/sh^M Bad Interpreter : No such file or directory This is one common problem when you try to execute shell script in Linux machine.When i install Octave in my Ubuntu Gutsy Gibbon i got this error.finally i changed all confiuration shell scripts into unix support formatusing dos2unix command . (Install sysutils package for [...]]]></description>
			<content:encoded><![CDATA[<p>Error : /bin/sh^M Bad Interpreter : No such file or directory</p>
<p>This is one common problem when you try to execute shell script in Linux machine.<br />When i install Octave in my Ubuntu Gutsy Gibbon i got this error.finally i changed all confiuration shell scripts into unix support format<br />using dos2unix command . (Install sysutils package for dos2unix in Ubuntu using synaptic package manager).</p>
<p>File name : configure.in (This is in dos support format)</p>
<p>Now i am going to chang this file to unix support format</p>
<p><span style="font-style: italic; font-weight: bold;">  # dos2unix configure.sh</span></p>
<p>then this script will work &#8230;&#8230;&#8230;&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://openpeta.com/index.php/2008/03/error-handling-bad-interpreter-no-such-file-or-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
