source: gnome/add/gdm.xml@ 33642828

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 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 33642828 was 8163dd01, checked in by Randy McMurchy <randy@…>, 18 years ago

Minor clean-up and addition of --mandir= parameter to the GNOME add-on packages which have already been updated to conform with the 2.14.2 update

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

  • Property mode set to 100644
File size: 13.7 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/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 "7e46bc3b0a5b08e79f1f2f1b869caf40">
10 <!ENTITY gdm-size "3.0 MB">
11 <!ENTITY gdm-buildsize "54.2 MB">
12 <!ENTITY gdm-time "0.6 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 <bridgehead renderas="sect3">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
39 <para>Download (HTTP): <ulink url="&gdm-download-http;"/></para>
40 </listitem>
41 <listitem>
42 <para>Download (FTP): <ulink url="&gdm-download-ftp;"/></para>
43 </listitem>
44 <listitem>
45 <para>Download MD5 sum: &gdm-md5sum;</para>
46 </listitem>
47 <listitem>
48 <para>Download size: &gdm-size;</para>
49 </listitem>
50 <listitem>
51 <para>Estimated disk space required: &gdm-buildsize;</para>
52 </listitem>
53 <listitem>
54 <para>Estimated build time: &gdm-time;</para>
55 </listitem>
56 </itemizedlist>
57
58 <bridgehead renderas="sect3">GDM Dependencies</bridgehead>
59
60 <bridgehead renderas="sect4">Required</bridgehead>
61 <para role="required"><xref linkend="libgnomecanvas"/>,
62 <xref linkend="gnome-doc-utils"/>, and
63 <xref linkend="librsvg"/></para>
64
65 <bridgehead renderas="sect4">Optional</bridgehead>
66 <para role="optional"><xref linkend="intltool"/>,
67 <xref linkend="zenity"/>,
68 <xref linkend="linux-pam"/>,
69 <xref linkend="tcpwrappers"/>,
70 <ulink url="http://www.openafs.org/">OpenAFS</ulink>, and
71 PAM consolehelper</para>
72
73 <para>If you configure <application>GDM</application> to offer secure
74 connections to remote machines, you will need to have
75 <xref linkend="zenity"/>, <xref linkend="openssh"/> and
76 <xref linkend="which"/> installed.</para>
77
78 <para condition="html" role="usernotes">User Notes:
79 <ulink url="&blfs-wiki;/gdm"/></para>
80
81 </sect2>
82
83 <sect2 role="installation">
84 <title>Installation of GDM</title>
85
86 <para>It is recommended to have a dedicated user and group to take
87 control of the <command>gdm-binary</command> daemon after it is
88 started. Issue the following commands as the
89 <systemitem class="username">root</systemitem> user:</para>
90
91<screen role='root'><userinput>groupadd -g 21 gdm &amp;&amp;
92useradd -c "GDM Daemon Owner" -d /dev/null \
93 -g gdm -s /bin/bash -u 21 gdm</userinput></screen>
94
95 <para>Install <application>GDM</application> by running
96 the following commands as an unprivileged user:</para>
97
98<screen><userinput>./configure --prefix=$(pkg-config --variable=prefix ORBit-2.0) \
99 --sysconfdir=&gnome-etc-dir; \
100 --localstatedir=/var/lib \
101 --libexecdir=$(pkg-config \
102 --variable=prefix ORBit-2.0)/lib/gdm \
103 --mandir=$(pkg-config \
104 --variable=prefix ORBit-2.0)/share/man \
105 --with-pam-prefix=/etc &amp;&amp;
106make</userinput></screen>
107
108 <para>This package does not come with a test suite.</para>
109
110 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
111
112<screen role='root'><userinput>make install</userinput></screen>
113
114 </sect2>
115
116 <sect2 role="commands">
117 <title>Command Explanations</title>
118
119 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
120 href="../../xincludes/gnome-prefix.xml"/>
121
122 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
123 href="../../xincludes/gnome-sysconfdir.xml"/>
124
125 <para><parameter>--localstatedir=/var/lib</parameter>: This command
126 puts files in <filename class="directory">/var/lib</filename> instead of
127 <filename class="directory">$GNOME_PREFIX/var</filename>. This also has
128 the downside affect of using
129 <filename class='directory'>/var/lib/log/gdm</filename> as the log
130 directory. See the <quote>Configuration Information</quote> section below
131 for instructions on relocating the log file directory.</para>
132
133 <para><parameter>--libexecdir=$(pkg-config
134 --variable=prefix ORBit-2.0)/lib/gdm</parameter>: This parameter is
135 used so that the <application>GDM</application> internal support programs
136 are installed in the preferred location of
137 <filename class='directory'>$GNOME_PREFIX/lib/gdm</filename> instead
138 of <filename class='directory'>$GNOME_PREFIX/libexec</filename>.</para>
139
140 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
141 href="../../xincludes/gnome-mandir.xml"/>
142
143 <para><parameter>--with-pam-prefix=/etc</parameter>: This command puts
144 <application>PAM</application> configuration files in
145 <filename class="directory">/etc/pam.d</filename> instead of
146 <filename class="directory">&gnome-etc-dir;</filename>.</para>
147
148 </sect2>
149
150 <sect2 role="configuration">
151 <title>Configuring GDM</title>
152
153 <sect3 id="gdm-config">
154 <title>Config Files</title>
155
156 <para><filename>&gnome-etc-dir;/gdm/custom.conf</filename></para>
157
158 <indexterm zone="gdm gdm-config">
159 <primary sortas="e-etc-gnome-&gnome-version;&gnome-minor-version;gdm-custom.conf">
160 &gnome-etc-dir;/gdm/custom.conf</primary>
161 </indexterm>
162
163 </sect3>
164
165 <sect3>
166 <title>Configuration Information</title>
167
168 <para>Starting with the 2.14.x version of GNOME, the default
169 configuration parameters are stored in a static file
170 (<filename><envar>$GNOME_PREFIX</envar>/share/gdm/defaults.conf</filename>).
171 This file is not intended to be edited. If modification of the
172 configuration is necessary, you should add parameters to the
173 <filename>&gnome-etc-dir;/gdm/custom.conf</filename> file. The settings
174 in this file will override the settings in the static file. The same
175 parameters in the static file are used in the configuration file.</para>
176
177 <para>Change the directory containing the <application>GDM</application>
178 log files to the <filename class='directory'>/var/log</filename>
179 hierarchy by creating a directory and modifying the
180 <filename>&gnome-etc-dir;/gdm/custom.conf</filename> configuration file. Issue
181 the following commands as the
182 <systemitem class="username">root</systemitem> user:</para>
183
184<screen role="root"><userinput>install -v -m755 -d /var/log/gdm &amp;&amp;
185sed -i.orig "/\[daemon\]/ a LogDir=/var/log/gdm" \
186 &gnome-etc-dir;/gdm/custom.conf &amp;&amp;
187rmdir -v /var/lib/log/gdm &amp;&amp;
188rmdir -v /var/lib/log</userinput></screen>
189
190 <para>The <application>GDM</application> <application>PAM</application>
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>
196
197<screen role="root"><userinput>cat &gt; /etc/pam.d/gdm &lt;&lt; "EOF"
198<literal>auth required pam_unix.so
199auth required pam_nologin.so
200account required pam_unix.so
201password required pam_unix.so
202session required pam_unix.so</literal>
203
204EOF
205cat &gt; /etc/pam.d/gdm-autologin &lt;&lt; "EOF"
206<literal>auth required pam_env.so
207auth required pam_nologin.so
208auth required pam_permit.so
209account required pam_unix.so
210password required pam_unix.so
211session required pam_unix.so</literal>
212
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
219 <indexterm zone="gdm gdm-config">
220 <primary
221 sortas="e-etc-pam.d-gdm-autologin">/etc/pam.d/gdm-autologin</primary>
222 </indexterm>
223
224 <para id="gdm-config-dbus">If you have <application>D-BUS</application>
225 installed and you want to start the session
226 <application>D-BUS</application> daemon when you start the GNOME desktop
227 environment using <command>gdm</command>, you'll need to create a new
228 Xsession file. Create the file using the following command as the root
229 user.</para>
230
231<screen role="root"><userinput>cat &gt; $GNOME_PREFIX/share/xsessions/gnome-dbus.desktop &lt;&lt; "EOF"
232<literal>[Desktop Entry]
233Encoding=UTF-8
234Name=GNOME with D-BUS
235Comment=GNOME Desktop with D-BUS support
236Exec=dbus-launch --exit-with-session gnome-session
237TryExec=/usr/bin/dbus-launch
238Icon=
239Type=Application</literal>
240
241EOF
242chmod -v 644 $GNOME_PREFIX/share/xsessions/gnome-dbus.desktop</userinput></screen>
243
244 <para>Choose this session using the session selection dialog on the
245 display manager login screen. You also have the opportunity to make this
246 your default session.</para>
247
248 <note>
249 <para>You may use the <filename class='extension'>.desktop</filename>
250 file created above as an example to create additional
251 <filename class='extension'>.desktop</filename> files and add any other
252 desired items to the <application>GDM</application> display manager session
253 selection menu.</para>
254 </note>
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> so that the line
283 containing:</para>
284
285<screen><literal>id:3:initdefault:</literal></screen>
286
287 <para>is changed to:</para>
288
289<screen><literal>id:5:initdefault:</literal></screen>
290
291 </sect3>
292
293 </sect2>
294
295 <sect2 role="content">
296 <title>Contents</title>
297
298 <segmentedlist>
299 <segtitle>Installed Programs</segtitle>
300 <segtitle>Installed Libraries</segtitle>
301 <segtitle>Installed Directories</segtitle>
302
303 <seglistitem>
304 <seg>gdm, gdm-binary, gdm-dmx-reconnect-proxy, gdm-restart,
305 gdm-safe-restart, gdm-stop, gdmXnest, gdmXnestchooser, gdmdynamic,
306 gdmflexiserver, gdmphotosetup, gdmsetup, and gdmthemetester</seg>
307 <seg>lib*mouselistener.{so,a} GTK+ modules</seg>
308 <seg>&gnome-etc-dir;/{,g}dm,
309 /var/lib/gdm,
310 /var/log/gdm and the following directories in
311 <envar>$GNOME_PREFIX</envar>/:
312 share/{,gnome/help/ ,omf/}gdm</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="gdm-prog">
322 <term><command>gdm</command></term>
323 <listitem>
324 <para>is a wrapper script to execute the
325 <application>GDM</application> binary, the configurable
326 <application>GNOME</application> based login prompt.</para>
327 <indexterm zone="gdm gdm-prog">
328 <primary sortas="b-gdm">gdm</primary>
329 </indexterm>
330 </listitem>
331 </varlistentry>
332
333 <varlistentry id="gdm-restart">
334 <term><command>gdm-restart</command></term>
335 <listitem>
336 <para>sends the HUP signal to the <application>GDM</application>
337 daemon so that it restarts. It's used after the config file
338 is edited</para>
339 <indexterm zone="gdm gdm-restart">
340 <primary sortas="b-gdm-restart">gdm-restart</primary>
341 </indexterm>
342 </listitem>
343 </varlistentry>
344
345 <varlistentry id="gdm-safe-restart">
346 <term><command>gdm-safe-restart</command></term>
347 <listitem>
348 <para>sends the USR1 signal to the <application>GDM</application>
349 daemon so that it restarts. It's used after the config file
350 is edited.</para>
351 <indexterm zone="gdm gdm-safe-restart">
352 <primary sortas="b-gdm-safe-restart">gdm-safe-restart</primary>
353 </indexterm>
354 </listitem>
355 </varlistentry>
356
357 <varlistentry id="gdmsetup">
358 <term><command>gdmsetup</command></term>
359 <listitem>
360 <para>is a graphical interface to edit the
361 <filename>gdm.conf</filename> file.</para>
362 <indexterm zone="gdm gdmsetup">
363 <primary sortas="b-gdmsetup">gdmsetup</primary>
364 </indexterm>
365 </listitem>
366 </varlistentry>
367 </variablelist>
368
369 </sect2>
370
371</sect1>
Note: See TracBrowser for help on using the repository browser.