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