Skip navigation

Going Gutsy : installing the latest Ubuntu

A while ago the fabulous folks from Ubuntu released the latest version of their popular Linux distributions. The version number of Ubuntu, Kubuntu and Edubuntu is now up to 7.10 (being the year and month it was released). More often however Ubuntu versions are referred to by their alliterating nicknames. I’ll go over my experiences upgrading from Feisty Fawn to Gutsy Gibbon.

Upgrading from Feisty

Being a Debian based distribution all software management can be easily performed by the ‘apt’ family of tools. The first step in upgrading is letting apt know that I would from now on prefer the Gutsy packages.

sudo sed s/feisty/gutsy/g -i /etc/apt/sources.list
sudo apt-get update

You might notice that there is no gutsy-commercial repository like there used to be a feisty-commercial, with for instance Opera and Realplayer. If you were using it you’ll have to comment it out or keep using the one from Feisty.

When I do these big upgrades I switch to a plain tty console because I’ve had it happen that one of the install scripts restarted X11. So press SHIFT-F1 and login to the console. To have some record of what happened afterwards I use the great little utility ‘tee’. This will record whatever passes stdout to a file. So to start upgrading do this:

sudo apt-get dist-upgrade | tee feisty-to-gutsy-`date +%Y%m%d`.log

This way you’ll get a nice date stamped log of the whole install process. If you switch back to X (Shift-F7) to do some work in the meanwhile, you can open a terminal window and do a ‘tail -f’ on that file so you know what’s happening

First hickup : device-manager

After some 1300 packages were upgraded I rebooted my computer. A new kernel (2.6.22-14) had been installed, and it seemed to be making some trouble. Instead of booting into X I saw per second several identical error messages flying over my screen, the gist of it being:

device-manager: linear: dm-linear: Device lookup failed

Booting with my previous kernel solved the problem, so I got on-line and after some googling found a fix, in /etc/evms.conf find the line that says ‘exclude=…’ and change it to:

exclude = [ sd* ]

I’m not even sure what EVMS is, I’m guessing this is related to HAL (Hardware Abstraction Layer). What this does is exclude your harddrives, from eh.. something. It solved the problem for me.

I’ve had kernel upgrades in Ubuntu create problems before, IMHO they could be a little bit more conservative with their kernels.

Smaller hickups

After booting again everything was working like a charm. They also did a great job again on the artwork. I had to tweak a few more small things.

Mozilla’s Thunderbird email program is now started simply with ‘thunderbird’ in stead of ‘mozilla-thunderbird’. I had to update a shortcut.

I use Emacs for most of my editing tasks, and somehow the version with XFont backend that I previously had installed got replaced by another one. The version with XFont support is not available in the Ubuntu repositories so this is understandable. There’s a guy that packages this pretty version, and apparently he has since I last checked made an actual apt repository available. See this article : Pretty Emacs by Alexandre Vassalotti.

Looking closer I found to have three different Emacs flavors on my system. I just removed them all, added the repositories from Alexandre and installed my trusted XFont version. Nice!

There seems to also be something going on with StarDict. The little windows that pop up with translations jump to the upper left corner when you hover over them, and then immediatly disappear. I might have to revert to the old version.

Conclusion

I’ve been upgrading my system since Dapper, and although there are often small hickups a little bit of google will solve most of your woes. I’ve only used my new system for a day now, so there’s probably lots of new little features that I still have to discover. All in all this seems to be another rock solid distribution which I’d wholeheartedly recommend to both newbies and seasoned hackers.

Announcing ZhongWiki

Last week saw the launch of the first version of ZhongWiki. A wiki for people learning Mandarin Chinese. It’s still in it’s infancy, but I have a feeling it might become a great site and possibly a vibrant community.

A wiki is a site that can be edited and expanded by basically anyone. The best known example is Wikipedia. This site however does not try to be an encyclopedia, but rather a resource and a meeting ground for students of Mandarin. This means that not everything has to be properly sourced and you don’t need to have a neutral point of view. Opinions are appreciated and encouraged.

The name ZhongWiki is a wordplay on 中文 which means Chinese language and is pronounced “zhong wen” in Mandarin. It is written in CamelCase with the “Z” and the “W” capitalized as a homage to early wikis which used CamelCase to create links in pages.

So head over to ZhongWiki if Mandarin is your cup of cha, and keep a lookout for the edit button.

Smile :-), it’s your birthday

Last week the Smiley :-) turned 25. Happy birthday and congratulations! It was proposed by Scott E Fahlman in a post to a “Bulletin board” at Carnegie Mellon University the 19th of September 1982. Scott proposed its use to mark humorous or sarcastic remarks so they wouldn’t be misunderstood.

These two pages have more info on the origin of the Smiley

Scratching my Flickr itch with Nitro

I have somewhat neglected my English speaking audience, I must apologise. I’ve recently moved to Taiwan to study Mandarin, and my travellers journal will mostly be published on the Dutch side of this blog.

Before I left to Taiwan my grandmother gave me a beautiful little camera, and I’ve been taking pictures like a madman and posting them to my Flickr account. I would like to include these pictures into my blogposts, but I would like to use a specific HTML template, so I can easily style them with CSS, like so :

Giraf schenkt David en Arne thee

Because of this the Flickr generated code and most other solutions out there are no good. Instead I decided to code up my own solution, scratch the old itch so to say. In the meantime you guys can enjoy a little example of a Nitro app in action. It’s a wee little thingy, but it shows that with Nitro you don’t get much overhead in your code. If you make a small Rails application, the noise to signal ratio is huge with so much pregenerated stuff you’re not gonna need.

So the target is just a single page with my most recent pictures, and next to that a text area that contains copy-paste ready HTML in my desired format. I coded this up in a small hour, with most time spent reading the Flickr API docs. I tried the flickr gem, but it’s no longer maintained and I couldn’t get it to work quickly, so I started my own wrapper just for the API calls I need. (YAGNI, right.)

The “app” is called Flikker (which is a not-so-polite word in Dutch BTW, wonder how many search engine hits this will bring me). Download it here Flikker v0.0 as a tarball.

To run:

  • in settings.rb fill in your Flickr API key and user name
  • adapt ‘launch’ to point to your Nitro repository
  • change conf/debug.rb if you want to use something other than mongrel
  • ./launch
  • visit localhost:9000 in your browser

Actually this is such an embarassingly small app I wasn’t going to put it out there, but it’ll be damn handy for me, so maybe somebody else has a use for it also.