Download location (HTTP): http://ftp.gnome.org/pub/GNOME/sources/gdm/2.4/gdm-2.4.1.3.tar.bz2 Download location (FTP): ftp://ftp.gnome.org/pub/GNOME/sources/gdm/2.4/gdm-2.4.1.3.tar.bz2 Version used: 2.4.1.3 Package size: 1.7 MB Estimated Disk space required: 34.8 MB Estimated build time: 2.28 SBU |
The gdm package contains GNOME's display manager daemon. This is useful for allowing configurable graphical logins.
gdm depends on: Linux_PAM-0.77, librsvg-2.2.4 and libgnome-2.2.0.1 gdm will utilize: tcpwrappers-7.6 |
Install gdm by running the following commands:
groupadd gdm && useradd -c gdm -d /dev/null -g gdm -s /bin/bash gdm && ./configure --prefix=$GNOME_PREFIX --sysconfdir=/etc/gnome \ --localstatedir=/var/lib --with-pam-prefix=/etc && make && make install |
--sysconfdir=/etc/gnome : This command puts configuration files in /etc/gnome instead of /opt/gnome2/etc.
--localstatedir=/var/lib : This command puts files in /var/lib instead of /opt/gnome2/var.
--with-pam-prefix=/etc : This command puts pam configuration files in /etc/pam.d instead of /etc/gnome.
/opt/gnome2/gdm.conf, /opt/gnome2/gnomerc
The gdm PAM config files contain modules not present in a BLFS installation. The following commands will replace those files:
cat > /etc/pam.d/gdm << "EOF" auth required pam_unix.so auth required 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 required pam_nologin.so auth required pam_permit.so account required pam_unix.so password required pam_unix.so session required pam_unix.so EOF |
gdm can be tested by executing it from a root console.
To automate the running of gdm, use the following command to create the init.d script if your GNOME_PREFIX=/opt/gnome-2.2. The fully qualified paths can be removed for GNOME_PREFIX=/usr:
cat > /etc/rc.d/init.d/gdm << "EOF" #!/bin/bash # Begin $rc_base/init.d/gdm # Based on sysklogd script from LFS-3.1 and earlier. # Rewritten by Gerard Beekmans - [email protected] source /etc/sysconfig/rc source $rc_functions case "$1" in start) echo "Starting gdm..." loadproc /opt/gnome-2.2/bin/gdm ;; stop) echo "Stopping gdm..." if [ -f /var/run/gdm.pid ]; then loadproc /opt/gnome-2.2/sbin/gdm-stop fi ;; reload) echo "Reloading gdm..." reloadproc /opt/gnome-2.2/sbin/gdm-safe-restart ;; restart) echo "Restarting gdm..." loadproc /opt/gnome-2.2/sbin/gdm-restart ;; *) echo "Usage: $0 {start|stop|reload|restart}" exit 1 ;; esac # End $rc_base/init.d/gdm EOF chmod 755 /etc/rc.d/init.d/gdm |
Create the symbolic links to this file in the relevant rc.d directory with the following commands:
cd /etc/rc.d/init.d && ln -sf ../init.d/gdm ../rc0.d/K05gdm && ln -sf ../init.d/gdm ../rc1.d/K05gdm && ln -sf ../init.d/gdm ../rc2.d/K05gdm && ln -sf ../init.d/gdm ../rc3.d/K05gdm && ln -sf ../init.d/gdm ../rc4.d/K05gdm && ln -sf ../init.d/gdm ../rc5.d/S95gdm && ln -sf ../init.d/gdm ../rc6.d/K05gdm |
To autostart with a graphical login, edit /etc/inittab so that the line reading
id:3:initdefault: |
id:5:initdefault: |
The gdm package contains gdm, gdm-binary, gdmXnestchooser, gdmchooser, gdmflexiserver, gdmgreeter, gdmlogin, gdmmktemp, gdmphotosetup, gdmsetup, gdmthemetester, gdm-restart, gdm-safe-restart, gdm-stop, gdmaskpass, gdmconfig and gdmopen.
gdm is a wrapper script to execute gdm-binary, the configurable GNOME-based login prompt.
gdmchooser is an application for selecting XDMCP enabled hosts on the local network.
gdmsetup is a graphical interface to edit the gdm.conf.
gdm-restart sends the HUP signal and gdm-safe-restart sends the USR1 signal to the daemon so that it restarts. They are used after the config file is edited.
gdmconfig is an application for managing the configuration of the entire GDM applications suite. It handles look and feel, security, XDMCP, GDMchooser and more.