Sunday, 10 August 2008

Synching a Dell Axim X30 with Ubuntu

I have an old (?) Dell Axim X30 PDA that I use mainly as an address book and MP3 player (I added a memory card so I can listen to podcasts while walking the dog). Now that Ubuntu is my primary desktop OS, I wanted to be synching contacts and sound files with Ubuntu.

The SynCE project has done this. The documentation is pretty good, but as usual I managed to make it hard for myself. Here's what I did:
  1. Make sure the X30 is not plugged in to the computer
  2. sudo apt-get install synce-hal librra0-tools librapi2-tools
  3. Plug in the device
  4. synce-pls
The last line should show what's in the top-level directory of the X30.

Note that I was already running kernel 2.6.24-19, so I didn't have to rebuild the modules as described in the documentation. If your Ubuntu 8.04 is up-to-date, you'll be running at least this kernel.

My problem: All the installation instructions warn you to blacklist the ipaq module if you have connection problems. So I went ahead and blacklisted it before I even started. Then I fumbled around for a few hours trying to connect unsuccessfully and searching for information.

The X30 only supports Windows Mobile 2003 Second Edition. I don't know all the technical details, but I know it means it used a somewhat different protocol for connecting. In my search for answers, I found enough examples of people successfully connecting to X30s that I kept going. I also found enough references to the "old protocol" or "serial protocol" that I finally realized I should try allowing the ipaq module. I removed the blacklist and, presto, it worked.

Tuesday, 5 August 2008

Linux -- Ready for My Mom, But Not for Geeks

I think Ubuntu 8.04 is ready for anyone who wants a good desktop computer with a decent set of office productivity tools. The installation and update experience with Ubuntu is as good or better than Windows and Open Office does what the vast majority of ordinary users need it to do. My mother is using Ubuntu for e-mail and web surfing and having no problems (beyond what she'd have with Windows seeing as how she's never used a computer before).

Where I'm getting blocked is when I want to do the power-user type things: e.g. sync to a PDA that only has Windows Mobile 2003 on it or use cutting edge devices like a Lenovo x300. That's when I find I have to go to Linux Geek Land. At least I'm only recompiling modules, and not the whole kernel :-)

So in that sense, Linux is ready for the average person's desktop, it's just not ready for us geeks yet.

Friday, 18 July 2008

Why IT's So Hard

Why is providing reliable IT infrastructure so hard? Here's a good example.

There was a fire in downtown Vancouver this week that knocked out power to a good part of downtown for up to three days. Angela noted that the Internet was slow the day of the fire. I know there's a major network hub in the area of the fire at Harbour Centre, and I suspected that something had gone wrong there, despite all the precautions that would have been taken. Now I have proof.

The fire knocked out power to the network hub, and the generator kicked in as planned, but the Vancouver Fire and Rescue Services were sucking so much water to fight the fire that the generator had to shut down because it wasn't getting enough cooling water. Not only was that hard to predict, it would have been really hard to test -- I suppose the Fire Department would have loved an excuse to play with their hoses, but I'm not sure the City would have wanted them to run a test that tried to use up all the water in downtown Vancouver.

Saturday, 5 July 2008

Keyboard Layouts in Ubuntu

I type enough in Spanish that I like to be able to switch keyboard layouts between English and Spanish, rather than type Alt-whatever to get the Spanish characters (e.g. ñ, ¡, ¿).

In Ubuntu 8.04 (Hardy), go to System--> Administration--> Language Support and install Spanish. This requires a reboot. Truth be told, I'm not sure you have to do this step just to get the keyboard layout, but if you type enough in a language that you want the keyboard layout, you probably want the rest of the language support as well.

To install control over the keyboard layout:
  1. Right-click on the top panel (aka menu bar, aka tool bar) and select "Add to Panel..."
  2. Select "Keyboard Indicator". You'll see the indicator appear in the panel. In my case, it said "USA"
  3. Right click on the indicator and select "Keyboard Preferences"
  4. Select the "Layouts" tab
  5. Click the "Add..." button
  6. Select the keyboard layout you want. For those looking for Spanish, note that there's a layout for Spain and a layout called "Latin American". The keyboard I bought in Guatemala is actually the "Spanish" layout. You'll have to figure out what works for you
  7. Click OK until you're back to what you wanted to be doing
Of course, that doesn't change the physical keycaps. When you're using the Latin American layout with a USA keyboard, it's sometimes hard to find some of the special characters. They're not in the same place on the two keyboards. Fortunately, we have yet another nice advantage of Ubuntu over Windows. You can right-click on the keyboard indicator and select "Show Current Layout" and it gives you a picture of your keyboard. You can even print the layout.

Sunday, 15 June 2008

Sound with Ubuntu on Lenovo x300

One of the known issues with Ubuntu on a Lenovo x300 is the sound (up to and including Ubuntu 8.04). There are a few links out there that point to solutions. The one that worked for me is this one in Mikko's Blog. One very important note: Check which version of the kernel you're running before you start.
uname --release
Then substitute your kernel version in the rm command. I also got a bit confused by the statement under the "Sound" heading that said to remove the old sound modules. I eventually figured out that he must have been referring to the rm command in his script, rather than actually removing the running modules.

FYI: My rather short list of Ubuntu and Lenovo x300 links is here.


Friday, 13 June 2008

The Truth

From the Linux Loadable Kernel Modules HOW-TO: "This is Unix, and explanatory error messages are seen as a sign of weakness."

Tuesday, 3 June 2008

Lenovo x300 and Ubuntu

I'm writing this from my new Lenovo x300 on which I installed Ubuntu 8.04. It was way too easy -- just pop in the CD, answer a few questions, and wait. I'll give more reviews in the days to come.