Fishpool

To content | To menu | To search

Tag - Fedora

Entries feed - Comments feed

Monday 23 November 2009

Notes about Fedora 12

Another six months, another Fedora release. Apparently I still couldn't resist the temptation of upgrading, given I got a few days of flu-related downtime. Happy to report it's a pretty smooth release, with most things in the expected places:

  • GNOME is a tiny bit cleaner than it used to be, which is as expected, given that's what it's been doing for the last 5 releases. Apparently next time it'll be something completely different. I don't know if I should be excited or apprehensive about that..
  • PulseAudio continues to improve - however, I could swear I've successfully used a Bluetooth headset with Skype earlier, and now audio gets stuck if I pair a headset. That's not the most typical use case, of course, and for the most part, audio no longer sucks on Linux. Too bad my laptop's built-in microphone does suck (don't know if that's with Linux or in general), so I do need a headset to make Skype calls.
  • Apparently Empathy is approaching a usable IM now that it's made the default. Still slightly prematurely, IMO, and I will continue to use Pidgin with all its warts for the time being.
  • OpenOffice still works as expected, which is to say, slowly, but reasonably predicably.
  • I can get rid of many of the hacks I've done to make multihead work as I like without setting it up every time, because now Xorg does that by default. Yippee!
  • Evolution still continues to gain one or two major regressions per release, and lose none of the earlier. The tally now seems to be: brken live search, fkdup IMAP sync, scrwy calendaring, and, as an additional feature, automatically selecting the wrong recipient address out of several available emails despite being repeatedly told otherwise. Seriously, the thing needs to be taken behind the shed and shot to the head. And I need to find a decent email program. Thunderbird 2 wasn't that - and 3 still isn't done. Sigh.
  • Google Chromium is about 10x faster than Firefox, and by far the easiest way to install a 32 bit browser (working Flash!) on a 64 bit OS (I should probably reinstall to 32 bits all around, this bits thing doesn't help me do anything better).
That concludes my "yes, I'm a Linux geek" postings for the next six months, I guess. :)

Thursday 15 January 2009

How to share a wireless connection with others using Ethernet and Fedora

It took me a bit of time to figure this out, and the Lazyweb wasn't too helpful this time, so a small note: If you have a wired Internet connection you want to share with others using your laptop's wireless adaptor, NetworkManager has a menu item for "Create a new wireless network". That's pretty obvious to find. However, if you want to do vice versa, and share a wireless Internet connection with someone connected over the wired Ethernet (or many people, if you have a small switch to share), the procedure is simple, but more hidden.

Continue reading...

Saturday 27 December 2008

A couple of Fedora 10 notes

For the last few Fedora Linux releases, I've been upgrading to a prerelease version a week or so before the actual release in anticipation of the real thing, and commenting here on what I saw. I did upgrade this time as well (a month ago), but skipped the commentary. A few belated notes, since this extended holiday gives me not just the time but also the itch to play with stuff. One big complaint, a few notable incremental improvements, and a few notes to self:

Starting with the complaint: Evolution, my long-time favorite desktop email application, has turned really annoying. Primarily because a rewrite of its on-disk message summary to use SQLite broke not just the one feature that converted me to an Evolution user in the first place ("vfolders", aka persistent, updating search folders), but every resemblance of a sensible mailbox behavior. It reorders messages in what might as well be a random order every time you delete one! Crazy. And peeking beneath the bonnet reveals that whoever wrote this doesn't have the first clue about how SQL-based relational structures work: every IMAP folder has its own table in the SQLite database with the exact same structure! Jeez, someone needs to read their database normalization guidelines again. I'm sorry, but not even free software gets to fuck up this badly. So, because downgrading to the last-good version (2.22) seemed like too much pain (given all the libraries it depends on were updated anyway), I switched to Thunderbird. I don't particularly like T-Bird, it's slow and clunky, but at least it doesn't block me from actually doing something with my email. Thank universe for IMAP and pretty good webmail apps (GMail and Zimbra) for making that switch smooth..

OpenOffice 3.0 was a very welcome upgrade, for the single reason that it supports OpenXML documents. Again, not really because I'd like to deal with 'OpenXML' documents, but because it's way more convenient to be able to deal with them than to try to make the few people who send those around understand that not everyone else in the world is in love with Office 2007.

Upgrade had a few scary gotchas. One which might hit quite a few people I saw a couple of weeks later upgrading another computer online with Anaconda: it would have been really smooth, save for the bit where the preupgrade program that downloaded F10 to a bootable image failed to pick a kernel package to the upgrade batch because F9's kernel was already at that time more recent than the F10 kernel. Once I figured out what caused that machine to crash during the reboot phase of the upgrade, it was easy to fix by downloading a kernel package into the upgrade batch manually, but the Python stack trace that showed up as would probably be unresolvable to 90% of Linux users, or 99.9% of the target population of most modern Linux distros -- never mind that Fedora and its bleeding-edge software probably still is a release for the more hacker minded.

The more scary gotcha hit me on my primary machine, though, one on which I've for a very, very long time used LVM snapshots as a backup and 'oops, that was a mistake, lets go back to yesterday' recovery facility by having two snapshots of the root filesystem available to me. This used to be fine, because Fedora was happy to refer to the FS by its LVM volume name, and because LVM's own bookkeeping facilities kept track of which volume is the "primary". However, as a throwback to a mistaken volume management feature from a few years back, F10 decided to convert all volumes to refer to each other via their filesystem UUIDs. Now, I agree that UUID (or the earlier convention of filesystem labels) reference is MUCH better that device names, given that disks may be plugged to different interfaces etc. However:

  1. LVM already had taken care of this and provides logical names for volumes that are independent of their underlying physical devices.
  2. Unlike LVM, the mount and fsck utilities apparently can't distinguish between the master volume and its snapshots, picking anything at random or everything at once.

The result: first, the machine failed to find a root filesystem at all. Getting that fixed, it would then proceed to crash in fsck because the snapshots were read-only. As far as I can tell at this point, I have three avenues available to myself: stop using snapshots as a backup facility (and go back to what?), manually fix the kernel init scripts and mount-points after every kernel upgrade (not such a big deal, except the kernel updates come every week or so), or become a Fedora developer and try to convince whoever came up with this idea that LVM had solved it already and it needs to be forgotten about. Given that I have this kind of time available for this stuff about once a year, I'm afraid I might end up giving up backups.

So, that's the complaints out of the way. Otherwise, F10 and GNOME 2.24 is another solid release, and aside of those rather bad glitches, the other stuff keeps on improving on the "make it just work" road. Now that zero-configuration X seems to pretty much work (see below), I'm curious to see where this kernel mode setting etc stuff develops to in the next six months.. Also, I finally had to learn how to use KVM and virt-manager because VMware Player broke in the upgrade. Had to give up copy-pasting between the host and the VM since I don't know of a working KVM-clipboard utility for Windows, but given how little I need virtual machines for (quickly testing some apps, primarily), that was no big loss to me.

And speaking of zero-conf X, one thing I finally got around to figure out was how to change the laptop's touchpad settings without having an xorg.conf: apparently it's done via an FDI file for HAL instead.

Wednesday 21 May 2008

Stop distracting wireless led blinking

While there's lots to like about my current laptop, one thing that had been quite annoying was the wireless indicator led. For a long time, it didn't function at all, because iwl4965 didn't contain support for driving it. Recently (effectively starting with Fedora 9 for me), that support came in, but now it's not annoying because you can't tell whether wireless is enabled, rather because the led is blinking all the time, which is a distraction.

I liked the behavior of my old laptop's ipw2200 much better: blink while searching/associating with a network, and then stay on constantly. Happily, Erich Schubert just pointed out how to fix the iwl4965 blinking behavior. That script is (I think) for Debian/Ubuntu, and a slightly different kind is needed on Fedora. I'm not sure this is the best way to go about it, but at least it works for me: put the following in /etc/NetworkManager/dispatcher.d/iwl-no-blink

#!/bin/sh
if [ "$0" = "wlan0" ]; then
    for dir in /sys/class/leds/iwl-phy*X; do
        echo none > $dir/trigger
    done
fi

Sunday 30 September 2007

Fedora 8 is looking good

Once again, I couldn't resist the urge to stay on the bleeding edge, so I went ahead and updated my home machine from F7 to F8 test 2. Encouraged by the results, I then (again) did the unthinkable and went through the same process on my laptop, which I depend on for getting stuff done. Crazy. Well, that's the way I like to play the game. And I wasn't quite THAT crazy - I didn't upgrade everything, just the parts that I was really happy about. Besides, I've set the laptop up with a whole-system snapshot LVM backup so that I can back up a day if things start to look bad.

They haven't. Apart from a few minor glitches (such as the Rawhide NetworkManager 0.7 really not being at all ready, dealt with by using the F8t2 NM 0.6.5 instead), I really like all the improvements in the usual suspects - GNOME 2.20 is a brilliant incremental update, OpenOffice 2.3 is a slight improvement on the already-improved 2.2 (but damn, are those release notes bad or what), the Power Manager is getting really good at predicting battery life, and (drumroll, please) Evolution has regained its stability! That is major. The "it seems to forgot to include an attachment you mention in the text" feature is a neat little improvement, too, but really, not having e-d-s crash on network events (such as resume in a new WLAN) is the real satisfaction-improvement for me.

One negative about F8: it doesn't include Seahorse 1.0 (as of yet, anyway), so GNOME Keyring integration was a bit lacking. That was easy enough to fix with a rebuilt package, and after switching the old pam_keyring to gnome-keyring-pam, I now have a very good package for dealing with my hundred-and-fourtyseven different daily passwords, too. Well, almost -- still can't really get rid of Revelation and some manual password management, and Epiphany doesn't yet integrate to Keyring. But it's getting there, for sure.

Sunday 23 September 2007

Non-root libgphoto2 access

I can be a total bitch to make a digital camera that does not look like a flash drive accessible to a normal user under Fedora 7. It sure was for me. Gphoto2 works, but only for the root user, and the net is full of instructions for messing with usbfs mount group, special udev rules, special HAL rules, and so forth. The problem is, nearly all of that discussion is obsolete or at least conflicts between different distributions.

For Fedora, two tricks are necessary: First of all, udev needs to be told the USB devices which should be user-accessible, and second, the PAM console permissions map is missing a class of devices useful for this purpose. It is unfortunate that otherwise such a usable operating system needs this kind of tweaking, but it does.

The first is achieved by creating a special udev rule file such as  /etc/udev/rules.d/52-canon.rules:

SUBSYSTEM=="usb_device", ACTION=="add", SYSFS{idVendor}=="04a9", SYSFS{idProduct}=="306e", SYMLINK+="camera-%k" 

Every camera will have different vendor/product codes, of course. To make this change effective, reboot or restart udev with 'sudo killall udevd; sudo /sbin/start_udev'. Second trick is to change console permissions with a file such as /etc/security/console.perms.d/52-camera.perms:

# device classes -- these are shell-style globs
<usbcamera>=/dev/camera*
# permission definitions
<console> 0600 <usbcamera>

This is a "play-by-the-book" type of solution. If you're less interested in keeping some devices inaccessible from a normal account, a simpler permission scheme will make all USB devices available. In this latter case, no udev changes are needed, only a file in /etc/security/console.perms.d/usb.perms:

<usbdevices>=/dev/bus/usb/*/*
<console> 0600 <usbdevices>

Tuesday 21 August 2007

Acer Crystal Eye and GStreamer

The Crystal Eye webcam in new Acer laptops, my TravelMate 6292 included, works with the linux-uvc driver, as I noted before. To use it in GStreamer applications, you need to have the v4l2src component, which recently moved from the gstreamer-plugins-bad collection to gstreamer-plugins-good. In Fedora 7, you must have g-p-g version 0.10.6, which was just released to updates-testing (in a few days in updates, I would expect).

Update: With Fedora 9 or 10, you need nothing extra: the default installs of gstreamer-plugins-good and kernel already have everything built-in. Just set your default video input to Video for Linux 2 in gstreamer-properties.

If you don't want to build linux-uvc yourself (it's very easy), you may want to enable the drpixel yum repo that has it pre-built for Fedora kernels.

rpm -ivh http://download.tuxfamily.org/rpm/drpixel/fedora/7/i386/repodata/repoview/drpixel-release-0-1-2.html
yum --enablerepo=updates-testing --enablerepo=drpixel install gstreamer-plugins-good kmod-uvc

To test it, run:

gst-launch v4l2src queue-size=2 !  ffmpegcolorspace ! ximagesink

Wednesday 1 August 2007

Sound on Acer Travelmate 6292 under Linux

I know I said I'd wait until the end of my vacation to tinker with audio on this laptop, but I couldn't help it -- I wanted to watch DVDs, and movies without sound aren't all that great an experience. So, I had to dig in and see what the solution is.

Not all that easy, it turns out. Fedora 7's latest update kernel still has no support for the Realtek ALC268 sound codec, despite supporting a number of other codecs in Santa Rosa-based laptops. The latest development version of ALSA does have support for a couple of laptops with the 268 chip, but not the TM 6292. Another patch does exist that gets closer, and I made a version on top of that one that provides rudimentary support.

That is, the speakers work now, and so does the headphone jack. However, plugging in the headphones doesn't mute the speakers, and there is only one volume control for both of them. Actually, there are three (called Headphone, PCM, and Front), but only two of them do anything, and they do the same thing (control the volume of both speakers and headphones). Microphone input doesn't work at all. However, all those details are way beyond what I want to know about audio hardware control, and I'm satisfied enough to simply get some sound out of the machine for now. Some other enterprising soul may fill in the blanks.

Patch filed at ALSA's bug tracker. If you're using the 2.6.22.1-33.fc7 kernel (the latest update Fedora 7 kernel as of this moment), you can download a replacement snd-hda-intel.ko kernel module that should enable sound for this machine. Install with

rm /lib/modules/2.6.22.1-33.fc7/kernel/sound/pci/hda/snd-hda-intel.ko
cp snd-hda-intel.ko /lib/modules/2.6.22.1-33.fc7/extra/
depmod -ae
kill $(lsof -t /dev/snd/*)
modprobe -r snd-hda-intel
modprobe snd-hda-intel

Wednesday 18 July 2007

Acer TravelMate 6292 and Fedora 7 Linux

As I mentioned in my previous note, my previous laptop destroyed its fan last week. Since it had started to show its age in other respects as well and was deemed not worth repairing, I got a new one yesterday -- an Acer TravelMate 6292. This is a Core 2 Duo / Santa Rosa chipset based model, with some pretty cutting-edge technology inside. I'll write down the details later when typing is easier, but for anyone who might be considering one to use with Linux: yes, it does work, quite well in fact, but a bit of tweaking is required due to its very new components.

Update: it's been 17 months since I wrote this post, and it keeps being one of the more popular things in this blog. Time to add some up-to-date detail.

  • Fedora 7 LiveCD didn't like to boot, possibly due to a missing driver (it didn't like my previous laptop's external Firewire CD drive either). It might be possible to work around by changing BIOS settings, but I borrowed a USB CD drive instead. Update: this hasn't been a problem since F8.

  • Otherwise, the LiveCD install experience (including resizing and moving the Windows partition out of the way) was a very smooth one. I hadn't done this before, and was positively surprised. I'm certain Microsoft hasn't made their install this smooth, and I doubt Apple has, either. Much recommended, if you're even a little bit curious.

  • Network-based update post-install no problem using a wired network. All in all, the install took about 1 hour to move Windows partition, 20 minutes to install Fedora, and 30 minutes for it to load updates afterwards (this was surprisingly slow for some reason).

  • Wireless (Intel Wireless 4965 A/G/N adapter) driver (iwlwifi) was preinstalled, but the required firmware wasn't (the package only included firmware for the previous model, 3945). No problem, just install iwlwifi-4965-ucode from ATrpms. Update: Intel has an official wireless site for the firmware.

  • Things which worked without any effort at all: battery monitoring, CPU frequency control, temperature monitoring, wired Ethernet, Bluetooth, docking station, and many other things I take for granted. In fact, the machine was entirely functional save for the missing wireless adapter microcode straight off the LiveCD, and all that I did for it was to improve performance past the "functional" stage.

  • Display was a bit fuzzy, and 3D acceleration didn't work. This was because the preinstalled Xorg Intel driver v 2.0 includes only basic support for GMA X3100. Both problems disappear by installing a new kernel (for updated 3D/DRI driver) and Xorg 1.3.0/Intel 2.1.0 (for 2D etc), ie by running this command: Update: Display has worked perfectly since F8 and the Intel driver keeps improving in capabilities and performance
  • Both suspend-to-ram (S3) and hibernate-to-disk work fine, once the usb drivers are forced out of the kernel prior to suspend. Create /etc/pm/config.d/unload_modules with one line:

    SUSPEND_MODULES="ehci_hcd ohci_hcd uhci_hcd"
    
  • Update: The Crystal Eye webcam (USB ID 064e:a101) works using the linux-uvc driver, which needs to be installed from source (download, extract, make, make install) is included in the kernel since F9. Make sure you configure each application to use V4L2 instead of the old V4L API. For example with Ekiga, choose V4L2 instead of V4L in the configuration druid or in the Video Devices Preferences. Same goes for anything based on GStreamer.
  • Something still to do about audio, apparently common to many Santa Rosa laptops and the ALSA Intel HD Audio driver, at least ones which use a Realtek codec. Notes from Ubuntu might guide you along - me, I'll try again after my vacations. Perhaps someone else will bother to fix this one. :) Update: Sound playback as well as recording work - though the recording quality isn't quite what I would expect from a "noise cancelling" three-mic setup the hardware has. I never tested it under Windows, though, so I can't say how close this is to intended quality.

  • Haven't tried to use the fingerprint reader (USB ID 147e:2016) yet, the biometrics libraries required look a bit overwhelming to install. Update: this is still not out-of-the-box functional, but the ever-industrious Bastien Nocera has recently packaged libfprint and fprintd for inclusion in Fedora 11. I've tested those packages, and they support the hardware - not quite ready for end-users, though.

Monday 18 June 2007

Update on Fedora 7

A few weeks ago I mentioned having upgraded to Fedora 7, and linked to a couple of bugs that were bothering me. No longer; as far as I can tell, my laptop is now stabler than it has ever been, plus way more functional. It's like I got a new computer all together ;) In particular, the crash when enabling an external screen was just fixed yesterday by Keith Packard. Thanks, Keith!

- page 1 of 3