The first thing that need to be done is to grab a copy from the source Patrick uses for xdm. You can
find it on the CD/DVD under the source directory. Then extract the software and recompile xdm with the following commands:
# cp /mnt/dvd/source/x/x11/src/app/xdm-1.1.10.tar.xz /root
# cd /root
# tar xf xdm-1.1.10.tar.xz
# cd xdm-1.1.10
Before you continue make sure which architecture you're using. For 32Bit use the following command:
# ./configure --with-pam --prefix=/usr
For 64Bit use this configure command:
# ./configure --with-pam --prefix=/usr --libdir=/usr/lib64
Finally compile and install:
# make && make install
After that your xdm should be linked against libpam:
# ldd /usr/bin/xdm
...
libpam.so.0 => /lib/libpam.so.0 (0xb7525000)
...
Then copy the pam rules for xdm (or create a new set):
# cd /etc/pam.d
# cp login xdm
If you now change the Runlevel from e.g. 3 to 4, then the xdm should appear. When you login as a user then the default window-manager twm will appear. To change the window-manager from twm to fluxbox create a file called .xsession (for the specific user):
$ vi ~/.xsession
setxkbmap -model pc104 -layout de
exec startfluxbox
exec startfluxbox
The first line will change the keyboard layout for the specific user and the second line starts the desired window-manager.
No comments:
Post a Comment