<?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>Midnight Oil &#187; Ubuntu</title>
	<atom:link href="http://tech.rehaniftikhar.com/category/ubuntu/feed" rel="self" type="application/rss+xml" />
	<link>http://tech.rehaniftikhar.com</link>
	<description>Losing sleep on Open Source Software</description>
	<lastBuildDate>Tue, 03 Nov 2009 18:24:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Trac-BZR: installing on Ubuntu/Debian</title>
		<link>http://tech.rehaniftikhar.com/ubuntu/trac-bzr-installing-on-ubuntudebian</link>
		<comments>http://tech.rehaniftikhar.com/ubuntu/trac-bzr-installing-on-ubuntudebian#comments</comments>
		<pubDate>Tue, 15 Sep 2009 19:31:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[System Admin]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://tech.rehaniftikhar.com/?p=30</guid>
		<description><![CDATA[A project I&#8217;m working on recently switched from Subversion (SVN) to Bazaar (BZR) for its Version Control System (VCS). Of the many things we didn&#8217;t like about Subversion (merging, line-ending conflicts, etc..), there were some things we&#8217;d grown to like, primarily the mature 3rd party ecosystem and its bread-winner Trac.Thankfully there are projects to extend [...]]]></description>
			<content:encoded><![CDATA[<p>A project I&#8217;m working on recently switched from <a href="http://subversion.tigris.org/" target="_blank">Subversion</a> (SVN) to <a href="http://bazaar-vcs.org/" target="_blank">Bazaar</a> (BZR) for its <a href="http://en.wikipedia.org/wiki/Revision_control" target="_blank">Version Control System</a> (VCS). Of the many things we didn&#8217;t like about Subversion (merging, line-ending conflicts, etc..), there were some things we&#8217;d grown to like, primarily the mature 3rd party ecosystem and its bread-winner <a href="http://trac.edgewall.org/">Trac</a>.Thankfully there are projects to extend Trac&#8217;s reach to other VCSs.</p>
<p>Of interest to me was <a href="https://launchpad.net/trac-bzr" target="_blank">trac-bzr</a>. Since Bazzar has the power of Canonical behind it, a cursory glance at the &#8220;universe&#8221; repository shows a package named &#8220;trac-bzr&#8221;. However a closer look reveals that this package is quite outdated:</p>
<pre>&gt;<strong>apt-cache show trac-bzr</strong>
Package: trac-bzr
Priority: optional
Section: universe/python
Installed-Size: 156
Maintainer: Ubuntu MOTU Developers &lt;ubuntu-motu@lists.ubuntu.com&gt;
Original-Maintainer: Chris Lamb &lt;chris@chris-lamb.co.uk&gt;
Architecture: all
Version: 0.2+<span style="color: #800000;"><strong>bzr31</strong></span>-3
...</pre>
<p>This seemed like a bad idea, seeing as the main branch was already at r69.</p>
<p>Here are the instructions on installing the latest version:</p>
<p>1. Make sure you have bzr installed</p>
<pre>sudo apt-get install bzr</pre>
<p>2. Get the latest version of trac</p>
<pre>sudo apt-get install trac</pre>
<p>3. Get the latest version of trac-bzr, and put it in a revisioned directory.</p>
<pre>bzr export ./trac-bzr-r`bzr revno lp:trac-bzr` lp:trac-bzr</pre>
<p>4. Install the plugin</p>
<pre>cd trac-bzr-r*
python setup.py install</pre>
<p>5. Configure trac to use the plugin as described in the trac-bzr README</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.rehaniftikhar.com/ubuntu/trac-bzr-installing-on-ubuntudebian/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting keyboard volume control working in KDE</title>
		<link>http://tech.rehaniftikhar.com/ubuntu/getting-keyboard-volume-control-working-in-kde</link>
		<comments>http://tech.rehaniftikhar.com/ubuntu/getting-keyboard-volume-control-working-in-kde#comments</comments>
		<pubDate>Fri, 04 Sep 2009 23:21:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://tech.rehaniftikhar.com/ubuntu/getting-keyboard-volume-control-working-in-kde</guid>
		<description><![CDATA[I recently switched from Gnome to KDE. One thing I noticed was the my volume up / volume down keys stopped working. The on-screen volume meter showed up, and reflected changes when I hit volume up or down, but it wasn&#8217;t changing my sound.
If I had kmixer open, I could see that the keys were [...]]]></description>
			<content:encoded><![CDATA[<p>I recently switched from Gnome to KDE. One thing I noticed was the my volume up / volume down keys stopped working. The on-screen volume meter showed up, and reflected changes when I hit volume up or down, but it wasn&#8217;t changing my sound.</p>
<p>If I had kmixer open, I could see that the keys were manipulating the PCM channel, not the Master or Front channels. A Google search later turned up a ticket on <a href="https://bugs.launchpad.net/ubuntu/+source/kdemultimedia/+bug/267245" target="_blank">Launchpad</a>. Turns out all you need to do is right click on the volume icon in the system tray and select &#8220;Select Master Channel&#8230;&#8221;.</p>
<p>For me, &#8220;PCM&#8221; was selected. I changed it to &#8220;Master&#8221; and viola</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.rehaniftikhar.com/ubuntu/getting-keyboard-volume-control-working-in-kde/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why does my keypad reset my X server?</title>
		<link>http://tech.rehaniftikhar.com/uncategorized/why-does-my-keypad-reset-my-x-server</link>
		<comments>http://tech.rehaniftikhar.com/uncategorized/why-does-my-keypad-reset-my-x-server#comments</comments>
		<pubDate>Mon, 06 Oct 2008 19:20:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://tech.rehaniftikhar.com/uncategorized/why-does-my-keypad-reset-my-x-server</guid>
		<description><![CDATA[For a while I&#8217;ve had this weird bug on my Ubuntu laptop where, while using an external keyboard, if I hit any key on the numeric keypad the current X server would reset. Incredibly annoying. What&#8217;s worse, is that I never really got around to &#8220;fixing&#8221; the problem, I just trained my right hand to [...]]]></description>
			<content:encoded><![CDATA[<p>For a while I&#8217;ve had this weird bug on my Ubuntu laptop where, while using an external keyboard, if I hit any key on the numeric keypad the current X server would reset. Incredibly annoying. What&#8217;s worse, is that I never really got around to &#8220;fixing&#8221; the problem, I just trained my right hand to not stray too far to the right. But of course, accidents happen, and this last time of losing work was the final &#8220;home loan that brought down the US economy&#8221;.</p>
<p>The problem originates somewhere between XGL and using your numeric keypad to control the pointer (known as Mouse Keys).</p>
<p>If you&#8217;re sure you don&#8217;t need XGL (check your xorg.conf first!), then simply remove it:</p>
<p><code>sudo apt-get remove xserver-xgl</code></p>
<p>And disable your Mouse Keys:</p>
<ol>
<li><strong>System -&gt; Preferences -&gt; Keyboard</strong></li>
<li><strong>Mouse Keys </strong>(tab)<strong> </strong></li>
<li>Uncheck &#8220;Allow to control the pointer using the keyboard&#8221;</li>
</ol>
<p>Now restart your machine, and <em>Voilà</em></p>
]]></content:encoded>
			<wfw:commentRss>http://tech.rehaniftikhar.com/uncategorized/why-does-my-keypad-reset-my-x-server/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Specifying a JVM for applications that don&#8217;t ask</title>
		<link>http://tech.rehaniftikhar.com/ubuntu/specifying-a-jvm-for-applications-that-dont-ask</link>
		<comments>http://tech.rehaniftikhar.com/ubuntu/specifying-a-jvm-for-applications-that-dont-ask#comments</comments>
		<pubDate>Wed, 27 Feb 2008 04:02:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jvm]]></category>
		<category><![CDATA[PATH]]></category>

		<guid isPermaLink="false">http://tech.rehaniftikhar.com/ubuntu/specifying-a-jvm-for-applications-that-dont-ask</guid>
		<description><![CDATA[Some programs (ie. Eclipse) will ask you which JVM you want to use in the event that you have multiple. Other programs will just scrape your PATH for the first Java binary.
Say you want to run Azureus with Java 6 but you don&#8217;t want to install the JRE from Ubuntu repositories.

Download the JRE binaries from [...]]]></description>
			<content:encoded><![CDATA[<p>Some programs (ie. Eclipse) will ask you which JVM you want to use in the event that you have multiple. Other programs will just scrape your PATH for the first Java binary.</p>
<p>Say you want to run Azureus with Java 6 but you don&#8217;t want to install the JRE from Ubuntu repositories.</p>
<ol>
<li>Download the JRE binaries from http://java.sun.com ( or whatever JRE you want )</li>
<li>Download an application that requires a JRE</li>
<li>Run the following in your terminal:<br />
<code>(PATH=/path/to/your/java/executable:$PATH &amp;&amp; \ /path/to/the/app/to/run)</code></li>
<li>Make sure to wrap you command in parentheses!</li>
</ol>
<p>What&#8217;s happening here is:</p>
<ol>
<li>You are prepending the location of the new JRE to your current PATH variable</li>
<li>If that was successful, you are executing your application. If not, then your application won&#8217;t be started</li>
<li>All of this is done within a set of parentheses. This runs everything in a <em>subshell.</em> When you exit the application, your regular PATH variable is untouched.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://tech.rehaniftikhar.com/ubuntu/specifying-a-jvm-for-applications-that-dont-ask/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The closest thing to piping a password to SSH</title>
		<link>http://tech.rehaniftikhar.com/ubuntu/the-closest-thing-to-piping-a-password-to-ssh</link>
		<comments>http://tech.rehaniftikhar.com/ubuntu/the-closest-thing-to-piping-a-password-to-ssh#comments</comments>
		<pubDate>Tue, 26 Feb 2008 18:10:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[System Admin]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://tech.rehaniftikhar.com/?p=6</guid>
		<description><![CDATA[There are a few cases in life where you want to connect to SSH without having to type in the password by hand. Most of the times you can use ssh-keygen and use private (or public) keys.
However, for the 0.5% of the time where you cannot use keys, you can use a little program called [...]]]></description>
			<content:encoded><![CDATA[<p>There are a few cases in life where you want to connect to SSH <strong>without</strong> having to type in the password by hand. Most of the times you can use ssh-keygen and use private (or public) keys.</p>
<p>However, for the 0.5% of the time where you cannot use keys, you can use a little program called <a href="http://expect.nist.gov/">expect</a>.</p>
<p>BTW, this does not, and should NEVER work:<br />
<code>echo 'mypassword' | ssh user@server</code></p>
<p>Installing Expect:<br />
<code>sudo apt-get install expect</code></p>
<p>Create the expect script:<br />
<code>nano connect.sh</code></p>
<p>Paste the basic code:<br />
<code><br />
#!/usr/bin/expect<br />
set timeout 60<br />
spawn ssh -l username server<br />
expect "password: $"<br />
send "password\n"<br />
expect "$ $"<br />
interact<br />
</code></p>
<p><em>Replace &#8216;username&#8217; and &#8217;server&#8217; on line 3 and &#8216;password&#8217; on line 5.</em><br />
<em>The second to last line, &#8216;expect &#8220;$ $&#8221;&#8216; is for a bash shell. Replace the first &#8216;$&#8217; with whatever your prompt is.</em></p>
<p>Save ( ctrl + o ) and Exit ( ctrl + x )<br />
Make the script executable<br />
<code>chmod +x connect.sh</code></p>
<p><a href="http://modp.com/wiki/sshpasswords">Credits</a></p>
]]></content:encoded>
			<wfw:commentRss>http://tech.rehaniftikhar.com/ubuntu/the-closest-thing-to-piping-a-password-to-ssh/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bringing back wireless after suspend in Ubuntu Gusty</title>
		<link>http://tech.rehaniftikhar.com/ubuntu/bringing-back-wireless-after-suspend-in-ubuntu-gusty</link>
		<comments>http://tech.rehaniftikhar.com/ubuntu/bringing-back-wireless-after-suspend-in-ubuntu-gusty#comments</comments>
		<pubDate>Mon, 25 Feb 2008 00:32:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://tech.rehaniftikhar.com/?p=5</guid>
		<description><![CDATA[It&#8217;s true that some features of Linux aren&#8217;t quite as reliable as their Windows counterparts. For me one of those &#8220;nice to have but not totally necessary&#8221; features has been Suspend and Hibernate. In the past, I&#8217;ve had experiences where either the OS just hangs or never wakes up. However, my new experience is that [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s true that some features of Linux aren&#8217;t quite as reliable as their Windows counterparts. For me one of those &#8220;nice to have but not totally necessary&#8221; features has been Suspend and Hibernate. In the past, I&#8217;ve had experiences where either the OS just hangs or never wakes up. However, my new experience is that (with Ubuntu Gusty (7.10)) everything comes back from Suspend or Hibernate EXCEPT my wireless interface. If you&#8217;re like me (and everyone else on the planet) your wireless connection is vital.</p>
<p>After some searching on <a href="https://bugs.launchpad.net/ubuntu/+bug/115743">Ubuntu&#8217;s launchpad</a>, I found the answer:</p>
<p>Open <strong>/etc/default/acpi-support</strong><br />
<code><br />
sudo nano /etc/default/acpi-support<br />
</code></p>
<p>Add <em>networking</em> to the <em>STOP_SERVICES</em>. For me it was on line 61.</p>
<p><strong>Before</strong><br />
<code><br />
# Add services to this list to stop them before suspend and restart them in<br />
# the resume process.<br />
STOP_SERVICES="mysql"<br />
</code></p>
<p><strong>After</strong><br />
<code><br />
# Add services to this list to stop them before suspend and restart them in<br />
# the resume process.<br />
STOP_SERVICES="mysql networking"<br />
</code></p>
<p>Your wireless should now come back after Suspend / Hibernate.</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.rehaniftikhar.com/ubuntu/bringing-back-wireless-after-suspend-in-ubuntu-gusty/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
