Thursday, February 17, 2011

xscreensaver, pam & fluxbox

This is an update to the article xdm, pam & fluxbox. In this article I explained how to set xdm for use with pam and howto start fluxbox on Slackware. Now I want you to show how to add pam support for xscreensaver on Slackware. First grab a copy of the source for xscreensaver from the DVD (or CD):

# mount /dev/sr0 /mnt/dvd
# cp -r /mnt/dvd/source/xap/xscreensaver/ /usr/src/

Then change into the directory you have copied and edit the build file. Add the --with-pam line to the configure command (insert after line 90):

# vi xscreensaver.SlackBuild
  --with-gl \
  --with-pam \

Start the build script:

# sh xscreensaver.SlackBuild

If everything goes right you have a new xscreensaver package under /tmp. Uninstall first the old xscreensaver package and install the new one:

# removepkg xscreensaver && installpkg  /tmp/xscreensaver-5.11-i486-1.txz

To  activate xscreensaver during the startup of fluxbox add the xscreensaver command to your personal .xsession file:

$ vi ~/.xsession
setxkbmap -model pc104 -layout de
exec /usr/bin/xscreensaver -no-splash &
exec startfluxbox