[21ed669] | 1 | <sect2>
|
---|
| 2 | <title>Configuring gdm</title>
|
---|
| 3 |
|
---|
| 4 | <sect3><title>Config files</title>
|
---|
| 5 | <para><userinput>/opt/gnome2/gdm.conf /opt/gnome2/gnomerc</userinput></para>
|
---|
| 6 | </sect3>
|
---|
| 7 |
|
---|
| 8 | <sect3><title>Configuration Information</title>
|
---|
| 9 |
|
---|
[2f66c98] | 10 | <para>The gdm PAM config files contain modules not present in a BLFS
|
---|
[d718dddd] | 11 | installation. The following commands will replace those files:</para>
|
---|
[2f66c98] | 12 | <screen><userinput>cat > /etc/pam.d/gdm << "EOF"</userinput>
|
---|
| 13 | auth required pam_unix.so
|
---|
| 14 | auth required pam_nologin.so
|
---|
| 15 | account required pam_unix.so
|
---|
| 16 | password required pam_unix.so
|
---|
| 17 | session required pam_unix.so
|
---|
| 18 | <userinput>EOF</userinput></screen>
|
---|
| 19 | <screen><userinput>cat > /etc/pam.d/gdm-autologin << "EOF"</userinput>
|
---|
| 20 | auth required pam_env.so
|
---|
| 21 | auth required pam_nologin.so
|
---|
| 22 | auth required pam_permit.so
|
---|
| 23 | account required pam_unix.so
|
---|
| 24 | password required pam_unix.so
|
---|
| 25 | session required pam_unix.so
|
---|
| 26 | <userinput>EOF</userinput></screen>
|
---|
| 27 |
|
---|
[d718dddd] | 28 | <para>gdm can be tested by executing it from a root console.</para>
|
---|
[2f66c98] | 29 |
|
---|
[d718dddd] | 30 | <para>To automate the running of gdm, use the following command to
|
---|
| 31 | create the init.d script:
|
---|
| 32 | <screen><userinput>cat > /etc/rc.d/init.d/gdm << "EOF"</userinput>
|
---|
| 33 | #!/bin/bash
|
---|
| 34 | # Begin $rc_base/init.d/gdm
|
---|
[2f66c98] | 35 |
|
---|
[d718dddd] | 36 | # Based on sysklogd script from LFS-3.1 and earlier.
|
---|
| 37 | # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
|
---|
| 38 |
|
---|
| 39 | source /etc/sysconfig/rc
|
---|
| 40 | source $rc_functions
|
---|
| 41 |
|
---|
| 42 | case "$1" in
|
---|
| 43 | start)
|
---|
| 44 | echo "Starting gdm..."
|
---|
[1b12c18] | 45 | loadproc /opt/gnome2/bin/gdm
|
---|
[d718dddd] | 46 | ;;
|
---|
| 47 |
|
---|
| 48 | stop)
|
---|
| 49 | echo "Stopping gdm..."
|
---|
[ac931bb] | 50 | if [ -f /var/run/gdm.pid ]; then
|
---|
[1b12c18] | 51 | loadproc /opt/gnome2/sbin/gdm-stop
|
---|
[ac931bb] | 52 | fi
|
---|
[d718dddd] | 53 | ;;
|
---|
| 54 |
|
---|
| 55 | reload)
|
---|
| 56 | echo "Reloading gdm..."
|
---|
[1b12c18] | 57 | reloadproc /opt/gnome2/sbin/gdm-safe-restart
|
---|
[d718dddd] | 58 | ;;
|
---|
| 59 |
|
---|
| 60 | restart)
|
---|
[1b12c18] | 61 | echo "Restarting gdm..."
|
---|
| 62 | loadproc /opt/gnome2/sbin/gdm-restart
|
---|
[d718dddd] | 63 | ;;
|
---|
| 64 |
|
---|
| 65 | *)
|
---|
[1b12c18] | 66 | echo "Usage: $0 {start|stop|reload|restart}"
|
---|
[d718dddd] | 67 | exit 1
|
---|
| 68 | ;;
|
---|
| 69 | esac
|
---|
| 70 |
|
---|
| 71 | # End $rc_base/init.d/gdm
|
---|
[b6c918a] | 72 | <userinput>EOF
|
---|
[d718dddd] | 73 | chmod 755 /etc/rc.d/init.d/gdm</userinput></screen></para>
|
---|
| 74 |
|
---|
| 75 | <para>Create the symbolic links to this file in the relevant rc.d
|
---|
| 76 | directory with the following commands:
|
---|
| 77 | <screen><userinput>cd /etc/rc.d/init.d &&
|
---|
| 78 | ln -sf ../init.d/gdm ../rc0.d/K05gdm &&
|
---|
| 79 | ln -sf ../init.d/gdm ../rc1.d/K05gdm &&
|
---|
| 80 | ln -sf ../init.d/gdm ../rc2.d/K05gdm &&
|
---|
| 81 | ln -sf ../init.d/gdm ../rc3.d/K05gdm &&
|
---|
| 82 | ln -sf ../init.d/gdm ../rc4.d/K05gdm &&
|
---|
| 83 | ln -sf ../init.d/gdm ../rc5.d/S95gdm &&
|
---|
| 84 | ln -sf ../init.d/gdm ../rc6.d/K05gdm</userinput></screen></para>
|
---|
| 85 |
|
---|
| 86 | <para>To autostart with a graphical login, edit
|
---|
| 87 | <filename>/etc/inittab</filename> so that the line reading
|
---|
| 88 | <screen>id:3:initdefault:</screen>
|
---|
| 89 | is changed to
|
---|
| 90 | <screen>id:5:initdefault:</screen></para>
|
---|
[2f66c98] | 91 |
|
---|
[21ed669] | 92 | </sect3>
|
---|
| 93 |
|
---|
| 94 | </sect2>
|
---|
| 95 |
|
---|