Q Beyond LFS
You did an excellent couple of articles on Linux From Scratch (LXF286 and LXF287). It is a great project. Very educational. However I came a cropper when I progressed to Beyond Linux From Scratch. I cannot get Gnome Keyring to load without asking for a password every time (Evolution is using this). I have this line in my .config/openbox/environment file to start it:
eval $(gnome-keyring-daemon)
From extensive ‘Quacking’, I have tried all sorts of tricks with PAM settings and so on. I am using the same password on the keyring as my login password.
Francis Greaves
A In order for Gnome Keyring to unlock automatically, it has to be started by PAM. First you have to make sure PAM is built with the correct options, which are --enable-pam and --with-pamdir=/lib64/security. The directory passed to the latter option is the one containing the PAM libraries, such as pam_unix.so. Then you need to configure PAM accordingly. Edit /etc/pam.d/gdm to add
auth optional pam_gnome_keyring.so to the end of the auth block and
session optional pam_gnome_keyring.so auto_start
to the end of the session block. In the file /etc/pam.d/gdm, add:
auth optional pam_gnome_keyring.so and:
session optional pam_gnome_keyring.so auto_start
to the auth and session blocks respectively. Finally, add:
password optional pam_gnome_keyring. so
to the password block of /etc/pam.d/ passwd. This starts the Gnome Keyring daemon and opens a keyring called login. If the keyring does not exist, it is created, with the same password as your user. When you open