Get Network Manager to stop asking you for the keyring password with pam_keyring

As I’m using network manager to control wireless access on my laptop and a desktop computer in my home, I’ve decided that the keyring manager is a nuisance.

I couldn’t bear for it to constantly ask for a password every time that I needed to log on to a wireless network to retrieve the stored password. This is further compounded by the inevitable question: “Why do I have to enter my password again?”

Over at the Ubuntu forums the same question has been asked. Thankfully, there is a resolve that will also be included in the Feisty release.

The easiest way for Ubuntu user is to download the .deb package of pam_keyring and install on your system.

Once installed, so the following:

  • Open a terminal window
  • Type cd /etc/pam.d
  • Type sudo gedit gdm
  • In the editor, and the following:
    ## Added so that NetworkManager doesn't keep asking for Keyring password.
    ## relies on having same password to keyring as login password.
    auth optional pam_keyring.so try_first_pass
    session optional pam_keyring.so

Save the file, and then try it out.

The catch is that the keyring manager must match your login password. If you have a different password set already, then the only way to make pam_keyring work is to delete your existing keyring and restart:
killall gnome-keyring-daemon
rm ~/.gnome2/keyrings/*
gnome-keyring-daemon

or alternatively change your login password to match your keyring.

Once you have entered the network key of the wireless LAN, you should find that passwords and automatically stored and retrieved.

And this works for any other Gnome applications that use the keyring too.

Linksys WPC54g Wireless Working in Ubuntu

I’ve just spent 3 hours playing around with trying to get wireless to play nicely.

Thankfully, after attempting various HOW-TOs that are out there, I managed to use the Windows drivers from the Linksys FTP site with ndiswrapper.

I also installed network-manager to get the whole thing rolling, and the wifi worked immediately after the final reboot.

If you’re having trouble with the Linksys (or Broadcom) wireless card, check out the Ubuntu forum and a guide to enable WPA and install Network Manager.

The main issue with using the NDIS driver is to add the naive Broadcom driver to the blacklist to prevent it loading in, as it will interfere otherwise. If you do not, you get this error:

bcm43xx Microcode “bcm43xx_microcode5.fw” not available or load failed

Well, I’d better get to bed.