[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 |
|
---|
[b6c918a] | 30 | <warning><para>This point forward is alpha (it does not work), but is
|
---|
| 31 | close to where it's going.</para></warning>
|
---|
| 32 |
|
---|
[d718dddd] | 33 | <para>To automate the running of gdm, use the following command to
|
---|
| 34 | create the init.d script:
|
---|
| 35 | <screen><userinput>cat > /etc/rc.d/init.d/gdm << "EOF"</userinput>
|
---|
| 36 | #!/bin/bash
|
---|
| 37 | # Begin $rc_base/init.d/gdm
|
---|
[2f66c98] | 38 |
|
---|
[d718dddd] | 39 | # Based on sysklogd script from LFS-3.1 and earlier.
|
---|
| 40 | # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
|
---|
| 41 |
|
---|
| 42 | source /etc/sysconfig/rc
|
---|
| 43 | source $rc_functions
|
---|
| 44 |
|
---|
| 45 | case "$1" in
|
---|
| 46 | start)
|
---|
| 47 | echo "Starting gdm..."
|
---|
| 48 | loadproc gdm
|
---|
| 49 | ;;
|
---|
| 50 |
|
---|
| 51 | stop)
|
---|
| 52 | echo "Stopping gdm..."
|
---|
| 53 | killproc gdm
|
---|
| 54 | ;;
|
---|
| 55 |
|
---|
| 56 | reload)
|
---|
| 57 | echo "Reloading gdm..."
|
---|
| 58 | reloadproc gdm
|
---|
| 59 | ;;
|
---|
| 60 |
|
---|
| 61 | restart)
|
---|
| 62 | $0 stop
|
---|
| 63 | sleep 1
|
---|
| 64 | $0 start
|
---|
| 65 | ;;
|
---|
| 66 |
|
---|
| 67 | status)
|
---|
| 68 | statusproc gdm
|
---|
| 69 | ;;
|
---|
| 70 |
|
---|
| 71 | *)
|
---|
| 72 | echo "Usage: $0 {start|stop|reload|restart|status}"
|
---|
| 73 | exit 1
|
---|
| 74 | ;;
|
---|
| 75 | esac
|
---|
| 76 |
|
---|
| 77 | # End $rc_base/init.d/gdm
|
---|
[b6c918a] | 78 | <userinput>EOF
|
---|
[d718dddd] | 79 | chmod 755 /etc/rc.d/init.d/gdm</userinput></screen></para>
|
---|
| 80 |
|
---|
| 81 | <para>Create the symbolic links to this file in the relevant rc.d
|
---|
| 82 | directory with the following commands:
|
---|
| 83 | <screen><userinput>cd /etc/rc.d/init.d &&
|
---|
| 84 | ln -sf ../init.d/gdm ../rc0.d/K05gdm &&
|
---|
| 85 | ln -sf ../init.d/gdm ../rc1.d/K05gdm &&
|
---|
| 86 | ln -sf ../init.d/gdm ../rc2.d/K05gdm &&
|
---|
| 87 | ln -sf ../init.d/gdm ../rc3.d/K05gdm &&
|
---|
| 88 | ln -sf ../init.d/gdm ../rc4.d/K05gdm &&
|
---|
| 89 | ln -sf ../init.d/gdm ../rc5.d/S95gdm &&
|
---|
| 90 | ln -sf ../init.d/gdm ../rc6.d/K05gdm</userinput></screen></para>
|
---|
| 91 |
|
---|
| 92 | <para>To autostart with a graphical login, edit
|
---|
| 93 | <filename>/etc/inittab</filename> so that the line reading
|
---|
| 94 | <screen>id:3:initdefault:</screen>
|
---|
| 95 | is changed to
|
---|
| 96 | <screen>id:5:initdefault:</screen></para>
|
---|
[2f66c98] | 97 |
|
---|
[21ed669] | 98 | </sect3>
|
---|
| 99 |
|
---|
| 100 | </sect2>
|
---|
| 101 |
|
---|