source: gnome/add/gdm.xml@ 7cdaed0

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 7cdaed0 was ca109fa5, checked in by Randy McMurchy <randy@…>, 18 years ago

Updated to GDM-2.14.9

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

  • Property mode set to 100644
File size: 13.5 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 --with-pam-prefix=/etc &amp;&amp;
104make</userinput></screen>
105
106 <para>This package does not come with a test suite.</para>
107
108 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
109
110<screen role='root'><userinput>make install</userinput></screen>
111
112 </sect2>
113
114 <sect2 role="commands">
115 <title>Command Explanations</title>
116
117 <para><parameter>--libexecdir=$(pkg-config
118 --variable=prefix ORBit-2.0)/lib/gdm</parameter>: This parameter is
119 used so that the <application>GDM</application> internal support programs
120 are installed in
121 <filename class='directory'>$GNOME_PREFIX/lib/gdm</filename> instead
122 of <filename class='directory'>$GNOME_PREFIX/libexec</filename>.</para>
123
124 <para><parameter>--sysconfdir=&gnome-etc-dir;</parameter>: This command puts
125 configuration files in <filename class="directory">&gnome-etc-dir;</filename>
126 instead of <filename class="directory">$GNOME_PREFIX/etc</filename>.</para>
127
128 <para><parameter>--localstatedir=/var/lib</parameter>: This command
129 puts files in <filename class="directory">/var/lib</filename> instead of
130 <filename class="directory">$GNOME_PREFIX/var</filename>. This also has
131 the downside affect of using
132 <filename class='directory'>/var/lib/log/gdm</filename> as the log
133 directory. See the <quote>Configuration Information</quote> section below
134 for instructions on relocating the log file directory.</para>
135
136 <para><parameter>--with-pam-prefix=/etc</parameter>: This command puts
137 <application>PAM</application> configuration files in
138 <filename class="directory">/etc/pam.d</filename> instead of
139 <filename class="directory">&gnome-etc-dir;</filename>.</para>
140
141 </sect2>
142
143 <sect2 role="configuration">
144 <title>Configuring GDM</title>
145
146 <sect3 id="gdm-config">
147 <title>Config Files</title>
148
149 <para><filename>&gnome-etc-dir;/gdm/custom.conf</filename></para>
150
151 <indexterm zone="gdm gdm-config">
152 <primary sortas="e-etc-gnome-&gnome-version;&gnome-minor-version;gdm-custom.conf">
153 &gnome-etc-dir;/gdm/custom.conf</primary>
154 </indexterm>
155
156 </sect3>
157
158 <sect3>
159 <title>Configuration Information</title>
160
161 <para>Starting with the 2.14.x version of GNOME, the default
162 configuration parameters are stored in a static file
163 (<filename><envar>$GNOME_PREFIX</envar>/share/gdm/defaults.conf</filename>).
164 This file is not intended to be edited. If modification of the
165 configuration is necessary, you should add parameters to the
166 <filename>&gnome-etc-dir;/gdm/custom.conf</filename> file. The settings
167 in this file will override the settings in the static file. The same
168 parameters in the static file are used in the configuration file.</para>
169
170 <para>Change the directory containing the <application>GDM</application>
171 log files to the <filename class='directory'>/var/log</filename>
172 hierarchy by creating a directory and modifying the
173 <filename>&gnome-etc-dir;/gdm/custom.conf</filename> configuration file. Issue
174 the following commands as the
175 <systemitem class="username">root</systemitem> user:</para>
176
177<screen role="root"><userinput>install -v -m755 -d /var/log/gdm &amp;&amp;
178sed -i.orig "/\[daemon\]/ a LogDir=/var/log/gdm" \
179 &gnome-etc-dir;/gdm/custom.conf &amp;&amp;
180rmdir -v /var/lib/log/gdm &amp;&amp;
181rmdir -v /var/lib/log</userinput></screen>
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 required 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 required 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
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 <para><command>gdm</command> can be tested by executing it as the
250 <systemitem class="username">root</systemitem> user. Use the
251 <command>gdm-stop</command> command if you wish to stop the display
252 manager.</para>
253
254 </sect3>
255
256 <sect3 id="gdm-init">
257 <title>Boot Script</title>
258
259 <para>To start a graphical login when the system is booted, install the
260 <filename>/etc/rc.d/init.d/gdm</filename> init script included in the
261 <xref linkend="bootscripts"/> package. If your
262 <envar>GNOME_PREFIX</envar> environment variable is anything other than
263 <filename class='directory'>/usr</filename> or <filename
264 class='directory'>/opt/gnome-&gnome-version;&gnome-minor-version;</filename>,
265 you will need to modify the <envar>PATH</envar> statement in the script
266 to include the path where you have <application>GNOME</application>
267 installed.</para>
268
269 <indexterm zone="gdm gdm-init">
270 <primary sortas="f-gdm">gdm</primary>
271 </indexterm>
272
273<screen role="root"><userinput>make install-gdm</userinput></screen>
274
275 <para>Now edit <filename>/etc/inittab</filename> so that the line
276 containing:</para>
277
278<screen><literal>id:3:initdefault:</literal></screen>
279
280 <para>is changed to:</para>
281
282<screen><literal>id:5:initdefault:</literal></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-dmx-reconnect-proxy, gdm-restart,
298 gdm-safe-restart, gdm-stop, gdmXnest, gdmXnestchooser, gdmdynamic,
299 gdmflexiserver, gdmphotosetup, gdmsetup, and gdmthemetester</seg>
300 <seg>lib*mouselistener.{so,a} GTK+ modules</seg>
301 <seg>&gnome-etc-dir;/{,g}dm,
302 /var/lib/gdm,
303 /var/log/gdm and the following directories in
304 <envar>$GNOME_PREFIX</envar>/:
305 share/{,gnome/help/ ,omf/}gdm</seg>
306 </seglistitem>
307 </segmentedlist>
308
309 <variablelist>
310 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
311 <?dbfo list-presentation="list"?>
312 <?dbhtml list-presentation="table"?>
313
314 <varlistentry id="gdm-prog">
315 <term><command>gdm</command></term>
316 <listitem>
317 <para>is a wrapper script to execute the
318 <application>GDM</application> binary, the configurable
319 <application>GNOME</application> based login prompt.</para>
320 <indexterm zone="gdm gdm-prog">
321 <primary sortas="b-gdm">gdm</primary>
322 </indexterm>
323 </listitem>
324 </varlistentry>
325
326 <varlistentry id="gdm-restart">
327 <term><command>gdm-restart</command></term>
328 <listitem>
329 <para>sends the HUP signal to the <application>GDM</application>
330 daemon so that it restarts. It's used after the config file
331 is edited</para>
332 <indexterm zone="gdm gdm-restart">
333 <primary sortas="b-gdm-restart">gdm-restart</primary>
334 </indexterm>
335 </listitem>
336 </varlistentry>
337
338 <varlistentry id="gdm-safe-restart">
339 <term><command>gdm-safe-restart</command></term>
340 <listitem>
341 <para>sends the USR1 signal to the <application>GDM</application>
342 daemon so that it restarts. It's used after the config file
343 is edited.</para>
344 <indexterm zone="gdm gdm-safe-restart">
345 <primary sortas="b-gdm-safe-restart">gdm-safe-restart</primary>
346 </indexterm>
347 </listitem>
348 </varlistentry>
349
350 <varlistentry id="gdmsetup">
351 <term><command>gdmsetup</command></term>
352 <listitem>
353 <para>is a graphical interface to edit the
354 <filename>gdm.conf</filename> file.</para>
355 <indexterm zone="gdm gdmsetup">
356 <primary sortas="b-gdmsetup">gdmsetup</primary>
357 </indexterm>
358 </listitem>
359 </varlistentry>
360 </variablelist>
361
362 </sect2>
363
364</sect1>
Note: See TracBrowser for help on using the repository browser.