<?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>The _khAttAm_ blog &#187; Linux</title>
	<atom:link href="http://www.khattam.info/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.khattam.info</link>
	<description>Sharing views and experiences</description>
	<lastBuildDate>Sat, 22 Oct 2011 06:18:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>[SOLVED] Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again.  Stop.</title>
		<link>http://www.khattam.info/solved-error-unable-to-find-the-sources-of-your-current-linux-kernel-specify-kern_dir-and-run-make-again-stop-2010-11-26.html</link>
		<comments>http://www.khattam.info/solved-error-unable-to-find-the-sources-of-your-current-linux-kernel-specify-kern_dir-and-run-make-again-stop-2010-11-26.html#comments</comments>
		<pubDate>Fri, 26 Nov 2010 13:15:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Natty Narwhal 11.04]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[headers]]></category>
		<category><![CDATA[Kernel]]></category>
		<category><![CDATA[modules]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://www.khattam.info/?p=1411</guid>
		<description><![CDATA[I was trying to run Oracle Virtualbox in my Debian testing installation in which I have just installed Ubuntu Natty Kernel from Ubuntu repositories. I got an error followed by a dialog prompting me to run: /etc/init.d/vboxdrv setup as root. However, it could not compile the kernel modules and I got the following error: Uninstalling [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I was trying to run Oracle Virtualbox in my Debian testing installation in which I have just installed Ubuntu Natty Kernel from Ubuntu repositories. I got an error followed by a dialog prompting me to run:<br />
/etc/init.d/vboxdrv setup<br />
as root.</p>
<p><span id="more-1411"></span></p>
<p>However, it could not compile the kernel modules and I got the following error:</p>
<blockquote><p>Uninstalling modules from DKMS<br />
  removing old DKMS module vboxhost version  3.2.10</p>
<p>&#8212;&#8212;&#8211; Uninstall Beginning &#8212;&#8212;&#8211;<br />
Module:  vboxhost<br />
Version: 3.2.10<br />
Kernel:  2.6.32-5-686-bigmem (i686)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Status: Before uninstall, this module version was ACTIVE on this kernel.</p>
<p>vboxdrv.ko:<br />
 &#8211; Uninstallation<br />
   &#8211; Deleting from: /lib/modules/2.6.32-5-686-bigmem/updates/dkms/<br />
 &#8211; Original module<br />
   &#8211; No original module was found for this module on this kernel.<br />
   &#8211; Use the dkms install command to reinstall any previous module version.</p>
<p>vboxnetflt.ko:<br />
 &#8211; Uninstallation<br />
   &#8211; Deleting from: /lib/modules/2.6.32-5-686-bigmem/updates/dkms/<br />
 &#8211; Original module<br />
   &#8211; No original module was found for this module on this kernel.<br />
   &#8211; Use the dkms install command to reinstall any previous module version.</p>
<p>vboxnetadp.ko:<br />
 &#8211; Uninstallation<br />
   &#8211; Deleting from: /lib/modules/2.6.32-5-686-bigmem/updates/dkms/<br />
 &#8211; Original module<br />
   &#8211; No original module was found for this module on this kernel.<br />
   &#8211; Use the dkms install command to reinstall any previous module version.</p>
<p>depmod&#8230;&#8230;</p>
<p>DKMS: uninstall Completed.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Deleting module version: 3.2.10<br />
completely from the DKMS tree.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Done.<br />
Attempting to install using DKMS</p>
<p>Creating symlink /var/lib/dkms/vboxhost/3.2.10/source -><br />
                 /usr/src/vboxhost-3.2.10</p>
<p>DKMS: add Completed.<br />
You can use the &#8211;kernelsourcedir option to tell DKMS where it&#8217;s located, or you could install the linux-headers-2.6.37-6-generic-pae package.<br />
Failed to install using DKMS, attempting to install without<br />
Makefile:159: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
</p></blockquote>
<p>I realized that I had just installed linux-image package only and not installed linux-headers while manually installing packages. This can be avoided by installing the corresponding headers. An easy way to do so is to run the following command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> dkms
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> linux-headers-<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">uname</span> <span style="color: #660033;">-r</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-d</span><span style="color: #ff0000;">'-'</span> -f3<span style="color: #000000; font-weight: bold;">`</span>-<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">uname</span> <span style="color: #660033;">-r</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-d</span><span style="color: #ff0000;">'-'</span> -f4<span style="color: #000000; font-weight: bold;">`</span></pre></div></div>

<p>If you are using the older kernel and not the latest version available in the repost\itory, run the following:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> dkms
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> linux-headers-<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">uname</span> -r<span style="color: #000000; font-weight: bold;">`</span></pre></div></div>

<p>If you are on Debian, sudo may or may not be installed and it may or may not be configured for your user. Just use su to login as root and run the commands without sudo.</p>
<p>Hope this helps.</p>
<div class="shr-publisher-1411"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.khattam.info/solved-error-unable-to-find-the-sources-of-your-current-linux-kernel-specify-kern_dir-and-run-make-again-stop-2010-11-26.html/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>[SOLVED] java.security.AccessControlException: access denied (java.net.SocketPermission host connect,resolve)</title>
		<link>http://www.khattam.info/solved-java-security-accesscontrolexception-access-denied-java-net-socketpermission-host-connectresolve-2010-03-24.html</link>
		<comments>http://www.khattam.info/solved-java-security-accesscontrolexception-access-denied-java-net-socketpermission-host-connectresolve-2010-03-24.html#comments</comments>
		<pubDate>Wed, 24 Mar 2010 08:35:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Lucid Lynx 10.04]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[java.net.SocketPermission]]></category>
		<category><![CDATA[java.security.AccessControlException]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jdk]]></category>
		<category><![CDATA[jre]]></category>
		<category><![CDATA[openjdk]]></category>
		<category><![CDATA[sun java]]></category>

		<guid isPermaLink="false">http://www.khattam.info/?p=731</guid>
		<description><![CDATA[I am building a Java Applet which needs to connect to foreign host to operate. I created it and it runs good on OpenJDK Runtime Environment (IcedTea6 1.8pre) installed on my Ubuntu 10.04 Lucid Lynx Beta. But it does not run with Sun Java Runtime Environment 1.6.0_18 on Windows. I don&#8217;t know if it also [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I am building a Java Applet which needs to connect to foreign host to operate. I created it and it runs good on OpenJDK Runtime Environment (IcedTea6 1.8pre) installed on my Ubuntu 10.04 Lucid Lynx Beta. But it does not run with Sun Java Runtime Environment 1.6.0_18 on Windows. I don&#8217;t know if it also does not work with Sun JRE in Linux. Also, as far as I know, OpenJDK/OpenJRE for Windows does not exist.</p>
<p><span id="more-731"></span></p>
<p>The applet shows somewhat this kind of when run in Windows under Sun JRE:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">java.security.AccessControlException: access denied (java.net.SocketPermission host connect,resolve)</pre></td></tr></table></div>

<p> and the page just stalls.</p>
<p>When I searched for help on the internet, I discovered that unsigned files do not run in Windows. So, I needed to sign it. The Certificate can cost at least a couple of hundred dollars for a month. If you are using it for commercial purposes, I advice you to buy a certificate. However, I just wanted my code to run in Windows and to do that I bundled the code inside a Jar file (I was just using the class file i.e.  code=&#8221;Classname.class&#8221;. Now I need to use code=&#8221;<PackageIfNotTheDefaultPackage.>Classname&#8221; archive=&#8221;JarName.jar&#8221; for applet in the HTML file.). So I am sharing what I did to make it run.</p>
<p>After building the Jar File (Netbeans IDE that I am using builds the Jar file automatically inside the dist sub-directory of the Project directory), I used the command</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">keytool <span style="color: #660033;">-genkey</span></pre></td></tr></table></div>

<p> and entered the details. You can choose your own password for keystore. You can either use the same password for key password or choose a different one. Now a keyfile named .keystote is created in the home directory. I need to certify the key. Since I have not purchased a security certificate, I needed to certify it myself using the following command:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">keytool <span style="color: #660033;">-selfcert</span></pre></td></tr></table></div>

<p>. Now a key named mykey is created for me to use. This should only be done once.</p>
<p>Now, I changed my directory to the dist directory and executed the following command to sign a MyJarApplet.jar:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">jarsigner <span style="color: #660033;">-storepass</span> KeySorePassword <span style="color: #660033;">-keypass</span> KeyPassPassword MyJarApplet.jar mykey</pre></td></tr></table></div>

<p> Here KeyStorePassword is the password used while creating the keystore and KeyPassPassword is the password used in the key mykey.</p>
<p>Now, the applet asks for authentication instead of showing nothing at all in Windows too.</p>
<p>Hope this helps.</p>
<p>References:<br />
<a href="http://www-personal.umich.edu/~lsiden/tutorials/signed-applet/signed-applet.html" onclick="pageTracker._trackPageview('/outgoing/www-personal.umich.edu/_lsiden/tutorials/signed-applet/signed-applet.html?referer=');">http://www-personal.umich.edu/~lsiden/tutorials/signed-applet/signed-applet.html</a><br />
<a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/jarsigner.html" onclick="pageTracker._trackPageview('/outgoing/java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/jarsigner.html?referer=');">http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/jarsigner.html</a><br />
<a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/keytool.html" onclick="pageTracker._trackPageview('/outgoing/java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/keytool.html?referer=');">http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/keytool.html</a></p>
<div class="shr-publisher-731"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.khattam.info/solved-java-security-accesscontrolexception-access-denied-java-net-socketpermission-host-connectresolve-2010-03-24.html/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>[HOWTO] Auto Re-Connect to dsl pppoe in Linux</title>
		<link>http://www.khattam.info/howto-auto-re-connect-to-dsl-pppoe-in-linux-2010-03-07.html</link>
		<comments>http://www.khattam.info/howto-auto-re-connect-to-dsl-pppoe-in-linux-2010-03-07.html#comments</comments>
		<pubDate>Sun, 07 Mar 2010 06:31:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Lucid Lynx 10.04]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[adsl]]></category>
		<category><![CDATA[alpha]]></category>
		<category><![CDATA[deluge]]></category>
		<category><![CDATA[dsl]]></category>
		<category><![CDATA[lucid]]></category>
		<category><![CDATA[lynx]]></category>
		<category><![CDATA[poff]]></category>
		<category><![CDATA[pon]]></category>
		<category><![CDATA[pppoe]]></category>
		<category><![CDATA[pppoeconf]]></category>
		<category><![CDATA[reconnect]]></category>
		<category><![CDATA[reconnecting]]></category>
		<category><![CDATA[ubnt]]></category>
		<category><![CDATA[Worldlink]]></category>

		<guid isPermaLink="false">http://www.khattam.info/?p=682</guid>
		<description><![CDATA[I am using Ubuntu 10.04 Lucid Lynx Alpha. I have a dsl connection (WiZoom, Wireless via ubnt but wired to my PC) from Worldlink Pvt. Ltd., Nepal. I need to connect via pppoe. I occasionally keep my PC to download overnight while I sleep or even when I am away. It works well with torrents [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p> I am using Ubuntu 10.04 Lucid Lynx Alpha. I have a dsl connection (WiZoom, Wireless via ubnt but wired to my PC) from Worldlink Pvt. Ltd., Nepal. I need to connect via pppoe. I occasionally keep my PC to download overnight while I sleep or even when I am away. It works well with torrents (with deluge as my torrent client, I haven&#8217;t used transmission torrent client much) but sometimes it disconnects from the internet. So, I had to configure it to auto re-connect on disconnect. It should also connect on logon. Since network manager does not meet my requirements, <span id="more-682"></span>I had to delete the DSL connection from my network manager (which I had configured to connect at logon). Then I would need to configure pppoe connection via pppoeconf. To do so, I bring up my terminal and type in:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> pppoeconf</pre></td></tr></table></div>

<p>After that I just answer a series of questions, which include my username and password. I leave all the other values to defaults as they work for me. If they don&#8217;t work for you, you may need some tweaking. You should look for help elsewhere as I am not aware of other connection types/settings.<br />
Now, I can connect from my terminal using:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> pon dsl-provider</pre></td></tr></table></div>

<p>and disconnect using:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> poff <span style="color: #660033;">-a</span></pre></td></tr></table></div>

<p>Now, I have verified that it works and am ready to move on. But disconnect does not disconnect me immediately. pppd does not terminate immediately after I use sudo poff -a so I had to write a small script that helps me disconnect immediately. To achieve that, I created a killpppd script and placed in /usr/local/sbin/. To do so, launch nautilus as root. To do so, press Alt+F2 and type in:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">gksu nautilus <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>sbin</pre></td></tr></table></div>

<p>Create a new text file and copy/paste or type in the following:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #666666; font-style: italic;">#kill pppd brutally</span>
<span style="color: #000000; font-weight: bold;">for</span> i <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">ps</span> <span style="color: #660033;">-eaf</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">&quot;pppd&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">tr</span> <span style="color: #660033;">-s</span> <span style="color: #ff0000;">&quot; &quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-f2</span> <span style="color: #660033;">-d</span> <span style="color: #ff0000;">&quot; &quot;</span><span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #000000; font-weight: bold;">do</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">kill</span> <span style="color: #660033;">-9</span> <span style="color: #800000;">${i}</span>
<span style="color: #000000; font-weight: bold;">done</span></pre></td></tr></table></div>

<p>Then I made it executable (Right Click on the file>Properties>Permissions>Allow executing file as Programs). Now, we can just run</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">killpppd</pre></td></tr></table></div>

<p> from terminal and the pppd dies and connection is lost.<br />
I have created yet another file that tries to disconnect using poff and also kills pppd with killpppd. I have named it dcon and it contains the following text:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> poff <span style="color: #660033;">-a</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> killpppd
<span style="color: #c20cb9; font-weight: bold;">sudo</span> poff <span style="color: #660033;">-a</span></pre></td></tr></table></div>

<p>Then I made it executable. This script first tries to disconnect gracefully and tries to kill pppd if that was not successful. I have made this like this because poff gives</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">/usr/bin/poff: No pppd is running.  None stopped.</pre></td></tr></table></div>

<p> if no pppd was running. So, I will get to know if pppd was running or not and if it did stop.<br />
Now, I need a connect script that only connects if the connection has been lost and does nothing if it has not. To achieve I use a small script by AT-HE and place it with name &#8220;connect&#8221; in /usr/local/sbin/. Here is the script:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #666666; font-style: italic;"># adsl-reconnect.sh by AT-HE (at_he hotmail) nov 2008. </span>
<span style="color: #666666; font-style: italic;"># Modified by _khAttAm_, March 2010</span>
&nbsp;
<span style="color: #007800;">IFACE</span>=ppp0
<span style="color: #007800;">DOWN</span>=dcon
<span style="color: #007800;">UP</span>=<span style="color: #ff0000;">&quot;pon dsl-provider&quot;</span>
<span style="color: #007800;">LOG</span>=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>dsl-reconnect.log
&nbsp;
<span style="color: #007800;">PTP</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">ifconfig</span> <span style="color: #007800;">$IFACE</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> P-t-P<span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-d</span> : <span style="color: #660033;">-f</span> <span style="color: #000000;">3</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-d</span> <span style="color: #ff0000;">&quot; &quot;</span> <span style="color: #660033;">-f</span> <span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #007800;">RECV</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">ping</span> <span style="color: #660033;">-c</span> <span style="color: #000000;">1</span> <span style="color: #007800;">$PTP</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> received<span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-d</span> , <span style="color: #660033;">-f</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-d</span> <span style="color: #ff0000;">&quot; &quot;</span> <span style="color: #660033;">-f</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">`</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$RECV</span>&quot;</span> <span style="color: #000000; font-weight: bold;">!</span>= <span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">then</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;connecting...&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-----</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span><span style="color: #007800;">$LOG</span>
<span style="color: #c20cb9; font-weight: bold;">date</span><span style="color: #000000; font-weight: bold;">&gt;&gt;</span><span style="color: #007800;">$LOG</span>
<span style="color: #007800;">$DOWN</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span><span style="color: #007800;">$LOG</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span>
<span style="color: #666666; font-style: italic;">#wait for kill</span>
<span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">3</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;hopefully killed&quot;</span>
<span style="color: #007800;">$UP</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span><span style="color: #007800;">$LOG</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">fi</span></pre></td></tr></table></div>

<p>Then I made it executable. I have named this one connect and placed at /usr/local/sbin. The script uses our dcon script to disconnect and pon dsl-provider to connect. It checks if the IP of our server (placed at PTP variable) is ping-able. In that case, the connection has not terminated and it does nothing. However, if the IP of the server is not ping-able, it disconnects (which has probably already been disconnected but pppd may not have died, so we need to kill it otherwise the connection is made with interface ppp1, ppp2 and the script will not work) and then tries to connect. This must be run as root so I created another file named con in the same directory (usr/local/sbin/) with contents:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> connect</pre></td></tr></table></div>

<p>Now, we can just run:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">con</pre></td></tr></table></div>

<p> from the terminal.<br />
Now, we have four files in /usr/local/sbin namely con, dcon, connect and killpppd. They can all be used from the terminal. Basically, only con is required as it does everything. It connects to the internet if there is no connection and re-connects if connection has been lost.<br />
Now, I needed to run the &#8220;con&#8221; script periodically. I have chosen to run it every minute. I have used cron to do that. To do that, I ran</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> crontab <span style="color: #660033;">-e</span></pre></td></tr></table></div>

<p>. If you are running it for the first time, you will need to choose an editor. I just chose nano. Now, we need to write in the following line at the end of the file that opens in nano. You can use Shift+Insert to paste the following line:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">* * * * * /usr/local/sbin/con</pre></td></tr></table></div>

<p>. Remember, the line needs to be exactly the same with all the asterisks in place. Save it with Ctrl+O and exit using Ctrl+X and crontab should update the scheduled task. This makes cron run the script &#8220;con&#8221; every minute.</p>
<p>Hope this helps others too.</p>
<p>References:<br />
<a href="http://kevin.vanzonneveld.net/techblog/article/schedule_tasks_on_linux_using_crontab/" onclick="pageTracker._trackPageview('/outgoing/kevin.vanzonneveld.net/techblog/article/schedule_tasks_on_linux_using_crontab/?referer=');">http://kevin.vanzonneveld.net/techblog/article/schedule_tasks_on_linux_using_crontab/</a><br />
<a href="http://geekhut.blogspot.com/2007/05/auto-reconnecting-lost-dsl-connection.html" onclick="pageTracker._trackPageview('/outgoing/geekhut.blogspot.com/2007/05/auto-reconnecting-lost-dsl-connection.html?referer=');">http://geekhut.blogspot.com/2007/05/auto-reconnecting-lost-dsl-connection.html</a></p>
<div class="shr-publisher-682"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.khattam.info/howto-auto-re-connect-to-dsl-pppoe-in-linux-2010-03-07.html/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Install OpenShot in Ubuntu 9.10 Karmic Koala and Ubuntu 10.04 Lucid Lynx</title>
		<link>http://www.khattam.info/install-openshot-in-ubuntu-9-10-karmic-koala-and-ubuntu-10-04-lucid-lynx-2010-01-03.html</link>
		<comments>http://www.khattam.info/install-openshot-in-ubuntu-9-10-karmic-koala-and-ubuntu-10-04-lucid-lynx-2010-01-03.html#comments</comments>
		<pubDate>Sat, 02 Jan 2010 20:59:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[non-linear]]></category>
		<category><![CDATA[OpenShot]]></category>
		<category><![CDATA[synaptic]]></category>
		<category><![CDATA[ubuntu 10.04]]></category>
		<category><![CDATA[ubuntu 9.10]]></category>
		<category><![CDATA[video editing]]></category>

		<guid isPermaLink="false">http://www.khattam.info/?p=572</guid>
		<description><![CDATA[OpenShot is one of the best non-linear video editors coming up for Linux. You can install development version of OpenShot by adding ppa:openshot.developers/ppa to Synaptic>Settings>Repositories>Other Software>Add. Then, it can simply be installed from Synaptic Package Manager.]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>OpenShot is one of the best non-linear video editors coming up for Linux. You can install development version of OpenShot by adding <strong>ppa:openshot.developers/ppa</strong> to Synaptic>Settings>Repositories>Other Software>Add. Then, it can simply be installed from Synaptic Package Manager.</p>
<div class="shr-publisher-572"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.khattam.info/install-openshot-in-ubuntu-9-10-karmic-koala-and-ubuntu-10-04-lucid-lynx-2010-01-03.html/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>[HOWTO] Make Docky 3-D Style in Ubuntu</title>
		<link>http://www.khattam.info/make-docky-3d-style-in-ubuntu-2009-12-30.html</link>
		<comments>http://www.khattam.info/make-docky-3d-style-in-ubuntu-2009-12-30.html#comments</comments>
		<pubDate>Wed, 30 Dec 2009 16:12:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Karmic Koala 9.10]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[3d]]></category>
		<category><![CDATA[docky]]></category>
		<category><![CDATA[gconf-editor]]></category>
		<category><![CDATA[Gnome Do]]></category>
		<category><![CDATA[karmic]]></category>
		<category><![CDATA[karmic koala]]></category>
		<category><![CDATA[Koala]]></category>
		<category><![CDATA[lucid]]></category>
		<category><![CDATA[lucid lynx]]></category>
		<category><![CDATA[lynx]]></category>

		<guid isPermaLink="false">http://www.khattam.info/?p=547</guid>
		<description><![CDATA[Docky is a great dock for Linux and is based on Gnome-do. Installation If you haven&#8217;t already installed it, you can add the following repositories to your Ubuntu 9.10 Karmic Koala or Lucid Lynx: &#8220;ppa:docky-core/ppa&#8221; in Synaptic Package Manager&#62;Settings&#62;Repositories then reload. Then you can simply install it from Synaptic. Now, launch it (Alt+F2&#62;docky or Accessories&#62;Docky) [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Docky is a great dock for Linux and is based on Gnome-do.<br />
<a href="http://www.khattam.info/wp-content/uploads/Screenshot-1.png"><img class="size-medium wp-image-549" title="Docky 3-D interface on Ubuntu 9.10 Karmic Koala" src="http://www.khattam.info/wp-content/uploads/Screenshot-1-300x22.png" alt="Screenshot 1 300x22 [HOWTO] Make Docky 3 D Style in Ubuntu" width="300" height="22" /></a></p>
<p><span id="more-547"></span><strong>Installation</strong><br />
If you haven&#8217;t already installed it, you can add the following repositories to  your Ubuntu 9.10 Karmic Koala or Lucid Lynx: &#8220;ppa:docky-core/ppa&#8221; in Synaptic Package Manager&gt;Settings&gt;Repositories then reload. Then you can simply install it from Synaptic.</p>
<p>Now, launch it (Alt+F2&gt;docky or Accessories&gt;Docky)  and then right click settings to configure it. After you are done configuring it, you can simply add applications to it by dragging them from the menu and dropping it on the docky.</p>
<p>After you are done configuring it, you may also want the 3-D look it offers. To get the 3D look, you will need to launch gconf-editor (Alt+F2&gt;gconf-editor) and then navigate to /apps/docky-2/Docky/Interface/DockPreferences/DockX where X=1, 2, 3&#8230; the number of your Dock. On the right hand pane, look for Position and make sure it is set to Bottom (this is the default). Now, check the checkbox next to ThreeDimensional. To view the changes, you will need to quit docky and start it again.<br />
<br />
Hope this helped.</p>
<div class="shr-publisher-547"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.khattam.info/make-docky-3d-style-in-ubuntu-2009-12-30.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[HOWTO] Change Ubuntu 9.10 Karmic Koala to Linuxmint 8 Helena</title>
		<link>http://www.khattam.info/howto-change-ubuntu-9-10-karmic-koala-to-linuxmint-8-helena-2009-12-26.html</link>
		<comments>http://www.khattam.info/howto-change-ubuntu-9-10-karmic-koala-to-linuxmint-8-helena-2009-12-26.html#comments</comments>
		<pubDate>Sat, 26 Dec 2009 00:06:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Karmic Koala 9.10]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[9.10]]></category>
		<category><![CDATA[Helena]]></category>
		<category><![CDATA[karmic]]></category>
		<category><![CDATA[karmic koala]]></category>
		<category><![CDATA[Koala]]></category>
		<category><![CDATA[Linux Mint]]></category>
		<category><![CDATA[LinuxMint]]></category>
		<category><![CDATA[Linuxmint 8]]></category>
		<category><![CDATA[mint]]></category>
		<category><![CDATA[mintconstructor]]></category>
		<category><![CDATA[remaster]]></category>
		<category><![CDATA[ubuntu 9.10]]></category>
		<category><![CDATA[ubuntu to linuxmint]]></category>

		<guid isPermaLink="false">http://www.khattam.info/?p=539</guid>
		<description><![CDATA[As you know, Linuxmint is based on Ubuntu. So I thought, it might be possible to take Ubuntu as a base and turn it to Linuxmint with available Linuxmint software. Thats what I did. I used Ubuntu Karmic Koala and turned it into Linuxmint Helena. You might use other Ubuntu base and turn it to [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>As you know, Linuxmint is based on Ubuntu. So I thought, it might be possible to take Ubuntu as a base and turn it to Linuxmint with available Linuxmint software. Thats what I did.</p>
<p>I used Ubuntu Karmic Koala and turned it into Linuxmint Helena. You might use other Ubuntu base and turn it to respective Linuxmint distro, but you may need to follow different (yet similar) steps. Here is how I did it.<span id="more-539"></span><br />
<br />
Please note that I am not trying to create Linuxmint Helena installation disk from Karmic Koala installation disk. What I am doing is turning a Karmic Koala installation to Linuxmint Helena Installation. However, after this is done, you may use mintconstructor to create Live+Installer CD/DVD for Linuxmint.</p>
<p>Disclaimer: I am not responsible for any kind of loss (time, data, your pet penguin.. whatever) you might face due to the instructions in this tutorial. Please proceed at your own risk.</p>
<p><strong>Installation of Ubuntu:</strong><br />
First of all, I installed Ubuntu 9.10 Karmic Koala. If you are reading this and have reached so far, I&#8217;ll assume that you know how to install Ubuntu so I&#8217;m skipping the details. Just a standard Ubuntu Karmic Koala installation, nothing more nothing less. You may also use your existing Ubuntu Karmic Koala installation.</p>
<p><strong>Addition of repositories:</strong></p>
<p>Launch Synaptic and navigate to Settings&gt;Repositories. In the other software tab, add the following lines one by one:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">deb http://packages.linuxmint.com/ helena main upstream import backport
deb-src http://packages.linuxmint.com/ helena main upstream import backport #Added by software-properties
deb http://archive.ubuntu.com/ubuntu/ karmic main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ karmic-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ karmic-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ karmic partner
deb http://packages.medibuntu.org/ karmic free non-free</pre></div></div>

<p><br />
Now, Reload the package list by clicking on Reload.</p>
<p>When reloading is complete, search for package mint-meta-main and mark it for installation. This will select most mint software. Also, search for xsplash and mark it for removal. Now apply the changes and wait.</p>
<p>When the installation is complete, reboot. After you are back, you should get a mint-like system with softwares, theme and boot screen of Linuxmint.</p>
<p><strong>More:</strong><br />
You can add mint-menu to your panel by right clicking the panel&gt;Add to Panel and select mintmenu. You can change the panel layout for it to look like Linuxmint.<br />
You may also create Linuxmint installation disk with the mintconstructor wizard (you will need to install mintconstructor first).</p>
<p>Hope this was helpful.</p>
<div class="shr-publisher-539"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.khattam.info/howto-change-ubuntu-9-10-karmic-koala-to-linuxmint-8-helena-2009-12-26.html/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>[HOWTO] Getting Started with J2ME on Ubuntu Karmic Koala with Netbeans</title>
		<link>http://www.khattam.info/howto-getting-started-with-j2me-on-ubuntu-karmic-koala-with-netbeans-2009-12-06.html</link>
		<comments>http://www.khattam.info/howto-getting-started-with-j2me-on-ubuntu-karmic-koala-with-netbeans-2009-12-06.html#comments</comments>
		<pubDate>Sun, 06 Dec 2009 05:32:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[9.10]]></category>
		<category><![CDATA[HTTP Server is no running. Start it first.]]></category>
		<category><![CDATA[j2me]]></category>
		<category><![CDATA[jar]]></category>
		<category><![CDATA[java mobile development]]></category>
		<category><![CDATA[karmic koala]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[mobility]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[ubuntu 9.10]]></category>

		<guid isPermaLink="false">http://www.khattam.info/?p=530</guid>
		<description><![CDATA[I want to build my college project on J2ME platform. I use Ubuntu and want to use NetBeans as my IDE. I just installed netbeans, Sun Java Wireless Toolkit for CLDC and Mobility pack for netbeans. Here is how I did it. I opened up Synaptic and installed netbeans. It installed openjdk as Java Development [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I want to build my college project on J2ME platform. I use Ubuntu and want to use NetBeans as my IDE.</p>
<p>I just installed netbeans, Sun Java Wireless Toolkit for CLDC and Mobility pack for netbeans. Here is how I did it. <span id="more-530"></span></p>
<p>I opened up Synaptic and installed netbeans. It installed openjdk as Java Development Kit. You may choose to install sun-java6-jdk instead. It should run fine (maybe better).</p>
<p>Now, when netbeans was installed, I downloaded <a title="Sun Java Wireless Toolkit" href="http://java.sun.com/products/sjwtoolkit/download.html?feed=JSC" target="_blank" onclick="pageTracker._trackPageview('/outgoing/java.sun.com/products/sjwtoolkit/download.html?feed=JSC&amp;referer=');">Sun Java Wireless Toolkit CLDC from sun website</a>. As it has a text based installer, I had to install it via terminal. Opened up the terminal and then changed the directory to where I downloaded the .sh file. Then ran it as sudo sh downloaded_file_name.sh. It asks a few questions such as path to JDK etc.</p>
<p>Then, I launched netbeans and then navigated through Tools&gt;Plugins. In the available plugins tab, I just sorted by category and installed both packages (Mobility and Mobile Web) packages.Then I restarted netbeans and then navigated through Tools&gt;Java Platforms. Then I selected Java ME MIDP Emulator and browsed for path where I had installed Sun Java Wireless Toolkit for CLDC.</p>
<p>Then I restarted netbeans again. Now I was able to create J2ME projects. While doing so, I had to select the directory where I installed the Sun Java Wireless Toolkit for CLDC.</p>
<p>I successfully ran the Hello World project inside the emulator.</p>
<p>Thank you for reading. Wish me luck for the project.</p>
<p></p>
<div class="shr-publisher-530"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.khattam.info/howto-getting-started-with-j2me-on-ubuntu-karmic-koala-with-netbeans-2009-12-06.html/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>[SOLVED] Problem Playing Media on Firefox on Ubuntu Linux</title>
		<link>http://www.khattam.info/solved-problem-playing-media-on-firefox-on-ubuntu-linux-2009-11-01.html</link>
		<comments>http://www.khattam.info/solved-problem-playing-media-on-firefox-on-ubuntu-linux-2009-11-01.html#comments</comments>
		<pubDate>Sun, 01 Nov 2009 16:42:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Karmic Koala 9.10]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[9.10]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[firefox-3.5]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[karmic]]></category>
		<category><![CDATA[karmic koala]]></category>
		<category><![CDATA[Koala]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[mozilla firefox]]></category>
		<category><![CDATA[mozilla-mplayer]]></category>
		<category><![CDATA[mozilla-plugin-vlc]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[streaming]]></category>

		<guid isPermaLink="false">http://www.khattam.info/?p=461</guid>
		<description><![CDATA[I am using Ubuntu 9.10 Karmic Koala on my Desktop with Firefox 3.5 as my primary browser. Recently I was facing problems playing online media (streaming mp3s, non-flash) including FM from my own page on Firefox.The fix was to remove all of the plugins mozilla-plugin-vlc and install only either mozilla-mplayer or totem-mozilla (or both). Hope [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p></p>
<p>I am using Ubuntu 9.10 Karmic Koala on my Desktop with Firefox 3.5 as my primary browser. Recently I was facing problems playing online media (streaming mp3s, non-flash) including FM from my own page on Firefox.<span id="more-461"></span>The fix was to remove all of the plugins mozilla-plugin-vlc and install only either mozilla-mplayer or totem-mozilla (or both).</p>
<p></p>
<p>Hope this helps.</p>
<div class="shr-publisher-461"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.khattam.info/solved-problem-playing-media-on-firefox-on-ubuntu-linux-2009-11-01.html/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>[HOWTO]Install Linux Mint menu in Ubuntu</title>
		<link>http://www.khattam.info/install-linux-mint-menu-in-ubuntu-2009-08-01.html</link>
		<comments>http://www.khattam.info/install-linux-mint-menu-in-ubuntu-2009-08-01.html#comments</comments>
		<pubDate>Sat, 01 Aug 2009 04:41:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Jaunty Jackalope 9.04]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[icon]]></category>
		<category><![CDATA[Jaunty]]></category>
		<category><![CDATA[Jaunty Jackalope]]></category>
		<category><![CDATA[Linux Mint]]></category>
		<category><![CDATA[LinuxMint]]></category>
		<category><![CDATA[menu]]></category>

		<guid isPermaLink="false">http://www.khattam.info/?p=273</guid>
		<description><![CDATA[Here is how I installed Linux Mint Menu in Ubuntu 9.04 Jaunty Jackalope. I downloaded the following packages from the Linux Mint Repo which can be found here: mintinstall mint-info mintsystem mintmenu These are the packages (current versions at the time of writing, I recommend you download them from the repository than from these links): [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Here is how I installed Linux Mint Menu in Ubuntu 9.04 Jaunty Jackalope. I downloaded the following packages from the Linux Mint Repo which can be found <a title="LinuxMint Packages" href="http://packages.linuxmint.com/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/packages.linuxmint.com/?referer=');">here</a>:<br />
mintinstall<br />
mint-info<br />
mintsystem<br />
mintmenu<span id="more-273"></span><br />
<br />
These are the packages (current versions at the time of writing, I recommend you download them from the repository than from these links):</p>
<p>http://packages.linuxmint.com/pool/main/m/mintinstall/mintinstall_6.3.7_all.deb</p>
<p>http://packages.linuxmint.com/pool/main/m/mintsystem/mintsystem_7.5.2_all.deb</p>
<p>http://packages.linuxmint.com/pool/main/m/mintmenu/mintmenu_4.7.9_all.deb</p>
<p>For my 64-bit version (amd64), the mint-info package is:</p>
<p>http://packages.linuxmint.com/pool/romeo/m/mint-info-x64/mint-info-x64_7.0.1_all.deb</p>
<p>For 32-bit, it may be different. Try:</p>
<p>http://packages.linuxmint.com/pool/main/m/mint-info-universal/mint-info-universal_7.0.1_all.deb</p>
<p>Now, install one by one in the following order:<br />
mintsystem<br />
mint-info<br />
mintinstall<br />
mintmenu</p>
<p>After the installation is done, right click on the panel and select Add to Panel. Then find mintmenu and add. To change the icon, right click on the menu and click on Preferences and then in the Button Icon, put in the full path to custom icon. You may want to put in /usr/share/icons/Human/22&#215;22/places/start-here.png</p>
<p>Please share your results.</p>
<div class="shr-publisher-273"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.khattam.info/install-linux-mint-menu-in-ubuntu-2009-08-01.html/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Listen to Nepali FM Radios Online (Kantipur FM, Hits FM, Maitri FM, Nepal FM, Ujyalo FM)</title>
		<link>http://www.khattam.info/listen-to-nepali-fm-radios-online-kantipur-fm-hits-fm-maitri-fm-nepal-fm-ujyalo-fm-2009-06-08.html</link>
		<comments>http://www.khattam.info/listen-to-nepali-fm-radios-online-kantipur-fm-hits-fm-maitri-fm-nepal-fm-ujyalo-fm-2009-06-08.html#comments</comments>
		<pubDate>Mon, 08 Jun 2009 03:20:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[FM]]></category>
		<category><![CDATA[Hits]]></category>
		<category><![CDATA[Kantipur]]></category>
		<category><![CDATA[kantipur fm nepal]]></category>
		<category><![CDATA[kantipurfm]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Maitri]]></category>
		<category><![CDATA[Nepal FM]]></category>
		<category><![CDATA[Nepali]]></category>
		<category><![CDATA[stream]]></category>
		<category><![CDATA[Ujyalo]]></category>
		<category><![CDATA[vlc]]></category>

		<guid isPermaLink="false">http://www.khattam.info/?p=215</guid>
		<description><![CDATA[If you are outside of the country or somewhere where you cannot listen to these FMs or simply want to waste your bandwidth, you can listen to them online, LIVE. Here you will find links to Kantipur FM, Hits FM, Maitri FM, Nepal FM and Ujyalo FM: http://www.khattam.info/fm (fixed) However, you may like to listen [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>If you are outside of the country or somewhere where you cannot listen to these FMs or simply want to waste your bandwidth, you can listen to them online, LIVE.</p>
<p><span id="more-215"></span></p>
<p>Here you will find links to Kantipur FM, Hits FM, Maitri FM, Nepal FM and Ujyalo FM:<br />
<a title="Listen to Nepali FM Online" href="http://www.khattam.info/fm" target="_self">http://www.khattam.info/fm</a> (fixed)</p>
<p></p>
<p>However, you may like to listen to them with your favourite media player (<a title="VLC Media Player" href="http://www.videolan.org/vlc/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.videolan.org/vlc/?referer=');">VLC</a>, what else). This can be possible if you have VLC installed. You will just need to download <a title="FM Playlist Files" href="http://khattam.info/fms.zip" target="_self" onclick="pageTracker._trackPageview('/outgoing/khattam.info/fms.zip?referer=');">this small file</a> and extract it somewhere. Then you may open those with VLC and listen to them.</p>
<p>In Ubuntu Jaunty Jackalope, I was unable to listen to Kantipur FM from their site, but am able to play the pls with VLC and Totem Media Player.</p>
<p></p>
<p>Goto FM Page at:<br />
<a title="Listen to Nepali FM Online" href="http://www.khattam.info/fm" target="_self">http://www.khattam.info/fm</a></p>
<p></p>
<div class="shr-publisher-215"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.khattam.info/listen-to-nepali-fm-radios-online-kantipur-fm-hits-fm-maitri-fm-nepal-fm-ujyalo-fm-2009-06-08.html/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
	</channel>
</rss>

