Archive for the ‘Linux’ Category

Why I liked Ubuntu (and my thoughts on Gutsy Werewolf, aka Fedora 8)

Thursday, November 8th, 2007

One of the reasons I like Ubuntu is because they have a really swanky commercial repository, and they make it easy for me to get some commercial software, without pulling an RMS-styled “Freedom is a feature” on me. Don’t get me wrong, I still love Fedora with all my heart, but when you get out of the distribution business per se, you feel that you might just want your primary machine to “Just Work”(tm). And long gone are the days where I carry 2-3 laptops when I travel - I just aim for one (I have lots of photo gear to worry about, instead).

The Feisty Fawn, was a pretty good Ubuntu release. That is, I got my commercial software fix - Sun’s JDK (moot these days, hello IcedTea in Fedora, for instance), VMWare Server (its free, kind of useful for running other distributions), and even Opera (sometimes I’m bored with Firefox, Galeon, Epiphany, I need to test things in another browser).

When Gutsy Gibbon got released, I couldn’t wait to update to the next, best thing. You expect things to move forward, never regress right?

Well, Sun’s software still works. As does Opera. But VMWare, has since, stopped working. Kernel 2.6.22-14 does not come with appropriate VMWare modules. Yes, that means, there’s no vmmon or vmnet loaded (or even, loadable, to be exact). Effectively, they’ve broken VMWare. I wondered why, so I hopped on to a package search, only to find out that VMWare has been removed from the commercial repository. No real explanation that I can find as to why it doesn’t exist.

So, my next option is to maybe build-my-own-package. There’s a guide titled VMWare in Ubuntu Gutsy - Kernel 2.6.22 that might be a good read for those that want to use this. Then I recall why I moved to using Ubuntu daily - I did it to get away from the frustration of having to build things myself. I did it, for the “Just Works”(tm) experience.

My options are to move to using some free software, quite obviously. There’s KVM, Xen, or even VirtualBox. Hey wait a minute, I can get all this in Fedora 8 too, can’t I?

The Gutsy Gibbon was supposed to come with a rocking new tool, displayconfig-gtk (i.e. System -> Administration -> Screen and Graphics). Unfortunately, it is broken beyond all thought. Then I remember an old friend, system-config-display, from Fedora - at least it works, and it has been around for ages (since what, Red Hat 8?). displayconfig-gtk is supposed to give me all the wonderful hotplug goodness of an external display, but it doesn’t. I can manually push xrandr to at least mirror my display (Intel chipset, might I add), which I’m sure I can also do in Fedora 8.

So I’ve come to the realisation that things are broken, and I’m going to have to do things manually, if I want them to work. This is irrespective of if I run Ubuntu or Fedora. Being just an “end user” is hard, to almost impossible.

My needs-to-work-list:

  • sleep/resume - this can also be kernel version dependant, Ubuntu has the advantage for a less aggressive release policy, but it seems Fedora is catching up with wanting to ensure laptop stuff, just works
  • wifi - ipw3945d is my poison, and it seems that both Fedora and Ubuntu have this working out of the box (a stark improvement to previous Fedora’s where you had to get the firmware yourself). Of course, repeated sleep/resumes tend to make WiFi die, and that just annoys me
  • video out - this is hacky at best, Ubuntu works if I tweak things manually, I wonder if Fedora 8 will have this any better. Nonetheless, xrandr should come to my rescue
  • sound - well, my laptop is my primary music listening device as well as video watching device. Ubuntu and Fedora should have this working just fine
  • codecs - I need to watch DivX, play MP3s, and so on. Ubuntu provides this via Medibuntu and Fedora via Livna
  • media keys - Ubuntu and Fedora should have this working fine, and GNOME in both environments is highly friendly
  • virtualization - I don’t care if I end up using KVM (which is looking like what I’m going for), or Xen (no ACPI, and obviously can’t sleep/resume), but I think I’ve had it with VMWare unless they have sensible packages. I have useless VMs sitting on my laptop now.
  • fully 64-bit OS - I plan on moving on from 2GB of RAM to 4GB of RAM (its kind of cheap nowadays), and want a fully 64-bit OS. Ubuntu works, sure, but I have to have ugly chroot hacks for a 32-bit environment. Fedora just works, some say because RPM is broken but I say, if that’s the case, its broken in a good way. Mixture of 32/64-bit rpms, are sweet
  • Skype, GizmoProject - closed source, install your own, works on Ubuntu and Fedora

My “it’ll be nice if it worked” list:

  • compiz effects - Doesn’t seem to work on Ubuntu, I wonder if Fedora will have it any better
  • hibernate - not quite suspend/resume, but it can be handy to have around
  • sd/mmc/memory stick card reader - Doesn’t seem to work on Ubuntu (Feisty, last I tried it)
  • tv out - Never tried, but if video out is this bad, I doubt s-video is any better

I take it that’s enough ranting for today. Congratulations to the Fedora Project for releasing Fedora 8 today. I think Werewolf will be a gutsy release alright.

And a happy Diwali/Deepavali to all Hindus. As an aside, the number 8 is interesting - in Chinese, it loosely translates to being lucky. And November 8 2007 seems to be the “festival of light”. The only way it could’ve been any more numerically lucky is if it were released on 08-08-2008 (a day for a lot of weddings, I assume).

I seem to enjoy asides today, so here’s another. I ran dict gutsy, and it has some interesting definitions:

  gutsy \gutsy\ adj.
     1. marked by courage and determination in the face of
        difficulties or danger.
       Syn: courageous, plucky.
      2. rough or plain; not sophisticated or refined; earthy.
        Opposite of {sophisticated}, or {refined}.
       Syn: earthy, lusty, robust.

I wonder if, definition-wise, Gutsy Werewolf is #1 and the Gutsy Gibbon is #2?

Technorati Tags: , , , , , , , , ,

RAW Management and Conversion in Linux

Tuesday, November 6th, 2007

Today, I was playing around with Linux, and RAW management. Not wanting to carry a laptop just for photo editing (i.e. I plan on travel without my MacBook Pro, and beautiful Lightroom, Aperture, iView Media Pro [okay, Microsoft Expression Media now], and Photoshop CS2), I figured I should make Linux up to scratch.

My favourite photo browser, is GQview. Its not standard software any longer, but its pretty old, and it works fairly well. It however, doesn’t support RAW. Today I discovered f-spot (ok, I discovered it ages ago, but I didn’t like its iPhoto-ness, where it wants to import stuff for you). Never fear, that’s what

    f-spot –view <path>

is for. Shortcut wise, its a little different, so I just use the up/down arrow keys to browse.

Now to convert the RAW files to JPGs, with preservation of EXIF data. I played around with the commands manually after reading the man page for dcraw, and figured there must be a better way. So I hopped on over to Yahoo!, did a little search, and came up with Jamie Zawinski’s mvpix. After changing the script a tad bit to suit my environment, I have images! RAW, JPEG, and copies of the JPEGs in an EDIT folder. mvpix also works on OS X.

The options being passed to dcraw seem to be simple: -w for using camera supplied white balance, -t 0 for no tilting, and -c for writing decoded images to stdout. Its passed to cjpeg, and run at 95% quality. However, the images seem to be a tad different, and I have no idea why.


On left, is when the camera was shooting in RAW+JPEG, and on right is the JPEG generated from the RAW file (click for larger image). These are 100% zooms.

The colour differences befuddles me. Why does the camera come out with “brighter” RAW, and dcraw come up with paler tones?


On left, is what the in-camera JPEG gives, when you’re shooting in RAW+JPEG, in the middle is what UFRaw sees from the RAW file, and on the right is what the converted JPEG looks like, after being parsed through dcraw+cjpeg (click for larger image).

What gives? Are there better options in dcraw to give me an as-close-to-in-camera JPEG experience? Are the converted images better/more true coloured? I’m not sure which to pick, and I’m not sure what’s the correct setting, to be honest.

Now about the photos. Apologies to the girl pictured here, all I know is that she’s probably a student at the Caulfield Campus of Monash University (so no, I don’t know her name). She was randomly picked for some quick studio photos, which was really just a bunch of us playing with a few studio strobes, and having the power of wireless triggers. These photos all rolled off an EOS 350D digital back, with a 50mm/1.4 lens attached to it, shot at f/1.6, at 1/25s. Sure, this should have really been made at f8, but there was no time to coax the girl.

Technorati Tags: , , , , , , , , ,

How to clone a virtual machine with VMWare Server

Sunday, October 14th, 2007

There didn’t seem like a clear way to make a copy (or clone) of a virtual machine with VMWare Server. Not with the 1.0.3 build-44356 which comes standard with the Ubuntu Commercial repository (one of the good virtues of Ubuntu).

So, I fired up the console, and did:
cp -ax Centos\ 5/ Centos\ 5-new

It took 4m5.643s to copy this on my laptop hard disk (only 1.5GB). I loaded it into VMWare, via their Open a virtual machine option, renamed it in the inventory, powered my new virtual machine on and was asked if I’d like to create a new UUID for it. I’d advise you to create one, and once that was done, my virtual machine is ready to go.


Create a new UUID, and you’re set

Exactly what I like. Not re-installing CentOS everytime. Just create a “golden” image and start cloning from there. Maybe with some slack/puppet integration in the future, if I end up using a lot of VMs.

Technorati Tags: , , , , , , , , ,

foss.in, and why that’s a conference worth submitting to

Monday, October 8th, 2007

it was only after reading the amazing spunk that atul chitnis possesses, that i decided to get cracking, and submit to the foss.in cfp. i like how there’s no reason for special treatment, and a select quote would definitely be how foss.in doesn’t understand the concept of “status”.

a lot of modern conferences these days seem to recognise status (that’s probably also because, largely, the audience seem to recognise status). community events have largely lost their appeal, and slowly but surely turn into silly corporate (read: sponsor) driven events. at some point, you’ll ask yourself, whom you have to fuck to get a paper admitted at some of these events.

so, there are 60 talks available in the main conference. the rest are all “project days” based - much like a linux.conf.au miniconf, however largely controlled by the main conference. even the cfp process is the same. i think this will work amazingly well.

at linux.conf.au, while miniconfs work well, you’re not getting into the main conference. for a lot of folk, especially those attending the conference with some form of corporate backing, will find it harder to justify their presence, or go on their own pocket.

anyways, back on topic. i submitted a talk about what i’m currently working on, and how we’ve improved our architecture of participation. we’re slowly getting rid of the cathedral-styled development model, and imagine if we can mine india for more contributions! i’ve only heard great things about foss.in from jayakumar, and it seems like aizat and ditesh are also going, so here’s hoping my paper gets accepted, and in under 90-minutes, i inspire many more contributions.

also, if you haven’t submitted yet, note that there has been a cfp restart. and the closing date is now, saturday, october 20. read the page if you’re submitting, because foss.in isn’t a foss user conference, its about foss contributions.

Technorati Tags: , , ,

FOLLOWUP: Linux IS NOT ready for the laptop

Friday, September 21st, 2007

Just to ensure, because it seems some people don’t understand English, but I never said people would sue Dell or IBM for non-functional software (arguably, the crap that comes from Microsoft, isn’t functional). But you can sue your hardware provider for non-functional hardware. Big difference there - software usually comes with indemnification and some explicitly come with no warranty.

Indemnification is such that if Microsoft Office eats up your data, the best you can ask for a “warranty” claim might be USD$5 or something absurd like that.

However, buying a piece of hardware, and then finding out say, it can’t drive the external display, or the SD card reader that comes with your laptop doesn’t work - that my friends, are hardware faults. Arguably, caused by software that lacks support for it, but still, not your problem.

The ACCC has a good guide on refunds, and on warranties and claims, and so on. Its not like I’m unhappy - I’m just saying someone might be, and then the real blow will come. Remember, refunds come via faulty, unfit for purpose, defective equipment. IANAL.

BTW, Dell responds, so kudos to Marco. They offer remastered ISOs which fix known issues, and assure me Gutsy Gibbon fixes all these issues.

Technorati Tags: , , , , , , ,

Linux IS NOT ready for the laptop

Wednesday, September 19th, 2007

When is Linux ready for the desktop? Or more likely, the laptop? Walt Mossberg recently has echoed that while Linux is easier to use, its still not for everyone (permanently archived at his blog, Linux’s Free System Is Now Easier to Use, But Not for Everyone).

I have to applaud Dell for having the balls to sell Ubuntu on their laptops. In fact, now, Lenovo/IBM are thinking that they might do this as well, and the polls seem to suggest that Ubuntu is the favourite.

However, I should caution all these companies from even going near Linux with a ten-foot pole. Quite simply, this is because Linux doesn’t work. If their product doesn’t work as advertised, what are the chances of a customer possibly suing them, for a product that isn’t fit for purpose?

Before buying a laptop, I was told that if I went with an Intel video card, I would be safe, and everything would just work. I was lied to.

  • Suspend and resume work sometimes, but its so unreliable, that saying random prayers are handy, but don’t always work.
  • Turning off the wireless on a plane and turning it back on, will somehow ensure that I need to reboot my machine to get it working again.
  • Attempting to drive the external display, could lead my machine to stop functioning, requiring a hard reset.

There are so many known bugs that Dell had to create a special Wiki page to list the known issues with the systems they sell. And if there are bug reports attached, these don’t look like they’re getting fixed anytime soon. Keeping in mind these are Intel video cards, and Intel tells you that they’ve got such a big commitment to open source. Last I checked, my Linux/PowerPC laptop with an ATI card (last generation PowerBook G4’s) did suspend/resume, external display driving and working wireless much better than I currently get on my newer Dell.

00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03)

Frankly, most of the time, my laptop sits at my desk. But there are times in a year I travel, a lot, changing wireless networks, turning it off and on from time to time, having to make presentations, putting it thru many suspends and resumes, and so on. That is, using it like how a laptop is meant to be used.

I’m so unhappy to say that after over a decade of using Linux on my desktop, I still find Linux inadequate for basic laptop functionality.

Don’t get me wrong. I like Ubuntu. I like their release policy, the fact that I have a working machine most of the time, and during the past release cycle I might have only seen two new kernels. I like that I can run some restricted/commercial software with no issue - VMWare, Java, Flash, etc. Sure I’ve had to have random hacks to get some things working, but for the most part Ubuntu has struck a chord for a good balance between freedoms and usability (when I want to futz around, Fedora is still the best for that). I just wish they would go the extra mile to ensure that basic laptop functionality works better.

Do I give up some of my freedoms and move to using OS X, like most people seem to do now? With pervasive Internet connectivity available, and IPv6 address spaces to rid me of NAT, maybe I should harness screen + ssh and get work done remotely, via a Mac.

Technorati Tags: , , , , , , , ,

Best way to learn Mandarin in GNU/Linux or OS X?

Tuesday, September 18th, 2007

What’s a good, quick way, to learn a new language with the help of Linux?

In particular, I’m interested in learning conversational Mandarin. Basic reading, is a bonus, but hey, I’m not that fussed. I’d like to not pay for my software, if possible, and since I tote a Linux laptop most of the time (this might change to an OS X based one that actually works - rant on this soon), if it runs on Linux, all the better. The Popagandhi tells me I need to go to a good class - do these exist in Melbourne/

Some useful links I’ve found, so far:

  • QQ for Linux - QQ is the Chinese version of ICQ, that pretty much everyone there uses. Though MSN seems to be a lot popular these days (compared to what, 2.5-3 odd years ago)
  • ChinesePod - podcasts to help? Well, maybe here’s a reason to use an iPod again…
  • I saw this thread on the Ubuntu Forums, but it doesn’t really address anything of requirement

Technorati Tags: , , , , ,

ExpressCard for data + Virgin postpaid for the cheapest mobile data option?

Saturday, June 9th, 2007

Reading Dave Hall’s experience with 3, I can attest to their horrendous service. I never looked at Virgin offering cheap rates, but from their website, it seems that on a post-paid account, I can get 300MB of data for $10/month. I’m currently paying 3 $29 for 200MB of data (and yes, they’re cheaper than what Optus can offer).

Which certainly has me interested in becoming a Virgin post-paid customer. From their website, it seems that if I just want a SIM, I’ll be a pay as you go customer. Which works out well for me, as all I really want is data + any excess (at 1.5c/KB).

However, what Express Card can I buy outright or via eBay, that will work with Linux (and preferably, OS X)? The Novatel Merlin U530 that Dave has is a PCMCIA card, not something that most newer laptops have. What are my ExpressCard options? And does Virgin charge for roaming rates? 3 charges you extra if you’re not within their 3 Broadband Zone and are Roaming [via Telstra]. 3’s advertised MobileBroadband card now apparently offers an Express Card option.

Technorati Tags: , , , ,