Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Fedora 12 ongoing saga

My HTPC was recently "upgraded" to Fedora 12. The Fedora 10 and 11 installs on that box were almost completely broken and so I opted for a clean install. What I forgot was that Fedora's text mode install leaves you with a system that has
  1. No network connection
  2. No Wi-Fi
  3. In fact, NetworkManager is not installed or is not working
  4. No GUI
  5. No easy way to install software from the CD-ROM media
Sigh.

I wanted to be able to connect this system to my network so that I could install the missing software, but this meant moving the computer to the other room, where the hub is.  This meant that I can't see what I'm typing, because this computer's monitor is my TV, which is a CRT weighing a million trillion pounds*.  So I plug the computer into the hub and turn it on.  But the network isn't starting, for some reason, or it's not connecting properly.  This means I have to log into the computer and try to type random commands blindly until the network card finally connects.

Once the computer is on the network I have to try to figure out WHERE on the network it is so that I can log into it from my notebook.  I wrote a little script to ping various addresses until I found it.  Once I had it I was able to log into the computer using SSH and then (gasp!) actually see what I was typing.  From that point on it was relatively easy to use yum to install whatever software I need, and the copious updates that Fedora had waiting for me.

Once the software was installed it was easy to get livna hooked up and the binary nVidia driver installed, which lets me use the TV as a monitor.  Now if only I could remember the incantation which tells it that my TV is not HD..... stay tuned.

--
*I'd secretly hoped that something bad would have "accidentally" happened to the TV when we moved, thus giving me an excuse to get a modern TV, but sadly, it arrived without incident.

Fedora 12

I am a glutton for punishment. This is the only conclusion I can come to because I keep trying to install newer versions of Fedora on my various computers.  Recently I tried Fedora 12 on my LG R500, which was relatively happily running Fedora 10.

I ran into a problem right off the bat: the installer wouldn't boot.  The kernel just got stuck partway along and froze. It turns out there is a bug with the TPM driver on certain hardware, which causes a timeout error:

tpm_tis 00:0a: tpm_transmit: tpm_send: error -62
tpm_tis 00:0a: tpm_transmit: tpm_send: error -62
tpm_tis 00:0a: tpm_transmit: tpm_send: error -62

This error can be worked around by disabling timeouts in the tpm module.  Unfortunately, even though this issue was known before Fedora 12 was released, it wasn't fixed, nor was it even mentioned in the release notes.  Sigh.


The touchpad also wasn't working properly.  After install, you can't tap it to click on things.  The simulated 3rd button when you click in the top right corner is broken. I googled and found that the touchpad needs to be configured in the Gnome control panel, however I'm running KDE and it didn't seem to have a touchpad applet.  Turns out it wasn't installed; yum install kcm_synaptics fixed that and I was able to enable the functionality that should be on by default.

Fedora 10 introduced a new graphical boot for systems which have appropriate video drivers; in Fedora 12 nVidia hardware is included using the nouveau driver.  The nouveau driver, however, is unfinished and it corrupts the display often (but the graphical boot is nice).  In the end I had to install the binary nvidia driver because flash video was freezing the machine. 

Speaking of boot, on boot Fedora starts the GDM Gnome login manager.  Annoyingly, KDE's switch user feature is still broken unless started from KDM; you try to switch users and instead the screen locks and that's all that happens.  No error, no warning, just a broken feature.  Switching to KDM requires editing a config file.

Installing software through kpackagekit is needlessly difficult.  Finding the right package to enable mp3 playback in amarok is an exercise in futility.  Amarok itself provides no indication of what is wrong; it just tries to play a song and fails, skipping the song and going to the next, with no error message or anything.  If all your music is mp3s amarok will just keep chewing through the playlist, happily not playing anything.

Also, for the first time in about 4 years, my printer doesn't work out of the box.  Drivers for every possible bizarre input type or video card or sound card or network card or HPC IO controller or satellite launcher are installed, but my printer's drivers were not.

Finally, because I wasn't feeling punished enough, I also tried upgrading my HTPC to Fedora 12 from Fedora 11.  I have no idea how badly things are broken because, to be honest, the Fedora 11 installation was pretty fuzzed to begin with.  But at least the upgrade installed and nothing seriously broke.

On the HTPC the KDE installation is missing some pieces because I can't log in using KDE as my desktop; instead I get no error message but am booted back to the login screen.  Some KDE apps don't work properly.  Also annoying is the fact that I can adjust my fonts to make things readable on the TV but only one of GNOME or KDE sees those settings, the other doesn't, but my menu contains either KDE apps or GNOME apps but not both.  An average user would be pretty annoyed that they want large fonts, and 90% of their desktop uses the right fonts, but there is a hidden, mysterious control panel that asks you the same exact questions you already answered in some other program, but you have to answer again or else 10% of your apps will look wrong.  Now, this is a Gnome vs KDE issue, but the fact remains that Fedora 11, installed fresh, and then 12 installed as an upgrade overtop, left me with a hybrid Gnome/KDE system, where the only graphical software installer uses tiny fonts because it's a KDE app and I'm stuck in Gnome.

If I get the HTPC working properly again using MythTV I am going to never upgrade it again.

Fedora 11 Installation

I recently installed Fedora 10 on my media PC. That was the hardest Linux installation I've ever done... until now. Just when I thought Fedora's installer couldn't get worse, it did.

The problems begin when Fedora's installer doesn't know how to start graphical mode on my media PC. You'd think that by now a computer connected to a TV would be one of the things that just works, but sadly, it doesn't. Even the basic VESA driver doesn't work for me. My TV output works fine with the nVidia binary driver, but I don't think there's a way to install the nVidia binary driver during installation, and thus I have to use the text-mode driver.

Well, Fedora is well on its way to having the industry's most useless text-mode installer. The Fedora 10 installer stupidly broke my system when it upgraded Fedora 8, and so I wasn't going to take chances and upgrade again; I wanted to do a fresh install. The installer provided me three options:
  • Install using the whole disk
  • Upgrade Fedora 10
  • Install in the "Free Space"
Well, using the whole disk is out, and using the Free Space is out because I have no free space, and upgrading is out because I want to keep 10 working until I am sure 11 is ready for me to use. Where is the option to repartition?

It was at this point that I should have turned back, but I decided to tough it out. I switched to the second virtual terminal and manually deleted my unused Fedora 7 partition using fdisk. "That should do it," I thought. WRONG. 28GB wasn't enough space to install, according to the installer. So I grudgingly deleted my Windows XP partition, which was unused on that computer. This freed up an additional 120GB and then the installer was happy to continue.

The installer asked me one more question: "What is your root password"? After typing that in, it said "Making filesystem... done. Installing software... done. You may reboot."

Wait, what?

Where did my network setup go? Where did package selection go?

Ok, well... maybe the installer is two-stage and a second installer will start after I reboot?

Nope. Turns out that's all there is: The installer installed the base packages and nothing else. Well, I guess I can set up my wireless network card now... nope, wireless networking packages were not installed. Ok, let me start the X gui: nope, X isn't installed. Hm, let me install software: nope, the yum command-line tool doesn't know how to install from the DVD.

What is going on here?

Fedora's installer
  • didn't know how to install on my hard disk because I didn't want to use the whole disk and there were no empty partitions
  • needed more than 28GB to install nothing
  • left me with a system that had no network and no way to install software from the DVD.
And even though the installer knows I have a Fedora 10 installation that I didn't overwrite, that I took great pains to protect, it didn't set up a grub entry for it, so the system only boots into Fedora 11 and doesn't offer any other choices.
Maybe the graphical installer would work, but the only monitor I have for this computer is a TV (my other computer is a notebook). Maybe I could use the VNC install, but the wired network is in a different room from the TV, so I can't see what I need to type to set up the vnc install. And the worst part: The text-mode installer doesn't explain, at any point, what it is doing or what other options you have. A single help screen, saying what the text-mode installer was capable of, and notifying me of the fact that I am out of luck using this installer, would have saved hours of aggravation.

So far I've managed to get things working bit by bit by moving the computer to the room with the wired network, typing blind to log in and active the network card (why isn't it on-boot? sigh), and then ssh'ing from my notebook into the computer. At that point I can at least install packages from the network and see what I am doing. But it should not be this difficult! I've been using Linux for 12 years and it seems things have started getting harder, not easier.

Fedora 10 update

I recently posted about my installation of Fedora 10 and my thoughts about the distribution. Recently a couple of things happened that gave me new experiences to discuss.

First, I bought a PCI-Express WiFi card for my server. I used WiFi because it's not convenient for me to use wired networking anymore and the server has been down since we moved, awaiting its wireless capabilities. I carefully selected a D-Link card that is Linux compatible, and installed it. Guess what? Fedora 8 didn't recognize the card. This meant I needed a new kernel, because the kernel developers make it impossible to install new drivers without replacing the whole kernel. And when you run something like Fedora a new kernel means a new Fedora.

I'd previously told my friend not to install Fedora 10 because of the problems I'd had. Well, I disregarded my own advice and proceeded to install 10 on my server (mainly because I wanted to do an upgrade to make sure stuff still worked). Let me state this loud and clear: DO NOT ATTEMPT TO UPGRADE FEDORA TO FEDORA 10. This was the worst installation procedure I've ever dealt with in my 12 years of running Linux. I expected stuff to install and work but instead I got nothing but trouble.

First, the installer doesn't tell you how to activate text mode. And the graphical mode doesn't work on my server, which is hooked up to a TV instead of a monitor. This is because the free nVidia driver is crap and I am stuck with the proprietary driver (the lesser of two evils). Since I couldn't get the installer to work I decided to try using the package updater, yum, to do the upgrade. This failed miserably: yum complained that the new packages conflicted with the old. I tried removing the old packages but yum, in its infinite wisdom, decided that since I wanted to get rid of package X, it would get rid of Y, and since I was getting rid of Y, it would get rid of ABCDEFGHIJKLMNOPQRSTUVWZ. I didn't look at the list closely enough and in the end yum got rid of itself. Yup, yum uninstalled itself, and that left me with no package management tool at all.

This meant I had to get the installer working or else there'd be no way to repair my system. It turns out that the fedora text mode is easily activated by editing the command line for the kernel and adding the word 'text'. Simple, right? Of course, they couldn't include a menu option nor could they document this like they used to on previous versions. Sigh. Well, at least I was onto something and I could get the installer working.

The installer, however, didn't do a very good job upgrading my system. After it was done running I was left with a pile of old Fedora 8 packages (and one Fedora 9 package? weird). I had expected these to be upgraded, but they weren't. Well, no problem... except that these packages conflicted with the 1.3 GB of updates I was trying to download. (I got the network card working, btw... that's another story but mainly nothing went wrong.). So I had to remove all the fc8 packages and some other things and then the update finally worked. Oh, and then I had to go and manually fix the SELinux contexts because for some reason some things weren't right. Sure, Fedora 10 has improvements in SELinux contexts, but I guess they don't test the upgrade path well, because it'd seem to me that a filesystem wtih default labels should be relabelled accordingly so that you can, for example, use SSH properly. Just saying.

Anyway, one of the other problems I had was that, for some reason, my kernel wasn't updated properly. The updated kernel was only partly installed. I tried uninstalling it and re-updating, but then when I rebooted my screen just said 'GRUB'. Grub is the "Grand Unified Boot Loader", which means it's the program that starts the computer. Unfortunately Grub was never meant to be installed by humans, and it seems even the computer gets it wrong; I had to try a bunch of things to get the darned thing working and it took several tries. Luckily I am a programmer and an experienced Linux user, and also luckily the Fedora 10 installer is also a rescue CD. Otherwise my server would have been dead. Finally I got things "working", though because I had to remove so much stuff before my server is really only half working. So much for a simple upgrade.

Anyway, my conclusion is that Fedora 10's installer needs a lot of work. I've never had so much difficulty getting an OS installed. But once Fedora 10 is installed, isn't it worth the pain?

Well, I've been very annoyed with it. This is mainly KDE 4.1's fault, becasue 4.1 had lots of problems (including being so slow I could barely stand to use it). Who is to blame for KDE 4.1 being on my computer? The KDE team, for misleading people about how good 4.1 would be, or the Fedora team, for shipping "beta" software and not shipping the good ol' 3.5? Well, that's neither here nor there anymore: I just installed the update that brings KDE 4.2 to Fedora 10. And WOW! what a difference.

First off, my desktop icons are back. Some people don't like desktop icons, but when I've been using files on my desktop for 19 years, I get a little cranky when you take them away. The KDE devs listened and brought this feature back to KDE in a non-sucky way. Also, I was able to find the option for disabling one-click activation. It's not where you'd expect; instead of being in the file manager settings, where it should be, it's in the mouse settings. So maybe this option was in 4.1? but anyway it's here and my #3 annoyance with KDE 4.1 is gone. So now my computer is fast again, my icons are back, and my clicks do what I want. If only there weren't any new bugs... but I've already found my notebook doesn't suspend properly when I close the lid. Sigh. At least that's minor and can be easily worked around.

So, to the KDE team, I say good work on 4.2; it's about time. To the Fedora team, what's with the installer? Yeesh. Messed up upgrades, broken kernel updates, screwed up SELinux contexts.... normal people would not be able to get this working. Hope Fedora 11 is better....

Fedora 10

I recently installed Fedora 10. I had to because Fedora 8 stopped working for me: the Fedora 8 kernel stopped working with my network card and then a recent update broke something to do with permissions, so I could no longer use my soundcard or cdrom using a normal user account, I had to use the root superuser account. This was extremely annoying. Since Fedora 8 was end-of-life, I decided to upgrade to the latest shiny toy.

Fedora 10 supposedly has a lot of improvements, including flicker free boot (the boot process normally switches video modes a lot and blanks the screen a handful of times), faster performance, more up-to-date software, and lots of systematic improvements. Many of these improvements are true improvements but I have run into some issues.

Installation


Installing Fedora 10 was rather annoying. For some reason the installer kept crashing just before it finished putting the packages on the disk. I suspect the notebook was overheating, which I blame on insufficient power management software during the install. It could be related to the graphics driver used by the installer, but I couldn't verify this since you can't install a graphics driver for the installer and I couldn't figure out how to enable text mode. I was able to complete the install by selecting fewer packages and by propping the notebook up so that there was more airflow underneath it. Not a good first impression.

Hardware support


It seems that my hardware works better now with Fedora 10 than it did before. In Fedora 8 I had endless problems with the Wireless networking, but it seems to be working reliably now. It still crashes (just the wifi driver) but the system recovers fairly quickly and reconnects to the network. Better than Fedora 8, for which 90% of kernels wouldn't even CONNECT to my WAP.

The free nVidia driver that ships with Fedora works too, which is also better than F8's, which didn't work and caused the notebook to hang. But I use the binary driver anyway, so that's not a problem.

Software Installation


Fedora 10 comes with a new software management tool, PackageKit, which replaces whatever was there before. If only it worked! The KDE version, kpackagekit, is completely broken. I can't get it to do anything, it just hangs and (if running from a terminal) prints garbage on the screen. So I had to use the gnome version, which isn't fun in KDE because there's no icon, and you have to just know that the magic incantation isn't gpackagekit but rather gpk-application. Naturally! Anyway, the Gnome version works... sorta. When you are installing packages, you click a checkbox to say "I choose this to install", but if you search for more packages you can't tell what packages are queued for install. For example, let's say you search for "mp3" to find the mp3 codecs, and pick a package to install. Then you search for "media", to find a media player. If your codec package is in the media player list, it appears unchecked even though you have selected it already. There doesn't seem to be a way to see what you have selected to install. This isn't a big deal until you want to deselect something... I had hundreds of packages selected to install when it told me "oh, this package conflicts with another one you already have..." and there was nothing for me to do but start over.

One improvement in the software update area is the taskbar notification. Now you are notified about what updates are available and you can choose to install security updates or all updates. Only after choosing which updates to install are you prompted for the root password.

Synaptics Touchpad annoyances


I had a heck of a time dealing with the touchpad. For those of you who don't have a notebook, you can't understand what an irritating thing a touchpad is. It's like a trap waiting for the slightest touch of your finger to wreak havoc on your careful typing. In Windows the touchpad driver usually disables the touchpad while you type. Such functionality is available in Linux too, but for some reason doesn't seem to be enabled by default.

In days of yore I used ksynaptics to control the touchpad. It's a nice graphical tool which lets you customize the touchpad's behaviour, and it can also turn the touchpad off while you type. For one reason or another it doesn't work in Fedora 10 (even though it's part of the distribution, it's completely broken). I followed these instructions to enable ksynaptics but then was stymied by some version mismatch between ksynaptics and the synaptics driver. Doubly broken! Luckily, there was another web site which explained an alternate method of disabling the touchpad: run a program in the background. I had to set up this program twice, once for me and once for my wife's login session.... sigh. This should be default behaviour! It should be configurable! Tools which ship with the distro should work! But given KDE's second-class-citizen status in Fedora, I guess I'm not surprised.

KDE


Fedora 10 ships with KDE 4.1.3. This is the latest bleeding edge KDE release, with all the cool new stuff. Unfortunately, KDE 4 is in my opinion a major regression from KDE 3. There are lots of new things and I'm sure lots of imnprovements somewhere, but sweet ginger chicken are there ever a lot of problems.
First, the Desktop has been totally neutered. Ever since the days of Windows 95 normal humans have stored files on their desktop. All kinds of files, from icons for starting programs, to downloaded files, arranged in any way you like. KDE 4 has no such feature. For some reason they decided that the desktop wasn't a place for files. But because people complained they made an applet (called a widget) which shows you the contents of any folder. Guess what? I have a folder called, gee, Deskop? and I want it shown on my Desktop? except this looks like crap and did I mention it's SLOOOOOOOOOOOOOOWWWWWWWWWWWWWWWWW? Clicking on an icon in this file-viewer widget brings my dual-core, 2.2 gHz, 2GB RAM machine to its knees, where it promptly faints. What the heck is wrong with these widgets? And why CAN'T I just have files on the desktop? Ok, the concept of widgets is cool, and I like how KDE does it better than Vista, but PLEASE! I want to put files there!

There are several other major problems with KDE4. Some of these are, I'm sure, integration problems because KDE is always an afterthought for the Fedora developers. They just cram it in next to Gnome, spit on it, then wipe it with a snotty handkerchief to shine it up a bit. Gnome is Red Hat's precious child, a relic of the days when KDE had licensing problems, and thus always gets preferential treatment from the Fedora devs. But I digress: I was ranting about KDE.

The main problem is that the file management widget was completely changed and is now very hard for me to use. It used to be you clicked on a file to select it, and double-clicked to activate it. Not anymore: now you click on it to activate it, and... well, I'm not sure how to just select it. I guess nobody needs to do that? Oh wait... I do. And there doesn't seem to be any option to customize this behaviour. KDE 1.0 had single-click activation, back when MS did the same in Windows 95 + IE 4.0, but there was an option to turn it off and the default became double-click not long after. I find that I need to activate files in the file manager far less often than I need to select them. Thus the KDE file manager went from being awesome, in KDE 3, to useless, in KDE 4. Plus they replaced Konqueror with Dolphin, which I'm not sure is an improvement, but anyway Konq has the same stupid file manager component, so even it has the dumb single-click "feature".

Finally, overall it seems that lots of KDE bits have lots a lot of features. The panel used to be very customizable, now it isn't. For one thing, I used to be able to specify how wide the task-manager applet was, now I can't. There are other examples I can't think of at this time. I used to be able to set a wallpaper to fill the screen according to its maximum dimension; now that feature is gone. I used to be able to configure a bunch of things, but now the configuration options are missing. I used to be able to store files on my desktop, but I've already discussed that. Still bugs me though.

Chinese input


At last it becomes relatively easy to set up Chinese input for all programs. The SCIM tool finally works reliably in KDE and GTK apps. You can install SCIM and the SCIM-QT bridge, log out and log back in, and you can enter your Chinese characters. It doesn't work as well as the Windows Vista Chinese IME (which is awesome) but it works fairly well. This is one thing I am really pleased to see. I have typed a couple of documents in Chinese using OpenOffice and there have been no issues with the input. For some reason, though, OpenOffice printed my Chinese document as a nice page of little boxes. Hm.

Conclusion


Fedora 10 (KDE mode) is clearly a beta-quality release. Much of the blame here has to be laid at the feet of the KDE devs, who have released an immature product as if it were ready for prime-time. It is not. But there are so many other glitchy problems with this Fedora release that I wonder how I'd fare in Gnome-land. Is this solely due to the difficulty in packaging KDE 4 for Fedora? Some of the problems, like the synaptics driver and the package-kit problems are clearly infrastructure related, and KDE is not to blame here. Overall I am disappointed with Fedora 10's quality but I am pleased with its goals and feature set. I hope the quality issues can be resolved with some updates and maybe Fedora 11 will fully meet the expectations everyone had for this one.

LG R500 Notebook

I bought my first notebook computer, an LG R500. Previously I'd resisted getting a notebook because they are very expensive compared to desktops; I'd rather spend the equivalent on a desktop and get twice the machine. But this time I needed the portability so I had no choice.

I chose the R500 because
A) It had a 1680x1050 screen
B) It was fast enough, otherwise, and
C) It was on sale for a reasonable price.

This last point may seem silly but it's important because most notebooks are woefully under-spec'ed when it comes to display resolution, unless you're willing to go for the ultra-high-end. In Toronto this means spending over $2000 for a notebook. I'm past the days of spending over $2000 for any computer, so I had few choices in the under $2k range. Almost all notebooks have pitiful resolutions, with only 900 or 800 lines. Maybe I'm a snob but those notebooks just don't cut it.

After getting the LG home my first task was to verify that all the hardware is working, because there's only a 14-day money-back guarantee (there's a warranty, but that's not the same thing). Once I was certain that everything worked (I tested WiFi by connecting to the various unsecured access points in my building... tsk tsk, people, lock down your WiFi!), it was time to re-install the OSes according to MY requirements.
My most important requirement is Linux. Unfortunately this notebook came with the OS pre-installed, and more unfortunately it's Windows Vista (Home Premium). I've heard nothing good about Vista, bug after giving Vista a look I decided that I like the UI changes, even though they'll take some getting-used-to, and we'll have to see how the performance is.

Thankfully for me, LG provides a "restore CD" which installs the OS for you. Unfortunately it erases the whole hard drive first (not a problem as this is a fresh system), but at least the CD is available out of the box (Some notebooks don't ship with a CD, you have to burn it yourself - ridiculous, if you ask me). More fortunately the restore CD lets you specify how many partitions you want to use. This means I won't have to mess around with disk-resizing tools and risk corrupting the file-system; it can be "right" from the get-go. The other downside about the rescue CD is that it installs some rescue files in a separate partition on the hard disk, which eats up one of the primary partitions. Luckily I can make-do with just 3 partitions: one for Windows, one for Linux, and one for data.

In the old days my data partition was FAT-32 because that was the common-denominator between Windows and Linux. Back when I started messing around with Linux I even had to compile my own kernel because the kernel that came with RedHat 5.0 didn't support FAT-32. Ah, the olden days, when you had to compile the kernel... that takes me back. Anyway, more recently I stored all my data on a remote server, and thus didn't have to worry about the filesystem, because Samba took care of it. But with a notebook you can't rely on a network share and so your two OSes will need to play nicely together on the same disk. I will have to investigate the various NTFS drivers for Linux to see what I can do.

Windows Configuration
It's been a while since I installed a Windows OS so I was interested to see what would be required for Vista on this notebook. It seems that LG has opted to provide a separate driver disk for installing the custom software that ships with this notebook. The basic installation when ok, no questions were asked (after setting up the partitions) other than simple date/time questions. After windows rebooted and appeared to be started, a program started that said "Setting to System Recovery Environment". The installer had originally told me to wait until user registration started, but it's still odd that we have to wait for this program to run, and odder that it starts up AFTER the windows welcome screen shows up. Once this mystery program finished it rebooted the computer. Then I was informed that Windows was checking my system performance, and then the system rebooted again. This was a pointless exercise since there were important drivers not yet installed, so my system's performance was 1.0.

Booting seemed to take a long time and the system came up in 800x600 resolution. This is silly because Windows should know the monitor's resolution and I don't think it's too much to ask that windows know this is an LCD, and thus deduce that it should automatically use the highest resolution. At least the highest resolution was available without needing the nVidia driver installed.

Once the system was up and running, I had a nice clean Vista install with zero third-party drivers. This is both good and bad. On one hand, it means I also don't have the third party demo software or other undesirable software that I might not want. On the other hand it means there are no drivers at all. I think it would have been more professional of LG to slipstream the drivers for the camera, video card, flash-memory accelerator, card reader, and all the other devices that are built-in. This is not what happens and instead you have to resort to the "LG Intelligent Update" CD that comes with the notebook. This CD lets you install all the missing stuff, in one fell-swoop.

Unfortunately, the CD doesn't let you do a custom install, so I had to do that manually, but skipping the auto-run and running a bunch of setup utilities directly from the CD. This isn't very convenient but to LG's credit at least they make this possible. When I used to sell computers (mainly Compaq, AST (that dates me!), HP, IBMs, and Packard-Bells) it was common for a "restore CD" to auto-install everything, including tons of junk you didn't want or need. LG's approach makes life relatively simple for the novice user but not hellish for the advanced user.

That being said, here are all the software packages I had to install to get the system working in the way I wanted it to work:
  • Cardbus driver
  • Fingerprint sensor driver
  • Intel Chipset driver
  • Intel Turbomemory driver (what is this?)
  • Wireless adapter driver
  • nVidia driver (not available from the nVidia site
  • On-screen display (for volume control, etc)
  • Webcam driver
  • Touchpad driver
  • Plus run Windows update
Finally, some comments on Windows Vista. First, they've changed the Explorer address-bar/location drop-down box. This is good and bad. I like the bread-crumb navigation, which lets you quickly jump back up the folder tree. Some of the new behaviour is a little odd, though: when you click on the far-left bit of the address-bar it becomes a text input, but if you click on other places it navigates to what you clicked on. I'm not used to the behaviour and I don't know if a novice would like this or not. Then there's everyone's favourite feature, the authorization prompts. When you're a normal user it's handy that Windows lets you easily elevate your privileges to get work done, like installing software. For me, this is what I'm used-to from Linux and it's ok. But when I'm LOGGED-IN as the admin it's really, really annoying to be prompted every time I try to do anything admin-ish. I can appreciate Microsoft's predicament, and understand why they did this, but I wish they'd sacrificed more backwards compatibility in order to improve the user-experience for the new security. Oh well, they had to try something.

Linux Configuration
Linux has a disadvantage over Windows because LG took the time to support Windows but didn't do so for Linux (that I know of). Consequently there is no equivalent to the LG Intelligent Update disk which contains any third-party drivers, there is no one-stop install disk, and no guarantee that Linux will even work. But Linux usually works out-of-the-box on any modern system and I'd googled this system before so I was confident it should work.

First I had to download Fedora 8 and burn it to a DVD. Then I put it into the drive and rebooted the notebook. The system booted right away from the DVD, but the DVD drive was noisy, like an old Commodore 64's floppy disk. Since I don't use the drive much that's not a big deal. I was greeted with the Linux install prompt, which asks me to choose between graphical and text-mode installation. Unfortunately, the graphical installer just hung the machine so I had to use the text-mode installer. I haven't had that kind of problem in years, and was quite disappointed. First impressions were not good.

Things weren't better after the install was finished. I was left with a text-mode console, with no indication of what might be wrong with the graphical mode. Luckily I know my way around Linux so I was able to try starting graphical mode (it's called X, for you non-Linux users) by using the 'startx' command. This hung the machine... no wait! turns out it only hung the keyboard and display. I was able to ssh into this machine from my other computer and fix things. Amusing anecdote: years ago I told my manager about how I restarted X by telnetting into a crashed computer, thus fixing the computer. He said I'd been born in the wrong decade. Back on topic: since the console seemed to be the only thing broken when I started X, I hoped that installing the nVidia driver would fix my problems. I configured the livna repository and sure enough, installing the nVidia driver did fix everything. I even had a graphical boot screen, which was also missing earlier.

The first order of business when installing a new OS is to get the patches. I did this in Windows using Windows Update and tried runing "Pup" to do the same in Linux. Pup told me there were hundreds of updates, and asked if I wanted to install them. I clicked yes and waited. That's when the Pup window went away and wouldn't come back. Well, it didn't go away, but it became blank and unresponsive. I ended up killing Pup and running the command-line tool, yum. Yum revealed (indirectly) what was wrong with Pup (besides an unresponsive GUI): the updates were 625 MB in size! This meant I was practically downloading the whole distribution again. Not fun, but at least I have high-speed internet.

Once everything was up to date I had to get my hardware working. Almost everything worked out of the box except the WiFi, webcam, card reader, and fingerprint scanner. WiFi was actually easy to set up; for some reason the NetworkManager service wasn't running. As soon as that was on the rest worked fine. I don't know why it wasn't on, and I hate to think of what a non-expert would do to resolve this situation, but for me decades of computer nerdiness made this problem easy to solve.

More tricky was the webcam. It is supported by the uvcvideo driver, which (for some reason) isn't part of the main Linux kernel and also isn't shipped in Fedora. So I had to install this driver manually, which I did according to the instructions here. With that driver installed the webcam works fine.

I haven't installed the fingerprint reader driver in Linux (nor Windows) because I don't need it, but I should note that Fedora 8 appears to completely lack support for it.

I didn't get the card reader working. It seems Texas Instruments hasn't released information about this device and it doesn't present itself as a standard block device; each memory stick type needs a custom driver. Work is under-way to reverse engineer this so I'll hold out some hope.

The LG R500 Itself
Overall I am pretty happy with the notebook. There is one major problem, in my opinion, though: the keyboard is very odd. Now, notebook keyboards are notorious for having strange layouts and compromises, and this keyboard has its share of cramped keys. But the problem I'm referring to is the placement of the key with the pipe symbol and the backslash. Most keyboards have this key on the second row between the back-space and the enter key. Some keyboards have a huge, backwards-L-shaped enter key, and they place the backslash beside the backspace key, and compromise by making backspace smaller. Back when keyboards didn't have Windows keys you might find backslash between control and alt. All of these make sense, and my favourite is the big, two-key-wide backspace and enter, with 1.5 wide backslash in the row between them.

Why am I going on and on about this? Because the LG R500 does not follow any of these norms. It has the enter key as a weird upside-down L with the backslash key nestled-in between the apostrophe and the enter key. This means that the spot where I usually find the enter key (right next to the apostrophe) is now a backslash, and the spot where I usually find the backslash is now the enter key. To make it worse, there's a SPARE backslash key next to the shrunken left shift key, also in the spot where I'd normally hit the left-shift key. This means I have difficulty typing things because my shifted characters and newlines are littered with backslashes. I suppose I will get used to this but this is a major crime for people who touch-type. It'd be less irritating if the whole layout was different, say, Dvorak, because then EVERYTHING I typed would be wrong, instead of just my passwords (I end up typing a password as ******\) or my capital Ms (they become \m).

Aside from the keyboard, my only other problem is the card reader. Besides its total lack of Linux support, It's placed underneath the keyboard and it's very tricky to reach. But at least it's there, and it accommodates my SD cards and Memory Sticks with no trouble, so that would save me from using my USB card reader, if it worked in Linux. The rest of the notebook is good: the keyboard feels nice, I can type most things perfectly, the touch-pad works well, and all the other features I've tried have worked exactly as you'd expect. Performance on this notebook is good but I've yet to play any games to really put it through its paces.
Conclusion

The most important conclusion is that I will be keeping this notebook, and not exercising my 14-day money-back guarantee. As to which OS worked better; the Vista installation was definitely easier than Fedora 8, but if the installer had supported the video card out of the box I'd call it close. Fedora loses points on the lack of webcam support and the inexplicable failure to launch NetworkManager by default. I don't blame Fedora for the lack of card-reader support, however, because it's not their fault Texas Instruments are living in the wrong century with regards to supporting Free Software. Anyway, once installed the two OSes have behaved pretty much as you'd expect, and all is looking good.

The Battle for Wesnoth

I've discovered a new drug: The Battle for Wesnoth. This is a Free Software game which is available for Windows, Linux, Mac, and many other platforms. It's a turn-based strategy game with both single-player and multi-player modes.
The gameplay is very simple: you have a bunch of soldier units which can move along the hexagonal grid. Your units have various characteristics, such as different kinds of attack and defense, magic, flight, speed, or other traits, and you must use these traits to defeat an enemy or capture a position on the map. There are other nuances, such as characters who work better in the day or in the night, and most importantly, characters who work better on different kinds of terrain. As your characters defeat enemies they acquire experience and advance to new ranks. You can recruit more units by getting gold, which you get when you occupy a village.

With these simple rules the gameplay is easy to pick up, even for a novice such as myself, but the games are quite entertaining. There are a number of single-player campaigns and there is also a multi-player mode.

What's most interesting about this is that this game is completely Free. You can download the code, artwork, and music, and modify or re-use it in other Free programs. This is rare in the world of games, especially for such a high-quality game.

The other day I was playing the game when I realized it was almost time to get up and go to work. That sort of thing hasn't happened to me in a long time and is a testament to the addictiveness of this game.

Logitech 350 Media keys in Linux

In my previous post I talked about my new keyboard and how I hated the software that came with it. I also smugly commented that Linux would let me do whatever I wanted with this keyboard. Well, I was right, and everything worked fairly well except for two minor problems.

First, it turns out that Logitech keyboards don't all assign the same key code to keys with the same icon on the keyboard; that is, a key with a picture of a home (i.e. your browser's home page) might be scancode 178 on one keyboard (this guy's, for example) but is scancode 130 on my keyboard. The only reason I can imagine that Logitech would do this is to drive people crazy and make them reliant on the Logitech software. Luckily the X.org folks have made lists of known keyboard layouts and put them into a configuration program so you can just pick your layout. Unfortunately for me, my layout wasn't listed so I had to pick a few different Logitech keyboard layouts until I found one that matched mine. I chose the layout from KDE's control center, which you can see in the screenshot below.
The second problem was that the closest matching layout had bugs. First, the key with the calculator icon was tagged as "XF86VendorHome", whatever that means. It should have been "XF86Calculator"; however this is more of a cosmetic problem. More vexing is the flaw in the xkeyboard definition file which tags two keycodes with XF86AudioRaiseVolume which effectively stops this key from working. My workaround was to modify an existing layout so that it worked with all my keys and only my keys. Now I can choose this layout in KDE's keyboard config center and then, also using KDE's config center, assign actions to hotkeys.

In order to fix the bug I had to edit the /usr/share/X11/xkb/symbols/inet file. In this file was a layout definition that is used as the base definition for Logitech keyboards. I snipped out the boring parts, here are the three lines that were wrong:
xkb_symbols "logitech_base" {

key <i21> { [ XF86VendorHome ] };
key <i2f> { [ XF86AudioRaiseVolume ] };
key <i30> { [ XF86AudioRaiseVolume ] };
};

I made a new definition, with a new name, that contains keycodes for the 8 extra keys on this keyboard:
xkb_symbols "logitech_350" {

key <i01> { [ XF86AudioMedia ] };
key <i02> { [ XF86WWW ] };
key <i20> { [ XF86AudioMute ] };
key <i21> { [ XF86Calculator ] };
key <i22> { [ XF86AudioPlay, XF86AudioPause ] };
key <i2e> { [ XF86AudioLowerVolume ] };
key <i30> { [ XF86AudioRaiseVolume ] };
key <i32> { [ XF86HomePage ] };
key <i6c> { [ XF86Mail ] };
key <i6d> { [ XF86AudioMedia ] };
};

The reason I made a new definition was to make sure I didn't break anything else. Since I'm not 100% sure how to create a whole new definition from scratch, I just modified the Logitech Ultrix definition, which was just an import of the base definition:
Old:
partial alphanumeric_keys
xkb_symbols "logiultrax" {
include "inet(logitech_base)"
};

New:
partial alphanumeric_keys
xkb_symbols "logiultrax" {
include "inet(logitech_350)"
};

This was quick and easy. Once I made the change to this file I simply logged out, logged back in, and the new keys worked as advertised.

Making something interesting happen when the keys were pressed was trivial once the bindings worked. To control the sound volume I set the key bindings in KMix, KDE's volume applet. To launch programs when I press the application starters I used the KDE control center's keyboard shortcuts page; just pick an action or program and assign any key combination to it. In the screenshot you can see Firefox and KMail have their special keys mapped.
The last detail was making XMMS play and pause when the play/pause key was hit. KDE once again came to the rescue. KDE 3.5 has a complex "Input Actions" framework that lets you assign arbitrary actions to fairly arbitrary input sequences. This can be used to create your own mouse gestures, or assign macros to keys. In my case I opted to assign a command to a key; the command is "xmms -t". This command starts XMMS if it's not running, and toggles the playing of music. If music is playing, it pauses. If music is not playing, it plays. With this final bit in place all 8 keys were working. And in the end I did bind the calculator key to kcalc, but that's only because I hadn't installed any games since upgrading to Fedora 7 yet.

Fedora 7 Install out of date

Sweet Ginger Chicken! My Fedora install is only hours old, and I only JUST blogged about it, when it's already out of date.

Fedora 7 Installation

I just downloaded and installed Fedora 7. The installation is going well so far. All my hardware was detected, there were no problems partitioning the hard drive or installing a boot-loader that breaks Windows XP, or any other issues of that nature. The only problems I had were networking-related.

My system normally consists of a server and a workstation, with the server sharing files through NFS and user accounts through NIS. Fedora 7 finally gets the workstation install 99% right for me during the install, with a couple issues.

First, I didn't see any option for configuring NFS mounts at install. That'd be a nice thing to have because then the installer can set up any required daemons, such as nfs-lock. I ran into a problem logging in to KDE with my normal user because nfs-lock wasn't running.

Second, and this is probably not a problem for most NIS users, there is no way to confgure the hosts file at install time. I don't have a domain and don't have a DNS server, so my NIS server's hostname has to be configured in /etc/hosts. This means that at install time, when attempting to contact the NIS server, the attempt is doomed to fail because there is no hosts entry for it. Annoying, but I can hardly blame Fedora for that.

The other problem I had during the install is that Fedora changed the order of my network devices between version 5 and 7. This means that when I configured eth0 I was actually configuring the unused network port on my motherboard, instead of the one I meant to configure. Not a big deal but it would have saved me some troubleshooting if the installer had told me that there was no cable plugged into that card; this is something that's possible but it just neglected to do.

Now things are working but I will need to spend a bit of time trying out the new, updated apps and restoring my settings. I never "upgrade" my installation of Linux because I don't want any downtime; instead I use a two-partition scheme, where the current OS is installed in one partition and the new OS in another. That way I can revert to my old installation if there isn't time to complete the new installation. It's also useful when I want to test out a new distribution.

All in all the Fedora installer has gotten pretty good. Linux has come a long way from the days when an install gave you a text console, if you were lucky. Now the install works pretty well, and for the non-NIS/NFS-home case it works flawlessly. Compared to Windows, I'd say the installers are about on par with each other.

Now if only nVidia would ship a proper open-source driver.... pfft... who am I kidding? Microsoft will open-source MS-Office first.