Showing posts with label os x. Show all posts
Showing posts with label os x. Show all posts

Saturday, January 5, 2008

AirPortAtheros5424.kext and pkgutil

So I boot my Mac in verbose mode, mostly for the geekiness factor. But sometimes, you see a problem that needs fixing.

First off, to turn on verbose booting permanently, simply run "sudo nvram boot-args=-v" on the command line. nvram is the interface to the OpenBoot BIOS environment of PowerPC based macs. To my surprise, this works with Intel systems as well. It's one of those little things that make Apple such a great software company.

The error that caught my attention was:

a link/load error occured for kernel extension /System/Library/Extensions/IO80211Family.kext/Contents/PlugIns/AirPortAtheros5424.kext
You can grep for this error in your /var/log/system.log .

I did some searching and came up empty-handed, which is why I'm posting this. I think this is a leftover from upgrading my system from 10.4 to 10.5.

I'm pretty sure, because 10.5 now has a package database! You can actually find out which package installed a file now (provided the file was part of a package and not a drag'n'drop installer of course).

You can query this database using the command pkgutil. Just typing it at the command line will give you a lengthy usage statement. The option we're interested in is --file-info:

$ pkgutil --file-info /System/Library/Extensions/IO80211Family.kext/Contents/PlugIns/AirPortAtheros.kext
volume: /
path: System/Library/Extensions/IO80211Family.kext/Contents/PlugIns/AirPortAtheros.kext

pkgid: com.apple.pkg.BaseSystem
pkg-version: 10.5.0.1.1.1192168948
install-time: 1194966975
uid: 0
gid: 0
mode: 40755

So we know that the AirPortAtheros.kext plugin is installed by Leopard. The same search for AirPortAtheros5424.kext comes up empty, however.

Therefore we can conclude that AirPortAtheros5424.kext isn't owned by anything Leopard installed, and therefore I moved it away. The error is now gone and my wireless card is still functional.

I guess doing this doesn't buy you much but at least reading this taught you about the pkgutil command ;-)

Saturday, January 6, 2007

A cute desktop clock for OS X

One of the reasons I love OS X so much is that it makes it so easy to do cool things with Unix. In today's post I'll show how I made a desktop clock using GeekTool and the date command. GeekTool is an OS X application that will render text files, images and shell command output into the desktop. Its website isn't really updated a lot, but it still works, and if it doesn't, its source is out there. I guess it got mostly superseded by the widgets of the Dashboard, but it renders into the desktop, which Dashboard won't do without some hacks. (Although that might change next week if/when Leopard comes out :-) ) I also used this great free font I found, Atomic Clock Radio. To set it up, I created a rounded background (using The Gimp of course), and told GeekTool to put that on the right side of my screen with a pleasing opacity (in the style tab).
Then I added the output of the command date "+%H%n--%n%M", updating every 20 seconds, in another item and told it to render with the Atomic Clock Radio font. That command renders a 24h clock with embedded newlines. The dashes looked most pleasing. Experiment, it's easy.
That's all there is to it. Simple tools with big impact, that's how I like my Unix ;-) You can get the background image I used here. It's rounded on all sides, so you can choose where you put your clock.