source: gnome/add/gdm.xml@ 3102d0f

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

Added a command to create the logging directory in the GDM instructions, thanks to Vincent Fretin for pointing out the oversight

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

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