source: gnome/add/gdm.xml@ 1b46c878

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

Patched GConf-2.26.2 and GDM-2.26.1 to fix a hardcoded sysconfdir problem.

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

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