source: gnome/core/gdm.xml@ d2e21cb0

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 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 gimp3 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/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since d2e21cb0 was 3839649, checked in by Ken Moffat <ken@…>, 13 years ago

gdm-3.2.1.1

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

  • Property mode set to 100644
File size: 15.4 KB
RevLine 
[9d2dc4e2]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[9d2dc4e2]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[3839649]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">
[9d2dc4e2]13]>
14
[91557b0]15<sect1 id="gdm" xreflabel="GDM-&gdm-version;">
[0ed3f7f]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
[3839649]36 <!-- &lfs67_checked; not for this version! -->
[3b4770b]37
[0ed3f7f]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
[3839649]60 <!--<bridgehead renderas="sect3">Additional Downloads</bridgehead>
[3b4770b]61 <itemizedlist spacing="compact">
62 <listitem>
63 <para>Required patch: <ulink
[4a9eae57]64 url="&patch-root;/gdm-&gdm-version;-fixes-1.patch"/></para>
[1b46c878]65 </listitem>
[3839649]66 </itemizedlist>-->
[3b4770b]67
[0ed3f7f]68 <bridgehead renderas="sect3">GDM Dependencies</bridgehead>
69
70 <bridgehead renderas="sect4">Required</bridgehead>
[3839649]71 <para role="required"><xref linkend="accountsservice"/>,
72 <xref linkend="gnome-panel"/>,
73 <xref linkend="linux-pam"/>, and
[4a9eae57]74 <xref linkend="xorg7-lib"/></para>
[0ed3f7f]75
[fc516d9]76 <bridgehead renderas="sect4">Recommended</bridgehead>
77 <para role="recommended"><xref linkend="consolekit"/>
[b9df1a8]78 (Required for Shutdown/Restart functionality) and
79 <xref linkend="polkit-gnome"/></para>
[fc516d9]80
[0ed3f7f]81 <bridgehead renderas="sect4">Optional</bridgehead>
[7a6d35b]82 <para role="optional">
83 <ulink url="http://check.sourceforge.net/">Check</ulink>,
[f7d8e8cd]84 <xref linkend="upower"/>,
85 <xref linkend="libxklavier"/>, and
86 <xref linkend="tcpwrappers"/></para>
[0ed3f7f]87
[0a7c3921]88 <para condition="html" role="usernotes">User Notes:
89 <ulink url="&blfs-wiki;/gdm"/></para>
90
[0ed3f7f]91 </sect2>
92
93 <sect2 role="installation">
94 <title>Installation of GDM</title>
95
[1ab6a6c9]96 <para>It is recommended to have a dedicated user and group to take
[cec675bd]97 control of the <command>gdm-binary</command> daemon after it is
98 started. Issue the following commands as the
[1ab6a6c9]99 <systemitem class="username">root</systemitem> user:</para>
100
[4f9a388]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>
[1ab6a6c9]104
[0ed3f7f]105 <para>Install <application>GDM</application> by running
[1ab6a6c9]106 the following commands as an unprivileged user:</para>
[0ed3f7f]107
[3839649]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 \
[3b4770b]112 --localstatedir=/var \
[7a00ed89]113 --with-pam-prefix=/etc &amp;&amp;
[1ab6a6c9]114make</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
[cff5bba]120<screen role='root'><userinput>make install &amp;&amp;
[3839649]121ln -fsv $GNOME_PREFIX/lib/gnome-settings-daemon-2.0/gnome-settings-daemon \
122 $GNOME_PREFIX/lib/gdm &amp;&amp;
123ln -fsv /usr/lib/ConsoleKit/ck-get-x11-display-device \
124 $GNOME_PREFIX/lib/gdm &amp;&amp;
125ln -fsv /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 \
126 $GNOME_PREFIX/lib/gdm
[fc516d9]127</userinput></screen>
[9d2dc4e2]128
[0ed3f7f]129 </sect2>
[9d2dc4e2]130
[0ed3f7f]131 <sect2 role="commands">
132 <title>Command Explanations</title>
[9d2dc4e2]133
[e05cd03f]134 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[8163dd01]135 href="../../xincludes/gnome-prefix.xml"/>
[8cf3617d]136
[e05cd03f]137 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[8163dd01]138 href="../../xincludes/gnome-sysconfdir.xml"/>
[9d2dc4e2]139
[3839649]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
[3b4770b]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>
[9d2dc4e2]149
[0ed3f7f]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
[3839649]153 <filename class="directory">$GNOME_SYSCONFDIR</filename>.</para>
[9d2dc4e2]154
[0ed3f7f]155 </sect2>
[9d2dc4e2]156
[0ed3f7f]157 <sect2 role="configuration">
158 <title>Configuring GDM</title>
[9d2dc4e2]159
[0ed3f7f]160 <sect3 id="gdm-config">
161 <title>Config Files</title>
[9d2dc4e2]162
[3839649]163 <para><filename>$GNOME_SYSCONFDIR/gdm/custom.conf</filename></para>
[9d2dc4e2]164
[0ed3f7f]165 <indexterm zone="gdm gdm-config">
[4a9eae57]166 <primary sortas="e-etc-gnome-&gnome-version;&gnome-minor-version;gdm-custom.conf">
[3839649]167 $GNOME_SYSCONFDIR/gdm/custom.conf</primary>
[0ed3f7f]168 </indexterm>
[bd0a1b0]169
[0ed3f7f]170 </sect3>
171
172 <sect3>
173 <title>Configuration Information</title>
174
[fcc42ef2]175 <para>The GDM daemon is configured using the
[3839649]176 <filename>$GNOME_SYSCONFDIR/gdm/custom.conf</filename> file.
[fcc42ef2]177 Default values are stored in GConf in the
178 <filename>gdm.schemas</filename> file. It is recommended that end-users
[3839649]179 modify the <filename>$GNOME_SYSCONFDIR/gdm/custom.conf</filename> file
[fcc42ef2]180 because the schemas file may be overwritten when the user updates their
181 system to have a newer version of GDM.</para>
[ca109fa5]182
[0ed3f7f]183 <para>The <application>GDM</application> <application>PAM</application>
[7a00ed89]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>
[0ed3f7f]189
190<screen role="root"><userinput>cat &gt; /etc/pam.d/gdm &lt;&lt; "EOF"
[3839649]191<literal>auth required pam_env.so
192auth required pam_unix.so
193account required pam_nologin.so
[9d2dc4e2]194account required pam_unix.so
195password required pam_unix.so
[3839649]196session optional pam_keyinit.so force revoke
197session required pam_unix.so
198session required pam_loginuid.so
199session optional pam_console.so</literal>
[45698ce]200
[0ed3f7f]201EOF
202cat &gt; /etc/pam.d/gdm-autologin &lt;&lt; "EOF"
203<literal>auth required pam_env.so
[9d2dc4e2]204auth required pam_permit.so
[3839649]205account required pam_nologin.so
206account required pam_unix.so
207password required pam_unix.so
208session optional pam_keyinit.so force revoke
209session required pam_unix.so
210session required pam_loginuid.so
211session optional pam_console.so</literal>
212
213EOF
214cat &gt; /etc/pam.d/gdm-welcome &lt;&lt; "EOF"
215<literal>auth required pam_env.so
216auth required pam_permit.so
217account required pam_nologin.so
[9d2dc4e2]218account required pam_unix.so
219password required pam_unix.so
[3839649]220session required pam_loginuid.so
221session optional pam_keyinit.so force revoke
[0ed3f7f]222session required pam_unix.so</literal>
[45698ce]223
[0ed3f7f]224EOF</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
[3565e02]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 &gt; $GNOME_PREFIX/share/xsessions/gnome-dbus.desktop &lt;&lt; "EOF"
242<literal>[Desktop Entry]
243Encoding=UTF-8
244Name=GNOME with D-BUS
245Comment=GNOME Desktop with D-BUS support
246Exec=dbus-launch --exit-with-session gnome-session
247TryExec=/usr/bin/dbus-launch
248Icon=
249Type=Application</literal>
250
[7a00ed89]251EOF
252chmod -v 644 $GNOME_PREFIX/share/xsessions/gnome-dbus.desktop</userinput></screen>
[3565e02]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
[cbf206e]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
[fcc42ef2]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
[3565e02]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>
[0ed3f7f]277
278 </sect3>
279
[1ab6a6c9]280 <sect3 id="gdm-init">
[0ed3f7f]281 <title>Boot Script</title>
282
[7a00ed89]283 <para>To start a graphical login when the system is booted, install the
[0ed3f7f]284 <filename>/etc/rc.d/init.d/gdm</filename> init script included in the
[5254d12]285 <xref linkend="bootscripts"/> package. If your
[94cc990]286 <envar>GNOME_PREFIX</envar> environment variable is anything other than
[7a00ed89]287 <filename class='directory'>/usr</filename> or <filename
[4a9eae57]288 class='directory'>/opt/gnome-&gnome-version;&gnome-minor-version;</filename>,
[7a00ed89]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>
[3565e02]291 installed.</para>
[0ed3f7f]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
[3b4770b]299 <para>Now edit <filename>/etc/inittab</filename> with the following
300 commands.</para>
[0ed3f7f]301
[4f9a388]302<screen role="root"><userinput>sed -i 's/id:3:initdefault:/id:5:initdefault:/' \
303 /etc/inittab</userinput></screen>
[0ed3f7f]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>
[4a9eae57]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, gdm-binary,
323 gdm-restart, gdm-safe-restart, and gdm-stop</seg>
[3b4770b]324 <seg>None</seg>
[3839649]325 <seg>$GNOME_SYSCONFDIR/gdm/{Init,PostLogin,PostSession,PreSession},
[4a9eae57]326 <envar>$GNOME_PREFIX</envar>/{lib/gdm,share/{gnome/help/gdm/*,omf/gdm,
327 pixmaps/faces}},
328 /var/{cache/gdm,gdm,lib/gdm/.gconf.mandatory,log/gdm,
329 run/gdm/greeter}</seg>
[0ed3f7f]330 </seglistitem>
331 </segmentedlist>
332
333 <variablelist>
334 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
335 <?dbfo list-presentation="list"?>
336 <?dbhtml list-presentation="table"?>
337
[3b4770b]338 <varlistentry id="gdmflexiserver">
339 <term><command>gdmflexiserver</command></term>
340 <listitem>
341 <para>is the flexi server mechanism which allows to run GDM sessions
342 on demand, in a new virtual console.</para>
343 <indexterm zone="gdm gdmflexiserver">
344 <primary sortas="b-gdmflexiserver">gdmflexiserver</primary>
345 </indexterm>
346 </listitem>
347 </varlistentry>
348
349 <varlistentry id="gdm-screenshot">
350 <term><command>gdm-screenshot</command></term>
351 <listitem>
352 <para>is a screenshot tool.</para>
353 <indexterm zone="gdm gdm-screenshot">
354 <primary sortas="b-gdm-screenshot">gdm-screenshot</primary>
355 </indexterm>
356 </listitem>
357 </varlistentry>
358
[0ed3f7f]359 <varlistentry id="gdm-prog">
360 <term><command>gdm</command></term>
361 <listitem>
362 <para>is a wrapper script to execute the
363 <application>GDM</application> binary, the configurable
364 <application>GNOME</application> based login prompt.</para>
365 <indexterm zone="gdm gdm-prog">
366 <primary sortas="b-gdm">gdm</primary>
367 </indexterm>
368 </listitem>
369 </varlistentry>
370
[3b4770b]371 <varlistentry id="gdm-binary">
372 <term><command>gdm-binary</command></term>
373 <listitem>
374 <para>is the <application>GNOME</application> based login prompt.</para>
375 <indexterm zone="gdm gdm-binary">
376 <primary sortas="b-gdm-binary">gdm-binary</primary>
377 </indexterm>
378 </listitem>
379 </varlistentry>
380
[0ed3f7f]381 <varlistentry id="gdm-restart">
382 <term><command>gdm-restart</command></term>
383 <listitem>
384 <para>sends the HUP signal to the <application>GDM</application>
385 daemon so that it restarts. It's used after the config file
386 is edited</para>
387 <indexterm zone="gdm gdm-restart">
388 <primary sortas="b-gdm-restart">gdm-restart</primary>
389 </indexterm>
390 </listitem>
391 </varlistentry>
392
393 <varlistentry id="gdm-safe-restart">
394 <term><command>gdm-safe-restart</command></term>
395 <listitem>
396 <para>sends the USR1 signal to the <application>GDM</application>
397 daemon so that it restarts. It's used after the config file
398 is edited.</para>
399 <indexterm zone="gdm gdm-safe-restart">
400 <primary sortas="b-gdm-safe-restart">gdm-safe-restart</primary>
401 </indexterm>
402 </listitem>
403 </varlistentry>
404
[3b4770b]405 <varlistentry id="gdm-stop">
406 <term><command>gdm-stop</command></term>
[0ed3f7f]407 <listitem>
[3b4770b]408 <para>sends the TERM signal to the <application>GDM</application>
409 daemon so that it stops. It's used after the config file is
410 edited.</para>
411 <indexterm zone="gdm gdm-stop">
412 <primary sortas="b-gdm-stop">gdm-stop</primary>
[0ed3f7f]413 </indexterm>
414 </listitem>
415 </varlistentry>
[3b4770b]416
[0ed3f7f]417 </variablelist>
418
419 </sect2>
[91557b0]420
421</sect1>
Note: See TracBrowser for help on using the repository browser.