1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY gdm-download-http "&gnome-download-http;/gdm/&gnome-version;/gdm-&gdm-version;.tar.xz">
|
---|
8 | <!ENTITY gdm-download-ftp "&gnome-download-ftp;/gdm/&gnome-version;/gdm-&gdm-version;.tar.xz">
|
---|
9 | <!ENTITY gdm-md5sum "df3f38061066f5e0816676b4eef7854a">
|
---|
10 | <!ENTITY gdm-size "1.6 MB">
|
---|
11 | <!ENTITY gdm-buildsize "?? MB">
|
---|
12 | <!ENTITY gdm-time "?? SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="gdm" xreflabel="GDM-&gdm-version;">
|
---|
16 | <?dbhtml filename="gdm.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | </sect1info>
|
---|
22 |
|
---|
23 | <title>GDM-&gdm-version;</title>
|
---|
24 |
|
---|
25 | <indexterm zone="gdm">
|
---|
26 | <primary sortas="a-GDM">GDM</primary>
|
---|
27 | </indexterm>
|
---|
28 |
|
---|
29 | <sect2 role="package">
|
---|
30 | <title>Introduction to GDM</title>
|
---|
31 |
|
---|
32 | <para>The <application>GDM</application> package contains
|
---|
33 | <application>GNOME</application>'s Display Manager daemon. This is
|
---|
34 | useful for allowing configurable graphical logins.</para>
|
---|
35 |
|
---|
36 | <!-- &lfs67_checked; not for this version! -->
|
---|
37 |
|
---|
38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
39 | <itemizedlist spacing="compact">
|
---|
40 | <listitem>
|
---|
41 | <para>Download (HTTP): <ulink url="&gdm-download-http;"/></para>
|
---|
42 | </listitem>
|
---|
43 | <listitem>
|
---|
44 | <para>Download (FTP): <ulink url="&gdm-download-ftp;"/></para>
|
---|
45 | </listitem>
|
---|
46 | <listitem>
|
---|
47 | <para>Download MD5 sum: &gdm-md5sum;</para>
|
---|
48 | </listitem>
|
---|
49 | <listitem>
|
---|
50 | <para>Download size: &gdm-size;</para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>Estimated disk space required: &gdm-buildsize;</para>
|
---|
54 | </listitem>
|
---|
55 | <listitem>
|
---|
56 | <para>Estimated build time: &gdm-time;</para>
|
---|
57 | </listitem>
|
---|
58 | </itemizedlist>
|
---|
59 |
|
---|
60 | <!--<bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
61 | <itemizedlist spacing="compact">
|
---|
62 | <listitem>
|
---|
63 | <para>Required patch: <ulink
|
---|
64 | url="&patch-root;/gdm-&gdm-version;-fixes-1.patch"/></para>
|
---|
65 | </listitem>
|
---|
66 | </itemizedlist>-->
|
---|
67 |
|
---|
68 | <bridgehead renderas="sect3">GDM Dependencies</bridgehead>
|
---|
69 |
|
---|
70 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
71 | <para role="required"><xref linkend="accountsservice"/>,
|
---|
72 | <xref linkend="gnome-panel"/>,
|
---|
73 | <xref linkend="linux-pam"/>, and
|
---|
74 | <xref linkend="xorg7-lib"/></para>
|
---|
75 |
|
---|
76 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
77 | <para role="recommended"><xref linkend="consolekit"/>
|
---|
78 | (Required for Shutdown/Restart functionality) and
|
---|
79 | <xref linkend="polkit-gnome"/></para>
|
---|
80 |
|
---|
81 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
82 | <para role="optional">
|
---|
83 | <ulink url="http://check.sourceforge.net/">Check</ulink>,
|
---|
84 | <xref linkend="upower"/>,
|
---|
85 | <xref linkend="libxklavier"/>, and
|
---|
86 | <xref linkend="tcpwrappers"/></para>
|
---|
87 |
|
---|
88 | <para condition="html" role="usernotes">User Notes:
|
---|
89 | <ulink url="&blfs-wiki;/gdm"/></para>
|
---|
90 |
|
---|
91 | </sect2>
|
---|
92 |
|
---|
93 | <sect2 role="installation">
|
---|
94 | <title>Installation of GDM</title>
|
---|
95 |
|
---|
96 | <para>It is recommended to have a dedicated user and group to take
|
---|
97 | control of the <command>gdm-binary</command> daemon after it is
|
---|
98 | started. Issue the following commands as the
|
---|
99 | <systemitem class="username">root</systemitem> user:</para>
|
---|
100 |
|
---|
101 | <screen role='root'><userinput>groupadd -fg 21 gdm &&
|
---|
102 | useradd -c "GDM Daemon Owner" -d /var/lib/gdm -u 21 \
|
---|
103 | -g gdm -s /bin/false gdm || [ $? == 9 ]</userinput></screen>
|
---|
104 |
|
---|
105 | <para>Install <application>GDM</application> by running
|
---|
106 | the following commands as an unprivileged user:</para>
|
---|
107 |
|
---|
108 | <screen><userinput><!--patch -Np1 -i ../gdm-&gdm-version;-fixes-1.patch &&-->
|
---|
109 | ./configure --prefix=$GNOME_PREFIX \
|
---|
110 | --sysconfdir=$GNOME_SYSCONFDIR \
|
---|
111 | --libexecdir=$GNOME_PREFIX/lib/gdm \
|
---|
112 | --localstatedir=/var \
|
---|
113 | --with-pam-prefix=/etc &&
|
---|
114 | make</userinput></screen>
|
---|
115 |
|
---|
116 | <para>This package does not come with a test suite.</para>
|
---|
117 |
|
---|
118 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
119 |
|
---|
120 | <screen role='root'><userinput>make install &&
|
---|
121 | ln -fsv $GNOME_PREFIX/lib/gnome-settings-daemon-2.0/gnome-settings-daemon \
|
---|
122 | $GNOME_PREFIX/lib/gdm &&
|
---|
123 | ln -fsv /usr/lib/ConsoleKit/ck-get-x11-display-device \
|
---|
124 | $GNOME_PREFIX/lib/gdm &&
|
---|
125 | ln -fsv /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 \
|
---|
126 | $GNOME_PREFIX/lib/gdm
|
---|
127 | </userinput></screen>
|
---|
128 |
|
---|
129 | </sect2>
|
---|
130 |
|
---|
131 | <sect2 role="commands">
|
---|
132 | <title>Command Explanations</title>
|
---|
133 |
|
---|
134 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
135 | href="../../xincludes/gnome-prefix.xml"/>
|
---|
136 |
|
---|
137 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
138 | href="../../xincludes/gnome-sysconfdir.xml"/>
|
---|
139 |
|
---|
140 | <para><parameter>--libexecdir=$GNOME_PREFIX/lib/gdm</parameter>: This
|
---|
141 | parameter is used so that the <application>GDM</application> internal
|
---|
142 | support programs are installed in the preferred location of <filename
|
---|
143 | class='directory'>$GNOME_PREFIX/lib/gdm</filename> instead of <filename
|
---|
144 | class='directory'>$GNOME_PREFIX/libexec</filename>.</para>
|
---|
145 |
|
---|
146 | <para><parameter>--localstatedir=/var</parameter>: This command
|
---|
147 | puts files in <filename class="directory">/var</filename> instead of
|
---|
148 | <filename class="directory">$GNOME_PREFIX/var</filename>.</para>
|
---|
149 |
|
---|
150 | <para><parameter>--with-pam-prefix=/etc</parameter>: This command puts
|
---|
151 | <application>PAM</application> configuration files in
|
---|
152 | <filename class="directory">/etc/pam.d</filename> instead of
|
---|
153 | <filename class="directory">$GNOME_SYSCONFDIR</filename>.</para>
|
---|
154 |
|
---|
155 | </sect2>
|
---|
156 |
|
---|
157 | <sect2 role="configuration">
|
---|
158 | <title>Configuring GDM</title>
|
---|
159 |
|
---|
160 | <sect3 id="gdm-config">
|
---|
161 | <title>Config Files</title>
|
---|
162 |
|
---|
163 | <para><filename>$GNOME_SYSCONFDIR/gdm/custom.conf</filename></para>
|
---|
164 |
|
---|
165 | <indexterm zone="gdm gdm-config">
|
---|
166 | <primary sortas="e-etc-gnome-&gnome-version;&gnome-minor-version;gdm-custom.conf">
|
---|
167 | $GNOME_SYSCONFDIR/gdm/custom.conf</primary>
|
---|
168 | </indexterm>
|
---|
169 |
|
---|
170 | </sect3>
|
---|
171 |
|
---|
172 | <sect3>
|
---|
173 | <title>Configuration Information</title>
|
---|
174 |
|
---|
175 | <para>The GDM daemon is configured using the
|
---|
176 | <filename>$GNOME_SYSCONFDIR/gdm/custom.conf</filename> file.
|
---|
177 | Default values are stored in GConf in the
|
---|
178 | <filename>gdm.schemas</filename> file. It is recommended that end-users
|
---|
179 | modify the <filename>$GNOME_SYSCONFDIR/gdm/custom.conf</filename> file
|
---|
180 | because the schemas file may be overwritten when the user updates their
|
---|
181 | system to have a newer version of GDM.</para>
|
---|
182 |
|
---|
183 | <para>The <application>GDM</application> <application>PAM</application>
|
---|
184 | configuration files contain modules not present in a BLFS installation.
|
---|
185 | If you have <application>PAM</application> installed, issue the following
|
---|
186 | commands as the <systemitem class="username">root</systemitem> user to
|
---|
187 | replace those files with files containing correctly specified
|
---|
188 | modules:</para>
|
---|
189 |
|
---|
190 | <screen role="root"><userinput>cat > /etc/pam.d/gdm << "EOF"
|
---|
191 | <literal>auth required pam_env.so
|
---|
192 | auth required pam_unix.so
|
---|
193 | account required pam_nologin.so
|
---|
194 | account required pam_unix.so
|
---|
195 | password required pam_unix.so
|
---|
196 | session optional pam_keyinit.so force revoke
|
---|
197 | session required pam_unix.so
|
---|
198 | session required pam_loginuid.so
|
---|
199 | session optional pam_console.so</literal>
|
---|
200 |
|
---|
201 | EOF
|
---|
202 | cat > /etc/pam.d/gdm-autologin << "EOF"
|
---|
203 | <literal>auth required pam_env.so
|
---|
204 | auth required pam_permit.so
|
---|
205 | account required pam_nologin.so
|
---|
206 | account required pam_unix.so
|
---|
207 | password required pam_unix.so
|
---|
208 | session optional pam_keyinit.so force revoke
|
---|
209 | session required pam_unix.so
|
---|
210 | session required pam_loginuid.so
|
---|
211 | session optional pam_console.so</literal>
|
---|
212 |
|
---|
213 | EOF
|
---|
214 | cat > /etc/pam.d/gdm-welcome << "EOF"
|
---|
215 | <literal>auth required pam_env.so
|
---|
216 | auth required pam_permit.so
|
---|
217 | account required pam_nologin.so
|
---|
218 | account required pam_unix.so
|
---|
219 | password required pam_unix.so
|
---|
220 | session required pam_loginuid.so
|
---|
221 | session optional pam_keyinit.so force revoke
|
---|
222 | session required pam_unix.so</literal>
|
---|
223 |
|
---|
224 | EOF</userinput></screen>
|
---|
225 |
|
---|
226 | <indexterm zone="gdm gdm-config">
|
---|
227 | <primary sortas="e-etc-pam.d-gdm">/etc/pam.d/gdm</primary>
|
---|
228 | </indexterm>
|
---|
229 | <indexterm zone="gdm gdm-config">
|
---|
230 | <primary
|
---|
231 | sortas="e-etc-pam.d-gdm-autologin">/etc/pam.d/gdm-autologin</primary>
|
---|
232 | </indexterm>
|
---|
233 |
|
---|
234 | <para id="gdm-config-dbus">If you have <application>D-BUS</application>
|
---|
235 | installed and you want to start the session
|
---|
236 | <application>D-BUS</application> daemon when you start the GNOME desktop
|
---|
237 | environment using <command>gdm</command>, you'll need to create a new
|
---|
238 | Xsession file. Create the file using the following command as the root
|
---|
239 | user.</para>
|
---|
240 |
|
---|
241 | <screen role="root"><userinput>cat > $GNOME_PREFIX/share/xsessions/gnome-dbus.desktop << "EOF"
|
---|
242 | <literal>[Desktop Entry]
|
---|
243 | Encoding=UTF-8
|
---|
244 | Name=GNOME with D-BUS
|
---|
245 | Comment=GNOME Desktop with D-BUS support
|
---|
246 | Exec=dbus-launch --exit-with-session gnome-session
|
---|
247 | TryExec=/usr/bin/dbus-launch
|
---|
248 | Icon=
|
---|
249 | Type=Application</literal>
|
---|
250 |
|
---|
251 | EOF
|
---|
252 | chmod -v 644 $GNOME_PREFIX/share/xsessions/gnome-dbus.desktop</userinput></screen>
|
---|
253 |
|
---|
254 | <para>Choose this session using the session selection dialog on the
|
---|
255 | display manager login screen. You also have the opportunity to make this
|
---|
256 | your default session.</para>
|
---|
257 |
|
---|
258 | <note>
|
---|
259 | <para>You may use the <filename class='extension'>.desktop</filename>
|
---|
260 | file created above as an example to create additional
|
---|
261 | <filename class='extension'>.desktop</filename> files and add any other
|
---|
262 | desired items to the <application>GDM</application> display manager session
|
---|
263 | selection menu.</para>
|
---|
264 | </note>
|
---|
265 |
|
---|
266 | <important>
|
---|
267 | <para>If the system-wide <application>D-BUS</application> daemon was
|
---|
268 | running during the installation of <application>gdm</application>,
|
---|
269 | ensure you stop and restart the <application>D-BUS</application>
|
---|
270 | daemon before attempting to start <command>gdm</command>.</para>
|
---|
271 | </important>
|
---|
272 |
|
---|
273 | <para><command>gdm</command> can be tested by executing it as the
|
---|
274 | <systemitem class="username">root</systemitem> user. Use the
|
---|
275 | <command>gdm-stop</command> command if you wish to stop the display
|
---|
276 | manager.</para>
|
---|
277 |
|
---|
278 | </sect3>
|
---|
279 |
|
---|
280 | <sect3 id="gdm-init">
|
---|
281 | <title>Boot Script</title>
|
---|
282 |
|
---|
283 | <para>To start a graphical login when the system is booted, install the
|
---|
284 | <filename>/etc/rc.d/init.d/gdm</filename> init script included in the
|
---|
285 | <xref linkend="bootscripts"/> package. If your
|
---|
286 | <envar>GNOME_PREFIX</envar> environment variable is anything other than
|
---|
287 | <filename class='directory'>/usr</filename> or <filename
|
---|
288 | class='directory'>/opt/gnome-&gnome-version;&gnome-minor-version;</filename>,
|
---|
289 | you will need to modify the <envar>PATH</envar> statement in the script
|
---|
290 | to include the path where you have <application>GNOME</application>
|
---|
291 | installed.</para>
|
---|
292 |
|
---|
293 | <indexterm zone="gdm gdm-init">
|
---|
294 | <primary sortas="f-gdm">gdm</primary>
|
---|
295 | </indexterm>
|
---|
296 |
|
---|
297 | <screen role="root"><userinput>make install-gdm</userinput></screen>
|
---|
298 |
|
---|
299 | <para>Now edit <filename>/etc/inittab</filename> with the following
|
---|
300 | commands.</para>
|
---|
301 |
|
---|
302 | <screen role="root"><userinput>sed -i 's/id:3:initdefault:/id:5:initdefault:/' \
|
---|
303 | /etc/inittab</userinput></screen>
|
---|
304 |
|
---|
305 | </sect3>
|
---|
306 |
|
---|
307 | </sect2>
|
---|
308 |
|
---|
309 | <sect2 role="content">
|
---|
310 | <title>Contents</title>
|
---|
311 |
|
---|
312 | <segmentedlist>
|
---|
313 | <segtitle>Installed Programs</segtitle>
|
---|
314 | <segtitle>Installed Libraries</segtitle>
|
---|
315 | <segtitle>Installed Directories</segtitle>
|
---|
316 |
|
---|
317 | <seglistitem>
|
---|
318 | <seg>Default, Default.sample, Default, Default, Xsession, gdm,
|
---|
319 | gdm-screenshot, gdmflexiserver, gdm-crash-logger, gdm-factory-slave,
|
---|
320 | gdm-host-chooser, gdm-product-slave, gdm-session-worker,
|
---|
321 | gdm-simple-chooser, gdm-simple-greeter, gdm-simple-slave,
|
---|
322 | gdm-user-switch-applet, gdm-xdmcp-chooser-slave, gdm, and gdm-binary</seg>
|
---|
323 | <seg>None</seg>
|
---|
324 | <seg>$GNOME_SYSCONFDIR/gdm/{Init,PostLogin,PostSession,PreSession},
|
---|
325 | <envar>$GNOME_PREFIX</envar>/{lib/gdm,share/{gnome/help/gdm/*,omf/gdm,
|
---|
326 | pixmaps/faces}},
|
---|
327 | /var/{cache/gdm,gdm,lib/gdm/.gconf.mandatory,log/gdm,
|
---|
328 | run/gdm/greeter}</seg>
|
---|
329 | </seglistitem>
|
---|
330 | </segmentedlist>
|
---|
331 |
|
---|
332 | <variablelist>
|
---|
333 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
334 | <?dbfo list-presentation="list"?>
|
---|
335 | <?dbhtml list-presentation="table"?>
|
---|
336 |
|
---|
337 | <varlistentry id="gdmflexiserver">
|
---|
338 | <term><command>gdmflexiserver</command></term>
|
---|
339 | <listitem>
|
---|
340 | <para>is the flexi server mechanism which allows to run GDM sessions
|
---|
341 | on demand, in a new virtual console.</para>
|
---|
342 | <indexterm zone="gdm gdmflexiserver">
|
---|
343 | <primary sortas="b-gdmflexiserver">gdmflexiserver</primary>
|
---|
344 | </indexterm>
|
---|
345 | </listitem>
|
---|
346 | </varlistentry>
|
---|
347 |
|
---|
348 | <varlistentry id="gdm-screenshot">
|
---|
349 | <term><command>gdm-screenshot</command></term>
|
---|
350 | <listitem>
|
---|
351 | <para>is a screenshot tool.</para>
|
---|
352 | <indexterm zone="gdm gdm-screenshot">
|
---|
353 | <primary sortas="b-gdm-screenshot">gdm-screenshot</primary>
|
---|
354 | </indexterm>
|
---|
355 | </listitem>
|
---|
356 | </varlistentry>
|
---|
357 |
|
---|
358 | <varlistentry id="gdm-prog">
|
---|
359 | <term><command>gdm</command></term>
|
---|
360 | <listitem>
|
---|
361 | <para>is a wrapper script to execute the
|
---|
362 | <application>GDM</application> binary, the configurable
|
---|
363 | <application>GNOME</application> based login prompt.</para>
|
---|
364 | <indexterm zone="gdm gdm-prog">
|
---|
365 | <primary sortas="b-gdm">gdm</primary>
|
---|
366 | </indexterm>
|
---|
367 | </listitem>
|
---|
368 | </varlistentry>
|
---|
369 |
|
---|
370 | <varlistentry id="gdm-binary">
|
---|
371 | <term><command>gdm-binary</command></term>
|
---|
372 | <listitem>
|
---|
373 | <para>is the <application>GNOME</application> based login prompt.</para>
|
---|
374 | <indexterm zone="gdm gdm-binary">
|
---|
375 | <primary sortas="b-gdm-binary">gdm-binary</primary>
|
---|
376 | </indexterm>
|
---|
377 | </listitem>
|
---|
378 | </varlistentry>
|
---|
379 |
|
---|
380 | <!--<varlistentry id="gdm-restart">
|
---|
381 | <term><command>gdm-restart</command></term>
|
---|
382 | <listitem>
|
---|
383 | <para>sends the HUP signal to the <application>GDM</application>
|
---|
384 | daemon so that it restarts. It's used after the config file
|
---|
385 | is edited</para>
|
---|
386 | <indexterm zone="gdm gdm-restart">
|
---|
387 | <primary sortas="b-gdm-restart">gdm-restart</primary>
|
---|
388 | </indexterm>
|
---|
389 | </listitem>
|
---|
390 | </varlistentry>
|
---|
391 |
|
---|
392 | <varlistentry id="gdm-safe-restart">
|
---|
393 | <term><command>gdm-safe-restart</command></term>
|
---|
394 | <listitem>
|
---|
395 | <para>sends the USR1 signal to the <application>GDM</application>
|
---|
396 | daemon so that it restarts. It's used after the config file
|
---|
397 | is edited.</para>
|
---|
398 | <indexterm zone="gdm gdm-safe-restart">
|
---|
399 | <primary sortas="b-gdm-safe-restart">gdm-safe-restart</primary>
|
---|
400 | </indexterm>
|
---|
401 | </listitem>
|
---|
402 | </varlistentry>
|
---|
403 |
|
---|
404 | <varlistentry id="gdm-stop">
|
---|
405 | <term><command>gdm-stop</command></term>
|
---|
406 | <listitem>
|
---|
407 | <para>sends the TERM signal to the <application>GDM</application>
|
---|
408 | daemon so that it stops. It's used after the config file is
|
---|
409 | edited.</para>
|
---|
410 | <indexterm zone="gdm gdm-stop">
|
---|
411 | <primary sortas="b-gdm-stop">gdm-stop</primary>
|
---|
412 | </indexterm>
|
---|
413 | </listitem>
|
---|
414 | </varlistentry>-->
|
---|
415 |
|
---|
416 | </variablelist>
|
---|
417 |
|
---|
418 | </sect2>
|
---|
419 |
|
---|
420 | </sect1>
|
---|