1 | <sect2>
|
---|
2 | <title>Configuring <application>GDM</application></title>
|
---|
3 |
|
---|
4 | <sect3><title>Config files</title>
|
---|
5 | <para><filename>/opt/gnome2/gdm.conf</filename>, <filename>/opt/gnome2/gnomerc</filename></para>
|
---|
6 | </sect3>
|
---|
7 |
|
---|
8 | <sect3><title>Configuration Information</title>
|
---|
9 |
|
---|
10 | <para>The <application>GDM</application> <application>PAM</application>
|
---|
11 | config files contain modules not present in a <acronym>BLFS</acronym>
|
---|
12 | installation. The following commands will replace those files:</para>
|
---|
13 | <screen><userinput><command>cat > /etc/pam.d/gdm << "EOF"</command>
|
---|
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
|
---|
19 | <command>EOF
|
---|
20 | cat > /etc/pam.d/gdm-autologin << "EOF"</command>
|
---|
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
|
---|
27 | <command>EOF</command></userinput></screen>
|
---|
28 |
|
---|
29 | <para><command>gdm</command> can be tested by executing it from a root console.</para>
|
---|
30 |
|
---|
31 | <para>To automate the running of <command>gdm</command>, use the following command to
|
---|
32 | create the init.d script if your
|
---|
33 | GNOME_PREFIX=/opt/gnome-&gnome-version;. The fully qualified paths can
|
---|
34 | be removed for GNOME_PREFIX=/usr:</para>
|
---|
35 | <screen><userinput><command>cat > /etc/rc.d/init.d/gdm << "EOF"</command>
|
---|
36 | #!/bin/bash
|
---|
37 | # Begin $rc_base/init.d/gdm
|
---|
38 |
|
---|
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 /opt/gnome-&gnome-version;/bin/gdm
|
---|
49 | ;;
|
---|
50 |
|
---|
51 | stop)
|
---|
52 | echo "Stopping GDM..."
|
---|
53 | if [ -f /var/run/gdm.pid ]; then
|
---|
54 | loadproc /opt/gnome-&gnome-version;/sbin/gdm-stop
|
---|
55 | fi
|
---|
56 | ;;
|
---|
57 |
|
---|
58 | reload)
|
---|
59 | echo "Reloading GDM..."
|
---|
60 | reloadproc /opt/gnome-&gnome-version;/sbin/gdm-safe-restart
|
---|
61 | ;;
|
---|
62 |
|
---|
63 | restart)
|
---|
64 | echo "Restarting GDM..."
|
---|
65 | loadproc /opt/gnome-&gnome-version;/sbin/gdm-restart
|
---|
66 | ;;
|
---|
67 |
|
---|
68 | *)
|
---|
69 | echo "Usage: $0 {start|stop|reload|restart}"
|
---|
70 | exit 1
|
---|
71 | ;;
|
---|
72 | esac
|
---|
73 |
|
---|
74 | # End $rc_base/init.d/gdm
|
---|
75 | <command>EOF
|
---|
76 | chmod 755 /etc/rc.d/init.d/gdm</command></userinput></screen>
|
---|
77 |
|
---|
78 | <para>Create the symbolic links to this file in the relevant
|
---|
79 | <filename>rc.d</filename>
|
---|
80 | directory with the following commands:</para>
|
---|
81 | <screen><userinput><command>cd /etc/rc.d/init.d &&
|
---|
82 | ln -sf ../init.d/gdm ../rc0.d/K05gdm &&
|
---|
83 | ln -sf ../init.d/gdm ../rc1.d/K05gdm &&
|
---|
84 | ln -sf ../init.d/gdm ../rc2.d/K05gdm &&
|
---|
85 | ln -sf ../init.d/gdm ../rc3.d/K05gdm &&
|
---|
86 | ln -sf ../init.d/gdm ../rc4.d/K05gdm &&
|
---|
87 | ln -sf ../init.d/gdm ../rc5.d/S95gdm &&
|
---|
88 | ln -sf ../init.d/gdm ../rc6.d/K05gdm</command></userinput></screen>
|
---|
89 |
|
---|
90 | <para>To autostart with a graphical login, edit
|
---|
91 | <filename>/etc/inittab</filename> so that the line reading</para>
|
---|
92 | <screen>id:3:initdefault:</screen>
|
---|
93 | <para>is changed to</para>
|
---|
94 | <screen>id:5:initdefault:</screen>
|
---|
95 |
|
---|
96 | </sect3>
|
---|
97 |
|
---|
98 | </sect2>
|
---|
99 |
|
---|