<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Paddy Dempster's Random Memories</title>
	<atom:link href="http://paddydempster.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://paddydempster.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Sat, 23 Apr 2011 20:52:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='paddydempster.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Paddy Dempster's Random Memories</title>
		<link>http://paddydempster.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://paddydempster.wordpress.com/osd.xml" title="Paddy Dempster&#039;s Random Memories" />
	<atom:link rel='hub' href='http://paddydempster.wordpress.com/?pushpress=hub'/>
		<item>
		<title>My Nerd score!</title>
		<link>http://paddydempster.wordpress.com/2010/04/21/my-nerd-score/</link>
		<comments>http://paddydempster.wordpress.com/2010/04/21/my-nerd-score/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 13:07:07 +0000</pubDate>
		<dc:creator>Paddy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://paddydempster.wordpress.com/?p=38</guid>
		<description><![CDATA[Guess I just had to know.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=paddydempster.wordpress.com&amp;blog=3417304&amp;post=38&amp;subd=paddydempster&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.nerdtests.com/ft_nq.php"><br />
<img src="http://www.nerdtests.com/images/ft/nq/21991e3bef.gif" alt="I am nerdier than 98% of all people. Are you a nerd? Click here to take the Nerd Test, get geeky images and jokes, and write on the nerd forum!" /></a></p>
<p>Guess I just had to know. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/paddydempster.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/paddydempster.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/paddydempster.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/paddydempster.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/paddydempster.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/paddydempster.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/paddydempster.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/paddydempster.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/paddydempster.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/paddydempster.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/paddydempster.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/paddydempster.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/paddydempster.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/paddydempster.wordpress.com/38/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=paddydempster.wordpress.com&amp;blog=3417304&amp;post=38&amp;subd=paddydempster&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://paddydempster.wordpress.com/2010/04/21/my-nerd-score/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c86f3a7bd1dd40778ef85afaa28b6c8b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">paddydempster</media:title>
		</media:content>

		<media:content url="http://www.nerdtests.com/images/ft/nq/21991e3bef.gif" medium="image">
			<media:title type="html">I am nerdier than 98% of all people. Are you a nerd? Click here to take the Nerd Test, get geeky images and jokes, and write on the nerd forum!</media:title>
		</media:content>
	</item>
		<item>
		<title>Initial VPS setup</title>
		<link>http://paddydempster.wordpress.com/2008/11/27/initial-vps-setup/</link>
		<comments>http://paddydempster.wordpress.com/2008/11/27/initial-vps-setup/#comments</comments>
		<pubDate>Thu, 27 Nov 2008 20:20:45 +0000</pubDate>
		<dc:creator>Paddy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://paddydempster.wordpress.com/2008/11/27/initial-vps-setup/</guid>
		<description><![CDATA[Initial VPS setup &#160;&#160; &#160;- Add normal user account&#160;&#160; &#160;&#160;&#160; &#160;- adduser &#60;username&#62;&#160;&#160; &#160;&#160;&#160; &#160;- Generate ssh keys&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;- ssh-keygen&#160;&#160; &#160;&#160;&#160; &#160;- Add other ssh keys to ~/.ssh/authorized_keys&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;- change permissions chmod go-rw authorized_keys&#160;&#160; &#160;- Disable root login&#160;&#160; &#160;&#160;&#160; &#160;- /etc/ssh/sshd_config&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;- PermitRootLogin no&#160;&#160; &#160;- Add the bzr ppa [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=paddydempster.wordpress.com&amp;blog=3417304&amp;post=34&amp;subd=paddydempster&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Initial VPS setup</p>
<p>&nbsp;&nbsp; &nbsp;- Add normal user account<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;- adduser &lt;username&gt;<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;- Generate ssh keys<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;- ssh-keygen<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;- Add other ssh keys to ~/.ssh/authorized_keys<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;- change permissions chmod go-rw authorized_keys<br />&nbsp;&nbsp; &nbsp;- Disable root login<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;- /etc/ssh/sshd_config<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;- PermitRootLogin no<br />&nbsp;&nbsp; &nbsp;- Add the bzr ppa to /etc/apt/sources.list<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;- #bzr<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;- deb http://ppa.launchpad.net/bzr/ubuntu hardy main<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;- deb-src http://ppa.launchpad.net/bzr/ubuntu hardy main<br />&nbsp;&nbsp; &nbsp;- In order to install the latest and greatest bzr 1.9 at the time of writing the updates repo needs to be added also.<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;- deb http://archive.ubuntu.com/ubuntu hardy-updates main<br />&nbsp;&nbsp; &nbsp;- Install bzr<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;- mkdir vc<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;- cd vc<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;- bzr init-repo bzr<br />&nbsp;&nbsp; &nbsp;- To give bzr a little more room to breath create another swapfile and activate it<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;- dd if=/dev/zero of=/swapfile bs=1024 count=196608<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;- mkswap /swapfile<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;- swapon /swapfile<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;- Add the following to the fstab file so that the swapfile will be available after a reboot<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;- /swapfile&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; none&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; swap&nbsp;&nbsp;&nbsp;&nbsp; sw&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 0&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;<br />&nbsp;&nbsp; &nbsp;- Fix the locale problem (i386)<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;- apt-get install language-pack-en<br />&nbsp;&nbsp; &nbsp;- Edit the sudoers file by adding the following line<br />&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;- &lt;username&gt; ALL=(ALL) ALL</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/paddydempster.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/paddydempster.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/paddydempster.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/paddydempster.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/paddydempster.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/paddydempster.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/paddydempster.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/paddydempster.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/paddydempster.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/paddydempster.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/paddydempster.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/paddydempster.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/paddydempster.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/paddydempster.wordpress.com/34/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=paddydempster.wordpress.com&amp;blog=3417304&amp;post=34&amp;subd=paddydempster&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://paddydempster.wordpress.com/2008/11/27/initial-vps-setup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c86f3a7bd1dd40778ef85afaa28b6c8b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">paddydempster</media:title>
		</media:content>
	</item>
		<item>
		<title>Building Liquid State Machine on Centos 4 64-bit</title>
		<link>http://paddydempster.wordpress.com/2008/11/12/building-liquid-state-machine-on-centos-4-64-bit/</link>
		<comments>http://paddydempster.wordpress.com/2008/11/12/building-liquid-state-machine-on-centos-4-64-bit/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 11:01:50 +0000</pubDate>
		<dc:creator>Paddy</dc:creator>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[matlab]]></category>
		<category><![CDATA[meme]]></category>

		<guid isPermaLink="false">http://paddydempster.wordpress.com/2008/11/12/building-liquid-state-machine-on-centos-4-64-bit/</guid>
		<description><![CDATA[download the lsm toolbox from here: unpack it to your working directory Before trying to build the lsm toolbox you need to check that you have access to the gcc4 compiler from within your working environment, you can check this by: $gcc -v Which should return something similar to this Using built-in specs. Target: x86_64-redhat-linux [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=paddydempster.wordpress.com&amp;blog=3417304&amp;post=33&amp;subd=paddydempster&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>download the <a target="_blank" href="http://www.lsm.tugraz.at/download/csim-1.1.tar.gz">lsm toolbox</a> from <a target="_blank" href="http://www.lsm.tugraz.at/download/index.html">here</a>:</p>
<p>unpack it to your working directory</p>
<p>Before trying to build the lsm toolbox you need to check that you have access to the gcc4 compiler from within your working environment, you can check this by:</p>
<blockquote><p>$gcc -v</p></blockquote>
<p>Which should return something similar to this</p>
<blockquote><p>Using built-in specs.</p>
<p>Target: x86_64-redhat-linux</p>
<p>Configured with: ../configure &#8211;prefix=/usr &#8211;mandir=/usr/share/man &#8211;infodir=/usr/share/info &#8211;enable-shared &#8211;enable-threads=posix &#8211;enable-checking=release &#8211;with-system-zlib &#8211;enable-__cxa_atexit &#8211;disable-libunwind-exceptions &#8211;with-gxx-include-dir=/usr/include/c++/3.4.3 &#8211;enable-libgcj-multifile &#8211;enable-languages=c,c++,java,f95 &#8211;enable-java-awt=gtk &#8211;disable-dssi &#8211;with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre &#8211;with-cpu=generic &#8211;host=x86_64-redhat-linux</p>
<p>Thread model: posix</p>
<p>gcc version 4.1.2 20070626 (Red Hat 4.1.2-14)</p></blockquote>
<p>Should you not have the gcc4 complier installed you need to install the package gcc4-4.1.2-14.EL4 and usually create a sim link in your ~/bin folder to ensure that the version 4 compiler will be picked up first.</p>
<blockquote><p>cd ~/bin<br />ln -s /usr/bin/gcc4 gcc<br />export PATH=/home/&lt;username&gt;/bin:$PATH</p></blockquote>
<p>Now that the build environment is sorted out its onto the actual process of building the lsm toolbox. So, edit the Makefile in lsm/csim/src change the default build rule to </p>
<blockquote><p>default: version.i filepermissions csim.mexga64 install.m</p></blockquote>
<p>The default build rule should be around line 135 in the Makefile. Depending on where matlab is installed the file paths which are hardcoded in the build file may need to be changed. In this example using the vim <a target="_blank" href="http://en.wikipedia.org/wiki/Regular_expression">regular_expression</a> to change the path from /usr/local/matlab to /opt/matlab/ins</p>
<blockquote><p>:%s/\/usr\/local\/matlab/\/opt\/matlab\/ins/g</p></blockquote>
<p>Now move to the csim directory and run the make command as normal. </p>
<p>Should an error similiar to the quote below occur,</p>
<blockquote><p> Invalid MEX-file &#8216;/home/&lt;username&gt;/&lt;working directory&gt;/lsm/csim/csim.mexa64&#8242;: /opt/matlab_sp3_64/ins/bin/glnxa64/../../sys/os/glnxa64/libgcc_s.so.1: version `GCC_4.2.0&#8242; not found (required by /usr/lib64/libstdc++.so.6).</p></blockquote>
<p>The solution to seems to be to move the libgcc_s.so.1 file out of the way so that matlab will use the system one first. The file can be moved via the normal unix command &#8216;mv&#8217; as shown below.<br />
<blockquote>mv libgcc_s.so.1 libgcc_s.so.1.orig</p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/paddydempster.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/paddydempster.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/paddydempster.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/paddydempster.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/paddydempster.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/paddydempster.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/paddydempster.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/paddydempster.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/paddydempster.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/paddydempster.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/paddydempster.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/paddydempster.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/paddydempster.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/paddydempster.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=paddydempster.wordpress.com&amp;blog=3417304&amp;post=33&amp;subd=paddydempster&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://paddydempster.wordpress.com/2008/11/12/building-liquid-state-machine-on-centos-4-64-bit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c86f3a7bd1dd40778ef85afaa28b6c8b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">paddydempster</media:title>
		</media:content>
	</item>
		<item>
		<title>Book Meme</title>
		<link>http://paddydempster.wordpress.com/2008/11/11/book-meme/</link>
		<comments>http://paddydempster.wordpress.com/2008/11/11/book-meme/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 21:52:12 +0000</pubDate>
		<dc:creator>Paddy</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[meme]]></category>

		<guid isPermaLink="false">http://paddydempster.wordpress.com/2008/11/11/book-meme/</guid>
		<description><![CDATA[Jumping on the meme train: &#8220;HeadFirst: Does that mean you can refer to only one dog&#8221; Head First Java Grab the nearest book. Open it to page 56. Find the fifth sentence. Post the text of the sentence in your journal along with these instructions. Don’t dig for your favourite book, the cool book, or [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=paddydempster.wordpress.com&amp;blog=3417304&amp;post=32&amp;subd=paddydempster&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Jumping on the <a title="book meme" href="http://www.jonobacon.org/?p=1378">meme train</a>:</p>
<blockquote><p><i>&#8220;HeadFirst: Does that mean you can refer to only one dog&#8221; </i><a target="_blank" href="http://www.amazon.co.uk/Head-First-Java/dp/0596009208/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1226440171&amp;sr=8-1"><i>Head First Java</i><br /></a></p>
</blockquote>
<ol>
<li>Grab the nearest book.</li>
<li>Open it to page 56.</li>
<li>Find the fifth sentence.</li>
<li>Post the text of the sentence in your journal along with these instructions.</li>
<li>Don’t dig for your favourite book, the cool book, or the intellectual one: pick the CLOSEST.</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/paddydempster.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/paddydempster.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/paddydempster.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/paddydempster.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/paddydempster.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/paddydempster.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/paddydempster.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/paddydempster.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/paddydempster.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/paddydempster.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/paddydempster.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/paddydempster.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/paddydempster.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/paddydempster.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=paddydempster.wordpress.com&amp;blog=3417304&amp;post=32&amp;subd=paddydempster&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://paddydempster.wordpress.com/2008/11/11/book-meme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c86f3a7bd1dd40778ef85afaa28b6c8b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">paddydempster</media:title>
		</media:content>
	</item>
		<item>
		<title>Building bzr on RHEL AS 4</title>
		<link>http://paddydempster.wordpress.com/2008/09/13/building-bzr-on-rhel-as-4/</link>
		<comments>http://paddydempster.wordpress.com/2008/09/13/building-bzr-on-rhel-as-4/#comments</comments>
		<pubDate>Sat, 13 Sep 2008 22:14:18 +0000</pubDate>
		<dc:creator>Paddy</dc:creator>
				<category><![CDATA[bzr]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://paddydempster.wordpress.com/?p=26</guid>
		<description><![CDATA[In order to use the bzr distributed version control system on Redhat Enterprise Linux 4 (RHEL) you first have to build python 2.4+ (and some additional modules) as RHEL shipped with 2.3.* of python which isn&#8217;t supported by bzr. In this article I will be building python 2.4.5 and the addional modules required for bzr [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=paddydempster.wordpress.com&amp;blog=3417304&amp;post=26&amp;subd=paddydempster&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In order to use the <a title="Bazaar Website" href="http://bazaar-vcs.org/" target="_blank">bzr</a> distributed version control system on Redhat Enterprise Linux 4 (<a href="http://www.redhat.com">RHEL</a>) you first have to build python 2.4+ (and some additional modules) as RHEL shipped with 2.3.* of python which isn&#8217;t supported by bzr. In this article I will be building <a href="http://www.python.org">python</a> <a href="http://www.python.org/download/releases/2.4.5/">2.4.5</a> and the addional modules required for bzr <a href="http://bazaar-vcs.org/Download">1.6.1</a> into a folder in my home directory so as not upset any of the applications that rely on the RHEL supported version of python. So lets get started;</p>
<p>First get python 2.4.5 using wget as the downloader</p>
<blockquote><p>patrickd tmp $ wget -c http://www.python.org/ftp/python/2.4.5/Python-2.4.5.tar.bz2</p></blockquote>
<p>Now lets use tar to decompress it.</p>
<blockquote><p>patrickd tmp $ tar xfjv Python-2.4.5.tar.bz2</p>
<p>Python-2.4.5/<br />
Python-2.4.5/Include/<br />
Python-2.4.5/Include/pymem.h<br />
Python-2.4.5/Include/compile.h<br />
Python-2.4.5/Include/pgenheaders.h<br />
Python-2.4.5/Include/complexobject.h<br />
Python-2.4.5/Include/objimpl.h<br />
Python-2.4.5/Include/setobject.h<br />
Python-2.4.5/Include/enumobject.h<br />
[  ................  ]</p></blockquote>
<p>Enter the directory that tar just decompressed it to and configure it, so that it will be installed into the directory &#8216;/home/patrickd/apps/python&#8217;</p>
<blockquote><p>patrickd Python-2.4.5 $ cd Python-2.4.5</p></blockquote>
<blockquote><p>patrickd Python-2.4.5 $ ./configure &#8211;prefix=/home/patrickd/apps/python</p></blockquote>
<blockquote><p>checking MACHDEP&#8230; linux2<br />
checking EXTRAPLATDIR&#8230;<br />
checking for &#8211;without-gcc&#8230; no</p></blockquote>
<blockquote><p>[ ......... ]</p></blockquote>
<blockquote><p>creating Setup<br />
creating Setup.local<br />
creating Makefile</p></blockquote>
<p>Once, python is configured. It is time to build it using the &#8216;make&#8217; command, then create the directory that we intend to install python to and then finally install python into the preconfigured directory.</p>
<blockquote><p>patrickd Python-2.4.5 $ mkdir -p /home/patrickd/apps/python</p></blockquote>
<blockquote><p>patrickd Python-2.4.5 $ make</p></blockquote>
<blockquote><p>[  ......  ]</p></blockquote>
<blockquote><p>patrickd Python-2.4.5 $ make install</p></blockquote>
<blockquote><p>[ ......  ]</p></blockquote>
<p>After python has been installed, it now time to setup some environment variables. That will enable the new 2.4 version of python to be used as the default python rather than the redhat compilied version of python.</p>
<blockquote><p>patrickd Python-2.4.5 $ export PATH=$HOME/apps/python/bin:$PATH</p></blockquote>
<blockquote><p>patrickd Python-2.4.5 $ export PYTHONPATH=/home/patrickd/apps/python/lib/python;</p></blockquote>
<p>Check to make sure that the environment variables are correctly set by calling python and checking the version number.</p>
<blockquote><p>patrickd Python-2.4.5 $ python -V<br />
Python 2.4.5</p></blockquote>
<p>Now we need to get some additional python modules that are used by bzr.</p>
<blockquote><p>patrickd tmp $ wget http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/Pyrex-0.9.8.5.tar.gz</p>
<p>patrickd tmp $ wget http://effbot.org/media/downloads/cElementTree-1.0.5-20051216.tar.gz</p>
<p>patrickd tmp $ wget http://www.lag.net/paramiko/download/paramiko-1.7.4.tar.gz</p></blockquote>
<p>As before decompress them,</p>
<blockquote><p>patrickd tmp $ tar xfzv Pyrex-0.9.8.5.tar.gz</p>
<p>patrickd tmp $ tar xfzv cElementTree-1.0.5-20051216.tar.gz</p>
<p>patrickd tmp $ tar xfzv paramiko-1.7.4.tar.gz</p></blockquote>
<p>Now build and install each of them in turn.</p>
<blockquote><p>patrickd tmp $ cd Pyrex-0.9.8.5/</p>
<p>patrickd Pyrex-0.9.8.5 $ python setup.py install</p>
<p>patrickd Pyrex-0.9.8.5 $ cd ..</p>
<p>patrickd tmp $ cd cElementTree-1.0.5-20051216/</p>
<p>patrickd cElementTree-1.0.5-20051216 $ python setup.py install</p>
<p>[ ............ ]</p>
<p>patrickd cElementTree-1.0.5-20051216 $ cd ..</p>
<p>patrickd tmp $ cd paramiko-1.7.4/</p>
<p>patrickd paramiko-1.7.4 $ python setup.py install</p>
<p>[ ......... ]</p>
<p>patrickd paramiko-1.7.4 $ cd ..</p></blockquote>
<p>Finally its time to get the bzr source code and install it into the new 2.4.5 python installation.</p>
<blockquote><p>patrickd tmp $ wget https://launchpadlibrarian.net/17315400/bzr-1.6.1.tar.gz</p>
<p>patrickd tmp $ tar xfzv bzr-1.6.1.tar.gz</p>
<p>patrickd tmp $ cd bzr-1.6.1</p>
<p>patrickd bzr-1.6.1 $ python setup.py install &#8211;home /home/patrickd/apps/python/</p>
<p>patrickd bzr-1.6.1 $ cd ~</p></blockquote>
<p>After building and installing bzr its now time to check that bzr is correctly installed.</p>
<blockquote><p>patrickd ~ $ bzr version<br />
Bazaar (bzr) 1.6.1<br />
Python interpreter: /home/patrickd/apps/python/bin/python 2.4.5<br />
Python standard library: /home/patrickd/apps/python/lib/python2.4<br />
bzrlib: /home/patrickd/apps/python/lib/python/bzrlib<br />
Bazaar configuration: /home/patrickd/.bazaar<br />
Bazaar log file: /home/patrickd/.bzr.log</p>
<p>Copyright 2005, 2006, 2007, 2008 Canonical Ltd.</p>
<p>http://bazaar-vcs.org/</p>
<p>bzr comes with ABSOLUTELY NO WARRANTY.  bzr is free software, and<br />
you may use, modify and redistribute it under the terms of the GNU<br />
General Public License version 2 or later.</p></blockquote>
<p>Now that you have finished installing bzr, I would suggest your next point of call should be <a href="http://doc.bazaar-vcs.org/bzr.dev/en/user-guide/index.html">bzr user guide</a> and then the <a href="http://bazaar-vcs.org/Documentation">main bzr documentation</a> page.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/paddydempster.wordpress.com/26/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/paddydempster.wordpress.com/26/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/paddydempster.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/paddydempster.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/paddydempster.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/paddydempster.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/paddydempster.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/paddydempster.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/paddydempster.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/paddydempster.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/paddydempster.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/paddydempster.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/paddydempster.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/paddydempster.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/paddydempster.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/paddydempster.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=paddydempster.wordpress.com&amp;blog=3417304&amp;post=26&amp;subd=paddydempster&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://paddydempster.wordpress.com/2008/09/13/building-bzr-on-rhel-as-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c86f3a7bd1dd40778ef85afaa28b6c8b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">paddydempster</media:title>
		</media:content>
	</item>
		<item>
		<title>Booting problem after upgrading to ubuntu hardy (8.04)</title>
		<link>http://paddydempster.wordpress.com/2008/05/28/booting-problem-after-upgrading-to-ubuntu-hardy-804/</link>
		<comments>http://paddydempster.wordpress.com/2008/05/28/booting-problem-after-upgrading-to-ubuntu-hardy-804/#comments</comments>
		<pubDate>Wed, 28 May 2008 16:10:47 +0000</pubDate>
		<dc:creator>Paddy</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://paddydempster.wordpress.com/?p=23</guid>
		<description><![CDATA[I&#8217;ve been running 8.04 beta for a while now, with kernel 2.6.22-14 the system boots and runs just fine. However, with the recent updates to the kernel 2.6.24-15 and then to 2.6.24-16 the system fails to boot and &#8220;hangs&#8221; at the &#8220;loading&#8221; screen with the blue progress bar just moving back and forward. In the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=paddydempster.wordpress.com&amp;blog=3417304&amp;post=23&amp;subd=paddydempster&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="bug-description">
<p>I&#8217;ve been running 8.04 beta for a while now, with kernel 2.6.22-14 the system boots and runs just fine. However, with the recent updates to the kernel 2.6.24-15 and then to 2.6.24-16 the system fails to boot and &#8220;hangs&#8221; at the &#8220;loading&#8221; screen with the blue progress bar just moving back and forward. In the trimmed menu.lst only the last option boots.</p>
<blockquote><p>patrickd@ubuntu:/media$ lsb_release -rd<br />
Description:    Ubuntu 8.04<br />
Release:        8.04</p>
<p>===File:/boot/grub/menu.lst===<br />
title		Ubuntu 8.04, kernel 2.6.24-16-generic<br />
root		(hd0,5)<br />
kernel		/boot/vmlinuz-2.6.24-16-generic root=UUID=761e8f2c-dd8d-4042-a5bb-2ead0c26c54e ro quiet splash<br />
initrd		/boot/initrd.img-2.6.24-16-generic<br />
quiet</p>
<p>title		Ubuntu 8.04, kernel 2.6.24-15-generic<br />
root		(hd0,5)<br />
kernel		/boot/vmlinuz-2.6.24-15-generic root=UUID=761e8f2c-dd8d-4042-a5bb-2ead0c26c54e ro quiet splash<br />
initrd		/boot/initrd.img-2.6.24-15-generic<br />
quiet</p>
<p>title		Ubuntu 8.04, kernel 2.6.22-14-generic<br />
root		(hd0,5)<br />
kernel		/boot/vmlinuz-2.6.22-14-generic root=UUID=761e8f2c-dd8d-4042-a5bb-2ead0c26c54e ro quiet splash<br />
initrd		/boot/initrd.img-2.6.22-14-generic<br />
quiet</p></blockquote>
<p>After some back and forth with the ubuntu developers it using this <a title="Launchpad Bug report" href="https://bugs.launchpad.net/ubuntu/+source/linux/+bug/218820" target="_blank">bug report</a> on launchpad, It appeared that the newer versions of the kernel where unable to mount my root partition. Then after some digging about in one of my old note books I discovered that I&#8217;d come across the same problem with another distro and at the time the solution was to add &#8220;pci=nomsi&#8221; to the kernel boot options and thankfully that seemed to have solved the problem this time to.</p>
<blockquote><p>This workaround enabled my system to boot with the ubuntu 2.4.26-16-generic kernel.</p>
<p>patrickd@ubuntu:~$ uname -a<br />
Linux ubuntu 2.6.24-16-generic #1 SMP Thu Apr 10 13:23:42 UTC 2008 i686 GNU/Linux</p>
<p>The workaround for me was to add &#8220;pci=nomsi&#8221; to the kernel boot options, so the entry in fstab now looks like;</p>
<p>kernel		/boot/vmlinuz-2.6.24-16-generic root=UUID=761e8f2c-dd8d-4042-a5bb-2ead0c26c54e ro quiet pci=nomsi splash</p></blockquote>
</div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/paddydempster.wordpress.com/23/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/paddydempster.wordpress.com/23/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/paddydempster.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/paddydempster.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/paddydempster.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/paddydempster.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/paddydempster.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/paddydempster.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/paddydempster.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/paddydempster.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/paddydempster.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/paddydempster.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/paddydempster.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/paddydempster.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/paddydempster.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/paddydempster.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=paddydempster.wordpress.com&amp;blog=3417304&amp;post=23&amp;subd=paddydempster&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://paddydempster.wordpress.com/2008/05/28/booting-problem-after-upgrading-to-ubuntu-hardy-804/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c86f3a7bd1dd40778ef85afaa28b6c8b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">paddydempster</media:title>
		</media:content>
	</item>
		<item>
		<title>Pingus and Pulseaudio on Hardy</title>
		<link>http://paddydempster.wordpress.com/2008/04/30/pingus-and-pulseaudio-on-hardy/</link>
		<comments>http://paddydempster.wordpress.com/2008/04/30/pingus-and-pulseaudio-on-hardy/#comments</comments>
		<pubDate>Wed, 30 Apr 2008 17:28:39 +0000</pubDate>
		<dc:creator>Paddy</dc:creator>
				<category><![CDATA[SDL]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://paddydempster.wordpress.com/?p=21</guid>
		<description><![CDATA[After installing pingus on ubuntu hardy (8.04) I discovered that the sound only worked when no other applications where using the sound card, which is a bit of a pain. When trying to start pingus from a gnome terminal the following message appeared; patrickd@battlestar:~$ pingus Welcome to Pingus 0.7.2! ======================== data path: /usr/games/../share/games/pingus/data/ language: English [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=paddydempster.wordpress.com&amp;blog=3417304&amp;post=21&amp;subd=paddydempster&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After installing <a title="Pingus Homepage" href="http://pingus.seul.org/">pingus</a> on <a title="Ubuntu" href="http://www.ubuntu.com/">ubuntu hardy (8.04)</a> I discovered that the sound only worked when no other applications where using the sound card, which is a bit of a pain. When trying to start pingus from a gnome terminal the following message appeared;</p>
<blockquote><p>patrickd@battlestar:~$ pingus<br />
Welcome to Pingus 0.7.2!<br />
========================<br />
data path:               /usr/games/../share/games/pingus/data/<br />
language:                English (en)<br />
font encoding:           iso-8859-1<br />
sound support:           enabled<br />
music support:           enabled<br />
resolution:              800&#215;600<br />
fullscreen:              disabled</p>
<p>Unable to initialize SDL_Mixer: No available audio device<br />
Pingus: Unknown throw caught!</p></blockquote>
<p>The interesting thing about this error is that it doesn&#8217;t appear to be pingus specific instead a generic SDL type problem. So, once again after some googling the solution that I came up with is shown below, I had tried a couple of other ones like &#8220;$ padsp pingus&#8221;, padsp appears to be a wrapper for pulseaudio (which is the default backend for hardy) and &#8220;export SDL_AUDIODRIVER=esd et&#8221; but this didn&#8217;t work either. I even found a post which suggested using &#8220;export SDL_AUDIODRIVER=pulse&#8221; but again this didn&#8217;t work for me. In the end I installed the pulseaudio &#8220;driver&#8221; for libsdl kind of obvious when you think about it <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ;</p>
<blockquote><p>patrickd@battlestar:~$ apt-cache search libsdl | grep sdl<br />
libsdl-image1.2 &#8211; image loading library for Simple DirectMedia Layer 1.2<br />
libsdl-image1.2-dev &#8211; development files for SDL 1.2 image loading libray<br />
libsdl-mixer1.2 &#8211; mixer library for Simple DirectMedia Layer 1.2<br />
libsdl-mixer1.2-dev &#8211; development files for SDL1.2 mixer library<br />
libsdl-pango-dev &#8211; text rendering with Pango in SDL applications (development)<br />
libsdl-pango1 &#8211; text rendering with Pango in SDL applications (shared library)<br />
libsdl-ttf2.0-0 &#8211; ttf library for Simple DirectMedia Layer with FreeType 2 support<br />
libsdl-ttf2.0-dev &#8211; development files for SDL ttf library (version 2.0)<br />
libsdl1.2-dev &#8211; Simple DirectMedia Layer development files<br />
libsdl1.2debian &#8211; Simple DirectMedia Layer<br />
libsdl1.2debian-all &#8211; Simple DirectMedia Layer (with all available options)<br />
libsdl1.2debian-alsa &#8211; Simple DirectMedia Layer (with X11 and ALSA options)<br />
libsdl1.2debian-esd &#8211; Simple DirectMedia Layer (with X11 and esound options)<br />
libsdl1.2debian-oss &#8211; Simple DirectMedia Layer (with X11 and OSS options)<br />
libsdl-console &#8211; console that can be added to any SDL application<br />
libsdl-console-dev &#8211; development files for libsdl-console<br />
libsdl-erlang &#8211; Erlang bindings to the Simple Direct Media Library<br />
libsdl-gfx1.2-4 &#8211; drawing and graphical effects extension for SDL<br />
libsdl-gfx1.2-dev &#8211; development files for SDL_gfx<br />
libsdl-net1.2 &#8211; network library for Simple DirectMedia Layer<br />
libsdl-net1.2-dev &#8211; Development files for SDL network library<br />
libsdl-ocaml &#8211; OCaml bindings for SDL &#8211; runtime files<br />
libsdl-ocaml-dev &#8211; OCaml bindings for SDL &#8211; development files<br />
libsdl-perl &#8211; SDL bindings for the Perl language<br />
libsdl-ruby1.8 &#8211; Ruby/SDL interface for Ruby<br />
libsdl-sge &#8211; extension of graphic functions for the SDL multimedia library<br />
libsdl-sge-dev &#8211; development files for libsdl-sge<br />
libsdl-sound1.2 &#8211; Decoder of several sound file formats for SDL<br />
libsdl-sound1.2-dev &#8211; Development files for SDL_sound<br />
libsdl-stretch-0-2 &#8211; stretch functions for Simple DirectMedia Layer<br />
libsdl-stretch-dev &#8211; development files for SDL_stretch library<br />
libsdl1.2debian-arts &#8211; Simple DirectMedia Layer (with X11 and aRts options)<br />
libsdl1.2debian-nas &#8211; Simple DirectMedia Layer (with X11 and NAS options)<br />
libsdl1.2debian-pulseaudio &#8211; Simple DirectMedia Layer (with X11 and PulseAudio options)</p>
<p>patrickd@battlestar:~$ sudo apt-get install libsdl1.2debian-pulseaudio</p></blockquote>
<p>Now I can happily run amarok and pingus <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I suspect this will probably work for other SDL based games like frozen-bubble.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/paddydempster.wordpress.com/21/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/paddydempster.wordpress.com/21/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/paddydempster.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/paddydempster.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/paddydempster.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/paddydempster.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/paddydempster.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/paddydempster.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/paddydempster.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/paddydempster.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/paddydempster.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/paddydempster.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/paddydempster.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/paddydempster.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/paddydempster.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/paddydempster.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=paddydempster.wordpress.com&amp;blog=3417304&amp;post=21&amp;subd=paddydempster&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://paddydempster.wordpress.com/2008/04/30/pingus-and-pulseaudio-on-hardy/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c86f3a7bd1dd40778ef85afaa28b6c8b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">paddydempster</media:title>
		</media:content>
	</item>
		<item>
		<title>Missing Matlab menu&#8217;s with ubuntu</title>
		<link>http://paddydempster.wordpress.com/2008/04/30/missing-matlab-menus-with-ubuntu/</link>
		<comments>http://paddydempster.wordpress.com/2008/04/30/missing-matlab-menus-with-ubuntu/#comments</comments>
		<pubDate>Wed, 30 Apr 2008 16:45:41 +0000</pubDate>
		<dc:creator>Paddy</dc:creator>
				<category><![CDATA[matlab]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://paddydempster.wordpress.com/?p=20</guid>
		<description><![CDATA[After installing matlab 7.4.0 on ubuntu hardy (8.04), I got the following stack trace on the gnome output console; patrickd@battlestar:~$ Locking assertion failure. Backtrace: #0 /usr/lib/libxcb-xlib.so.0 [0xb5ac0767] #1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0&#215;31) [0xb5ac08b1] #2 /usr/lib/libX11.so.6(_XReply+0xfd) [0xb5e2c1bd] #3 /opt/matlab/sys/java/jre/glnx86/jre1.5.0/lib/i386/xawt/libmawt.so [0xa090826a] #4 /opt/matlab/sys/java/jre/glnx86/jre1.5.0/lib/i386/xawt/libmawt.so [0xa08ee352] #5 /opt/matlab/sys/java/jre/glnx86/jre1.5.0/lib/i386/xawt/libmawt.so [0xa08ee599] #6 /opt/matlab/sys/java/jre/glnx86/jre1.5.0/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0&#215;24) [0xa08ee7a4] #7 [0xadcbdb8b] #8 [0xadcb7a7b] #9 [0xadcb7a7b] #10 [0xadcb5157] #11 /opt/matlab/sys/java/jre/glnx86/jre1.5.0/lib/i386/client/libjvm.so [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=paddydempster.wordpress.com&amp;blog=3417304&amp;post=20&amp;subd=paddydempster&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After installing <a href="http://www.mathworks.com/">matlab 7.4.0</a> on ubuntu hardy (8.04), I got the following stack trace on the gnome output console;</p>
<blockquote><p>patrickd@battlestar:~$ Locking assertion failure.  Backtrace:<br />
#0 /usr/lib/libxcb-xlib.so.0 [0xb5ac0767]<br />
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0&#215;31) [0xb5ac08b1]<br />
#2 /usr/lib/libX11.so.6(_XReply+0xfd) [0xb5e2c1bd]<br />
#3 /opt/matlab/sys/java/jre/glnx86/jre1.5.0/lib/i386/xawt/libmawt.so [0xa090826a]<br />
#4 /opt/matlab/sys/java/jre/glnx86/jre1.5.0/lib/i386/xawt/libmawt.so [0xa08ee352]<br />
#5 /opt/matlab/sys/java/jre/glnx86/jre1.5.0/lib/i386/xawt/libmawt.so [0xa08ee599]<br />
#6 /opt/matlab/sys/java/jre/glnx86/jre1.5.0/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0&#215;24) [0xa08ee7a4]<br />
#7 [0xadcbdb8b]<br />
#8 [0xadcb7a7b]<br />
#9 [0xadcb7a7b]<br />
#10 [0xadcb5157]<br />
#11 /opt/matlab/sys/java/jre/glnx86/jre1.5.0/lib/i386/client/libjvm.so [0xb294f8ec]<br />
#12 /opt/matlab/sys/java/jre/glnx86/jre1.5.0/lib/i386/client/libjvm.so [0xb2a3e378]<br />
#13 /opt/matlab/sys/java/jre/glnx86/jre1.5.0/lib/i386/client/libjvm.so [0xb294f71f]<br />
#14 /opt/matlab/sys/java/jre/glnx86/jre1.5.0/lib/i386/client/libjvm.so(JVM_DoPrivileged+0x2db) [0xb29a7ebb]<br />
#15 /opt/matlab/sys/java/jre/glnx86/jre1.5.0/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d) [0xb2f422cd]<br />
#16 [0xadcbd43b]<br />
#17 [0xadcb79a4]<br />
#18 [0xadcb5157]<br />
#19 /opt/matlab/sys/java/jre/glnx86/jre1.5.0/lib/i386/client/libjvm.so [0xb294f8ec]<br />
Locking assertion failure.  Backtrace:<br />
#0 /usr/lib/libxcb-xlib.so.0 [0xb5ac0767]<br />
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x2e) [0xb5ac081e]<br />
#2 /usr/lib/libX11.so.6 [0xb5e2b518]<br />
#3 /usr/lib/libX11.so.6(XGetVisualInfo+0&#215;26) [0xb5e220a6]<br />
#4 /opt/matlab/sys/java/jre/glnx86/jre1.5.0/lib/i386/xawt/libmawt.so [0xa08ed227]<br />
#5 /opt/matlab/sys/java/jre/glnx86/jre1.5.0/lib/i386/xawt/libmawt.so [0xa08ed4b8]<br />
#6 /opt/matlab/sys/java/jre/glnx86/jre1.5.0/lib/i386/xawt/libmawt.so [0xa08ee6e0]<br />
#7 /opt/matlab/sys/java/jre/glnx86/jre1.5.0/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0&#215;24) [0xa08ee7a4]<br />
#8 [0xadcbdb8b]<br />
#9 [0xadcb7a7b]<br />
#10 [0xadcb7a7b]<br />
#11 [0xadcb5157]<br />
#12 /opt/matlab/sys/java/jre/glnx86/jre1.5.0/lib/i386/client/libjvm.so [0xb294f8ec]<br />
#13 /opt/matlab/sys/java/jre/glnx86/jre1.5.0/lib/i386/client/libjvm.so [0xb2a3e378]<br />
#14 /opt/matlab/sys/java/jre/glnx86/jre1.5.0/lib/i386/client/libjvm.so [0xb294f71f]<br />
#15 /opt/matlab/sys/java/jre/glnx86/jre1.5.0/lib/i386/client/libjvm.so(JVM_DoPrivileged+0x2db) [0xb29a7ebb]<br />
#16 /opt/matlab/sys/java/jre/glnx86/jre1.5.0/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d) [0xb2f422cd]<br />
#17 [0xadcbd43b]<br />
#18 [0xadcb79a4]<br />
#19 [0xadcb5157]</p></blockquote>
<p>Which appears to be causing the standard menus in matlab not to display, after trying various solutions found around the great wide inter web, the one that finally worked for me was to edit the matlab startup script at &lt;$matlab_home&gt;/bin/matlab and insert the following at the top of the file;</p>
<blockquote><p>export AWT_TOOLKIT=MToolkit</p></blockquote>
<p>After editing the matlab startup script it now looks like;</p>
<blockquote><p>patrickd@battlestar:~$ head /opt/matlab/bin/matlab<br />
#!/bin/sh<br />
export AWT_TOOLKIT=MToolkit<br />
#<br />
#  Name:<br />
#     matlab    script file for invoking MATLAB<br />
#<br />
#  Usage:<br />
#     matlab [-h|-help] | [-n | -e]</p></blockquote>
<p>Note: This doesn&#8217;t actually appear to stop the error message above from appearing in the terminal window, it does however allow the menus to display which for now is all I need to fix. If I later discover that the error message is causing something else not to work in Matlab then I &#8216;ll update this post.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/paddydempster.wordpress.com/20/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/paddydempster.wordpress.com/20/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/paddydempster.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/paddydempster.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/paddydempster.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/paddydempster.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/paddydempster.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/paddydempster.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/paddydempster.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/paddydempster.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/paddydempster.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/paddydempster.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/paddydempster.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/paddydempster.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/paddydempster.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/paddydempster.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=paddydempster.wordpress.com&amp;blog=3417304&amp;post=20&amp;subd=paddydempster&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://paddydempster.wordpress.com/2008/04/30/missing-matlab-menus-with-ubuntu/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c86f3a7bd1dd40778ef85afaa28b6c8b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">paddydempster</media:title>
		</media:content>
	</item>
		<item>
		<title>Google toolbar bookmarks with Firefox-2 on Ubuntu Hardy (8.04)</title>
		<link>http://paddydempster.wordpress.com/2008/04/30/google-toolbar-bookmarks-with-firefox-2-on-ubuntu-hardy-804/</link>
		<comments>http://paddydempster.wordpress.com/2008/04/30/google-toolbar-bookmarks-with-firefox-2-on-ubuntu-hardy-804/#comments</comments>
		<pubDate>Wed, 30 Apr 2008 15:31:13 +0000</pubDate>
		<dc:creator>Paddy</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[google toolbar]]></category>

		<guid isPermaLink="false">http://paddydempster.wordpress.com/?p=18</guid>
		<description><![CDATA[After upgrading to ubuntu hardy (8.04) and trying to use Firefox 3b5 for a couple of days. I&#8217;ve decided to go back to using the Firefox 2.* series for browsing the web, as a lot of the extensions that I use day to day still aren&#8217;t supported in ff 3b5. So, I installed firefox 2 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=paddydempster.wordpress.com&amp;blog=3417304&amp;post=18&amp;subd=paddydempster&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After upgrading to ubuntu hardy (8.04) and trying to use Firefox 3b5 for a couple of days. I&#8217;ve decided to go back to using the Firefox 2.* series for browsing the web, as a lot of the extensions that I use day to day still aren&#8217;t supported in ff 3b5. So, I installed firefox 2 with the following command;</p>
<blockquote><p>$ sudo apt-get install firefox-2</p></blockquote>
<p>After installing firefox 2, I then tried to install <a title="Google toolbar" href="http://toolbar.google.com" target="_blank">google toolbar</a> and got an error that the toolbar couldn&#8217;t be installed, after searching around the web. The solution that worked for me was to shutdown Firefox 2 and remove the preferences directory using;</p>
<blockquote><p>$ rm -rf ~/.mozilla</p></blockquote>
<p>When I restarted Firefox I was now able to install <a title="Google toolbar" href="http://toolbar.google.com" target="_blank">google toolbar</a>. Unfortunately, after installing it and signing in using my gmail account, I was unable to access my bookmarks as I was just getting &#8220;downloading bookmarks&#8221; displayed when trying to access Bookmarks on the toolbar. No problem I thought I&#8217;ll just restart Firefox and hopefully that will fix it. Alas, this didn&#8217;t fix it. A little while later and a lot of forum searching and I finally happened upon a solution that worked for me, it involved installing the libstdc++5 library;</p>
<blockquote><p>$sudo apt-get install libstdc++5</p></blockquote>
<p>Then starting Firefox and disabling the google toolbar extension, restarting firefox and then enabling google toolbar extension and hey presto everything worked as expected.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/paddydempster.wordpress.com/18/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/paddydempster.wordpress.com/18/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/paddydempster.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/paddydempster.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/paddydempster.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/paddydempster.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/paddydempster.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/paddydempster.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/paddydempster.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/paddydempster.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/paddydempster.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/paddydempster.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/paddydempster.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/paddydempster.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/paddydempster.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/paddydempster.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=paddydempster.wordpress.com&amp;blog=3417304&amp;post=18&amp;subd=paddydempster&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://paddydempster.wordpress.com/2008/04/30/google-toolbar-bookmarks-with-firefox-2-on-ubuntu-hardy-804/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c86f3a7bd1dd40778ef85afaa28b6c8b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">paddydempster</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Xilinx USB cable on LinuxMint / Ubuntu without windvr</title>
		<link>http://paddydempster.wordpress.com/2008/04/08/using-xilinx-usb-cable-on-ubuntu-without-windvr/</link>
		<comments>http://paddydempster.wordpress.com/2008/04/08/using-xilinx-usb-cable-on-ubuntu-without-windvr/#comments</comments>
		<pubDate>Tue, 08 Apr 2008 22:03:59 +0000</pubDate>
		<dc:creator>Paddy</dc:creator>
				<category><![CDATA[LinuxMint]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[xilinx]]></category>
		<category><![CDATA[JTAG]]></category>
		<category><![CDATA[USB]]></category>

		<guid isPermaLink="false">http://paddydempster.wordpress.com/?p=3</guid>
		<description><![CDATA[This post is based on information found at the Xilinx JTAG information page . Using the Xilinx JTAG usb programmer without using the proprietary windvr.o (which no longer seems to work with modern kernel&#8217;s) kernel module requires that we use the open source libusb driver. There are a number of ways to obtain the driver [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=paddydempster.wordpress.com&amp;blog=3417304&amp;post=3&amp;subd=paddydempster&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This post is based on information found at the <a title="Xilinx JTAG info" href="http://www.rmdir.de/~michael/xilinx/" target="_blank">Xilinx JTAG information page</a> . Using the <a title="Xilinx.com" href="http://www.xilinx.com" target="_blank">Xilinx</a> JTAG usb programmer without using the proprietary windvr.o (which no longer seems to work with modern kernel&#8217;s) kernel module requires that we use the open source <a href="http://libusb.sourceforge.net/">libusb</a> driver. There are a number of ways to obtain the driver but I prefer to install from source. The source can be obtained by using the command shown below and as the cable driver will be installed into the /opt/xilinx directory which my normal account (patrickd) doesn&#8217;t have write permissions to (/opt/xilinx must be written to using the sudo command or I could sudo to root and install from there, I could also allow write access to the /opt/xilinx but patrickd account but I prefer not to).</p>
<blockquote><p>patrickd@patrickd-desktop:/opt/xilinx$ sudo git clone git://git.zerfleddert.de/usb-driver</p></blockquote>
<p>Which generates the following error because git isn&#8217;t installed yet;</p>
<blockquote><p>sudo: git: command not found</p></blockquote>
<p>To install the <a href="http://git.or.cz/">Git</a> source control system, run the following command;</p>
<blockquote><p>patrickd@patrickd-desktop:/opt/xilinx$ sudo apt-get install gitk git-gui<br />
Reading package lists&#8230; Done<br />
Building dependency tree<br />
Reading state information&#8230; Done<br />
The following packages were automatically installed and are no longer required:<br />
nautilus-actions<br />
Use &#8216;apt-get autoremove&#8217; to remove them.<br />
The following extra packages will be installed:<br />
git-core libdigest-sha1-perl liberror-perl tcl8.4 tk8.4<br />
Suggested packages:<br />
git-arch git-cvs git-svn git-email git-daemon-run gitweb cogito tclreadline<br />
Recommended packages:<br />
git-doc curl<br />
The following NEW packages will be installed<br />
git-core git-gui gitk libdigest-sha1-perl liberror-perl tcl8.4 tk8.4<br />
0 upgraded, 7 newly installed, 0 to remove and 2 not upgraded.<br />
Need to get 6206kB of archives.<br />
After unpacking 14.6MB of additional disk space will be used.<br />
Do you want to continue [Y/n]?</p></blockquote>
<p>Once git is installed its time to try and reinstall the libusb driver, by running the previous command;</p>
<blockquote><p>patrickd@patrickd-desktop:/opt/xilinx$ sudo git clone git://git.zerfleddert.de/usb-driver</p></blockquote>
<p>Which will generate the following output although the actual values may differ;</p>
<blockquote><p>Initialized empty Git repository in /opt/xilinx/usb-driver/.git/<br />
remote: Counting objects: 551, done.<br />
remote: Compressing objects: 100% (325/325), done.<br />
Indexing 551 objects&#8230;<br />
remote: Total 551 (delta 315), reused 417 (delta 226)<br />
100% (551/551) done<br />
Resolving 315 deltas&#8230;<br />
100% (315/315) done</p></blockquote>
<p>Change into the lib usb-driver directory then read the README file and attempt to &#8216;make&#8217; or build the libusb driver;</p>
<blockquote><p>patrickd@patrickd-desktop:/opt/xilinx$ cd usb-driver/<br />
patrickd@patrickd-desktop:/opt/xilinx/usb-driver$ gedit README<br />
patrickd@patrickd-desktop:/opt/xilinx/usb-driver$ sudo make</p></blockquote>
<p>Unfortunately this will generate the following set of errors;</p>
<blockquote><p>patrickd@patrickd-desktop:/opt/xilinx/usb-driver$ make<br />
cc -Wall -fPIC -DUSB_DRIVER_VERSION=&#8221;\&#8221;2008-04-08 22:39:18\&#8221;"  usb-driver.c parport.c config.c jtagmon.c -o libusb-driver.so -ldl -lusb -lpthread -shared<br />
usb-driver.c:26:19: error: dlfcn.h: No such file or directory<br />
usb-driver.c:28:20: error: stdlib.h: No such file or directory<br />
usb-driver.c:29:20: error: string.h: No such file or directory<br />
usb-driver.c:30:20: error: unistd.h: No such file or directory<br />
usb-driver.c:31:19: error: fcntl.h: No such file or directory<br />
usb-driver.c:32:23: error: sys/types.h: No such file or directory<br />
usb-driver.c:33:22: error: sys/stat.h: No such file or directory<br />
usb-driver.c:34:22: error: sys/time.h: No such file or directory<br />
usb-driver.c:35:19: error: stdio.h: No such file or directory<br />
usb-driver.c:36:17: error: usb.h: No such file or directory<br />
usb-driver.c:37:20: error: signal.h: No such file or directory<br />
usb-driver.c:38:21: error: pthread.h: No such file or directory<br />
usb-driver.c:39:19: error: errno.h: No such file or directory<br />
usb-driver.c:40:22: error: inttypes.h: No such file or directory<br />
usb-driver.c:41:23: error: sys/ioctl.h: No such file or directory<br />
usb-driver.c:42:25: error: sys/utsname.h: No such file or directory<br />
usb-driver.c:43:27: error: bits/wordsize.h: No such file or directory<br />
In file included from usb-driver.c:44:<br />
usb-driver.h:253: error: expected specifier-qualifier-list before ‘uint32_t’<br />
usb-driver.c:47: error: ‘NULL’ undeclared here (not in a function)<br />
usb-driver.c:52: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token<br />
usb-driver.c:53: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token<br />
usb-driver.c:58: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token<br />
usb-driver.c:62: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int_wait’<br />
usb-driver.c: In function ‘hexdump’:<br />
usb-driver.c:70: warning: implicit declaration of function ‘fprintf’<br />
usb-driver.c:70: warning: incompatible implicit declaration of built-in function ‘fprintf’<br />
usb-driver.c:70: error: ‘stderr’ undeclared (first use in this function)<br />
usb-driver.c:70: error: (Each undeclared identifier is reported only once<br />
usb-driver.c:70: error: for each function it appears in.)<br />
usb-driver.c:74: warning: incompatible implicit declaration of built-in function ‘fprintf’</p></blockquote>
<p>In order to build the libusb driver, the libusb-dev files are required. Fortunately these files are currently available in the <a title="Debian UK website" href="http://www.uk.debian.org/" target="_blank">Debian</a> archives and can be installed via the following command;</p>
<blockquote><p>patrickd@patrickd-desktop:/opt/xilinx/usb-driver$ sudo apt-get install libusb-dev<br />
Reading package lists&#8230; Done<br />
Building dependency tree<br />
Reading state information&#8230; Done<br />
The following packages were automatically installed and are no longer required:<br />
nautilus-actions<br />
Use &#8216;apt-get autoremove&#8217; to remove them.<br />
The following extra packages will be installed:<br />
libc6-dev linux-libc-dev<br />
Suggested packages:<br />
glibc-doc manpages-dev<br />
The following NEW packages will be installed<br />
libc6-dev libusb-dev linux-libc-dev<br />
0 upgraded, 3 newly installed, 0 to remove and 2 not upgraded.<br />
Need to get 3978kB of archives.<br />
After unpacking 17.6MB of additional disk space will be used.<br />
Do you want to continue [Y/n]?</p></blockquote>
<p>Now to re-run the &#8216;make&#8217; command;</p>
<blockquote><p>patrickd@patrickd-desktop:/opt/xilinx/usb-driver$ sudo make<br />
cc -Wall -fPIC -DUSB_DRIVER_VERSION=&#8221;\&#8221;2008-04-08 22:39:18\&#8221;"  usb-driver.c parport.c config.c jtagmon.c -o libusb-driver.so -ldl -lusb -lpthread -shared<br />
cc -DDEBUG -Wall -fPIC -DUSB_DRIVER_VERSION=&#8221;\&#8221;2008-04-08 22:39:18\&#8221;"  usb-driver.c parport.c config.c jtagmon.c -o libusb-driver-DEBUG.so -ldl -lusb -lpthread -shared</p></blockquote>
<p>Once the driver has been build it must be added to the environment variables, this is done by adding the following to .bashrc;</p>
<blockquote><p>export LD_PRELOAD=/opt/xilinx/usb-driver/libusb-driver.so</p></blockquote>
<p>Once this step has been completed the final step is to add the USB driver to the udev rules set, this is achieved by (taken from <a href="http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/archive/2007/03/msg00101.html">http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/archive/2007/03/msg00101.html</a> );</p>
<blockquote><p>5) Make a new udev rule set file<br />
$ sudo vi /etc/udev/rules.d/50-xilinx-usb-pav.rules    # a new file with<br />
arbitrary name (&#8220;50&#8243; is recommended)<br />
6) paste the following into this file, and save it<br />
ACTION==&#8221;add&#8221;, BUS==&#8221;usb&#8221;, SYSFS{idVendor}==&#8221;03fd&#8221;, MODE=&#8221;666&#8243;<br />
7) restart udev with:<br />
$ /etc/init.d/udev restart</p></blockquote>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/paddydempster.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/paddydempster.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/paddydempster.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/paddydempster.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/paddydempster.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/paddydempster.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/paddydempster.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/paddydempster.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/paddydempster.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/paddydempster.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/paddydempster.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/paddydempster.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/paddydempster.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/paddydempster.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/paddydempster.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/paddydempster.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=paddydempster.wordpress.com&amp;blog=3417304&amp;post=3&amp;subd=paddydempster&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://paddydempster.wordpress.com/2008/04/08/using-xilinx-usb-cable-on-ubuntu-without-windvr/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c86f3a7bd1dd40778ef85afaa28b6c8b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">paddydempster</media:title>
		</media:content>
	</item>
	</channel>
</rss>
