source: gnome/core/gdm.xml@ 63310fe

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 63310fe was 63310fe, checked in by Ken Moffat <ken@…>, 12 years ago

Tags and fixes for gnome-screensaver and gdm.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@9832 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 15.8 KB
Line 
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 "59 MB">
12 <!ENTITY gdm-time "0.7 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 &lfs70_built;
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 <xref linkend='check'/> (required to run the testsuite),
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 &amp;&amp;
102useradd -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 &amp;&amp;-->
109./configure --prefix=$GNOME_PREFIX \
110 --sysconfdir=$GNOME_SYSCONFDIR \
111 --libexecdir=$GNOME_PREFIX/lib/gdm \
112 --localstatedir=/var \
113 --with-pam-prefix=/etc \
114 --enable-static=no &amp;&amp;
115make</userinput></screen>
116
117 <para>If you have installed <xref linkend="check"/> and you wish to run
118 the testsuite, issue: <command>make check</command>.</para>
119
120 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
121
122<screen role='root'><userinput>make install &amp;&amp;
123<!-- fixed by assumption
124ln -fsv $GNOME_PREFIX/lib/gnome-settings-daemon-2.0/gnome-settings-daemon \
125 $GNOME_PREFIX/lib/gdm &amp;&amp;-->
126ln -fsv $GNOME_PREFIX/lib/gnome-settings-daemon/gnome-settings-daemon \
127 $GNOME_PREFIX/lib/gdm &amp;&amp;
128ln -fsv /usr/lib/ConsoleKit/ck-get-x11-display-device \
129 $GNOME_PREFIX/lib/gdm &amp;&amp;
130ln -fsv /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 \
131 $GNOME_PREFIX/lib/gdm
132</userinput></screen>
133
134 </sect2>
135
136 <sect2 role="commands">
137 <title>Command Explanations</title>
138
139 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
140 href="../../xincludes/gnome-prefix.xml"/>
141
142 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
143 href="../../xincludes/gnome-sysconfdir.xml"/>
144
145 <para><parameter>--libexecdir=$GNOME_PREFIX/lib/gdm</parameter>: This
146 parameter is used so that the <application>GDM</application> internal
147 support programs are installed in the preferred location of <filename
148 class='directory'>$GNOME_PREFIX/lib/gdm</filename> instead of <filename
149 class='directory'>$GNOME_PREFIX/libexec</filename>.</para>
150
151 <para><parameter>--localstatedir=/var</parameter>: This command
152 puts files in <filename class="directory">/var</filename> instead of
153 <filename class="directory">$GNOME_PREFIX/var</filename>.</para>
154
155 <para><parameter>--with-pam-prefix=/etc</parameter>: This command puts
156 <application>PAM</application> configuration files in
157 <filename class="directory">/etc/pam.d</filename> instead of
158 <filename class="directory">$GNOME_SYSCONFDIR</filename>.</para>
159
160 <para><parameter>--enable-static=no</parameter>: This switch prevents the static
161 libraries being installed.</para>
162
163 </sect2>
164
165 <sect2 role="configuration">
166 <title>Configuring GDM</title>
167
168 <sect3 id="gdm-config">
169 <title>Config Files</title>
170
171 <para><filename>$GNOME_SYSCONFDIR/gdm/custom.conf</filename></para>
172
173 <indexterm zone="gdm gdm-config">
174 <primary sortas="e-etc-gnome-&gnome-version;&gnome-minor-version;gdm-custom.conf">
175 $GNOME_SYSCONFDIR/gdm/custom.conf</primary>
176 </indexterm>
177
178 </sect3>
179
180 <sect3>
181 <title>Configuration Information</title>
182
183 <para>The GDM daemon is configured using the
184 <filename>$GNOME_SYSCONFDIR/gdm/custom.conf</filename> file.
185 Default values are stored in GConf in the
186 <filename>gdm.schemas</filename> file. It is recommended that end-users
187 modify the <filename>$GNOME_SYSCONFDIR/gdm/custom.conf</filename> file
188 because the schemas file may be overwritten when the user updates their
189 system to have a newer version of GDM.</para>
190
191 <para>The <application>GDM</application> <application>PAM</application>
192 configuration files contain modules not present in a BLFS installation.
193 If you have <application>PAM</application> installed, issue the following
194 commands as the <systemitem class="username">root</systemitem> user to
195 replace those files with files containing correctly specified
196 modules:</para>
197
198<screen role="root"><userinput>cat &gt; /etc/pam.d/gdm &lt;&lt; "EOF"
199<literal>auth required pam_env.so
200auth required pam_unix.so
201account required pam_nologin.so
202account required pam_unix.so
203password required pam_unix.so
204session optional pam_keyinit.so force revoke
205session required pam_unix.so
206session required pam_loginuid.so
207session optional pam_console.so</literal>
208
209EOF
210cat &gt; /etc/pam.d/gdm-autologin &lt;&lt; "EOF"
211<literal>auth required pam_env.so
212auth required pam_permit.so
213account required pam_nologin.so
214account required pam_unix.so
215password required pam_unix.so
216session optional pam_keyinit.so force revoke
217session required pam_unix.so
218session required pam_loginuid.so
219session optional pam_console.so</literal>
220
221EOF
222cat &gt; /etc/pam.d/gdm-welcome &lt;&lt; "EOF"
223<literal>auth required pam_env.so
224auth required pam_permit.so
225account required pam_nologin.so
226account required pam_unix.so
227password required pam_unix.so
228session required pam_loginuid.so
229session optional pam_keyinit.so force revoke
230session required pam_unix.so</literal>
231
232EOF</userinput></screen>
233
234 <indexterm zone="gdm gdm-config">
235 <primary sortas="e-etc-pam.d-gdm">/etc/pam.d/gdm</primary>
236 </indexterm>
237 <indexterm zone="gdm gdm-config">
238 <primary
239 sortas="e-etc-pam.d-gdm-autologin">/etc/pam.d/gdm-autologin</primary>
240 </indexterm>
241
242 <para id="gdm-config-dbus">If you have <application>D-BUS</application>
243 installed and you want to start the session
244 <application>D-BUS</application> daemon when you start the GNOME desktop
245 environment using <command>gdm</command>, you'll need to create a new
246 Xsession file. Create the file using the following command as the root
247 user.</para>
248
249<screen role="root"><userinput>cat &gt; $GNOME_PREFIX/share/xsessions/gnome-dbus.desktop &lt;&lt; "EOF"
250<literal>[Desktop Entry]
251Encoding=UTF-8
252Name=GNOME with D-BUS
253Comment=GNOME Desktop with D-BUS support
254Exec=dbus-launch --exit-with-session gnome-session
255TryExec=/usr/bin/dbus-launch
256Icon=
257Type=Application</literal>
258
259EOF
260chmod -v 644 $GNOME_PREFIX/share/xsessions/gnome-dbus.desktop</userinput></screen>
261
262 <para>Choose this session using the session selection dialog on the
263 display manager login screen. You also have the opportunity to make this
264 your default session.</para>
265
266 <note>
267 <para>You may use the <filename class='extension'>.desktop</filename>
268 file created above as an example to create additional
269 <filename class='extension'>.desktop</filename> files and add any other
270 desired items to the <application>GDM</application> display manager session
271 selection menu.</para>
272 </note>
273
274 <important>
275 <para>If the system-wide <application>D-BUS</application> daemon was
276 running during the installation of <application>gdm</application>,
277 ensure you stop and restart the <application>D-BUS</application>
278 daemon before attempting to start <command>gdm</command>.</para>
279 </important>
280
281 <para><command>gdm</command> can be tested by executing it as the
282 <systemitem class="username">root</systemitem> user. Use the
283 <command>gdm-stop</command> command if you wish to stop the display
284 manager.</para>
285
286 </sect3>
287
288 <sect3 id="gdm-init">
289 <title>Boot Script</title>
290
291 <para>To start a graphical login when the system is booted, install the
292 <filename>/etc/rc.d/init.d/gdm</filename> init script included in the
293 <xref linkend="bootscripts"/> package. If your
294 <envar>GNOME_PREFIX</envar> environment variable is anything other than
295 <filename class='directory'>/usr</filename> or <filename
296 class='directory'>/opt/gnome-&gnome-version;&gnome-minor-version;</filename>,
297 you will need to modify the <envar>PATH</envar> statement in the script
298 to include the path where you have <application>GNOME</application>
299 installed.</para>
300
301 <indexterm zone="gdm gdm-init">
302 <primary sortas="f-gdm">gdm</primary>
303 </indexterm>
304
305<screen role="root"><userinput>make install-gdm</userinput></screen>
306
307 <para>Now edit <filename>/etc/inittab</filename> with the following
308 commands.</para>
309
310<screen role="root"><userinput>sed -i 's/id:3:initdefault:/id:5:initdefault:/' \
311 /etc/inittab</userinput></screen>
312
313 </sect3>
314
315 </sect2>
316
317 <sect2 role="content">
318 <title>Contents</title>
319
320 <segmentedlist>
321 <segtitle>Installed Programs</segtitle>
322 <segtitle>Installed Libraries</segtitle>
323 <segtitle>Installed Directories</segtitle>
324
325 <seglistitem>
326 <seg>Default, Default.sample, Default, Default, Xsession, gdm,
327 gdm-screenshot, gdmflexiserver, gdm-crash-logger, gdm-factory-slave,
328 gdm-host-chooser, gdm-product-slave, gdm-session-worker,
329 gdm-simple-chooser, gdm-simple-greeter, gdm-simple-slave,
330 gdm-user-switch-applet, gdm-xdmcp-chooser-slave, gdm, and gdm-binary</seg>
331 <seg>libfingerprint.so, libpassword.so, libsmartcard.so</seg>
332 <seg>$GNOME_SYSCONFDIR/{dbus-1/system.d.gdm/{Init,PostLogin,PostSession,PreSession}},
333 <envar>$GNOME_PREFIX</envar>/{lib/gdm,share/{gnome/help/gdm/*,omf/gdm,
334 pixmaps/faces}},
335 /var/{cache/gdm,gdm,lib/gdm/.gconf.mandatory,log/gdm,
336 run/gdm/greeter}</seg>
337 </seglistitem>
338 </segmentedlist>
339
340 <variablelist>
341 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
342 <?dbfo list-presentation="list"?>
343 <?dbhtml list-presentation="table"?>
344
345 <varlistentry id="gdmflexiserver">
346 <term><command>gdmflexiserver</command></term>
347 <listitem>
348 <para>is the flexi server mechanism which allows to run GDM sessions
349 on demand, in a new virtual console.</para>
350 <indexterm zone="gdm gdmflexiserver">
351 <primary sortas="b-gdmflexiserver">gdmflexiserver</primary>
352 </indexterm>
353 </listitem>
354 </varlistentry>
355
356 <varlistentry id="gdm-screenshot">
357 <term><command>gdm-screenshot</command></term>
358 <listitem>
359 <para>is a screenshot tool.</para>
360 <indexterm zone="gdm gdm-screenshot">
361 <primary sortas="b-gdm-screenshot">gdm-screenshot</primary>
362 </indexterm>
363 </listitem>
364 </varlistentry>
365
366 <varlistentry id="gdm-prog">
367 <term><command>gdm</command></term>
368 <listitem>
369 <para>is a wrapper script to execute the
370 <application>GDM</application> binary, the configurable
371 <application>GNOME</application> based login prompt.</para>
372 <indexterm zone="gdm gdm-prog">
373 <primary sortas="b-gdm">gdm</primary>
374 </indexterm>
375 </listitem>
376 </varlistentry>
377
378 <varlistentry id="gdm-binary">
379 <term><command>gdm-binary</command></term>
380 <listitem>
381 <para>is the <application>GNOME</application> based login prompt.</para>
382 <indexterm zone="gdm gdm-binary">
383 <primary sortas="b-gdm-binary">gdm-binary</primary>
384 </indexterm>
385 </listitem>
386 </varlistentry>
387
388 <!--<varlistentry id="gdm-restart">
389 <term><command>gdm-restart</command></term>
390 <listitem>
391 <para>sends the HUP signal to the <application>GDM</application>
392 daemon so that it restarts. It's used after the config file
393 is edited</para>
394 <indexterm zone="gdm gdm-restart">
395 <primary sortas="b-gdm-restart">gdm-restart</primary>
396 </indexterm>
397 </listitem>
398 </varlistentry>
399
400 <varlistentry id="gdm-safe-restart">
401 <term><command>gdm-safe-restart</command></term>
402 <listitem>
403 <para>sends the USR1 signal to the <application>GDM</application>
404 daemon so that it restarts. It's used after the config file
405 is edited.</para>
406 <indexterm zone="gdm gdm-safe-restart">
407 <primary sortas="b-gdm-safe-restart">gdm-safe-restart</primary>
408 </indexterm>
409 </listitem>
410 </varlistentry>
411
412 <varlistentry id="gdm-stop">
413 <term><command>gdm-stop</command></term>
414 <listitem>
415 <para>sends the TERM signal to the <application>GDM</application>
416 daemon so that it stops. It's used after the config file is
417 edited.</para>
418 <indexterm zone="gdm gdm-stop">
419 <primary sortas="b-gdm-stop">gdm-stop</primary>
420 </indexterm>
421 </listitem>
422 </varlistentry>-->
423
424 </variablelist>
425
426 </sect2>
427
428</sect1>
Note: See TracBrowser for help on using the repository browser.