Configuration Information
Starting with the 2.14.x version of GNOME, the default
configuration parameters are stored in a static file
($GNOME_PREFIX
/share/gdm/defaults.conf
).
This file is not intended to be edited. If modification of the
configuration is necessary, you should add parameters to the
/etc/gnome/2.18.3/gdm/custom.conf
file. The settings in this file will override the settings in the
static file. The same parameters in the static file are used in
the configuration file.
Change the directory containing the GDM log files to the /var/log
hierarchy by creating a directory and
modifying the /etc/gnome/2.18.3/gdm/custom.conf
configuration
file. Issue the following commands as the root
user:
install -v -m755 -d /var/log/gdm &&
sed -i.orig "/\[daemon\]/ a LogDir=/var/log/gdm" \
/etc/gnome/2.18.3/gdm/custom.conf &&
rmdir -v /var/lib/log/gdm &&
rmdir -v /var/lib/log
The GDM PAM configuration files contain modules not
present in a BLFS installation. If you have PAM installed, issue the following commands
as the root
user to replace those
files with files containing correctly specified modules:
cat > /etc/pam.d/gdm << "EOF"
auth required pam_unix.so
auth requisite pam_nologin.so
account required pam_unix.so
password required pam_unix.so
session required pam_unix.so
EOF
cat > /etc/pam.d/gdm-autologin << "EOF"
auth required pam_env.so
auth requisite pam_nologin.so
auth required pam_permit.so
account required pam_unix.so
password required pam_unix.so
session required pam_unix.so
EOF
If you have
D-BUS installed and you want to
start the session D-BUS daemon
when you start the GNOME desktop environment using gdm, you'll need to create a
new Xsession file. Create the file using the following command as
the root user.
cat > $GNOME_PREFIX/share/xsessions/gnome-dbus.desktop << "EOF"
[Desktop Entry]
Encoding=UTF-8
Name=GNOME with D-BUS
Comment=GNOME Desktop with D-BUS support
Exec=dbus-launch --exit-with-session gnome-session
TryExec=/usr/bin/dbus-launch
Icon=
Type=Application
EOF
chmod -v 644 $GNOME_PREFIX/share/xsessions/gnome-dbus.desktop
Choose this session using the session selection dialog on the
display manager login screen. You also have the opportunity to
make this your default session.
Note
You may use the .desktop
file
created above as an example to create additional .desktop
files and add any other desired
items to the GDM display
manager session selection menu.
gdm can be tested
by executing it as the root
user.
Use the gdm-stop
command if you wish to stop the display manager.
Boot Script
To start a graphical login when the system is booted, install the
/etc/rc.d/init.d/gdm
init script
included in the blfs-bootscripts-20080816 package. If
your GNOME_PREFIX
environment variable
is anything other than /usr
or
/opt/gnome-2.18.3
, you will need to
modify the PATH
statement in the
script to include the path where you have GNOME installed.
make install-gdm
Now edit /etc/inittab
so that the
line containing:
id:3:initdefault:
is changed to:
id:5:initdefault: