source: gnome/add/gdm.xml@ f4472d1

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

ticket 2988

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

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