source: gnome/add/gdm.xml@ aae076a

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

Added new package, polkit-gnome-0.94 and fixed up pre-install-config

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