Archive for the ‘Distributions’ Category

CLOSED CURRENTRELEASE or how Apple deals with bugs

Friday, October 26th, 2007

In the open source world, its quite common to see bug statuses as CLOSED, RAWHIDE (on Fedora, to tell you its in the current development version). Sometimes, you also see CLOSED, CURRENTRELEASE (which usually implies that they’ve bumped the minor version number up, and have pushed the update to you, via yum/up2date). Sometimes, CURRENTRELEASE is used to define ERRATA (though with a fast moving project like Fedora, you tend not to really have errata releases - this is more RHEL-space).

Bottom-line: I get my bug fixes, for free.

Over a year ago, I reported a bug to Apple about an iChat error I was getting, that gave me a Feedbag Error 10. I’ve definitely got numerous other radar entries, but no point linking to them, since there’s no public bug tracker. Today, Apple basically closed the bug as CURRENTRELEASE (or really, what they meant to do was close it as NEXTRELEASE). And as a consequence, they’ve decided that charging me AUD$158 would be the most appropriate course of action. They’ve told me to upgrade to Leopard!

I won’t paste the message here, because that’s apparently under NDA (how can you really NDA a bug report? I’ve seen radar numbers being posted on the Web before… and its not like my bug report, which is my own, isn’t public - maybe if there were actually responses from Apple engineers, then it’d become private). But to paraphrase, Apple Engineering thinks my bug has been fixed in the commercially available Leopard, and upon installing the new software, my bug will most likely be fixed.

Bottom-line: I have to become $158 poorer. Or renew my ADC membership, and wait patiently for the mail (really, why do they even bother sending updates on CD/DVD monthly, when pretty much every Mac developer is connected to the Internet? Waste of resources Apple, how non-green of you, worse, thinking that Al Gore won a Nobel Prize for all his work. The only good thing about renewing an ADC membership is possibly the free t-shirt, the occasional pushes of OS X on DVD, and the hardware discount, if utilised).

Technorati Tags: , , , , , , ,

Dual-display with the Intel 945GM on Gutsy Gibbon?

Sunday, October 21st, 2007

Resisting an upgrade, is hard, so I finished some work on Friday, and proposed to upgrade away to Gutsy Gibbon. I’ll talk about what I like and don’t later, but I still face a problem. I can’t seem to get X/xrandr working as well as I’d like it to. I also can’t get all the desktop effect bling going, but that is not as significant a problem as working VGA out.

lspci says, I have a Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03). I drive my laptop at 1440×900, and externally, I’ve got a 17″ LCD panel that can go 1280×1024 (FWIW, I tested against an external 19″ wide panel capable of 1440×900, but it made no difference). However, xrandr thinks I can only, at most, display 1440×1440, and I think that’s why I’m not being able to get a nice “stretch screen” (i.e. two desktops, not mirrored displays) experience going.

xrandr -q
Screen 0: minimum 320 x 200, current 1440 x 900, maximum 1440 x 1440
VGA connected (normal left inverted right)
1280x1024 59.9
640x480 60.0
LVDS connected 1440x900+0+0 (normal left inverted right) 303mm x 190mm
1440x900 60.0*+
1280x800 60.0
1280x768 60.0
1024x768 60.0
800x600 60.3
640x480 59.9
TV disconnected (normal left inverted right)

So, mirroring works. My desktop looks a little shitty, but at 1280×1024, all is well and dandy. I have a feeling that when I plug it into an LCD projector, I might get away with things working, for a change. That alone, is impressive. So, how do I magically get a dual-display, stretched desktop experience? My xorg.conf file for reference, is tacked to the end of this.

My heart goes out to whomever decided to write displayconfig-gtk. This is a step in the right direction. End-users will want a GUI to choose external displays and stuff. I love the idea of location profiles (so, at home, maybe I’m tacked to an external 1280×1024 monitor, at another location maybe another, a roaming locating that just creates a 800×600 display, etc.). Of course, it would help if this utility actually worked. It doesn’t, and is currently broken, from my experience with it. Why is it included, under the guise like it might work?

Kudos to Intel, and their page on How to setup Dual Head for Intel Graphics with RandR 1.2. Everyone says, stick to Intel and you won’t go wrong with Linux. Why then, does such a page need to exist? Why is my out-of-the-box experience, still so bad?

If it helps, here’s the xorg.conf configuration file (I didn’t muck with it, its dpkg configured). Help appreciated, and remind me to buy you a beer when/if I see you next.

Section "Files"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizEdgeScroll" "0"
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "stylus"
Option "Device" "/dev/input/wacom"
Option "Type" "stylus"
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "eraser"
Option "Device" "/dev/input/wacom"
Option "Type" "eraser"
EndSection

Section "InputDevice"
Driver "wacom"
Identifier "cursor"
Option "Device" "/dev/input/wacom"
Option "Type" "cursor"
EndSection

Section "Device"
Identifier "Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller"
Driver "intel"
BusID "PCI:0:2:0"
VideoRam 65536
EndSection

Section "Monitor"
Identifier "Generic Monitor"
Option "DPMS"
HorizSync 28-72
VertRefresh 43-60
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Modes "1440x900"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"

InputDevice "Synaptics Touchpad"
EndSection

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: , , , , , , , , ,

rpm -q –changelog in Debian | on IRC (or adventures in the land of #ubuntu)

Wednesday, October 10th, 2007

Today, I had a problem. I’d been used to doing rpm -q –changelog <packagename> and generally piping that through less. I sat at a Ubuntu terminal, and wondered how to do this. Poring through the man pages for apt-get or even dpkg, proved worthless. So, I hopped on to #ubuntu on Freenode, to have a rather enlightening conversation:

Oct 11 10:11:37 <ccharles>      hi! does anyone here know the dpkg/apt equivalent to rpm -q –changelog ?
Oct 11 10:12:10 <Pelo>  ccharles, man apt and man dpkg see what it says
Oct 11 10:12:46 <ccharles>      Pelo: you’d think i had already tried that, and failed, which is why i came here

At which point, I’m wondering what the clue-level of the channel is. So I hop onto #luv, the channel for my local LUG, and ask there. Not long after, I post this back on #ubuntu:

Oct 11 10:34:19 <ccharles>      pelo: the correct answer next time, is apt-listchanges, or even zless /usr/share/doc/<packagename>/changelog.Debian.gz or if you have internet access, aptitude changelog <packagename> (with thanks to cafuego for telling me)

I remember in my active Fedora days, we used to refer to #fedora as a bit of a wasteland, largely populated by meat-heads. However, it was also the primary contact point for non-meat-heads, for a non-development question. And a lot of folk on #fedora-devel never ever joined #fedora. This is probably largely the same with #ubuntu/#ubuntu-devel. This creates a disconnect within the community.

rpm -q –changelog equivalents on Debian

  • apt-listchanges is written by an Ubuntite (is that what they’re called?), and requires installing. It also requires access to the package .deb, which seemed counter-intuitive.
  • aptitude changelog <packagename> - useful, but seems redundant. It connects to the Internet to fetch this data for you, chewing up your bandwidth, and requiring you to have Internet access
  • zless /usr/share/doc/<packagename>/changelog.Debian.gz - the winner, quite clearly. No Internet access required, it pulls directly off your disk, and its all in less

However, RPM still seems to shine quite this bit more, in comparison. Maybe someone wants to update the Switching to Ubuntu From Red Hat Enterprise Linux or Fedora guide.

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: , , , , , , , ,

Colin Pichot

Sunday, August 12th, 2007

Not having played a game since Prince of Persia (and we’re talking the original game, with block-like graphics, on some ancient hardware, back in 1990), I decided to try out Second Life today. Surprisingly, the getdeb folk have this for Ubuntu, even in its 64-bit variety. Installation was simple:

  • sudo dpkg -i secondlife-install_1.18.1.2-1~getdeb1_amd64.deb
  • Realise that I’m missing a dependency, so install lib32asound2
  • Attempt to start secondlife

And fail, of course. I got a Window Creation Error. Not content with this, I started it up from a terminal, and looked at the error messages pass by. Finally found the rather telling line: WARNING: createContext: window creation failure. SDL: Couldn’t find matching GLX visual. It seems that its all got to do with the bit-depth of colour, so a quick replace of the DefaultDepth in xorg.conf was in lieu (it originally was DefaultDepth 16 but its now DefaultDepth 24).

Restart X, and I launched Second Life with success! Now signing up was a bit of a chore as I had to find a new name and so on. A lot of ideal names are taken up, so I settled with Colin Pichot. One of the things I quickly changed was how much bandwidth SL was allowed to use - quick reduction to 50kbps from its usual default (of like 700kbps+). I joined the Linux Australia group, I’ve not developed anything in SL, and I haven’t given them my credit card details (yet). It seems to create a group, you need to fork out $100 Linden Dollars.

I’ll play with this after midnight I guess, when we’ve got more “off-peak” quota to utilise, but initial impressions are its a pretty impressive environment in 800×600. I’ve not met anyone, I’ve added a friend (I think), can’t for the life of me figure out how to put a photo in my profile, and here’s hoping that eventually, I understand what all the fuss about SL is.

Technorati Tags: , , , , , , ,

Ruby Gems, Mono System.Windows.Forms on Ubuntu

Friday, August 10th, 2007

I’ve recently started doing more development locally on my Ubuntu (Feisty Fawn) laptop (as opposed to being logged in via ssh to various machines, generally running Fedora), and have noticed some quick snags.

Ruby Gems
They’re currently installed in /var/lib/gems/1.8 which is not in your PATH. So if for example, you use cheat, you’re not going to find it. Fix it via adding /var/lib/gems/1.8/bin to your PATH (my .bashrc has it looking such as: PATH=$PATH:$HOME/bin:/var/lib/gems/1.8/bin)

Mono, and System.Windows.Forms
I have no problems with Mono and .NET related applications, normally. I run Tomboy (which I like, a lot), I can fire up f-spot, and when I need to Beagle runs fine too. But of late, I’ve had to run an application that required System.Windows.Forms, aka WinForms. Little did I know I’d need to install the winforms stuff, so a sudo apt-get install libmono-winforms* fixed this for me.

This still hasn’t made my required application run properly, but I’m now a step closer to finding out compatibility with Windows-based .NET applications and Mono. All thanks to the useful Mono Migration Analyzer (MoMA). Hat tip to Ditesh for pointing me to MoMA.

Technorati Tags: , , , , , ,