<?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>Callum Macdonald &#187; ubuntu</title>
	<atom:link href="http://www.callum-macdonald.com/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.callum-macdonald.com</link>
	<description>Callum on life</description>
	<lastBuildDate>Wed, 08 Feb 2012 13:52:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Skype in Ubuntu Precise alpha</title>
		<link>http://www.callum-macdonald.com/2012/01/08/skype-in-ubuntu-precise-alpha/</link>
		<comments>http://www.callum-macdonald.com/2012/01/08/skype-in-ubuntu-precise-alpha/#comments</comments>
		<pubDate>Sun, 08 Jan 2012 16:38:41 +0000</pubDate>
		<dc:creator>Callum</dc:creator>
				<category><![CDATA[Techy]]></category>
		<category><![CDATA[ia32-libs]]></category>
		<category><![CDATA[libxss]]></category>
		<category><![CDATA[precise]]></category>
		<category><![CDATA[Skype]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=2700</guid>
		<description><![CDATA[Last night I installed Ubuntu Precise Pangolin 12.04. I was inspired by Mark Shuttleworth&#8217;s post and figured because this is an LTS release, it might be ok to upgrade this early, instead of going to 11.10 first. My biggest hassle &#8230; <a href="http://www.callum-macdonald.com/2012/01/08/skype-in-ubuntu-precise-alpha/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Last night I installed Ubuntu Precise Pangolin 12.04. I was inspired by <a title="Mark Shuttleworth on Precise" href="http://www.markshuttleworth.com/archives/938" target="_blank">Mark Shuttleworth&#8217;s post</a> and figured because this is an LTS release, it might be ok to upgrade this early, instead of going to 11.10 first.</p>
<p>My biggest hassle was getting skype working. I documented the steps in the hope that it might save somebody else some hassle. This worked for me today, 8 Jan 2012, it might get out of date fast, and should be totally obsolete soon.</p>
<p>First, I installed a bunch of packages from oneiric. I don&#8217;t think these are available in precise yet. They are:</p>
<p>They can be downloaded in one go with <a title="Command to download skype precise packages from oneiric in one go" href="http://www.callum-macdonald.com/wordpress/wp-content/uploads/2012/01/skype_precise_downloads_in_one_go.txt" target="_blank">this</a> command (I believe, I haven&#8217;t actually tested, I downloaded them one by one). That command makes a new directory &#8220;skype-downloads&#8221; then downloads all the packages into it. From there, I ran:</p>
<p><code>dpkg -i *.deb<br />
sudo apt-get -f install<br />
sudo apt-get upgrade<br />
sudo apt-get install libxss1:i386 libqtcore4:i386 libqt4-dbus:i386 libasound2:i386 libxv1:i386 libsm6:i386 libxi6:i386 libXrender1:i386 libxrandr2:i386 libfreetype6:i386 libfontconfig1:i386 libqtgui4:i386<br />
</code></p>
<p>This installs all the downloaded files, upgrades / fixes some of them, then installs a whole load more i386 dependencies. Finally, after all that, I was able to install the skype .deb I downloaded from <a title="Download skype for linux" href="http://www.skype.com/intl/en-us/get-skype/on-your-computer/linux/" target="_blank">skype.com</a>. After downloading the file, I&#8217;d suggest using dpkg to install it like this:</p>
<p><code>dpkg -i /path/to/downloaded/skype-ubuntu_2.2.0.35-1_amd64.deb</code></p>
<p>Then I was able to start skype. However, it wouldn&#8217;t show in the systray. To solve that, I used this command:</p>
<p><code>gsettings set com.canonical.Unity.Panel systray-whitelist "['Skype']"</code></p>
<p>This command sets the value found in dconf-editor at desktop &gt; unit &gt; panel, called systra-whitelist. This value sets which programs can appear in the old fashioned system tray (now that we&#8217;re onto bigger and better things with unity and indicators). There&#8217;s a <a title="Bug which prevents all from allowing all systray items in unity" href="https://bugs.launchpad.net/ubuntu/+source/unity-2d/+bug/847525" target="_blank">bug</a> which means setting &#8220;all&#8221; in this value doesn&#8217;t work. So you need to add each program you want, in single quotes, separated by a comma. See <a title="Displaying items in the system tray on ubuntu unity" href="http://askubuntu.com/questions/35289/one-line-command-for-adding-new-items-to-com-canonical-unity-panel-systray-white" target="_blank">this</a> for more.</p>
<p>I don&#8217;t really understand what all of this does, I copied various bits and pieces from a few places and pieced it altogether through trial and error. This <a title="Installing ia32-libs from oneiric in precise" href="http://ubuntuforums.org/showthread.php?t=1880965" target="_blank">forum post</a> talks about installing from oeneric, and this <a title="Requirements to get skype running in precise" href="http://www.mindwerks.net/2011/09/skype-on-ubuntu-11-10-oneiric-ocelot/" target="_blank">blog post</a> listed the extra requirements.</p>
<p>I&#8217;m on skype video now, so this all worked! <img src='http://www.callum-macdonald.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.callum-macdonald.com/2012/01/08/skype-in-ubuntu-precise-alpha/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing NTFS on Ubuntu</title>
		<link>http://www.callum-macdonald.com/2011/06/28/fixing-ntfs-on-ubuntu/</link>
		<comments>http://www.callum-macdonald.com/2011/06/28/fixing-ntfs-on-ubuntu/#comments</comments>
		<pubDate>Tue, 28 Jun 2011 15:37:16 +0000</pubDate>
		<dc:creator>Callum</dc:creator>
				<category><![CDATA[Techy]]></category>
		<category><![CDATA[dd]]></category>
		<category><![CDATA[loop0]]></category>
		<category><![CDATA[loopback]]></category>
		<category><![CDATA[losetup]]></category>
		<category><![CDATA[NTFS]]></category>
		<category><![CDATA[TestDisk]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=2540</guid>
		<description><![CDATA[James had a hard drive problem. He pulled the disk out of his laptop and brought it to me. Firstly I created a full image of the broken partition like so: sudo dd if=/dev/sdb2 bs=1k conv=sync,noerror of=/path/to/image Then I tried &#8230; <a href="http://www.callum-macdonald.com/2011/06/28/fixing-ntfs-on-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a title="James Coutts" href="http://www.jamescoutts.co.uk/">James</a> had a hard drive problem. He pulled the disk out of his laptop and brought it to me. Firstly I created a full image of the broken partition like so:</p>
<p><code>sudo dd if=/dev/sdb2 bs=1k conv=sync,noerror of=/path/to/image</code></p>
<p>Then I tried TestDisk. It worked like a charm and fixed the apparently broken NTFS boot sector. I thought that when James put the drive back in the laptop, it might &#8220;just work&#8221;, but apparently it didn&#8217;t. I had saved some of the most important files, but not all. James then wiped the drive to get a working machine again.</p>
<p>So now I had to restore files from an image of a broken partition. Turns out to be dead easy. The key ingredients were loopback and TestDisk.</p>
<p><code>sudo losetup /dev/loop0 /path/to/image<br />
sudo testdisk /dev/loop0</code></p>
<p>It took me a while to figure out that I needed to choose partition table type none. I was dealing with an image of a single partition, so there was no partition table. After that, TestDisk behaved just like normal. I rebuilt the NFTS boot sector and then mounted the image like so:</p>
<p><code>sudo mkdir /mnt<br />
sudo mount /dev/loop0 /mnt</code></p>
<p>This warned about the disk not having been shut down properly, ran something or other to clean it up, and then bingo, all the files were mounted and visible. I copied all the data from /mnt to an external drive, and will give that to James to restore from. Too easy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.callum-macdonald.com/2011/06/28/fixing-ntfs-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Audio CDs on Ubuntu on Lenovo X301</title>
		<link>http://www.callum-macdonald.com/2011/03/26/audio-cds-on-ubuntu-on-lenovo-x301/</link>
		<comments>http://www.callum-macdonald.com/2011/03/26/audio-cds-on-ubuntu-on-lenovo-x301/#comments</comments>
		<pubDate>Sat, 26 Mar 2011 18:58:22 +0000</pubDate>
		<dc:creator>Callum</dc:creator>
				<category><![CDATA[Techy]]></category>
		<category><![CDATA[audio cds]]></category>
		<category><![CDATA[dbus]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[nautilus]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=2470</guid>
		<description><![CDATA[Quick geektastic post. Under Ubuntu 10.04 lucid lynx I can&#8217;t play audio CDs. When I put them into the drive, an error pops up every few seconds saying: Unable to mount Audio Disc DBus error org.freedesktop.DBus.Error.NoReply: Message did not receive &#8230; <a href="http://www.callum-macdonald.com/2011/03/26/audio-cds-on-ubuntu-on-lenovo-x301/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Quick geektastic post. Under Ubuntu 10.04 lucid lynx I can&#8217;t play audio CDs. When I put them into the drive, an error pops up every few seconds saying:</p>
<p>Unable to mount Audio Disc<br />
DBus error org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)</p>
<p>Eventually I stumbled upon this <a title="Obscure bug in Gnome or Nautilus around Audio CDs" href="https://bugs.launchpad.net/ubuntu/+source/glib2.0/+bug/397350" target="_blank">bug</a> and found a solution. I open Nautilus, Edit &gt; Preferences &gt; Media &gt; Never prompt or start programs on media insertion. Bingo, now I can insert a CD and it will play. I don&#8217;t think it&#8217;ll work in Rhythmbox because that&#8217;s so tightly integrated with Gnome, but I was able to play the CD in VLC and presumably I&#8217;d be able to rip it in something equally unconnected to Gnome.</p>
<p>Glorious, now I can rip some of my 6 year old CDs I just found. Happy days. <img src='http://www.callum-macdonald.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Here&#8217;s a random picture from flickr for the non techy readers to enjoy&#8230;</p>
<p style="text-align: center;"><a href="http://www.flickr.com/photos/sprengben/4550315185/"><img class="aligncenter" title="E = m c² [Explored] By Sprengben [why not get a friend]" src="http://farm5.static.flickr.com/4012/4550315185_29bd82d3af.jpg" alt="" width="500" height="332" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.callum-macdonald.com/2011/03/26/audio-cds-on-ubuntu-on-lenovo-x301/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Insufficient boot space on Ubuntu</title>
		<link>http://www.callum-macdonald.com/2010/07/24/insufficient-boot-space-on-ubuntu/</link>
		<comments>http://www.callum-macdonald.com/2010/07/24/insufficient-boot-space-on-ubuntu/#comments</comments>
		<pubDate>Sat, 24 Jul 2010 14:34:57 +0000</pubDate>
		<dc:creator>Callum</dc:creator>
				<category><![CDATA[Techy]]></category>
		<category><![CDATA[/boot]]></category>
		<category><![CDATA[boot partition]]></category>
		<category><![CDATA[free space]]></category>
		<category><![CDATA[insufficient space]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[kernel upgrades]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[upgrades]]></category>

		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=2154</guid>
		<description><![CDATA[When installing the latest batch of updates to Ubuntu 10.04 I hit a problem, I ran out of space on my /boot partition. A dialog popped up warning of low space on /boot. Then the install of updates failed because &#8230; <a href="http://www.callum-macdonald.com/2010/07/24/insufficient-boot-space-on-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When installing the latest batch of updates to Ubuntu 10.04 I hit a problem, I ran out of space on my /boot partition. A dialog popped up warning of low space on /boot. Then the install of updates failed because the new kernel couldn&#8217;t be completed.</p>
<p>The solution was remarkably simple, I post it here in the hope it might help others. Firstly, I removed the oldest kernel I had installed. I opened Synaptic (System &gt; Administration) and then searched for my current kernel version (2.6.32). I saw I had 4 kernels installed. I then searched for 2.6.32-21, the oldest kernel. I marked these packages for complete removal:</p>
<ul>
<li>linux-headers-2.6.32-21</li>
<li>linux-headers-2.6.32-21-generic</li>
<li>linux-image-2.6.32-21-generic</li>
</ul>
<p>Then I removed those and to finish, I marked for re-installation the same packages but the -24 version (the latest kernel that failed to install). Now all is happy once again. <img src='http://www.callum-macdonald.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.callum-macdonald.com/2010/07/24/insufficient-boot-space-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Regenerating nautilus thumbnails</title>
		<link>http://www.callum-macdonald.com/2010/06/13/regenerating-nautilus-thumbnails/</link>
		<comments>http://www.callum-macdonald.com/2010/06/13/regenerating-nautilus-thumbnails/#comments</comments>
		<pubDate>Sun, 13 Jun 2010 19:50:19 +0000</pubDate>
		<dc:creator>Callum</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Techy]]></category>
		<category><![CDATA[delete thumbnails]]></category>
		<category><![CDATA[fix thumbnails]]></category>
		<category><![CDATA[nautilus]]></category>
		<category><![CDATA[nautilus scripts]]></category>
		<category><![CDATA[regenerate thumbnails]]></category>
		<category><![CDATA[thumbnails]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=2060</guid>
		<description><![CDATA[Sometimes nautilus will try to generate a thumbnail for a video file while it&#8217;s downloading. Then  nautilus remembers that it tried, and failed, to generate a thumbnail for that file. Once the file has finished downloading, the thumbnail remains broken. &#8230; <a href="http://www.callum-macdonald.com/2010/06/13/regenerating-nautilus-thumbnails/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Sometimes nautilus will try to generate a thumbnail for a video file while it&#8217;s downloading. Then  nautilus remembers that it tried, and failed, to generate a thumbnail for that file. Once the file has finished downloading, the thumbnail remains broken. I&#8217;ve had this issue for a while, today I chose to find a solution.</p>
<p>I found this <a title="A script to regenerate thumbnails in Nautilus" href="http://ifireball.wordpress.com/2007/12/29/fixing-thumbnails-in-nautilus/" target="_blank">post by Barak Korren</a>. Barak wrote a short <a title="A collection of nautilus scripts on sourceforge" href="http://g-scripts.sourceforge.net/" target="_blank">nautilus script</a> in python to allow the easy deletion of a thumbnail in Nautilus. Here&#8217;s a step by step guide to getting it working.</p>
<p>Download <a title="Barak Korren's delete_thumbnails.py nautilus script in plain text" href="http://www.callum-macdonald.com/download/delete_thumbnails.py" target="_blank">this file</a> and put it into your ~/.gnome2/nautilus-scripts directory. The script is by Barak, I uploaded a plain text version here to make it easier to download. Make the script executable, you can run <code>chmod +x ~/.gnome2/nautilus-scripts/delete_thumbnails.py</code> in a terminal to do this. Now go to that directory in Nautilus, and you&#8217;re in business.</p>
<p>To test, right click on a file with a thumbnail. You should see a new menu, Scripts, under which you&#8217;ll see &#8220;delete_thumbnails.py&#8221;. Click that option and the thumbnail will be deleted. Press F5 to reload the folder in nautilus, and you should see a new thumbnail generated.</p>
<p>Thanks for a such a handy script Barak.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.callum-macdonald.com/2010/06/13/regenerating-nautilus-thumbnails/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Installing lyx without the bloat</title>
		<link>http://www.callum-macdonald.com/2010/06/12/installing-lyx-without-the-bloat/</link>
		<comments>http://www.callum-macdonald.com/2010/06/12/installing-lyx-without-the-bloat/#comments</comments>
		<pubDate>Sun, 13 Jun 2010 02:19:04 +0000</pubDate>
		<dc:creator>Callum</dc:creator>
				<category><![CDATA[Techy]]></category>
		<category><![CDATA[bloat]]></category>
		<category><![CDATA[docs]]></category>
		<category><![CDATA[equivs]]></category>
		<category><![CDATA[huge files]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[lyx]]></category>
		<category><![CDATA[saving bandwidth]]></category>
		<category><![CDATA[tex]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[wasted space]]></category>

		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=2056</guid>
		<description><![CDATA[For a few months now I&#8217;ve been researching programs to write in. I have OpenOffice, I tried AbiWord, I use gedit for text files. They&#8217;re all good programs, but they&#8217;re not what I want to write in. I want something &#8230; <a href="http://www.callum-macdonald.com/2010/06/12/installing-lyx-without-the-bloat/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>For a few months now I&#8217;ve been researching programs to write in. I have OpenOffice, I tried AbiWord, I use gedit for text files. They&#8217;re all good programs, but they&#8217;re not what I want to write in. I want something ultra simple. Very basic formatting, spellcheck, light quick load time. The best option I found was Tomboy, a sticky note application. It supports very simple formatting, has a spellcheck, and is dead simple. It loads almost instantly. But, it saves notes automatically in its own format. There&#8217;s no way for me to save different versions, choose a file name or location, etc. It&#8217;s fine for the writing, but I need to go elsewhere to save.</p>
<p>In the last couple of days, I discovered gwrite. It&#8217;s a very simple WYSIWYG HTML editor. It has the potential to be exactly what I want, but it&#8217;s very young software and still has a few usability bugs. I&#8217;ve reported them to the program&#8217;s author, so maybe it&#8217;ll improve in time. I might even look at the source code and see if I can provide some patches myself.</p>
<p>But, that&#8217;s not the point of this post. This post is about lyx, which is a seriously cool application I&#8217;ve just discovered. It&#8217;s a &#8220;writing tool&#8221;, not a word processor. It&#8217;s a tool designed for scientific and other authors to simply write text. It&#8217;s based on an underlying technology called <a title="LaTeX is a document markup technology, as explained by Wikipedia" href="http://en.wikipedia.org/wiki/LaTeX" target="_blank">L<sup>A</sup>T<sub>E</sub>X</a>. As I understand it, and I&#8217;m completely new to this whole thing, LaTeX allows an author to just write. The layout of chapters, titles, indentations, bullet points, and all that jazz, is handled by LaTeX macros. What does that mean? Well, I think it means I just write, then lyx, LaTeX and TeX make it look beautiful.</p>
<p>So, all excited, I decided to install lyx. This is where I hit a problem. I was prompted to download 438MB of data and use 745MB of disk space. That&#8217;s outrageously huge for a single program. I was blown away, it makes installing lyx many times larger than OpenOffice. I was strongly intrigued by what took up so much space, so I had a little sniff. It turns out that more than 70% of the download size and almost 60% of the disk space is used by documentation. Mostly, documentation for underlying applications which I didn&#8217;t specifically choose to install, they&#8217;re required to make lyx work.</p>
<p>Being on a slow internet connection, I decided waiting the day or two for 438MB to download was just too much. There must be another way. A little research later, I found my solution in a program called equivs. Equivs is a pair of tools to create shadow or dummy debs. In my case, this meant creating a dummy package to make apt think that I had already installed the massive collection of documentation that was necessary to install lyx. Thus I was able to install lyx by downloading only 117MB of data and using only 302MB of disk space. Still astronomically huge, but less than half of what I was originally facing.</p>
<p>And so, onto the point of this post. How does one do that? If you want a simple answer, here it is. Step 1, install <a title="My texlive-dummy-docs deb file to save all the doc space" href="http://www.callum-macdonald.com/download/texlive-dummy-docs_1.0_all.deb" target="_blank">this file</a>. Step 2, install lyx as normal. Bingo, jobsagoodun. <img src='http://www.callum-macdonald.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>For those who are interested, I&#8217;ll explain the process on Ubuntu 10.04. Install equivs in the usual way (<code>sudo apt-get install equivs</code> will do the trick). Now create a new directory, I called it equivs-texlive-dummy-docs. In that directory, run <code>equivs-control texlive-dummy-docs.ctl</code>. Now edit the newly created file. Mine looked like <a title="My texlive-dummy-docs.ctl file" href="http://www.callum-macdonald.com/download/texlive-dummy-docs.ctl" target="_blank">this</a>. Next run <code>equivs-build texlive-dummy-docs.ctl</code>. This command creates a new file called texlive-dummy-docs_1.0_all.deb. That file can be installed with <code>sudo dpkg -i texlive-dummy-docs_1.0_all.deb</code>.</p>
<p>It took me a few hours to put all this together. Hopefully if you&#8217;re facing the same challenge, you can install one file and be done. <img src='http://www.callum-macdonald.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Update: I discovered that all these packages are installed because apt is configured to install recommended packages by default. I tried installing lyx without any of the recommended packages using <code>sudo apt-get install --no-install-recommends lyx</code>, but previewing documents from lyx didn&#8217;t work. Instead I reverted to my equivs texlive-dummy-docs package. If you feel passionately about this topic, as I do, please chime in on <a title="Launchpad ubuntu bug on texlive-extra about the huge doc dependencies of texlive packages" href="https://bugs.launchpad.net/ubuntu/+source/texlive-extra/+bug/401545" target="_blank">this bug</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.callum-macdonald.com/2010/06/12/installing-lyx-without-the-bloat/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>VirtualBox host to guest networking</title>
		<link>http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/</link>
		<comments>http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 16:00:36 +0000</pubDate>
		<dc:creator>Callum</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Techy]]></category>
		<category><![CDATA[bridge networking]]></category>
		<category><![CDATA[host only networking]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ubuntu 9.04]]></category>
		<category><![CDATA[ubuntu jaunty]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=1693</guid>
		<description><![CDATA[Update: I just repeated this process with Ubuntu 11.04 host, 10.04 guest. It worked as described here. I also automated the setup on the host, and added a note at the bottom of the post explaining how I did that. &#8230; <a href="http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>Update:</strong> I just repeated this process with Ubuntu 11.04 host, 10.04 guest. It worked as described here. I also automated the setup on the host, and added a note at the bottom of the post explaining how I did that.</p>
<p>I&#8217;m creating a new development server on VirtualBox. I was using VMWare until recently, but since upgrading to Ubuntu 9.04 64bit, I&#8217;ve decided to try VirtualBox instead. I also recommended VirtualBox to my brother, so by using it myself I&#8217;ll be better able to support him if he has any issues.</p>
<p>Installing a new virtual machine was a breeze. After I activated hardware virtualisation in my bios, I installed a 64bit version of <a title="Download Ubuntu server edition" href="http://www.ubuntu.com/getubuntu/download-server" target="_blank">Ubuntu server 8.04 LTS</a>. The install failed a couple of times, not sure why, but third time lucky.</p>
<p>My first major stumbling  block was connecting to the virtual machine from the host machine. By default VirtualBox gives the guest (virtual machine) a NAT ethernet connection. So the guest can connect to the network, including the internet, but the host can&#8217;t connect to the guest. I&#8217;m creating a development server, so that&#8217;s precisely what I want to do, connect from the host to the guest. With a little research, it turns out there&#8217;s an easy solution (on Linux hosts).</p>
<p>The <a title="VirtualBox wiki article on Advanced Networking in Linux" href="http://www.virtualbox.org/wiki/Advanced_Networking_Linux" target="_blank">VirtualBox article on Advanced Networking in Linux</a> was my guide. I&#8217;ll document all the steps I took here.</p>
<p>Install bridge-utils, vtun and uml-utilities:</p>
<blockquote><p><code>sudo apt-get install bridge-utils vtun uml-utilities</code></p></blockquote>
<p>Create the bridge:</p>
<blockquote><p><code>sudo brctl addbr br0<br />
sudo ip link set up dev br0<br />
sudo ip addr add 10.9.0.1/24 dev br0<br />
</code></p></blockquote>
<p>Create a tap device for the guest to use, put your username in place of USER:</p>
<blockquote><p><code>sudo tunctl -t tap0 -u USER<br />
sudo ip link set up dev tap0<br />
sudo brctl addif br0 tap0</code></p></blockquote>
<p>If you need multiple guests connected, repeat this step replacing tap0 with tap1, tap2 and so on. Always use br0.</p>
<p>Now modify the virtual machine settings and map one of the network adapters (probably the second one) to the device tap0. Choose Attached To Host Interface and select the device tap0. I left the first network adapter as a NAT adapter so the virtual machine has internet access. In this configuration, I can disconnect the guest from the internet and / or the host separately.</p>
<p>When the virtual machine has started, setup the network. Assuming the guest is an Ubuntu machine, run these commands on the guest. If you linked the first network adapter to tap0 then use eth0 on the guest, if you chose the second network adapter use eth1, 3 to eth2, 4 to eth3 and  so on.</p>
<blockquote><p><code>sudo ip link set up dev eth1<br />
sudo ip addr add 10.9.0.2/24 dev eth1</code></p></blockquote>
<p>Now test it all works. On the host machine try <code>ping -c4 10.9.0.2</code> and on the guest try <code>ping -c4 10.9.0.1</code>. Assuming both machines are set to respond to pings (default in Ubuntu), you should see 4 successful pings.</p>
<p>If this works, you can set the address permanently by editing /etc/network/interfaces and adding this text.</p>
<blockquote><p><code># Host only network<br />
auto eth1<br />
iface eth1 inet static<br />
address 10.9.0.2<br />
netmask 255.255.255.0<br />
network 10.9.0.0<br />
broadcast 10.9.0.255</code></p></blockquote>
<p>I&#8217;ve used the 10.9.*.* addresses as an example. You can use any private network address (10.*.*.*, 192.168.*.* or 172.16.*.*-172.31.*.*). The most commonly used addresses are 192.168.*.* and 10.0.*.* or 10.1.*.* so I recommend staying away from them. You want to choose addresses that won&#8217;t clash with anything else on your network.</p>
<p>Edit: Finally, I added a script to automate the setup on the host machine. I created a script called /etc/init.d/virtualbox-bridgenetwork with the following contents:</p>
<blockquote><p><code>#!/bin/bash<br />
# Create the br0 interface<br />
brctl addbr br0<br />
ip link set up dev br0<br />
ip addr add 10.9.0.1/24 dev br0<br />
# Create tap0 for the vm to connect to<br />
tunctl -t tap0 -u USER<br />
ip link set up dev tap0<br />
brctl addif br0 tap0</code></p></blockquote>
<p>You need to change USER to your own username and modify the IP to whatever you were using. Then to make this script run automatically at boot time, run:</p>
<blockquote><p><code>sudo update-rc.d virtualbox-bridgenetwork defaults</code></p></blockquote>
<p>Now the br0 and tap0 interfaces should be automatically created at boot time.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.callum-macdonald.com/2009/10/28/virtualbox-host-to-guest-networking/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
		<item>
		<title>Mounting LVM vmware disks</title>
		<link>http://www.callum-macdonald.com/2009/10/07/mounting-lvm-vmware-disks/</link>
		<comments>http://www.callum-macdonald.com/2009/10/07/mounting-lvm-vmware-disks/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 04:31:47 +0000</pubDate>
		<dc:creator>Callum</dc:creator>
				<category><![CDATA[Techy]]></category>
		<category><![CDATA[libcrypto.so]]></category>
		<category><![CDATA[libcrypto.so.0.9.8]]></category>
		<category><![CDATA[libfuse]]></category>
		<category><![CDATA[libfuse.so.2]]></category>
		<category><![CDATA[sslloadsharedlibrary]]></category>
		<category><![CDATA[suspend]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vmdk]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vmware-loop]]></category>
		<category><![CDATA[vmware-mount]]></category>
		<category><![CDATA[vmware-mount.pl]]></category>
		<category><![CDATA[vmware-server]]></category>

		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=1645</guid>
		<description><![CDATA[I&#8217;ve spent a couple of weeks trying to recover some data from an old vmware machine. I didn&#8217;t want to install vmware on my new OS, so I looked into the vmware-mount program. The documentation refers to vmware-mount.pl, but I &#8230; <a href="http://www.callum-macdonald.com/2009/10/07/mounting-lvm-vmware-disks/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve spent a couple of weeks trying to recover some data from an old vmware machine. I didn&#8217;t want to install vmware on my new OS, so I looked into the vmware-mount program. The <a title="vmware-mount loopback device" href="http://www.vmware.com/support/reference/linux/loopback_linux.html" target="_blank">documentation</a> refers to vmware-mount.pl, but I couldn&#8217;t find that file at first. It looks like since VMWare 2.0, vmware-mount.pl and vmware-loop have been replaced by a single vmware-mount binary, which behaves slightly differently.</p>
<p>I initially had problems with vmware-mount from <a title="VMWare Server for Linux 32bit version 2.0.0-122956 in tar.gz format" href="https://www.vmware.com/freedownload/p/download.php?product=server20&amp;a=DOWNLOAD_FILE&amp;baseurl=http://download2.vmware.com/software/server/&amp;filename=VMware-server-2.0.0-122956.i386.tar.gz" target="_blank">VMware-server-2.0.0-122956.i386.tar.gz</a>. I was getting this error:</p>
<p><code>vmware-mount: error while loading shared libraries: libfuse.so.2: cannot open shared object file: No such file or directory</code></p>
<p>I saw other reports of the same error, but no solution. I was using vmware-mount from a 32bit build on a 64bit OS, so instead I tried the vmware-mount from <a title="VMWare Server for Linux 64-bit version 2.0.1-156745 in tar.gz format" href="https://www.vmware.com/freedownload/p/download.php?product=server20&amp;a=DOWNLOAD_FILE&amp;baseurl=http://download2.vmware.com/software/server/&amp;filename=VMware-server-2.0.1-156745.x86_64.tar.gz" target="_blank">VMware-server-2.0.1-156745.x86_64.tar.gz</a>. Then I got an error along the lines of:</p>
<p><code>SSLLoadSharedLibrary: Failed to load library libcrypto.so.0.9.8:/usr/local/bin/libdir/lib/libcrypto.so.0.9.8/libcrypto.so.0.9.8: cannot open shared object file: No such file or directory<br />
Core dump limit is 0 KB.<br />
Child process 26541 failed to dump core (status 0x6).</code></p>
<p>VMware Server Error:<br />
VMware Server unrecoverable error: (app)<br />
SSLLoadSharedLibrary: Failed to load library libcrypto.so.0.9.8:/usr/local/bin/libdir/lib/libcrypto.so.0.9.8/libcrypto.so.0.9.8: cannot open shared object file: No such file or directory<br />
Please request support.<br />
To collect data to submit to VMware support, select Help &gt; About and click &#8220;Collect Support Data&#8221;. You can also run the &#8220;vm-support&#8221; script in the Workstation folder directly.<br />
We will respond on the basis of your support entitlement.</p>
<p>Press &#8220;Enter&#8221; to continue&#8230;</p>
<p>I read <a title="Article on vmware-mount issues" href="http://hydra.geht.net/tino/howto/vmware/mount/" target="_blank">this</a>. With a little guesswork this command seemed to do the trick:</p>
<p><code>sudo ln -s /lib /usr/lib/vmware</code></p>
<p>Now vmware-mount would list my partitions. First major breakthrough.</p>
<h2>Mounting suspended disks</h2>
<p>It complained that my virtual machine was in a suspended state, and so it wasn&#8217;t safe to mount the disk. I found I could bypass this problem by moving all the vmdk files into a separate directory. Then running vmware-mount in that directory. It effectively ignored all the vmware machine files, and used only the hard disk files.</p>
<p><code>mkdir vmdks<br />
sudo mv *.vmdk vmdks/<br />
cd vmdks<br />
</code></p>
<p>Now I could mount my /boot partition within the VM, but not the second partition because it was was an LVM container. A whole new problem to solve.</p>
<h2>Mounting LVM volumes with vmware-mount</h2>
<p>I stumbled on my buddy John&#8217;s <a title="John Berns on lvm vmware partitions" href="http://www.johnberns.com/2008/08/22/how-to-mount-a-vmware-linux-partition-in-ubuntu-hardy-804/" target="_blank">post</a>. That and <a title="Restoring from LVM vmware disks" href="http://www.dmi.me.uk/blog/2009/02/22/restoring-from-lvm-and-vmware-disks/" target="_blank">this</a> helped me figure out what was required.</p>
<p>My first step was to mount the disk flat, using a command like:</p>
<p><code>sudo vmware-mount -f pathToVMDK.vmdk /path/to/mount</code></p>
<p>That worked, sort of. With <code>fdisk -l /path/to/mount</code> I could see the two partitions. But <code>sudo vgscan</code> couldn&#8217;t find the lvm partition. I tried <code>sudo losetup /dev/loop0 /path/to/mount/flat</code>, but that didn&#8217;t work either.</p>
<p>I figured I needed vmware-loop to mount the partition as a loop device. I searched the <a title="VMWare Server for Linux 64-bit version 2.0.1-156745 in tar.gz format" href="https://www.vmware.com/freedownload/p/download.php?product=server20&amp;a=DOWNLOAD_FILE&amp;baseurl=http://download2.vmware.com/software/server/&amp;filename=VMware-server-2.0.1-156745.x86_64.tar.gz" target="_blank">VMware-server-2.0.1-156745.x86_64.tar.gz</a> file for vmware-loop, but it was nowhere to be found. That&#8217;s when I started investigating with previous versions of VMWare. It looks like the 1.0.* releases included vmware-mount.pl and vmware-loop while the 2.0.* releases only include the new vmware-mount binary.</p>
<p>I downloaded <a title="VMWare Sever for linux hosts v1.0.9-156507 in tar format" href="http://download3.vmware.com/software/vmserver/VMware-server-1.0.9-156507.tar.gz" target="_blank">VMware-server-1.0.9-156507.tar.gz</a>. In that tar file I extracted <code>bin/vmware-mount.pl</code> and <code>bin/vmware-loop</code>. These were the files I needed. I skipped vmware-mount and went straight to vmware-loop. I was able to mount the second partition directly onto a network block device (/dev/dbd0) with:</p>
<p><code>sudo vmware-loop pathToVMDK.vmdk 2 /dev/nbd0</code></p>
<p>Now I could use the lvm commands to activate and mount my lvm. Note that vmware-loop is running the whole time, so I left it in a separate terminal. I closed it with CTRL-C at the very end of the process.</p>
<p><code>sudo vgscan<br />
sudo vgchange -ay VolGroup00<br />
sudo mount /dev/VolGroup00/LogVol00 /mnt/</code></p>
<p>Finally, I was able to copy the files from my virtual hard drive. I made a full backup with tar and then grabbed some other specific files and unmounted the whole thing.</p>
<p><code>sudo umount /mnt/</code><br />
<code>sudo vgchange -an VolGroup00</code></p>
<p>If you&#8217;re struggling with vmware-mount and  LVM or suspended disks, I hope this helps. Comments welcome.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.callum-macdonald.com/2009/10/07/mounting-lvm-vmware-disks/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Considering a Kindle</title>
		<link>http://www.callum-macdonald.com/2009/02/28/considering-a-kindle/</link>
		<comments>http://www.callum-macdonald.com/2009/02/28/considering-a-kindle/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 19:52:36 +0000</pubDate>
		<dc:creator>Callum</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Techy]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA[DRM]]></category>
		<category><![CDATA[Kindle]]></category>
		<category><![CDATA[Kindle2]]></category>
		<category><![CDATA[read aloud]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=1061</guid>
		<description><![CDATA[I&#8217;m considering the purchase of an Amazon Kindle 2. I like reading books but books a&#8217;re big and bulky which doesn&#8217;t fit very well with my current nomadic lifestyle. I&#8217;ve spoken to a few people who recommend the Kindle. However, &#8230; <a href="http://www.callum-macdonald.com/2009/02/28/considering-a-kindle/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m considering the purchase of an <a title="Amazon Kindle 2" href="http://www.amazon.com/gp/product/B00154JDAI" target="_blank">Amazon Kindle 2</a>. I like reading books but books a&#8217;re big and bulky which doesn&#8217;t fit very well with my current nomadic lifestyle. I&#8217;ve spoken to a few people who recommend the Kindle.</p>
<p>However, I just read <a title="Lawrence Lessig talking about Amazon's decision to restrict read aloud on the Kindle" href="http://www.lessig.org/blog/2009/02/caving_into_bullies_aka_here_w.html" target="_blank">this</a>. Amazon has allowed publishers to restrict whether a book can be read aloud on the Kindle or not. There is no basis for this in law, but Amazon has conceded all the same.</p>
<p>I&#8217;m typically a hardliner on issues like this. I boycott all Apple products because of the company&#8217;s proprietary lock-in practices. I use Ubuntu GNU/Linux because it includes software freedoms not available on proprietary operating systems.</p>
<p>Is there a Kindle competitor out there? Is the same range of books available?</p>
<p>Before I make a purchase I want to find out if I can load books onto the Kindle via Ubuntu. The Kindle includes a cell phone wireless component that allows internet access, but only in the US. So outside of the US I need another way to load books. If that requires Windows or Mac then I won&#8217;t buy the Kindle.</p>
<p>Then I&#8217;d also like to research the selection of books that is available. I&#8217;m hoping that the type of non-fiction books I typically read are readily available on the Kindle, otherwise, again, no point getting one.</p>
<p>Do you have a Kindle? Do you use Ubuntu? Any feedback?</p>
<p style="text-align: center;"><a href="http://www.flickr.com/photos/uriondo/3266823822/"><img class="aligncenter" title="Kindle 2 by uriondo on flickr.com" src="http://farm4.static.flickr.com/3534/3266823822_51fa585ab6.jpg?v=0" alt="" width="500" height="500" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.callum-macdonald.com/2009/02/28/considering-a-kindle/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Skype on Ubuntu 8.10</title>
		<link>http://www.callum-macdonald.com/2008/11/30/skype-on-ubuntu-810/</link>
		<comments>http://www.callum-macdonald.com/2008/11/30/skype-on-ubuntu-810/#comments</comments>
		<pubDate>Sun, 30 Nov 2008 08:16:20 +0000</pubDate>
		<dc:creator>Callum</dc:creator>
				<category><![CDATA[Techy]]></category>
		<category><![CDATA[Intrepid]]></category>
		<category><![CDATA[intrepid ibex]]></category>
		<category><![CDATA[Skype]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Ubuntu 8.10]]></category>

		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=779</guid>
		<description><![CDATA[Every time I reinstall Skype on Linux I lose sound for some reason. I can hear the other side, but they can&#8217;t hear me. I fiddle with the volume settings, and after a while it starts working. This time, I &#8230; <a href="http://www.callum-macdonald.com/2008/11/30/skype-on-ubuntu-810/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Every time I reinstall Skype on Linux I lose sound for some reason. I can hear the other side, but they can&#8217;t hear me. I fiddle with the volume settings, and after a while it starts working. This time, I paid attention and made note of how I got it working. This post is as much for me as for anyone else on Ubuntu. <img src='http://www.callum-macdonald.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Firstly, under Options &gt; Sound Devices I switched the output device to pulse. Then I set the input device to &#8220;HDA Intel (hw:Intel,0)&#8221;. Then I opened the volume control, enabled all the devices, and set Mic Boost to about 15%. That was the critical step. Now callers can hear me.</p>
<p>For the first time in my Linux history, I can now receive a Skype call and have music playing at the same time. Previously, I had to kill all other sound output before answering the call and I would only see it ring, not hear it. Much progress.</p>
<p>Here&#8217;s a random picture from a search for Skype on flickr to brighten things up a little.</p>
<p style="text-align: center;"><a href="http://www.flickr.com/photos/warmnfuzzy/292484698/"><img class="aligncenter" title="Got mine!! by Warm n Fuzzy on www.flickr.com" src="http://farm1.static.flickr.com/109/292484698_9155f3dbae.jpg?v=0" alt="" width="500" height="375" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.callum-macdonald.com/2008/11/30/skype-on-ubuntu-810/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Zend Studio garbled chars fix</title>
		<link>http://www.callum-macdonald.com/2008/11/29/zend-studio-garbled-chars-fix/</link>
		<comments>http://www.callum-macdonald.com/2008/11/29/zend-studio-garbled-chars-fix/#comments</comments>
		<pubDate>Sat, 29 Nov 2008 09:45:22 +0000</pubDate>
		<dc:creator>Callum</dc:creator>
				<category><![CDATA[Techy]]></category>
		<category><![CDATA[garbled chars]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Ubuntu 8.10]]></category>
		<category><![CDATA[Ubuntu Intrepid]]></category>
		<category><![CDATA[zend]]></category>
		<category><![CDATA[zend studio]]></category>
		<category><![CDATA[Zend Studio 5.5.1]]></category>

		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=782</guid>
		<description><![CDATA[Following my post about installing Zend Studio 5.5.1 on Ubuntu 8.10, Gyorgy posted a comment about a problem with garbled characters. I had noticed the problem myself, but only briefly, I don&#8217;t tend to work with very large files. As &#8230; <a href="http://www.callum-macdonald.com/2008/11/29/zend-studio-garbled-chars-fix/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Following my <a title="Installing Zend Studio 5.5.1 on Ubuntu 8.10" href="http://www.callum-macdonald.com/2008/05/20/zend-studio-551-on-ubuntu/">post</a> about installing Zend Studio 5.5.1 on Ubuntu 8.10, Gyorgy posted a <a title="Gyorgy on garbled text issues with Zend Studio 5.5.1 on Ubuntu 8.10" href="http://www.callum-macdonald.com/2008/05/20/zend-studio-551-on-ubuntu/#comment-31558">comment</a> about a problem with <a title="Screenshot of Zend Studio 5.5.1 garbling characters on Ubuntu Intrepid" href="http://ubuntuforums.org/attachment.php?attachmentid=92487&amp;d=1226597820" target="_blank">garbled characters</a>. I had noticed the problem myself, but only briefly, I don&#8217;t tend to work with very large files. As yet, I hadn&#8217;t gotten a chance to look into it.</p>
<p>I spent some time on it today. Through <a title="Thread discussing Zend Studio garbled text bug on Ubuntu Intrepid" href="http://www.zend.com/forums/index.php?t=msg&amp;th=6427" target="_blank">this</a> I found <a title="NetBeans rendering bug on Ubuntu 8.10 and others" href="http://forums.netbeans.org/post-14892.html" target="_blank">this thread</a> discussing a similar problem with Netbeans. User cesc posted <a title="User cesc finds a solution to the Netbeans garbled character rendering bug" href="http://forums.netbeans.org/topic4851-0-asc-15.html#15818" target="_blank">their fix</a> (workaround?) which others reported to work. I figured the same option might work in Zend.</p>
<p>After a little digging, I have found that this approach works for me. I&#8217;ve tested with a 3k+ line file, and the bug is resolved. I&#8217;m running Zend Studio 5.5.1, Ubuntu 8.10, Sun&#8217;s JRE build 1.6.0_10-b33, compiz disabled. Zend appears to work with compiz enabled, but scrolling a 3k+ line file is very slow.</p>
<p>I edited file <code>/opt/ZendStudio-5.5.1/bin/ZDE</code> at line 1543 and added this:</p>
<p><code># Hack in this option to solve garbled text problem as per:<br />
# http://tinyurl.com/zendchrfix<br />
options="$options -Dsun.java2d.pmoffscreen=false"</code></p>
<p>Here&#8217;s a <a title="Patch to fix garbled text rendering bug in Zend Studio 5.5.1 on Ubuntu 8.10" href="http://www.callum-macdonald.com/download/ZDE.text-render-bug-on-ubuntu-8.10.patch">patch</a> for those who like that sort of thing. Hopefully this will help others with the same issue.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.callum-macdonald.com/2008/11/29/zend-studio-garbled-chars-fix/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Full encryption is go!</title>
		<link>http://www.callum-macdonald.com/2008/11/10/full-encryption-is-go/</link>
		<comments>http://www.callum-macdonald.com/2008/11/10/full-encryption-is-go/#comments</comments>
		<pubDate>Sun, 09 Nov 2008 23:23:33 +0000</pubDate>
		<dc:creator>Callum</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Techy]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[full disk encryption]]></category>
		<category><![CDATA[grc]]></category>
		<category><![CDATA[intrepid ibex]]></category>
		<category><![CDATA[laptop security]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=748</guid>
		<description><![CDATA[This post comes to you from Ubuntu 8.10 Intrepid Ibex, upon a fully encrpted 500GB disk. So if my laptop should fall into the wrong hands, my customers, family and friends can rest assured their data, passwords, photographs or emails &#8230; <a href="http://www.callum-macdonald.com/2008/11/10/full-encryption-is-go/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/anonymouscollective/2291896028/"><img class="alignright" title="Security by Anonymous Account on flickr.com" src="http://farm3.static.flickr.com/2340/2291896028_e54336ab04_m.jpg" alt="" width="160" height="240" /></a>This post comes to you from Ubuntu 8.10 Intrepid Ibex, upon a fully encrpted 500GB disk. So if my laptop should fall into the wrong hands, my customers, family and friends can rest assured their data, passwords, photographs or emails are (for all practical purposes) secure.</p>
<p>Thus far I haven&#8217;t noticed a performance cost. The system &#8220;feels&#8221; as fast as before. I&#8217;m running a Centrino Core2 Duo 1.66GHz, 1.5GiB RAM. When moving large quantities of data (10GiB plus) I see the kcryptd process using around 25% &#8211; 50% CPU (of one core).</p>
<p>It really was painless to setup. Thanks to <a title="Ubuntu Hardy Heron 8.04 with full disk encryption" href="http://learninginlinux.wordpress.com/2008/04/23/installing-ubuntu-804-with-full-disk-encryption/" target="_blank">this walkthrough</a> I was pretty confident it would be easy. No dramas. The hardest step was probably choosing a suitably random password (thanks <a title="GRC Ultra Random Password Generator" href="https://www.grc.com/passwords.htm" target="_blank">grc</a>).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.callum-macdonald.com/2008/11/10/full-encryption-is-go/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Mobile broadband is go!</title>
		<link>http://www.callum-macdonald.com/2008/06/27/mobile-broadband-is-go/</link>
		<comments>http://www.callum-macdonald.com/2008/06/27/mobile-broadband-is-go/#comments</comments>
		<pubDate>Fri, 27 Jun 2008 01:43:28 +0000</pubDate>
		<dc:creator>Callum</dc:creator>
				<category><![CDATA[Techy]]></category>
		<category><![CDATA[3g]]></category>
		<category><![CDATA[e220]]></category>
		<category><![CDATA[huawei e220]]></category>
		<category><![CDATA[net monitor]]></category>
		<category><![CDATA[networkmanager]]></category>
		<category><![CDATA[three]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[umtsmon]]></category>
		<category><![CDATA[vodafone mobile connect]]></category>

		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=618</guid>
		<description><![CDATA[I bought a Huawei E220 last week. It took a week or so to arrive. Then I wanted to get myself a 3 mobile broadband account. That turned out to be a pain in the ass. You need to sign &#8230; <a href="http://www.callum-macdonald.com/2008/06/27/mobile-broadband-is-go/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/Image:HuaweiE220.JPG"><img class="alignright size-full wp-image-619" style="float: right;" title="Huawei E220" src="http://www.callum-macdonald.com/wordpress/wp-content/uploads/2008/06/huaweie220_vodafone.jpg" alt="Huawei E220" width="200" height="309" /></a>I <a title="I bought a Huawei E220 on eBay" href="http://cgi.ebay.com.au/ws/eBayISAPI.dll?ViewItem&amp;item=140240473773" target="_blank">bought a Huawei E220</a> last week. It took a week or so to arrive. Then I wanted to get myself a <a title="Three mobile broadband" href="http://www.three.com.au/cs/ContentServer?homeId=1156241342637&amp;c=Page&amp;pagename=Three%2FPage%2FBusinessVideoCallingTemplate&amp;p=1154931041257&amp;cid=1155054450837" target="_blank">3 mobile broadband account</a>. That turned out to be a pain in the ass. You need to sign a contract, so you have to go through a credit check. As I don&#8217;t have any paperwork in Aus, Ross kindly agreed to sign the contract. Alas, having only been in the country a few months, he failed the credit check. After some initial skepticism, Toppo kindly agreed to sign on the dotted line. Bravo!</p>
<p>So, today, this post comes to you via mobile broadband.</p>
<p>There were some initial glitches though. It took some serious farting around. I tried installing <a title="Vodafone Mobile Connect for linux" href="https://forge.betavine.net/projects/vodafonemobilec/" target="_blank">vodafone&#8217;s linux software</a>, that didn&#8217;t work. It could see the modem most of the time, but it wouldn&#8217;t connect. Not sure why, some weird wvdial errors. Yet wvdial on it&#8217;s own would work fine.</p>
<p>Then I tried <a title="Umtsmon - manage your 3g and other gizmos" href="http://umtsmon.sourceforge.net/" target="_blank">umtsmon</a>. It worked ok. But it&#8217;s an ugly little application and it wouldn&#8217;t disappear into my system tray. Plus, NetworkManager thought there was no connection, so all my programs thought they were offline. Pain in the ass.</p>
<p>Finally, I <a title="Upgrading to NetworkManager 0.7 in Ubuntu Hardy 8.04" href="http://ubuntuforums.org/showthread.php?t=797059" target="_blank">upgraded NetworkManager to 0.7</a>. Then bingo, it works like a charm.</p>
<p>I want to keep an eye on bandwidth consumption, so I&#8217;m using the <a title="Net Monitor screenlet from gnome-look.org" href="http://www.gnome-look.org/content/show.php/Net+Monitor?content=72013" target="_blank">Net Monitor screenlet</a>. It&#8217;s not quite perfect as it tracks usage by calendar month. But it&#8217;ll do as a start.</p>
<h4>Ubuntu</h4>
<p>Top marks to Ubuntu. You plug in the modem and it &#8220;just works&#8221;. No farting around switching modes or any of that nonsense. In fact, if you know the init strings, you can just dial and go. Once NetworkManager 0.7 goes final and makes it into Ubuntu, mobile broadband will be a cinch.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.callum-macdonald.com/2008/06/27/mobile-broadband-is-go/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu lock screen on laptop close lid</title>
		<link>http://www.callum-macdonald.com/2008/06/11/ubuntu-lock-screen-on-laptop-close-lid/</link>
		<comments>http://www.callum-macdonald.com/2008/06/11/ubuntu-lock-screen-on-laptop-close-lid/#comments</comments>
		<pubDate>Wed, 11 Jun 2008 06:30:00 +0000</pubDate>
		<dc:creator>Callum</dc:creator>
				<category><![CDATA[Techy]]></category>
		<category><![CDATA[close lid]]></category>
		<category><![CDATA[gnome power manager]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[lock screen]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=615</guid>
		<description><![CDATA[In Fedora 8 when I closed my laptop lid, my screen would lock. Under Ubuntu 8.04 this doesn&#8217;t happen. After a bit of digging, I found a solution. The gconf setting is &#8220;/apps/gnome-power-manager/lock/blank_screen&#8221;. When set to true, closing the lid &#8230; <a href="http://www.callum-macdonald.com/2008/06/11/ubuntu-lock-screen-on-laptop-close-lid/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In Fedora 8 when I closed my laptop lid, my screen would lock. Under Ubuntu 8.04 this doesn&#8217;t happen. After a bit of digging, I found a solution. The gconf setting is &#8220;/apps/gnome-power-manager/lock/blank_screen&#8221;. When set to true, closing the lid will lock the screen. Luvvvly. <img src='http://www.callum-macdonald.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.callum-macdonald.com/2008/06/11/ubuntu-lock-screen-on-laptop-close-lid/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Zend Studio 5.5.1 on Ubuntu</title>
		<link>http://www.callum-macdonald.com/2008/05/20/zend-studio-551-on-ubuntu/</link>
		<comments>http://www.callum-macdonald.com/2008/05/20/zend-studio-551-on-ubuntu/#comments</comments>
		<pubDate>Tue, 20 May 2008 08:04:25 +0000</pubDate>
		<dc:creator>Callum</dc:creator>
				<category><![CDATA[Techy]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jre]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[zend]]></category>
		<category><![CDATA[zend studio]]></category>

		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=591</guid>
		<description><![CDATA[I had some challenges with Zend Studio so I&#8217;m posting this for anyone with the same problems (and for my own records). I found the solution here. The issue is related to compiz. Additionally, Sun&#8217;s java5 needs to be the &#8230; <a href="http://www.callum-macdonald.com/2008/05/20/zend-studio-551-on-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I had some challenges with Zend Studio so I&#8217;m posting this for anyone with the same problems (and for my own records). I found the solution <a title="Zend Studio on Ubuntu with compiz" href="http://www.zend.com/support/knowledgebase.php?kbid=241" target="_blank">here</a>. The issue is related to compiz. Additionally, Sun&#8217;s java5 needs to be the default java (set with `sudo update-java-alternatives`).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.callum-macdonald.com/2008/05/20/zend-studio-551-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Ubuntu is go</title>
		<link>http://www.callum-macdonald.com/2008/05/20/ubuntu-is-go/</link>
		<comments>http://www.callum-macdonald.com/2008/05/20/ubuntu-is-go/#comments</comments>
		<pubDate>Tue, 20 May 2008 07:56:10 +0000</pubDate>
		<dc:creator>Callum</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Techy]]></category>
		<category><![CDATA[hardy]]></category>
		<category><![CDATA[Skype]]></category>
		<category><![CDATA[synaptic]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ubuntu 8.04]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=589</guid>
		<description><![CDATA[I have installed Ubuntu. It all seems to be running quite smoothly. VMWare is working, which is nice. I had some initial sound issues with Skype but it looks like it was a volume issue, sorted now. Waiting for Zend &#8230; <a href="http://www.callum-macdonald.com/2008/05/20/ubuntu-is-go/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have installed <a title="Ubuntu - easy to use open source linux, alternative to Windows" href="http://www.ubuntu.com/" target="_blank">Ubuntu</a>. It all seems to be running quite smoothly. VMWare is working, which is nice. I had some initial sound issues with Skype but it looks like it was a volume issue, sorted now. Waiting for Zend studio to download, hopefully that will be an easy install.</p>
<p>Overall, the process was rather painless. I&#8217;m loving synaptic package management. It really is much better than RPM. The desktop effects are taking a bit of getting used to. I can&#8217;t drag / drop windows onto the workspaces, but that&#8217;s not too big a deal.</p>
<p>So far, I&#8217;m pleased with the switch. For all you visual people, here&#8217;s a wee screenshot of the workspace switcher.</p>
<p style="text-align: center;"><a href="http://www.callum-macdonald.com/wordpress/wp-content/uploads/2008/05/ubuntu_804_desktop_switcher.png"><img class="aligncenter size-medium wp-image-590" title="Ubuntu Hardy Desktop Switcher" src="http://www.callum-macdonald.com/wordpress/wp-content/uploads/2008/05/ubuntu_804_desktop_switcher-300x225.png" alt="The desktop switcher on Ubuntu 8.04 Hardy" width="300" height="225" /></a></p>
<p>Some things that impressed me:</p>
<ul>
<li>Media buttons &#8220;just work&#8221;, I can play / pause / forward / etc music, beautiful.</li>
<li>Installing copyright &#8220;questionable&#8221; plugins (MP3s, divx, etc) was painless and granny easy.</li>
<li>The windows key does stuff, out of the box, not very useful stuff, but still stuff!</li>
<li>I could import my pidgin, Evolution and something else data from Fedora. Nice.</li>
<li>Desktop effects are enabled out of the box (compiz for the techies).</li>
<li>Stuff prompts for configuration during install, for example ddclient. Handy.</li>
</ul>
<p>I&#8217;m pleased I&#8217;ve switched over to Ubuntu. I&#8217;m a little wary that the #ubuntu channel is quite busy. Ubuntu seems to be popular with new linux users so there seem to be a lot of &#8220;newby&#8221; questions on there. Good they&#8217;re being answered, but it can be a pain for more experienced users.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.callum-macdonald.com/2008/05/20/ubuntu-is-go/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Early adventures with Ubuntu</title>
		<link>http://www.callum-macdonald.com/2008/05/16/early-adventures-with-ubuntu/</link>
		<comments>http://www.callum-macdonald.com/2008/05/16/early-adventures-with-ubuntu/#comments</comments>
		<pubDate>Fri, 16 May 2008 07:50:28 +0000</pubDate>
		<dc:creator>Callum</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Techy]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[livna]]></category>
		<category><![CDATA[Open-Source]]></category>
		<category><![CDATA[truecrypt]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ubuntu versus fedora]]></category>

		<guid isPermaLink="false">http://www.callum-macdonald.com/?p=587</guid>
		<description><![CDATA[I&#8217;ve been thinking about switching from Fedora to Ubuntu. I downloaded the latest Ubuntu version a few weeks ago. Today I took the plunge and booted it up. First thing I noticed, no wireless networks. It detected my card and &#8230; <a href="http://www.callum-macdonald.com/2008/05/16/early-adventures-with-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been thinking about switching from <a title="Fedora - the open-source operating system from RedHat" href="http://fedoraproject.org/" target="_blank">Fedora</a> to <a title="Ubuntu - open source operating system that's easy to use" href="http://www.ubuntu.com/" target="_blank">Ubuntu</a>. I downloaded the latest Ubuntu version a few weeks ago. Today I <a href="http://twitter.com/chmac/statuses/812516356" target="_blank">took the plunge</a> and booted it up.</p>
<p>First thing I noticed, no wireless networks. It detected my card and it seemed to work, but no networks were listed by NetworkManager. I unplugged the power and went through to the living room to plug in with a good old fashioned ethernet cable. Fairly quickly I found a <a title="Intel 3945 doesn't work on Ubuntu 8.04 by default, here's the solution" href="http://linuxexpert.wordpress.com/2008/04/28/fix-intel-wireless-driver-on-hardy/" target="_blank">solution</a>. So back to my desk on wireless.</p>
<h4>Appearance</h4>
<p>At first glance, Ubuntu is just not as pretty as Fedora. The graphics seemed a bit too Windows 3.1 for me. I switched to one of the other included themes. It was a bit better. I think I&#8217;d have to hunt around for a nicer Ubuntu theme. Personally, I think this is a big failure for Ubuntu. In aiming to bring free software to everyone, appearance matters.</p>
<p>For a Windows user, comparing Windows Vista with Ubuntu 8.04, I think Vista wins on appearance. For many users, that&#8217;s an important factor. Personally, it&#8217;s not a deal breaker, but I will do something about it.</p>
<h4>Installing software</h4>
<p>The package manager in Ubuntu is streets ahead of Fedora. Straight away it just works. It feels nice and clean. It tells you the expected download time until <strong>all</strong> your packages have downloaded. It strikes a great balance between the fine grained control I get with yumex and the simple interface of the default Fedora package manager. Thumbs up for Ubuntu.</p>
<h3>Proprietary formats</h3>
<p>Playing MP3 files, avi files, or any other non-free format is a little tricky on Linux. You need to install software which can be &#8220;questionable&#8221; in terms of it&#8217;s copyright position. Fedora gets round this problem by not shipping any of that software. Instead you grab that stuff from <a title="Livna - proprietary and other goodies for Fedora" href="http://rpm.livna.org/" target="_blank">livna</a>. However, livna is not installed by default. You have to manually add it yourself.</p>
<p>In Ubuntu, I tried to play an MP3 file. It asked if I&#8217;d like to search for the codecs. Then it warned me that I was installing software from the Ubuntu community. A minute or so later, the song started playing. Whatever magic happens behind the scenes in Ubuntu happens automatically. A big plus for Ubuntu, particularly for new users.</p>
<h4>Installation</h4>
<p>By default, Ubuntu boots in Live CD mode. So no changes are made to your hard drive. It&#8217;s a great option for new users. You can test the operating system. Check all your hardware works. Then choose to install if you want to. It was at this point that Ubuntu crashed. I&#8217;m not sure what went wrong. I could move the mouse, and the clock was ticking, but nothing else. I tried a ctrl-alt-backspace to restart X, no luck.</p>
<p>Ironically, I was proceeding with the install when it crashed. Now I&#8217;ve booted back to Fedora. I&#8217;m still swaying on whether to try Fedora 9 or not. If I do go with Fedora 9, I almost certainly won&#8217;t switch to Ubuntu. In Ubuntu&#8217;s favour, I already have the CD. I&#8217;ll have to go to the local library to download Fedora 9. That might end up being the deciding factor! <img src='http://www.callum-macdonald.com/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h4>Conclusion</h4>
<p>I recommend Ubuntu to anyone interested in trying Linux. I think they work really hard to make it easy to use, and largely succeed. Personally, being fairly experienced with Linux, I don&#8217;t think there will be much difference. Package managing is better in Ubuntu. <a title="TrueCrypt - on-the-fly, cross platform disk encryption" href="http://www.truecrypt.org/" target="_blank">TrueCrypt</a> ships .debs and not .rpms, so that&#8217;s a bonus. I&#8217;m just not sure if it will be worth the effort of switching.</p>
<p>For new users, Ubuntu is great. Personally, time will tell.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.callum-macdonald.com/2008/05/16/early-adventures-with-ubuntu/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

