source: gnome/add/gdm.xml@ 7a6d35b

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 7a6d35b was 7a6d35b, checked in by Wayne Blaszczyk <wblaszcz@…>, 14 years ago

Updated to GDM-2.28.2 and minor ammendment to gnome-panel.

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

  • Property mode set to 100644
File size: 14.8 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
[3b4770b]7 <!ENTITY gdm-download-http "&gnome-download-http;/gdm/&gnome-version;/gdm-&gdm-version;.tar.bz2">
8 <!ENTITY gdm-download-ftp "&gnome-download-ftp;/gdm/&gnome-version;/gdm-&gdm-version;.tar.bz2">
[7a6d35b]9 <!ENTITY gdm-md5sum "9607c6bac31c9d8bd3446e66a4576c2e">
[4f9a388]10 <!ENTITY gdm-size "2.2 MB">
[7a6d35b]11 <!ENTITY gdm-buildsize "49 MB">
12 <!ENTITY gdm-time "0.8 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
[3b4770b]36 &lfs65_checked;
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
[3b4770b]60 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
61 <itemizedlist spacing="compact">
62 <listitem>
63 <para>Required patch: <ulink
[b9df1a8]64 url="&patch-root;/gdm-&gdm-version;-fixes-1.patch"/></para>
[1b46c878]65 </listitem>
[3b4770b]66 </itemizedlist>
67
[0ed3f7f]68 <bridgehead renderas="sect3">GDM Dependencies</bridgehead>
69
70 <bridgehead renderas="sect4">Required</bridgehead>
[7a6d35b]71 <para role="required"><xref linkend="gnome-panel"/> and
72 <xref linkend="libcanberra"/></para>
[0ed3f7f]73
[fc516d9]74 <bridgehead renderas="sect4">Recommended</bridgehead>
75 <para role="recommended"><xref linkend="consolekit"/>
[b9df1a8]76 (Required for Shutdown/Restart functionality) and
77 <xref linkend="polkit-gnome"/></para>
[fc516d9]78
[0ed3f7f]79 <bridgehead renderas="sect4">Optional</bridgehead>
[7a6d35b]80 <para role="optional">
81 <ulink url="http://check.sourceforge.net/">Check</ulink>,
82 <xref linkend="DeviceKit-power"/>,
83 <xref linkend="libxklavier"/>, and
[b9df1a8]84 <xref linkend="tcpwrappers"/></para>
[0ed3f7f]85
[0a7c3921]86 <para condition="html" role="usernotes">User Notes:
87 <ulink url="&blfs-wiki;/gdm"/></para>
88
[0ed3f7f]89 </sect2>
90
91 <sect2 role="installation">
92 <title>Installation of GDM</title>
93
[1ab6a6c]94 <para>It is recommended to have a dedicated user and group to take
[cec675bd]95 control of the <command>gdm-binary</command> daemon after it is
96 started. Issue the following commands as the
[1ab6a6c]97 <systemitem class="username">root</systemitem> user:</para>
98
[4f9a388]99<screen role='root'><userinput>groupadd -fg 21 gdm &amp;&amp;
100useradd -c "GDM Daemon Owner" -d /var/lib/gdm -u 21 \
101 -g gdm -s /bin/false gdm || [ $? == 9 ]</userinput></screen>
[1ab6a6c]102
[0ed3f7f]103 <para>Install <application>GDM</application> by running
[1ab6a6c]104 the following commands as an unprivileged user:</para>
[0ed3f7f]105
[b9df1a8]106<screen><userinput>patch -Np1 -i ../gdm-&gdm-version;-fixes-1.patch &amp;&amp;
[3b4770b]107./configure --prefix=$(pkg-config --variable=prefix ORBit-2.0) \
[7a00ed89]108 --sysconfdir=&gnome-etc-dir; \
[3b4770b]109 --localstatedir=/var \
[ca109fa5]110 --libexecdir=$(pkg-config \
111 --variable=prefix ORBit-2.0)/lib/gdm \
[7a00ed89]112 --with-pam-prefix=/etc &amp;&amp;
[1ab6a6c]113make</userinput></screen>
114
115 <para>This package does not come with a test suite.</para>
116
117 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
118
[cff5bba]119<screen role='root'><userinput>make install &amp;&amp;
120ln -s $(pkg-config --variable=prefix \
121 ORBit-2.0)/lib/gnome-settings-daemon/gnome-settings-daemon $(pkg-config \
[fc516d9]122 --variable=prefix ORBit-2.0)/lib/gdm &amp;&amp;
[9e557e2]123ln -s /usr/lib/ConsoleKit/ck-get-x11-display-device $(pkg-config \
[b9df1a8]124 --variable=prefix ORBit-2.0)/lib/gdm &amp;&amp;
125ln -s /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 $(pkg-config \
[fc516d9]126 --variable=prefix ORBit-2.0)/lib/gdm
127</userinput></screen>
[9d2dc4e2]128
[0ed3f7f]129 </sect2>
[9d2dc4e2]130
[0ed3f7f]131 <sect2 role="commands">
132 <title>Command Explanations</title>
[9d2dc4e2]133
[8163dd01]134 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
135 href="../../xincludes/gnome-prefix.xml"/>
[8cf3617]136
[8163dd01]137 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
138 href="../../xincludes/gnome-sysconfdir.xml"/>
[9d2dc4e2]139
[3b4770b]140 <para><parameter>--localstatedir=/var</parameter>: This command
141 puts files in <filename class="directory">/var</filename> instead of
142 <filename class="directory">$GNOME_PREFIX/var</filename>.</para>
[9d2dc4e2]143
[8163dd01]144 <para><parameter>--libexecdir=$(pkg-config
145 --variable=prefix ORBit-2.0)/lib/gdm</parameter>: This parameter is
146 used so that the <application>GDM</application> internal support programs
147 are installed in the preferred location of
148 <filename class='directory'>$GNOME_PREFIX/lib/gdm</filename> instead
149 of <filename class='directory'>$GNOME_PREFIX/libexec</filename>.</para>
150
[0ed3f7f]151 <para><parameter>--with-pam-prefix=/etc</parameter>: This command puts
152 <application>PAM</application> configuration files in
153 <filename class="directory">/etc/pam.d</filename> instead of
[7a00ed89]154 <filename class="directory">&gnome-etc-dir;</filename>.</para>
[9d2dc4e2]155
[0ed3f7f]156 </sect2>
[9d2dc4e2]157
[0ed3f7f]158 <sect2 role="configuration">
159 <title>Configuring GDM</title>
[9d2dc4e2]160
[0ed3f7f]161 <sect3 id="gdm-config">
162 <title>Config Files</title>
[9d2dc4e2]163
[3f909d6]164 <para><filename>&gnome-etc-dir;/gdm/custom.conf</filename>,
165 <filename>$GNOME_PREFIX/share/gdm/defaults.conf</filename></para>
[9d2dc4e2]166
[0ed3f7f]167 <indexterm zone="gdm gdm-config">
[3b4770b]168 <primary sortas="e-etc-gnome-&gnome-version;&gnome-minor-version;gdm-custom.conf">
[ca109fa5]169 &gnome-etc-dir;/gdm/custom.conf</primary>
[0ed3f7f]170 </indexterm>
[3f909d6]171 <indexterm zone="gdm gdm-config">
172 <primary sortas="e-$GNOME_PREFIX-share-gdm-defaults.conf">
173 $GNOME_PREFIX/share/gdm/defaults.conf</primary>
174 </indexterm>
[bd0a1b0]175
[0ed3f7f]176 </sect3>
177
178 <sect3>
179 <title>Configuration Information</title>
180
[ca109fa5]181 <para>Starting with the 2.14.x version of GNOME, the default
182 configuration parameters are stored in a static file
183 (<filename><envar>$GNOME_PREFIX</envar>/share/gdm/defaults.conf</filename>).
184 This file is not intended to be edited. If modification of the
185 configuration is necessary, you should add parameters to the
186 <filename>&gnome-etc-dir;/gdm/custom.conf</filename> file. The settings
187 in this file will override the settings in the static file. The same
188 parameters in the static file are used in the configuration file.</para>
189
[0ed3f7f]190 <para>The <application>GDM</application> <application>PAM</application>
[7a00ed89]191 configuration files contain modules not present in a BLFS installation.
192 If you have <application>PAM</application> installed, issue the following
193 commands as the <systemitem class="username">root</systemitem> user to
194 replace those files with files containing correctly specified
195 modules:</para>
[0ed3f7f]196
197<screen role="root"><userinput>cat &gt; /etc/pam.d/gdm &lt;&lt; "EOF"
198<literal>auth required pam_unix.so
[705dba2]199auth requisite pam_nologin.so
[9d2dc4e2]200account required pam_unix.so
201password required pam_unix.so
[0ed3f7f]202session required pam_unix.so</literal>
[45698ce]203
[0ed3f7f]204EOF
205cat &gt; /etc/pam.d/gdm-autologin &lt;&lt; "EOF"
206<literal>auth required pam_env.so
[705dba2]207auth requisite pam_nologin.so
[9d2dc4e2]208auth required pam_permit.so
209account required pam_unix.so
210password required pam_unix.so
[0ed3f7f]211session required pam_unix.so</literal>
[45698ce]212
[0ed3f7f]213EOF</userinput></screen>
214
215 <indexterm zone="gdm gdm-config">
216 <primary sortas="e-etc-pam.d-gdm">/etc/pam.d/gdm</primary>
217 </indexterm>
218 <indexterm zone="gdm gdm-config">
219 <primary
220 sortas="e-etc-pam.d-gdm-autologin">/etc/pam.d/gdm-autologin</primary>
221 </indexterm>
222
[3565e02]223 <para id="gdm-config-dbus">If you have <application>D-BUS</application>
224 installed and you want to start the session
225 <application>D-BUS</application> daemon when you start the GNOME desktop
226 environment using <command>gdm</command>, you'll need to create a new
227 Xsession file. Create the file using the following command as the root
228 user.</para>
229
230<screen role="root"><userinput>cat &gt; $GNOME_PREFIX/share/xsessions/gnome-dbus.desktop &lt;&lt; "EOF"
231<literal>[Desktop Entry]
232Encoding=UTF-8
233Name=GNOME with D-BUS
234Comment=GNOME Desktop with D-BUS support
235Exec=dbus-launch --exit-with-session gnome-session
236TryExec=/usr/bin/dbus-launch
237Icon=
238Type=Application</literal>
239
[7a00ed89]240EOF
241chmod -v 644 $GNOME_PREFIX/share/xsessions/gnome-dbus.desktop</userinput></screen>
[3565e02]242
243 <para>Choose this session using the session selection dialog on the
244 display manager login screen. You also have the opportunity to make this
245 your default session.</para>
246
[cbf206e]247 <note>
248 <para>You may use the <filename class='extension'>.desktop</filename>
249 file created above as an example to create additional
250 <filename class='extension'>.desktop</filename> files and add any other
251 desired items to the <application>GDM</application> display manager session
252 selection menu.</para>
253 </note>
254
[3565e02]255 <para><command>gdm</command> can be tested by executing it as the
256 <systemitem class="username">root</systemitem> user. Use the
257 <command>gdm-stop</command> command if you wish to stop the display
258 manager.</para>
[0ed3f7f]259
260 </sect3>
261
[1ab6a6c]262 <sect3 id="gdm-init">
[0ed3f7f]263 <title>Boot Script</title>
264
[7a00ed89]265 <para>To start a graphical login when the system is booted, install the
[0ed3f7f]266 <filename>/etc/rc.d/init.d/gdm</filename> init script included in the
[5254d12]267 <xref linkend="bootscripts"/> package. If your
[94cc990]268 <envar>GNOME_PREFIX</envar> environment variable is anything other than
[7a00ed89]269 <filename class='directory'>/usr</filename> or <filename
[3b4770b]270 class='directory'>/opt/gnome-&gnome-version;&gnome-minor-version;</filename>,
[7a00ed89]271 you will need to modify the <envar>PATH</envar> statement in the script
272 to include the path where you have <application>GNOME</application>
[3565e02]273 installed.</para>
[0ed3f7f]274
275 <indexterm zone="gdm gdm-init">
276 <primary sortas="f-gdm">gdm</primary>
277 </indexterm>
278
279<screen role="root"><userinput>make install-gdm</userinput></screen>
280
[3b4770b]281 <para>Now edit <filename>/etc/inittab</filename> with the following
282 commands.</para>
[0ed3f7f]283
[4f9a388]284<screen role="root"><userinput>sed -i 's/id:3:initdefault:/id:5:initdefault:/' \
285 /etc/inittab</userinput></screen>
[0ed3f7f]286
287 </sect3>
288
289 </sect2>
290
291 <sect2 role="content">
292 <title>Contents</title>
293
294 <segmentedlist>
295 <segtitle>Installed Programs</segtitle>
296 <segtitle>Installed Libraries</segtitle>
297 <segtitle>Installed Directories</segtitle>
298
299 <seglistitem>
[3b4770b]300 <seg>gdm, gdm-binary, gdm-crash-logger, gdm-factory-slave,
301 gdmflexiserver, gdm-host-chooser, gdm-product-slave, gdm-restart,
302 gdm-safe-restart, gdm-screenshot, gdm-session-worker,
303 gdm-simple-chooser, gdm-simple-greeter, gdm-simple-slave, gdm-stop,
304 gdm-user-switch-applet, and gdm-xdmcp-chooser-slave</seg>
305 <seg>None</seg>
306 <seg>&gnome-etc-dir;/gdm{Init,PostLogin,PostSession,PreSession},
307 /var/lib/gdm/.gconf.mandatory,/var/lib/run/gdm,/var/log/gdm,
308 <envar>$GNOME_PREFIX</envar>/share/{gdm/autostart/LoginWindow,
309 gnome-2.0/ui,/gnome/help/gdm,omf/gdm}</seg>
[0ed3f7f]310 </seglistitem>
311 </segmentedlist>
312
313 <variablelist>
314 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
315 <?dbfo list-presentation="list"?>
316 <?dbhtml list-presentation="table"?>
317
[3b4770b]318 <varlistentry id="gdmflexiserver">
319 <term><command>gdmflexiserver</command></term>
320 <listitem>
321 <para>is the flexi server mechanism which allows to run GDM sessions
322 on demand, in a new virtual console.</para>
323 <indexterm zone="gdm gdmflexiserver">
324 <primary sortas="b-gdmflexiserver">gdmflexiserver</primary>
325 </indexterm>
326 </listitem>
327 </varlistentry>
328
329 <varlistentry id="gdm-screenshot">
330 <term><command>gdm-screenshot</command></term>
331 <listitem>
332 <para>is a screenshot tool.</para>
333 <indexterm zone="gdm gdm-screenshot">
334 <primary sortas="b-gdm-screenshot">gdm-screenshot</primary>
335 </indexterm>
336 </listitem>
337 </varlistentry>
338
[0ed3f7f]339 <varlistentry id="gdm-prog">
340 <term><command>gdm</command></term>
341 <listitem>
342 <para>is a wrapper script to execute the
343 <application>GDM</application> binary, the configurable
344 <application>GNOME</application> based login prompt.</para>
345 <indexterm zone="gdm gdm-prog">
346 <primary sortas="b-gdm">gdm</primary>
347 </indexterm>
348 </listitem>
349 </varlistentry>
350
[3b4770b]351 <varlistentry id="gdm-binary">
352 <term><command>gdm-binary</command></term>
353 <listitem>
354 <para>is the <application>GNOME</application> based login prompt.</para>
355 <indexterm zone="gdm gdm-binary">
356 <primary sortas="b-gdm-binary">gdm-binary</primary>
357 </indexterm>
358 </listitem>
359 </varlistentry>
360
[0ed3f7f]361 <varlistentry id="gdm-restart">
362 <term><command>gdm-restart</command></term>
363 <listitem>
364 <para>sends the HUP signal to the <application>GDM</application>
365 daemon so that it restarts. It's used after the config file
366 is edited</para>
367 <indexterm zone="gdm gdm-restart">
368 <primary sortas="b-gdm-restart">gdm-restart</primary>
369 </indexterm>
370 </listitem>
371 </varlistentry>
372
373 <varlistentry id="gdm-safe-restart">
374 <term><command>gdm-safe-restart</command></term>
375 <listitem>
376 <para>sends the USR1 signal to the <application>GDM</application>
377 daemon so that it restarts. It's used after the config file
378 is edited.</para>
379 <indexterm zone="gdm gdm-safe-restart">
380 <primary sortas="b-gdm-safe-restart">gdm-safe-restart</primary>
381 </indexterm>
382 </listitem>
383 </varlistentry>
384
[3b4770b]385 <varlistentry id="gdm-stop">
386 <term><command>gdm-stop</command></term>
[0ed3f7f]387 <listitem>
[3b4770b]388 <para>sends the TERM signal to the <application>GDM</application>
389 daemon so that it stops. It's used after the config file is
390 edited.</para>
391 <indexterm zone="gdm gdm-stop">
392 <primary sortas="b-gdm-stop">gdm-stop</primary>
[0ed3f7f]393 </indexterm>
394 </listitem>
395 </varlistentry>
[3b4770b]396
[0ed3f7f]397 </variablelist>
398
399 </sect2>
[91557b0]400
401</sect1>
Note: See TracBrowser for help on using the repository browser.