Tuesday, 16 June 2009

Xorg mates with HAL and it all ends in tears

Oh dear.

One minute I have this thing running like a dream, the next it all ends in tears. Like Bart Simpson I feel it is time to write out, 100 times, on the blackboard ...
"I must not run the update program"
"I must not run the update program"
"I must not run the update program"
"I must not run the update program"
Because I did. And suddenly everything goes black. Xorg refuses to work, there is no XorgConfig and the hwd program that comes with Arch refuses to recognise the kernel. It's going to be a long, long, linux-free session in front of me.

Back to Arch-ery

OK so jaunty "worked", although it isnt possible to read the screen properly and the mouse doesn't appear on the external video display. But it is possible to fire the machine up and keep that hard drive up to date, even if I can't actually use it for the purpose I bought the web-book for in the first place.

So, back to Arch Linux then ? Well, yes. Out goes the ubuntu HDD, in goes the alternative drive with the old Arch image, wifi-radar gets me connected via the ipw2200 and pacman weaves its magic. I decide to dump the bloated gnome / gdm GUI, first in favour of the ultra minimalist icewm which I confess to being enthralled by once I'd seen it run the webbook at 1024x600 in the slitaz aircrack distribution, and then, when the limitations of icwem become obvious, I drop that in favour of Arch linux's particular flavour of XFCE combined with SLiM as my XDM. A quick word about that, make sure every user has a .xinitrc file in their home directory as SLiM does not go looking in /etc/X11... and will output a seemingly unhelpful error message if you try logging in to a user account that does not posess one.

So with all that done, on goes NetworkManager 0.7.1 and with a lot of tweaking and abandonment of the APN that clearly works in Windoze I'm up and running on the net with Arch and the Orange stick. Yippee.

Let's Get Jaunty.

Nothing for it then.

Despite Alan's dire warnings not to move on, it seemed to me the intrepid series was not going to be fixed to work with the option icon card any time soon, so maybe I might have better luck with the jaunty variant ?

Off I went to ubuntu-download-land and in due course I came back with another ISO image, and off we went back through the process of digging out the old 5.25" CD and the £40 dongly thingy from Maplins that comes with a usb plug at one end and a whole raft of 2.5 IDE, 3.5IDE and SATA plugs at the other. A further bout of fiddling with boot params and presto I was off loading myself up a jaunty jackalope.

And then I hit the display issues Alan Bell blogged about. Which I have not (yet) sorted out under this distro. But I will. Because at least this Hard Drive image now connects to Orange again.

One Ubuntu Forward, All Fall Down

Oh dear.

Things in ArchWebBookLand are far from rosy. Network Connectivity through the Option Icon 225 stick has evaporated.

For some time now I have been enjoying a certain amount of success with the elonex web book working the way the manufacturers expected when they supplied it to me. It all started to "go right" the day I finally found someone in Elonex support who understood what a linux system was. Even better, they sold me a little white usb stick on a wrist-strap for next to nothing which they claimed to have a "factory install" on it. Out came the original hard drive, the one that self-destructed a few days after I took delivery of the machine, and on went the new image ....

That was when I found the PING system on this little white USB strap had a corrupt image so it only got 40% of the way through the overwrite process, and then died leaving me with a little white housebrick.

However a subsequent telephone call to Elonex to explain this got me a profound apology followed a week later by a second usb drive free of charge, and this one worked. It didn't have any of the very handy aircrack software that was on the original image though, and in fact it was intrepid ibex not the hardy heron that came originally, but it worked and there's a neat little distro called slitaz that I have found fits comfortably on a 256MB usb pendrive that does the air crack thing.

So, all is sweetness and light and I can close this blog down then, I'm back in the ubuntu fold with a fully working web book ?

Er ... not quite.

Three weeks after I got the webbook "sort of" the way Alan intended, I was sitting in the car in the Vale of Glamorgan, in a layby, dealing with my email - as you do - when I foolishly allowed the ubuntu system updater to update the webbook. And when it had done so, I rebooted. And then, every time I inserted the Option Icon 225 stick, the web-book would stay working for perhaps 30, maybe even 45 seconds after it established a network connection.

And then it would freeze solid. I waited for weeks for an update to come that sorted it out. It never did.

Monday, 22 September 2008

Watching Video Clips

Something that slightly annoys me is the inability to watch video clips, MP4s and the like, which seem to work on my desktops that run Arch. Maybe I have overlooked something. I will start by following the instructions on how to set up Arch Linux for dvd ripping. It can't hurt, and after all, it's only going to take up hard drive space, yes ?

Well, It may not have hurt, but it still doesn't work. Shades of Mr John Major .

OK then, I am getting an error message from the Totem Movie Player 2.22.2 using GStreamer 0.10.20 and GNOME telling me "The playback of this movie requires a H.264 MPEG-4 AAC decoder plugin which is not installed". The desktop that does play it has the totem-xine package so let's try a little more jiggery and pokery ...

A swift "sudo pacman -S totem-xine" removes the Gstreamer version, loads the Xine version, and ... and ...

And PRESTO it works (!)

Monday, 15 September 2008

Wader and Wader-gtk

OK then, this is it. Time to confront the elephant in the room.

Pivotal to what I want to do with the webbook is the mechanism by which the thing can establish a connection to the big bad world via a broadband usb dongle. In my case an orange Icon-225 broadband usb dongle but we live in hope of it working with others as well.

The ubuntu build came with a prebuilt wader and wader-gtk package from warp networks. I am going to have to build it from the ground up and it probably isn't going to be easy.

Edit September 22nd.

Well this is where it gets tough. The source code for the wader package seems to have been stored here on "launchpad" where I find a total of six "packages" listed in alphabetical order
  • dbus-python-0.82.-1ubuntu2~ppa1
  • hso-1.3.1
  • hsolink-1.0.46.0-2
  • pydoctor-0.2.0+svn56371-1
  • usbmodeswitch=0.9.4.1
  • wader-0.2.2-1
As this has all been built for debian / ubuntu I am guessing I will have to start over pretty much from the beginning. From a brief scrutiny of the packages my first assessment is as follows :-
  • The dbus-python and pydoctor packages are there to extend python to cater for operation of the wader utiluty.
  • hso is a kernel module permitting operation of the high speed g3 modem. This is going to be the fun part of the setup, I can tell (!)
  • hsolink is a utility that permits the IP setup of the G3 modem
  • usbmodeswitch is a utility that flicks the ZeroCD usb 3G stick from CD to modem.
  • And wader is the python utility that does the rest.

OpenOffice Progress

Again this all looks too easy. As per the Arch Wiki
  • sudo pacman -S jre openoffice-base