source: gnome/add/gdm.xml@ 014ff2f

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 014ff2f was 9e557e2, checked in by Wayne Blaszczyk <wblaszcz@…>, 15 years ago

GTK Engines-2.18.4

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

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