2002-09-23 03:34:27 +08:00
|
|
|
<sect2>
|
2003-09-06 22:21:33 +08:00
|
|
|
<title>Configuring <application>gdm</application></title>
|
2002-09-23 03:34:27 +08:00
|
|
|
|
|
|
|
<sect3><title>Config files</title>
|
2003-04-21 06:15:01 +08:00
|
|
|
<para><filename>/opt/gnome2/gdm.conf</filename>, <filename>/opt/gnome2/gnomerc</filename></para>
|
2002-09-23 03:34:27 +08:00
|
|
|
</sect3>
|
|
|
|
|
|
|
|
<sect3><title>Configuration Information</title>
|
|
|
|
|
2003-09-06 22:21:33 +08:00
|
|
|
<para>The <application>gdm</application> <application>PAM</application>
|
|
|
|
config files contain modules not present in a <acronym>BLFS</acronym>
|
2002-11-25 05:12:08 +08:00
|
|
|
installation. The following commands will replace those files:</para>
|
2003-09-06 22:21:33 +08:00
|
|
|
<screen><userinput><command>cat > /etc/pam.d/gdm << "EOF"</command>
|
2002-09-23 22:22:03 +08:00
|
|
|
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
|
2003-09-28 02:46:10 +08:00
|
|
|
<command>EOF
|
|
|
|
cat > /etc/pam.d/gdm-autologin << "EOF"</command>
|
2002-09-23 22:22:03 +08:00
|
|
|
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
|
2003-09-06 22:21:33 +08:00
|
|
|
<command>EOF</command></userinput></screen>
|
2002-09-23 22:22:03 +08:00
|
|
|
|
2003-09-06 22:21:33 +08:00
|
|
|
<para><command>gdm</command> can be tested by executing it from a root console.</para>
|
2002-09-23 22:22:03 +08:00
|
|
|
|
2003-09-06 22:21:33 +08:00
|
|
|
<para>To automate the running of <command>gdm</command>, use the following command to
|
2003-09-28 02:46:10 +08:00
|
|
|
create the init.d script if your
|
|
|
|
GNOME_PREFIX=/opt/gnome-&gnome-version;. The fully qualified paths can
|
|
|
|
be removed for GNOME_PREFIX=/usr:</para>
|
2003-09-06 22:21:33 +08:00
|
|
|
<screen><userinput><command>cat > /etc/rc.d/init.d/gdm << "EOF"</command>
|
2002-11-25 05:12:08 +08:00
|
|
|
#!/bin/bash
|
|
|
|
# Begin $rc_base/init.d/gdm
|
2002-09-23 22:22:03 +08:00
|
|
|
|
2002-11-25 05:12:08 +08:00
|
|
|
# Based on sysklogd script from LFS-3.1 and earlier.
|
|
|
|
# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
|
|
|
|
|
|
|
|
source /etc/sysconfig/rc
|
|
|
|
source $rc_functions
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
start)
|
|
|
|
echo "Starting gdm..."
|
2003-02-16 06:30:49 +08:00
|
|
|
loadproc /opt/gnome-&gnome-version;/bin/gdm
|
2002-11-25 05:12:08 +08:00
|
|
|
;;
|
|
|
|
|
|
|
|
stop)
|
|
|
|
echo "Stopping gdm..."
|
2002-12-02 02:34:18 +08:00
|
|
|
if [ -f /var/run/gdm.pid ]; then
|
2003-02-16 06:30:49 +08:00
|
|
|
loadproc /opt/gnome-&gnome-version;/sbin/gdm-stop
|
2002-12-02 02:34:18 +08:00
|
|
|
fi
|
2002-11-25 05:12:08 +08:00
|
|
|
;;
|
|
|
|
|
|
|
|
reload)
|
|
|
|
echo "Reloading gdm..."
|
2003-02-16 06:30:49 +08:00
|
|
|
reloadproc /opt/gnome-&gnome-version;/sbin/gdm-safe-restart
|
2002-11-25 05:12:08 +08:00
|
|
|
;;
|
|
|
|
|
|
|
|
restart)
|
2002-11-25 06:28:31 +08:00
|
|
|
echo "Restarting gdm..."
|
2003-02-16 06:30:49 +08:00
|
|
|
loadproc /opt/gnome-&gnome-version;/sbin/gdm-restart
|
2002-11-25 05:12:08 +08:00
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
2002-11-25 06:28:31 +08:00
|
|
|
echo "Usage: $0 {start|stop|reload|restart}"
|
2002-11-25 05:12:08 +08:00
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
# End $rc_base/init.d/gdm
|
2003-09-06 22:21:33 +08:00
|
|
|
<command>EOF
|
2003-09-28 02:46:10 +08:00
|
|
|
chmod 755 /etc/rc.d/init.d/gdm</command></userinput></screen>
|
2002-11-25 05:12:08 +08:00
|
|
|
|
2003-04-22 00:48:50 +08:00
|
|
|
<para>Create the symbolic links to this file in the relevant
|
|
|
|
<filename>rc.d</filename>
|
2003-09-28 02:46:10 +08:00
|
|
|
directory with the following commands:</para>
|
2003-09-06 22:21:33 +08:00
|
|
|
<screen><userinput><command>cd /etc/rc.d/init.d &&
|
2002-11-25 05:12:08 +08:00
|
|
|
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 &&
|
2003-09-28 02:46:10 +08:00
|
|
|
ln -sf ../init.d/gdm ../rc6.d/K05gdm</command></userinput></screen>
|
2002-11-25 05:12:08 +08:00
|
|
|
|
|
|
|
<para>To autostart with a graphical login, edit
|
2003-09-28 02:46:10 +08:00
|
|
|
<filename>/etc/inittab</filename> so that the line reading</para>
|
2002-11-25 05:12:08 +08:00
|
|
|
<screen>id:3:initdefault:</screen>
|
2003-09-28 02:46:10 +08:00
|
|
|
<para>is changed to</para>
|
|
|
|
<screen>id:5:initdefault:</screen>
|
2002-09-23 22:22:03 +08:00
|
|
|
|
2002-09-23 03:34:27 +08:00
|
|
|
</sect3>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|