source: gnome/add/gdm.xml@ 5254d12

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

Standardized the id tag name of the Bootscripts package

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

  • Property mode set to 100644
File size: 12.9 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 "http://ftp.gnome.org/pub/GNOME/sources/gdm/2.8/gdm-&gdm-version;.tar.bz2">
8 <!ENTITY gdm-download-ftp "ftp://ftp.gnome.org/pub/GNOME/sources/gdm/2.8/gdm-&gdm-version;.tar.bz2">
9 <!ENTITY gdm-md5sum "2944ba9c2a2bf7032ac81dc24eecf32d">
10 <!ENTITY gdm-size "2.7 MB">
11 <!ENTITY gdm-buildsize "51.7 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 <keywordset>
22 <keyword role="package">gdm-&gdm-version;.tar</keyword>
23 <keyword role="ftpdir">gdm</keyword>
24 </keywordset>
25 </sect1info>
26
27 <title>GDM-&gdm-version;</title>
28
29 <indexterm zone="gdm">
30 <primary sortas="a-GDM">GDM</primary>
31 </indexterm>
32
33 <sect2 role="package">
34 <title>Introduction to GDM</title>
35
36 <para>The <application>GDM</application> package contains
37 <application>GNOME</application>'s Display Manager daemon. This is
38 useful for allowing configurable graphical logins.</para>
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>Download (HTTP): <ulink url="&gdm-download-http;"/></para>
44 </listitem>
45 <listitem>
46 <para>Download (FTP): <ulink url="&gdm-download-ftp;"/></para>
47 </listitem>
48 <listitem>
49 <para>Download MD5 sum: &gdm-md5sum;</para>
50 </listitem>
51 <listitem>
52 <para>Download size: &gdm-size;</para>
53 </listitem>
54 <listitem>
55 <para>Estimated disk space required: &gdm-buildsize;</para>
56 </listitem>
57 <listitem>
58 <para>Estimated build time: &gdm-time;</para>
59 </listitem>
60 </itemizedlist>
61
62 <bridgehead renderas="sect3">GDM Dependencies</bridgehead>
63
64 <bridgehead renderas="sect4">Required</bridgehead>
65 <para role="required"><xref linkend="libgnomeui"/>,
66 <xref linkend="scrollkeeper"/> and
67 <xref linkend="librsvg"/></para>
68
69 <bridgehead renderas="sect4">Optional</bridgehead>
70 <para role="optional"><xref linkend="linux-pam"/> and
71 <xref linkend="tcpwrappers"/></para>
72
73 </sect2>
74
75 <sect2 role="installation">
76 <title>Installation of GDM</title>
77
78 <para>It is recommended to have a dedicated user and group to take
79 control of the <command>gdm-binary</command> daemon after it is
80 started. Issue the following commands as the
81 <systemitem class="username">root</systemitem> user:</para>
82
83<screen role='root'><userinput>groupadd -g 21 gdm &amp;&amp;
84useradd -c "GDM Daemon Owner" -d /dev/null \
85 -g gdm -s /bin/bash -u 21 gdm</userinput></screen>
86
87 <para>Install <application>GDM</application> by running
88 the following commands as an unprivileged user:</para>
89
90<screen><userinput>./configure --prefix=`pkg-config --variable=prefix ORBit-2.0` \
91 --libexecdir=`pkg-config --variable=prefix ORBit-2.0`/sbin \
92 --sysconfdir=/etc/gnome --localstatedir=/var/lib \
93 --with-pam-prefix=/etc &amp;&amp;
94make</userinput></screen>
95
96 <para>This package does not come with a test suite.</para>
97
98 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
99
100<screen role='root'><userinput>make install &amp;&amp;
101chmod -v 644 `pkg-config --variable=prefix ORBit-2.0`\
102/share/gdm/BuiltInSessions/default.desktop \
103 `pkg-config --variable=prefix ORBit-2.0`\
104/share/xsessions/gnome.desktop</userinput></screen>
105
106 </sect2>
107
108 <sect2 role="commands">
109 <title>Command Explanations</title>
110
111 <para><parameter>--sysconfdir=/etc/gnome</parameter>: This command puts
112 configuration files in <filename class="directory">/etc/gnome</filename>
113 instead of <filename class="directory">$GNOME_PREFIX/etc</filename>.</para>
114
115 <para><parameter>--localstatedir=/var/lib</parameter>: This command
116 puts files in <filename class="directory">/var/lib</filename> instead of
117 <filename class="directory">$GNOME_PREFIX/var</filename>. This also has
118 the downside affect of using
119 <filename class='directory'>/var/lib/log/gdm</filename> as the log
120 directory. See the <quote>Configuration Information</quote> section below
121 for information how to relocate the log file directory.</para>
122
123 <para><parameter>--with-pam-prefix=/etc</parameter>: This command puts
124 <application>PAM</application> configuration files in
125 <filename class="directory">/etc/pam.d</filename> instead of
126 <filename class="directory">/etc/gnome</filename>.</para>
127
128 </sect2>
129
130 <sect2 role="configuration">
131 <title>Configuring GDM</title>
132
133 <sect3 id="gdm-config">
134 <title>Config Files</title>
135
136 <para><filename>/etc/gnome/gdm/gdm.conf</filename></para>
137
138 <indexterm zone="gdm gdm-config">
139 <primary sortas="e-etc-gnome-gdm-gdm.conf">/etc/gnome/gdm/gdm.conf</primary>
140 </indexterm>
141
142 </sect3>
143
144 <sect3>
145 <title>Configuration Information</title>
146
147 <para>Change the directory containing the <application>GDM</application>
148 log files to the <filename class='directory'>/var/log</filename>
149 hierarchy by creating a directory and modifying the
150 <filename>/etc/gnome/gdm/gdm.conf</filename> configuration file. Issue
151 the following commands as the
152 <systemitem class="username">root</systemitem> user:</para>
153
154<screen role="root"><userinput>install -v -m755 -d /var/log/gdm &amp;&amp;
155sed -i "s|var/lib/log|var/log|" /etc/gnome/gdm/gdm.conf</userinput></screen>
156
157 <para>The <application>GDM</application> <application>PAM</application>
158 config files contain modules not present in a BLFS installation. The
159 following commands will replace those files (issue as the
160 <systemitem class="username">root</systemitem> user):</para>
161
162<screen role="root"><userinput>cat &gt; /etc/pam.d/gdm &lt;&lt; "EOF"
163<literal>auth required pam_unix.so
164auth required pam_nologin.so
165account required pam_unix.so
166password required pam_unix.so
167session required pam_unix.so</literal>
168
169EOF
170cat &gt; /etc/pam.d/gdm-autologin &lt;&lt; "EOF"
171<literal>auth required pam_env.so
172auth required pam_nologin.so
173auth required pam_permit.so
174account required pam_unix.so
175password required pam_unix.so
176session required pam_unix.so</literal>
177
178EOF</userinput></screen>
179
180 <indexterm zone="gdm gdm-config">
181 <primary sortas="e-etc-pam.d-gdm">/etc/pam.d/gdm</primary>
182 </indexterm>
183
184 <indexterm zone="gdm gdm-config">
185 <primary
186 sortas="e-etc-pam.d-gdm-autologin">/etc/pam.d/gdm-autologin</primary>
187 </indexterm>
188
189 <para id="gdm-config-dbus">If you have <application>D-BUS</application>
190 installed and you want to start the session
191 <application>D-BUS</application> daemon when you start the GNOME desktop
192 environment using <command>gdm</command>, you'll need to create a new
193 Xsession file. Create the file using the following command as the root
194 user.</para>
195
196<screen role="root"><userinput>cat &gt; $GNOME_PREFIX/share/xsessions/gnome-dbus.desktop &lt;&lt; "EOF"
197<literal>[Desktop Entry]
198Encoding=UTF-8
199Name=GNOME with D-BUS
200Comment=GNOME Desktop with D-BUS support
201Exec=dbus-launch --exit-with-session gnome-session
202TryExec=/usr/bin/dbus-launch
203Icon=
204Type=Application</literal>
205
206EOF</userinput></screen>
207
208 <para>Choose this session using the session selection dialog on the
209 display manager login screen. You also have the opportunity to make this
210 your default session.</para>
211
212 <note>
213 <para>You may use the <filename class='extension'>.desktop</filename>
214 file created above as an example to create additional
215 <filename class='extension'>.desktop</filename> files and add any other
216 desired items to the <application>GDM</application> display manager session
217 selection menu.</para>
218 </note>
219
220 <para><command>gdm</command> can be tested by executing it as the
221 <systemitem class="username">root</systemitem> user. Use the
222 <command>gdm-stop</command> command if you wish to stop the display
223 manager.</para>
224
225 </sect3>
226
227 <sect3 id="gdm-init">
228 <title>Boot Script</title>
229
230 <para>To start a graphical login at boot, install the
231 <filename>/etc/rc.d/init.d/gdm</filename> init script included in the
232 <xref linkend="bootscripts"/> package. If your
233 <envar>GNOME_PREFIX</envar> environment variable is anything other than
234 <filename class='directory'>/usr</filename> or
235 <filename class='directory'>/opt/gnome-&gnome-version;</filename>, you
236 will need to modify the <envar>PATH</envar> statement in the script to
237 include the path where you have <application>GNOME</application>
238 installed.</para>
239
240 <indexterm zone="gdm gdm-init">
241 <primary sortas="f-gdm">gdm</primary>
242 </indexterm>
243
244<screen role="root"><userinput>make install-gdm</userinput></screen>
245
246 <para>To autostart with a graphical login, edit
247 <filename>/etc/inittab</filename> so that the line containing:</para>
248
249<screen><literal>id:3:initdefault:</literal></screen>
250
251 <para>is changed to:</para>
252
253<screen><literal>id:5:initdefault:</literal></screen>
254
255 </sect3>
256
257 </sect2>
258
259 <sect2 role="content">
260 <title>Contents</title>
261
262 <segmentedlist>
263 <segtitle>Installed Programs</segtitle>
264 <segtitle>Installed Libraries</segtitle>
265 <segtitle>Installed Directories</segtitle>
266
267 <seglistitem>
268 <seg>gdm, gdm-binary, gdmXnest, gdmXnestchooser, gdmchooser,
269 gdmflexiserver, gdmgreeter, gdmlogin, gdmphotosetup, gdmsetup,
270 gdmthemetester, gdm-restart, gdm-safe-restart, gdm-stop,
271 gdmconfig, gdmopen, and gdmtranslate</seg>
272 <seg>None</seg>
273 <seg>/etc/gnome/dm, /etc/gnome/gdm,
274 $GNOME_PREFIX/share/gdm,
275 $GNOME_PREFIX/share/gnome/capplets,
276 $GNOME_PREFIX/share/gnome/help/gdm,
277 $GNOME_PREFIX/share/omf/gdm,
278 $GNOME_PREFIX/share/xsessions,
279 /var/lib/gdm and /var/log/gdm</seg>
280 </seglistitem>
281 </segmentedlist>
282
283 <variablelist>
284 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
285 <?dbfo list-presentation="list"?>
286 <?dbhtml list-presentation="table"?>
287
288 <varlistentry id="gdm-prog">
289 <term><command>gdm</command></term>
290 <listitem>
291 <para>is a wrapper script to execute the
292 <application>GDM</application> binary, the configurable
293 <application>GNOME</application> based login prompt.</para>
294 <indexterm zone="gdm gdm-prog">
295 <primary sortas="b-gdm">gdm</primary>
296 </indexterm>
297 </listitem>
298 </varlistentry>
299
300 <varlistentry id="gdmchooser">
301 <term><command>gdmchooser</command></term>
302 <listitem>
303 <para>is an application for selecting XDMCP enabled hosts on
304 the local network.</para>
305 <indexterm zone="gdm gdmchooser">
306 <primary sortas="b-gdmchooser">gdmchooser</primary>
307 </indexterm>
308 </listitem>
309 </varlistentry>
310
311 <varlistentry id="gdmsetup">
312 <term><command>gdmsetup</command></term>
313 <listitem>
314 <para>is a graphical interface to edit the
315 <filename>gdm.conf</filename> file.</para>
316 <indexterm zone="gdm gdmsetup">
317 <primary sortas="b-gdmsetup">gdmsetup</primary>
318 </indexterm>
319 </listitem>
320 </varlistentry>
321
322 <varlistentry id="gdm-restart">
323 <term><command>gdm-restart</command></term>
324 <listitem>
325 <para>sends the HUP signal to the <application>GDM</application>
326 daemon so that it restarts. It's used after the config file
327 is edited</para>
328 <indexterm zone="gdm gdm-restart">
329 <primary sortas="b-gdm-restart">gdm-restart</primary>
330 </indexterm>
331 </listitem>
332 </varlistentry>
333
334 <varlistentry id="gdm-safe-restart">
335 <term><command>gdm-safe-restart</command></term>
336 <listitem>
337 <para>sends the USR1 signal to the <application>GDM</application>
338 daemon so that it restarts. It's used after the config file
339 is edited.</para>
340 <indexterm zone="gdm gdm-safe-restart">
341 <primary sortas="b-gdm-safe-restart">gdm-safe-restart</primary>
342 </indexterm>
343 </listitem>
344 </varlistentry>
345
346 <varlistentry id="gdmconfig">
347 <term><command>gdmconfig</command></term>
348 <listitem>
349 <para>is an application for managing the configuration of the
350 entire <application>GDM</application> applications suite. It
351 handles look and feel, security, XDMCP, GDMchooser and more.</para>
352 <indexterm zone="gdm gdmconfig">
353 <primary sortas="b-gdmconfig">gdmconfig</primary>
354 </indexterm>
355 </listitem>
356 </varlistentry>
357
358 </variablelist>
359
360 </sect2>
361
362</sect1>
Note: See TracBrowser for help on using the repository browser.