source: gnome/add/gdm.xml@ 3b4770b

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

Updated to GDM-2.26.1

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

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