<?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>LordElph's Ramblings &#187; ubuntu</title>
	<atom:link href="http://blog.dixo.net/category/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.dixo.net</link>
	<description>Stuff and nonsense about software development and whatever else I find fun...</description>
	<lastBuildDate>Thu, 18 Mar 2010 13:04:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>I&#8217;m a Qt Convert!</title>
		<link>http://blog.dixo.net/2009/03/31/im-a-qt-convert/</link>
		<comments>http://blog.dixo.net/2009/03/31/im-a-qt-convert/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 22:11:54 +0000</pubDate>
		<dc:creator>lordelph</dc:creator>
				<category><![CDATA[Geocaching]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.dixo.net/?p=280</guid>
		<description><![CDATA[Once upon a time, I used to do a lot of GUI app development. My professional career started back in 1993 writing Windows 3.1 apps in C, and continued for several years, switching to C++ and using the MFC framework. But from about 1998 I found myself steadily doing  less native GUI application development, [...]]]></description>
			<content:encoded><![CDATA[<p>Once upon a time, I used to do a lot of GUI app development. My professional career started back in 1993 writing Windows 3.1 apps in C, and continued for several years, switching to C++ and using the MFC framework. But from about 1998 I found myself steadily doing  less native GUI application development, and more and more web server based work.</p>
<p>While I enjoy all the work I do, I do miss being closer to the machine. The average PC is ridiculously powerful these days, but your average web application can&#8217;t do much with that power.</p>
<p>I&#8217;ve switched my home desktop to Ubuntu recently, and loving it. But, there&#8217;s a few Windows apps I miss. What&#8217;s a developer to do? What is a developer, skilled in C++ GUI development, to do, eh? Answer me that.</p>
<p>The recent release of <a href="http://www.qtsoftware.com/downloads">Qt4.5</a> and it&#8217;s accompanying <a href="http://www.qtsoftware.com/products/licensing/licensing">licence change</a> couldn&#8217;t have come at a better time. I had an itch to scratch, and it looked <em>gooood</em>. One simple install, and you have a great IDE, a GUI designer, and a stack of great classes and widgets. I was sold on the ease of integrating a <a href="http://www.qtsoftware.com/products/library/modular-class-library#info_webkit">WebKit browser</a> and the fact I could build a <a href="http://www.qtsoftware.com/products/library/modular-class-library#info_scripting">ECMAScript based scripting engine</a> for my app. But there&#8217;s so much more! I was a little skeptical of the smoke and mirrors behind the <a href="http://doc.trolltech.com/4.5/signalsandslots.html">signals and slots</a> paradigm, but having used it for a weekend, I&#8217;m sold. </p>
<p>Bottom line is that I spent more time writing my app than figuring out the framework. There&#8217;s hardly any &#8220;boilerplate&#8221; crap in each class. Once you&#8217;ve written your first signal and slot handler, you&#8217;re away. It&#8217;s all thriller, and no filler <img src='http://blog.dixo.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>As if that wasn&#8217;t exciting enough, recompiling for Windows and Mac is easy too. Qt doesn&#8217;t just get you closer to your machine, it gets you closer to *all* machines. Hallelujah, Flying Spaghetti Monster be praised, I&#8217;ve rediscovered a love of programming I didn&#8217;t know I&#8217;d lost.</p>
<p>Anyway&#8230;..</p>
<p>I don&#8217;t want to say too much about the app I&#8217;m writing, aside from the fact that it&#8217;s aimed at geocachers. It&#8217;s called <a href="http://ammotin.com">Ammotin</a>, and will probably get released much later in the year. I think it will be spectacular, because Qt has got me so fired up and focussing on the app, that I don&#8217;t need to worry too much about the framework.</p>
<p>Am I over excited?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dixo.net/2009/03/31/im-a-qt-convert/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Using Qt Creator with Ubuntu 8.10</title>
		<link>http://blog.dixo.net/2009/03/14/using-qt-creator-with-ubuntu-810/</link>
		<comments>http://blog.dixo.net/2009/03/14/using-qt-creator-with-ubuntu-810/#comments</comments>
		<pubDate>Sat, 14 Mar 2009 17:26:01 +0000</pubDate>
		<dc:creator>lordelph</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.dixo.net/?p=274</guid>
		<description><![CDATA[The recent change of licencing model for the Qt toolkit got it a lot of press recently. My GUI-based development experience is all Windows based, using MFC and wxWidgets. As I&#8217;ve found myself using Ubuntu and OSX a lot more recently, the idea of using Qt to write software to run on Windows, Linux or [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.qtsoftware.com/downloads">The recent change of <a href="http://www.qtsoftware.com/products/licensing/licensing">licencing model</a> for the <a href="http://en.wikipedia.org/wiki/Qt_(toolkit)">Qt toolkit</a> got it a lot of <a href="http://www.theregister.co.uk/2009/01/14/qt_lgpl_nokia_trolltech/">press</a> <a href="http://www.theregister.co.uk/2009/03/03/nokia_qt_major_update/">recently</a>. My GUI-based development experience is all Windows based, using <a href="http://en.wikipedia.org/wiki/Microsoft_Foundation_Class_Library">MFC</a> and <a href="http://www.wxwidgets.org/">wxWidgets</a>. As I&#8217;ve found myself using Ubuntu and OSX a lot more recently, the idea of using Qt to write software to run on Windows, Linux or OSX has some appeal. Of particular interest was the ease with which you can integrate <a href="http://webkit.org/">WebKit</a>, allowing you to embed web capabilities into a cross-platform app with ease.</p>
<p>Installation under Ubuntu 8.10 is straightforward, but I&#8217;m writing this post just to note the install steps I took. Hope it helps someone!</p>
<ul>
<li><a href="http://www.qtsoftware.com/downloads">Download and install the SDK</a>, which includes an IDE</li>
<li>Once installed, there&#8217;s a few packages you&#8217;ll need to ensure your first build completes:</li>
<li>sudo apt-get install libfreetype6-dev  libfontconfig-dev  libxrender-dev libsm-dev libglib2.0-dev</li>
</ul>
<p>Now you&#8217;re good to go!</p>
<p><em><strong>Edit</strong>: Edvaldo in the comments noted he needed to install some additional packages as follows:</em></p>
<ul>
<li>
sudo apt-get install libxext-dev libxext6-dbg x11proto-xext-dev
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.dixo.net/2009/03/14/using-qt-creator-with-ubuntu-810/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Geograph brought down by sky2 network driver failure</title>
		<link>http://blog.dixo.net/2007/02/26/geograph-brought-down-by-sky2-network-driver-failure/</link>
		<comments>http://blog.dixo.net/2007/02/26/geograph-brought-down-by-sky2-network-driver-failure/#comments</comments>
		<pubDate>Mon, 26 Feb 2007 20:14:12 +0000</pubDate>
		<dc:creator>lordelph</dc:creator>
				<category><![CDATA[Geograph]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.dixo.net/2007/02/26/geograph-brought-down-by-sky2-network-driver-failure/</guid>
		<description><![CDATA[Yesterday&#8217;s outage of the Geograph website was brought about by all three webservers rendering their network interfaces unusable due to a failed network driver. Although there are many references to similar failures, I thought it would be useful to write about it if only to give a little more Google-juice to the problem.
Geograph&#8217;s three webservers [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Earlier blog post" href="/2007/02/25/geograph-down/">Yesterday&#8217;s outage</a> of the <a href="http://www.geograph.org.uk" title="Geograph British Isles">Geograph</a> website was brought about by all three webservers rendering their network interfaces unusable due to a failed network driver. Although there are many references to similar failures, I thought it would be useful to write about it if only to give a little more Google-juice to the problem.</p>
<p>Geograph&#8217;s three webservers are running Ubuntu 6.06 LTS, regularly updated. The eth0 NIC is a Marvell Technology Group Ltd. 88E8050 Gigabit Ethernet Controller (rev 17),  driven by the sky2 driver.</p>
<p>Each of those NICs failed at some point on Sunday, but the servers themselves kept on trucking, eventually writing entries like this to syslog<br />
<code><br />
Feb 24 16:30:30 scone kernel: [35337220.416000] NETDEV WATCHDOG: eth0: transmit timed out<br />
Feb 24 16:30:30 scone kernel: [35337220.416000] sky2 eth0: tx timeout<br />
Feb 24 16:30:30 scone kernel: [35337220.420000] sky2 eth0: transmit ring 112 .. 89 report=112 done=112<br />
Feb 24 16:30:30 scone kernel: [35337220.420000] sky2 hardware hung? flushing<br />
</code></p>
<p>There are <a href="https://launchpad.net/ubuntu/+source/linux-source-2.6.17/+bug/81713">many</a> <a href="https://launchpad.net/ubuntu/+source/linux-source-2.6.15/+bug/38865">reports</a> of similar failures. One suggested fix is replacement of the sky2 driver with sk98lin, but as our remote KVM is also down, we&#8217;re limited to actions we can reliably take over a network connection (in the short term at least).</p>
<p>So, for some short term protection against reoccurence, I&#8217;ve written a simple watchdog script called by cron every 5 minutes. It performs some network connectivity tests, and if they all fail, increments a counter. If the script is called and has failed for the 4th successive time, it will attempt to reload the sky2 module, and if that doesn&#8217;t work, trigger an immediate reboot. This should mean that a server will enter &#8220;radio silence&#8221; for around 15 minutes and recover. That&#8217;s a tolerable delay for a cluster of three servers.</p>
<p>Fortunately, we&#8217;ve found the second NIC on the machine uses an Intel Corporation 82541GI/PI Gigabit Ethernet, driven by the e1000 driver. By all accounts, this should be much more stable. So longer term we&#8217;ll be switching the cabling over to the second NIC.</p>
<p>So, the moral of the story is, don&#8217;t build a server which uses the sky2 driver!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dixo.net/2007/02/26/geograph-brought-down-by-sky2-network-driver-failure/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Geograph servers coming to life</title>
		<link>http://blog.dixo.net/2006/07/28/geograph-servers-coming-to-life/</link>
		<comments>http://blog.dixo.net/2006/07/28/geograph-servers-coming-to-life/#comments</comments>
		<pubDate>Fri, 28 Jul 2006 22:56:47 +0000</pubDate>
		<dc:creator>lordelph</dc:creator>
				<category><![CDATA[Geograph]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.dixo.net/2006/07/28/geograph-servers-coming-to-life/</guid>
		<description><![CDATA[Well, here they are, racked up and ready to roll. This setup will breath some fresh life into Geograph which is struggling to cope with its popularity at the moment. Here&#8217;s a few factoids about the setup, if anyone wants to know more, just ask and I&#8217;ll write about it.

The 2U unit is called &#8220;Jam&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.dixo.net/wp-content/uploads/2006/07/IMG_4253_thumb.JPG" alt="Geograph's new servers" style="float:left;padding-right:20px"/>Well, here they are, racked up and ready to roll. This setup will breath some fresh life into <a href="http://www.geograph.org.uk">Geograph </a>which is struggling to cope with its popularity at the moment. Here&#8217;s a few factoids about the setup, if anyone wants to know more, just ask and I&#8217;ll write about it.</p>
<ul>
<li>The 2U unit is called &#8220;Jam&#8221; and has 6 400GB SATA drives in a RAID5 array with a hot spare, providing 1.6TB of storage. It also has dual 3GHz Xeon CPUs and 4GB RAM. This machine provides photo storage and the database</li>
<li>There are 3 1U units called &#8220;Toast&#8221;, &#8220;Scone&#8221; and &#8220;Crumpet&#8221; again with dual 3GHz Xeon CPUs and 4GB RAM. These are the main webservers</li>
<li>There is a 1U unit called &#8220;Tea&#8221; with a single 3Ghz Pentium 4 with 4GB RAM, this is primarily a load balancer</li>
<li>We also have a remote power switch and a remote KVM switch, allowing us to perform most maintainance remotely</li>
<li>All the servers run <a href="http://www.ubuntu.com/server">Ubuntu 6.06 LTS</a>, with the exception of &#8220;Jam&#8221; where we had problems booting from the RAID array after installation. Jam runs <a href="http://www.debian.org/">Debian Sarge</a> instead.</li>
<li>We are moving away from SourceForge for the code and bug tracking, using our own installation of <a href="http://trac.edgewall.org/">Trac</a> and <a href="http://subversion.tigris.org/">Subversion</a> instead.</li>
<li>The load balancing will be carried out by <a href="http://haproxy.1wt.eu/">HAProxy</a>, which will allow us to carry out a very smooth changeover. We&#8217;ll simply proxy the old server right up until we&#8217;re ready to go live, at which point we have a short period of downtime while we synchronise the databases.</li>
</ul>
<p>Here&#8217;s a few more pictures. Exciting stuff &#8211; click for full size goodness.</p>
<div>
<a class="imagelink" href="http://blog.dixo.net/wp-content/uploads/2006/07/IMG_4250.JPG" title="Front of servers"><img style="float:left;padding-right:10px;" id="image100" src="http://blog.dixo.net/wp-content/uploads/2006/07/IMG_4250_thumb.JPG" alt="Front of servers" /></a><br />
This is the front. Woooo!
</div>
<div style="clear:both;padding-top:20px;">
<a class="imagelink" href="http://blog.dixo.net/wp-content/uploads/2006/07/IMG_4254.JPG" title="Back of the servers"><img style="float:left;padding-right:10px;" id="image102" src="http://blog.dixo.net/wp-content/uploads/2006/07/IMG_4254_crop.JPG" alt="Back of the servers" /></a>&#8230;and here is the back. Check out that neat cabling job!
</div>
<p><br style="clear:both" /></p>
<p>Soon as we&#8217;re ready for the big switchover, we&#8217;ll announce it on the site&#8230;.almost ready now!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dixo.net/2006/07/28/geograph-servers-coming-to-life/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Installing VMWare Server Beta on Ubuntu 6.06 Dapper Drake</title>
		<link>http://blog.dixo.net/2006/06/05/installing-vmware-server-beta-on-ubuntu-606-dapper-drake/</link>
		<comments>http://blog.dixo.net/2006/06/05/installing-vmware-server-beta-on-ubuntu-606-dapper-drake/#comments</comments>
		<pubDate>Mon, 05 Jun 2006 20:30:53 +0000</pubDate>
		<dc:creator>lordelph</dc:creator>
				<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.dixo.net/2006/06/05/installing-vmware-server-beta-on-ubuntu-606-dapper-drake/</guid>
		<description><![CDATA[Edit: There&#8217;s now a more thorough guide over at HowToForge
I started with a server install of Ubuntu, and to install VMWare server you need a desktop, a compiler, kernel headers and a few other odds and ends
Easy way to get a desktop is go the whole hog and a give a home to a Gnome&#8230;
sudo [...]]]></description>
			<content:encoded><![CDATA[<p><b>Edit: There&#8217;s now a more thorough guide over at <a href="http://www.howtoforge.com/ubuntu_vmware_server">HowToForge</a></b></p>
<p>I started with a server install of Ubuntu, and to install VMWare server you need a desktop, a compiler, kernel headers and a few other odds and ends</p>
<p>Easy way to get a desktop is go the whole hog and a give a home to a Gnome&#8230;</p>
<p><code>sudo apt-get install ubuntu-desktop</code></p>
<p>Reboot and experience Ubuntu in all its brown chocolately glory. Next you need some build tools, none of this stuff comes by default, so go get it..</p>
<p><code>sudo apt-get install build-essential</code></p>
<p>The install wants inetd or xinetd, I went with xinetd&#8230;</p>
<p><code>sudo apt-get install xinetd </code></p>
<p>Now get your kernel version with uname </p>
<p><code>uname -a<br />
Linux hostname 2.6.15-23-server ...<br />
</code><br />
Use that info to fetch the kernel headers you need</p>
<p><code>sudo apt-get install linux-headers-2.6.15-23-server</code></p>
<p>I found it useful to go and symlink the headers to the place the VMWare installer expects to find them</p>
<p><code>cd /usr/src/<br />
sudo ln -s linux-headers-2.6.15-23-server linux</code></p>
<p>Now you are ready to install VMWare Server. Grab the Linux tarball from the <a href="http://www.vmware.com/download/server/">VMWare site</a>, unpack it, and run the installer</p>
<p><code>sudo ./vmware-install.pl</code></p>
<p>You should be able to accept the defaults for most questions unless you have specific virtual machine networking needs. Once installed, start the VMWare console from the Applications -> System Tools menu.</p>
<p>Easy!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dixo.net/2006/06/05/installing-vmware-server-beta-on-ubuntu-606-dapper-drake/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Ubuntu 6.06 LTS Released</title>
		<link>http://blog.dixo.net/2006/06/01/ubuntu-606-lts-released/</link>
		<comments>http://blog.dixo.net/2006/06/01/ubuntu-606-lts-released/#comments</comments>
		<pubDate>Thu, 01 Jun 2006 09:37:28 +0000</pubDate>
		<dc:creator>lordelph</dc:creator>
				<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.dixo.net/2006/06/01/ubuntu-606-lts-released/</guid>
		<description><![CDATA[The #ubuntu IRC channel had over 1000 people eagerly awaiting today&#8217;s release. Looking forward to giving it a test drive &#8211; getting good download speeds from the torrents provided here.
]]></description>
			<content:encoded><![CDATA[<p>The #ubuntu IRC channel had over 1000 people eagerly awaiting today&#8217;s <a href="http://www.ubuntu.com/news/606released">release</a>. Looking forward to giving it a test drive &#8211; getting good download speeds from the <a href="http://releases.ubuntu.com/6.06/">torrents provided here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dixo.net/2006/06/01/ubuntu-606-lts-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
