<?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>about:benjie &#187; Ubuntu</title>
	<atom:link href="http://www.benjiegillam.com/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.benjiegillam.com</link>
	<description>Benjie Gillam&#039;s blog, and home of MythPyWii - probably the best Wii remote (Wiimote) interface to MythTV - see sidebar.</description>
	<lastBuildDate>Tue, 06 Apr 2010 14:14:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Useful Bash Scripts</title>
		<link>http://www.benjiegillam.com/2009/04/useful-bash-scripts/</link>
		<comments>http://www.benjiegillam.com/2009/04/useful-bash-scripts/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 18:44:41 +0000</pubDate>
		<dc:creator>Benjie</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Command-line interface]]></category>
		<category><![CDATA[Diff]]></category>
		<category><![CDATA[Grep]]></category>
		<category><![CDATA[Open source]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.benjiegillam.com/?p=190</guid>
		<description><![CDATA[Image via Wikipedia Here&#8217;s a couple of bash scripts I&#8217;ve written recently that might be of use to someone.They work well under Ubuntu, and should work under any GNU/Linux or Unix system with the suitable software installed. Improved &#8220;svn diff&#8221; command (ignores whitespace, colour highlights output, requires colordiff) &#8211; I put it in /usr/local/bin/svndiff: #!/bin/bash [...]]]></description>
			<content:encoded><![CDATA[<div class="zemanta-img" style="margin: 1em; display: block;">
<div>
<dl class="wp-caption alignright" style="width: 212px;">
<dt class="wp-caption-dt"><a href="http://en.wikipedia.org/wiki/Image:Bash-org.png"><img title="Bash" src="http://upload.wikimedia.org/wikipedia/en/thumb/4/41/Bash-org.png/202px-Bash-org.png" alt="Bash" height="85" width="202"></a></dt>
<dd class="wp-caption-dd zemanta-img-attribution" style="font-size: 0.8em;">Image via <a href="http://en.wikipedia.org/wiki/Image:Bash-org.png">Wikipedia</a></dd>
</dl>
</div>
</div>
<p>Here&#8217;s a couple of <a class="zem_slink" title="Bash" rel="wikipedia" href="http://en.wikipedia.org/wiki/Bash">bash</a> scripts I&#8217;ve written recently that might be of use to someone.They work well under <a class="zem_slink" title="Ubuntu" rel="homepage" href="http://www.ubuntu.com/">Ubuntu</a>, and should work under any <a class="zem_slink" title="Linux" rel="wikipedia" href="http://en.wikipedia.org/wiki/Linux">GNU/Linux</a> or Unix system with the suitable software installed.</p>
<p>Improved &#8220;svn diff&#8221; command (ignores <a class="zem_slink" title="Whitespace (computer science)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Whitespace_%28computer_science%29">whitespace</a>, colour highlights output, requires colordiff) &#8211; I put it in /usr/local/bin/svndiff:</p>
<p><code class="source">
#!/bin/bash
svn diff -x -w $@ | colordiff
</code>
</p>
<p>Improved recursive <a class="zem_slink" title="Grep" rel="wikipedia" href="http://en.wikipedia.org/wiki/Grep">grep</a> command (greps recursively, ignores files in the .svn folders, ignores temporary files, highlights output in colour) &#8211; I put it in /usr/local/bin/grepr:</p>
<p><code class="source">
#!/bin/sh
SEARCHTERM=$1;
shift;
find . -type f -a -not -iname &quot;*~&quot; -a -not -iwholename &quot;*/.svn/*&quot; -exec grep -H --color=auto $@ &quot;$SEARCHTERM&quot; &quot;{}&quot; \;</code>
</p>
<p>You might also be interested in my previous &#8220;whoops I deleted files without telling svn&#8221; post <a title="Telling SVN you deleted those files..." href="http://www.benjiegillam.com/2009/02/svn-hint-automatically-removing-manually-deleted-files-from-svn/">here</a>.</p>
<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><a class="zemanta-pixie-a" href="http://reblog.zemanta.com/zemified/2d71108e-406c-49e4-a42b-24959e42cab0/" title="Zemified by Zemanta"><img style="border: medium none ; float: right;" class="zemanta-pixie-img" src="http://img.zemanta.com/reblog_c.png?x-id=2d71108e-406c-49e4-a42b-24959e42cab0" alt="Reblog this post [with Zemanta]"></a><span class="zem-script more-related"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.benjiegillam.com/2009/04/useful-bash-scripts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Working: HDMI Audio on ATI Graphics Card</title>
		<link>http://www.benjiegillam.com/2008/10/working-hdmi-audio-on-ati-graphics-card/</link>
		<comments>http://www.benjiegillam.com/2008/10/working-hdmi-audio-on-ati-graphics-card/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 19:30:21 +0000</pubDate>
		<dc:creator>Benjie</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Intel Corporation]]></category>
		<category><![CDATA[PulseAudio]]></category>
		<category><![CDATA[Sound card]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Video card]]></category>

		<guid isPermaLink="false">http://www.benjiegillam.com/?p=169</guid>
		<description><![CDATA[Under Ubuntu Intrepid Ibex (should also work for Hardy Herron) with pulseaudio. (Gfx card: ATI HD 4850) It is a simple fix that took me ages to work out. Basically, PulseAudio does not recognize the graphics card&#8217;s sound card. To fix, we simply force it to recognize it, and remove detection  of alternatives to make [...]]]></description>
			<content:encoded><![CDATA[<div class="zemanta-img zemanta-action-click">
<div class="wp-caption alignright" style="width: 212px"><a href="http://commons.wikipedia.org/wiki/Image:High_Definition_Multimedia_Interface_Plug.jpg"><img title="List of video connectors" src="http://upload.wikimedia.org/wikipedia/commons/thumb/b/be/High_Definition_Multimedia_Interface_Plug.jpg/202px-High_Definition_Multimedia_Interface_Plug.jpg" alt="List of video connectors" width="202" height="96" /></a><p class="wp-caption-text">Image via Wikipedia</p></div>
</div>
<p>Under <a class="zem_slink" title="Ubuntu" rel="homepage" href="http://www.ubuntu.com/">Ubuntu Intrepid Ibex</a> (should also work for Hardy Herron) with pulseaudio.</p>
<p>(Gfx card: ATI HD 4850)</p>
<p>It is a simple fix that took me ages to work out. Basically, <a class="zem_slink" title="PulseAudio" rel="homepage" href="http://pulseaudio.org/">PulseAudio</a> does not recognize the graphics card&#8217;s sound card. To fix, we simply force it to recognize it, and remove detection  of alternatives to make it default. There is almost definitely a better way than removing the alternatives,  but *meh* it works for me.</p>
<p>First, work out which device is your correct <a class="zem_slink" title="High-Definition Multimedia Interface" rel="wikipedia" href="http://en.wikipedia.org/wiki/High-Definition_Multimedia_Interface">HDMI</a> device (in this case, <strong>1,3</strong> as it is card <strong>1</strong>, output <strong>3</strong>):</p>
<blockquote><p>$ aplay -l<br />
**** List of PLAYBACK Hardware Devices ****<br />
card 0: Intel [HDA Intel], device 0: ALC883 Analog [ALC883 Analog]<br />
Subdevices: 1/1<br />
Subdevice #0: subdevice #0<br />
card 0: Intel [HDA Intel], device 1: ALC883 Digital [ALC883 Digital]<br />
Subdevices: 1/1<br />
Subdevice #0: subdevice #0<br />
<strong>card 1</strong>: HDMI [HDA ATI <strong>HDMI</strong>], <strong>device 3</strong>: ATI HDMI [ATI HDMI]<br />
Subdevices: 0/1<br />
Subdevice #0: subdevice #0</p></blockquote>
<p>Open up /etc/pulse/default.pa in your favourite text editor</p>
<p>Add this line just before all the #load_module lines (around line 32), replacing <strong>1,3</strong> with whatever you found above):</p>
<blockquote><p>add-autoload-sink output module-alsa-sink device=plughw:<strong>1,3</strong> rate=48000 sink_name=output</p></blockquote>
<p>Comment out the module-hal-detect section (around lines 40-47):</p>
<blockquote><p>#### Automatically load driver modules depending on the hardware available<br />
#.ifexists module-hal-detect.so<br />
#load-module module-hal-detect<br />
#.else<br />
#### Alternatively use the static hardware detection module (for systems that<br />
#### lack HAL support)<br />
#load-module module-detect<br />
#.endif</p></blockquote>
<p>Uncomment this line at the bottom of the file:</p>
<blockquote><p>set-default-sink output</p></blockquote>
<p>Save and close the file, then log out and back in again (or kilall pulseaudio &amp;&amp; pulseaudio) and, hopefully, your sound should work!</p>
<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta</h6>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li"><a href="http://www.linux.com/feature/119926">Why you should care about PulseAudio (and how to start doing it)</a></li>
</ul>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Zemified by Zemanta" href="http://reblog.zemanta.com/zemified/a0afb46b-dfdd-46ea-bff6-24ff6a9c9f49/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/reblog_c.png?x-id=a0afb46b-dfdd-46ea-bff6-24ff6a9c9f49" alt="Reblog this post [with Zemanta]" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.benjiegillam.com/2008/10/working-hdmi-audio-on-ati-graphics-card/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Ubuntu NFS Home Directory Issues</title>
		<link>http://www.benjiegillam.com/2008/05/ubuntu-nfs-home-directory-issues/</link>
		<comments>http://www.benjiegillam.com/2008/05/ubuntu-nfs-home-directory-issues/#comments</comments>
		<pubDate>Sat, 24 May 2008 09:39:14 +0000</pubDate>
		<dc:creator>Benjie</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[fixes]]></category>
		<category><![CDATA[GNOME Display Manager]]></category>
		<category><![CDATA[Home directory]]></category>
		<category><![CDATA[NFS]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.benjiegillam.com/?p=112</guid>
		<description><![CDATA[Image by Blyzz via Flickr If you choose to mount over NFS just one of your user&#8217;s home directories (e.g. /home/jem) under Ubuntu, then you may come accross issues such as failure to log in, the screen freezing (but mouse still moving), loss of configuration data (e.g. icons in your panels), being told that your [...]]]></description>
			<content:encoded><![CDATA[<div class="zemanta-img" style="margin: 1em; float: right;"><a href="http://www.flickr.com/photos/29335908@N00/2496064731" target="_blank"><img style="border: medium none; display: block;" src="http://farm3.static.flickr.com/2176/2496064731_25750fe13f_m.jpg" alt="Horny Humpback" /></a></p>
<p class="zemanta-img-attribution">Image by <a href="http://www.flickr.com/photos/29335908@N00/2496064731" target="_blank">Blyzz</a> via Flickr</p>
</div>
<p>If you choose to <a href="https://help.ubuntu.com/community/SettingUpNFSHowTo">mount over NFS</a> just one of your user&#8217;s home directories (e.g. /home/jem) under <a class="zem_slink" title="Ubuntu (Linux distribution)" rel="homepage" href="http://www.ubuntu.com/" target="_blank">Ubuntu</a>, then you may come accross issues such as failure to log in, the screen freezing (but mouse still moving), loss of configuration data (e.g. icons in your panels), being told that your login session lasted under 10 seconds, and just general instability.</p>
<p>The reason for this is, in Ubuntu&#8217;s rush to get you to the Desktop quickly, it loads up <a class="zem_slink" title="GNOME Display Manager" rel="homepage" href="http://www.gnome.org/projects/gdm" target="_blank">GDM</a> (and possibly auto-logs you in) *before* your <a class="zem_slink" title="Home directory" rel="wikipedia" href="http://en.wikipedia.org/wiki/Home_directory" target="_blank">home directory</a> is mounted over <a class="zem_slink" title="Network File System (protocol)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Network_File_System_%28protocol%29" target="_blank">NFS</a>. This is a simple issue of priorities. However, if you log in before the home directory has been mounted, then gconfd-2 and other similar apps will load (or save) settings to your (supposedly empty) /home/jem on your hard drive. When you give up and log out (e.g. <a class="zem_slink" title="X Window System" rel="wikipedia" href="http://en.wikipedia.org/wiki/X_Window_System" target="_blank">Control-Alt-Backspace</a>, or a proper logout), and log back in again, these programs will still be accessing the wrong settings, because they continue to run in the background.</p>
<p>The solution is to abort Ubuntu&#8217;s Windows-like behaviour of allowing you to log in before everything has started running at boot time &#8211; change GDMs priority from 14 to 80 (or some other number). I chose to do this the lazy way, using &#8220;<tt>bum</tt>&#8220;. BUM, the Boot Up Manager, is a simple way to change all things related to booting. It is easy to use, though it does take quite a while (a few minutes!) to start the first time you run it. It must be run in a graphical environment. Simply tick the advanced box, go to the third tab, find gdm, and change its priority up to 80. Save, exit and reboot, and all is well again in the world&#8230; though you may have to restore your settings from a backup, or go through the long process of re-configuring your desktop the way you like it.</p>
<p>Good luck!</p>
<fieldset class="zemanta-related" style="margin: 0.5em 0pt 1em; padding: 0pt;">
<legend class="zemanta-title">Related articles</legend>
<ul class="zemanta-article-ul" style="margin: 1em 0pt 1.5em; padding: 0pt;">
<li class="zemanta-article" style="margin: 0.5em 2em;"><a title="Open in new window" href="http://www.cnet.com/8301-13880_1-9884908-68.html?part=rss&amp;subj=news" target="_blank">Get started faster in Ubuntu</a> [via Zemanta]</li>
<li class="zemanta-article" style="margin: 0.5em 2em;"><a title="Open in new window" href="http://lifehacker.com/379886/load-desktop-backgrounds-immediately-in-linux" target="_blank">Load Desktop Backgrounds Immediately in Linux [How To]</a> [via Zemanta]</li>
</ul>
</fieldset>
<div class="zemanta-pixie" style="margin: 5px 0pt; width: 100%;"><a class="zemanta-pixie-a" title="Zemified by Zemanta" href="http://www.zemanta.com/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/pixie.png?x-id=559c713d-f8df-418e-8561-bd51a361a037" alt="" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.benjiegillam.com/2008/05/ubuntu-nfs-home-directory-issues/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Synce-gnomevfs Install on Ubuntu</title>
		<link>http://www.benjiegillam.com/2008/04/synce-gnomevfs-install-on-ubuntu/</link>
		<comments>http://www.benjiegillam.com/2008/04/synce-gnomevfs-install-on-ubuntu/#comments</comments>
		<pubDate>Sun, 06 Apr 2008 13:06:21 +0000</pubDate>
		<dc:creator>Benjie</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[GNOME]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Windows Mobile]]></category>

		<guid isPermaLink="false">http://www.benjiegillam.com/?p=108</guid>
		<description><![CDATA[Image from Wikipedia Image from Wikipedia Yesterday I tried to install the latest version of synce in order to get Jem&#8217;s Dad&#8217;s Windows Mobile 6 phone to share files with Linux (Ubuntu Gutsy Gibbon in this case). After managing to get the software installed, I have been very impressed with it, however actually installing it [...]]]></description>
			<content:encoded><![CDATA[<div class="zemanta-img" style="margin: 1em; float: right;"><a href="http://en.wikipedia.org/wiki/Image:Ubuntu_Logo.svg" target="_blank"><img style="border: medium none ; display: block;" src="http://upload.wikimedia.org/wikipedia/en/thumb/9/94/Ubuntu_Logo.svg/202px-Ubuntu_Logo.svg.png" alt="Ubuntu (Linux distribution)" /></a>Image from <a href="http://en.wikipedia.org/wiki/Image:Ubuntu_Logo.svg">Wikipedia</a></p>
<p><a href="http://en.wikipedia.org/wiki/Image:WindowsMobileLogo.png" target="_blank"><img style="border: medium none; display: block;" src="http://upload.wikimedia.org/wikipedia/en/thumb/3/3b/WindowsMobileLogo.png/202px-WindowsMobileLogo.png" alt="Windows Mobile" /></a>Image from <a href="http://en.wikipedia.org/wiki/Image:WindowsMobileLogo.png">Wikipedia</a></p>
</div>
<p>Yesterday I tried to install the latest version of synce in order to get Jem&#8217;s Dad&#8217;s <a class="zem_slink" title="Windows Mobile" rel="homepage" href="http://microsoft.com/windowsmobile/" target="_blank">Windows Mobile 6</a> phone to share files with <a class="zem_slink" title="Linux" rel="wikipedia" href="http://en.wikipedia.org/wiki/Linux" target="_blank">Linux</a> (<a class="zem_slink" title="Ubuntu (Linux distribution)" rel="wikipedia" href="http://en.wikipedia.org/wiki/Ubuntu_%28Linux_distribution%29" target="_blank">Ubuntu</a> Gutsy Gibbon in this case). After managing to get the software installed, I have been very impressed with it, however actually installing it was a bit of a challenge, though the solution is quite simple and I share it with you now.</p>
<ol>
<li>Uninstall <strong>everything</strong> synce related before starting.</li>
<li>Follow the <a href="http://www.synce.org/moin/SynceWithUbuntu" target="_blank">Synce with Ubuntu</a> instructions.</li>
<li>pls should work at this time.</li>
<li>Follow the <a href="http://www.synce.org/moin/SynceTools/SynceVfs" target="_blank">SynceVfs</a> instructions.<br />
Use ./configure &#8211;prefix=/usr<br />
make; sudo make install</li>
<li><span id="currently"><strong>Heres the important bit:</strong><br />
cp /usr/etc/gnome-vfs-2.0/modules/synce-module.conf /etc/gnome-vfs-2.0/modules/</span></li>
<li><span id="currently">killall gnome-vfs-daemon</span></li>
</ol>
<p>I think that you can do step 5 alternatively by adding &#8211;sysconfdir=/etc to your ./configure command in step 4, however I have not tested this.</p>
<p>Once this is done you should be able to just plug your phone (or other Windows Mobile device) in to the USB, and type synce:/// into Nautilus&#8217; address bar. Simple!</p>
<div id="zemanta-pixie" style="margin: 5px 0pt; width: 100%;"><a id="zemanta-pixie-a" title="Zemified by Zemanta" href="http://www.zemanta.com/"><img id="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/pixie.png?x-id=e7613075-4058-499b-bd0b-4662b8096cc8" alt="" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://www.benjiegillam.com/2008/04/synce-gnomevfs-install-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
