source: gnome/add/gdm.xml@ ef04308d

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 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 gimp3 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/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since ef04308d was 6473e74, checked in by Randy McMurchy <randy@…>, 19 years ago

Removed excess EOL whitespace from all package instructions except for the 'x' chapters

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

  • Property mode set to 100644
File size: 12.5 KB
RevLine 
[9d2dc4e2]1<?xml version="1.0" encoding="ISO-8859-1"?>
[ff769b8c]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
[9d2dc4e2]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[7a00ed89]7 <!ENTITY gdm-download-http "&gnome-download-http;/gdm/2.8/gdm-&gdm-version;.tar.bz2">
8 <!ENTITY gdm-download-ftp "&gnome-download-ftp;/gdm/2.8/gdm-&gdm-version;.tar.bz2">
9 <!ENTITY gdm-md5sum "566a1e3d656b6b536414f287ead2db7e">
[45698ce]10 <!ENTITY gdm-size "2.7 MB">
[7a00ed89]11 <!ENTITY gdm-buildsize "51.2 MB">
[45698ce]12 <!ENTITY gdm-time "0.7 SBU">
[9d2dc4e2]13]>
14
[91557b0]15<sect1 id="gdm" xreflabel="GDM-&gdm-version;">
[0ed3f7f]16 <?dbhtml filename="gdm.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
[c72d5551]21 <keywordset>
22 <keyword role="package">gdm-&gdm-version;.tar</keyword>
[e7307aa1]23 <keyword role="ftpdir">gdm</keyword>
[c72d5551]24 </keywordset>
[0ed3f7f]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>
[c72d5551]65 <para role="required"><xref linkend="libgnomeui"/>,
[7a00ed89]66 <xref linkend="scrollkeeper"/>, and
[0ed3f7f]67 <xref linkend="librsvg"/></para>
68
69 <bridgehead renderas="sect4">Optional</bridgehead>
[c72d5551]70 <para role="optional"><xref linkend="linux-pam"/> and
[45698ce]71 <xref linkend="tcpwrappers"/></para>
[0ed3f7f]72
73 </sect2>
74
75 <sect2 role="installation">
76 <title>Installation of GDM</title>
77
[1ab6a6c9]78 <para>It is recommended to have a dedicated user and group to take
[cec675bd]79 control of the <command>gdm-binary</command> daemon after it is
80 started. Issue the following commands as the
[1ab6a6c9]81 <systemitem class="username">root</systemitem> user:</para>
82
[b785ab29]83<screen role='root'><userinput>groupadd -g 21 gdm &amp;&amp;
[45698ce]84useradd -c "GDM Daemon Owner" -d /dev/null \
85 -g gdm -s /bin/bash -u 21 gdm</userinput></screen>
[1ab6a6c9]86
[0ed3f7f]87 <para>Install <application>GDM</application> by running
[1ab6a6c9]88 the following commands as an unprivileged user:</para>
[0ed3f7f]89
[1ab6a6c9]90<screen><userinput>./configure --prefix=`pkg-config --variable=prefix ORBit-2.0` \
[7a00ed89]91 --libexecdir=`pkg-config \
92 --variable=prefix ORBit-2.0`/lib/gdm \
93 --sysconfdir=&gnome-etc-dir; \
94 --localstatedir=/var/lib \
95 --with-pam-prefix=/etc &amp;&amp;
[1ab6a6c9]96make</userinput></screen>
97
98 <para>This package does not come with a test suite.</para>
99
100 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
101
[7a00ed89]102<screen role='root'><userinput>make install</userinput></screen>
[9d2dc4e2]103
[0ed3f7f]104 </sect2>
[9d2dc4e2]105
[0ed3f7f]106 <sect2 role="commands">
107 <title>Command Explanations</title>
[9d2dc4e2]108
[6473e74]109 <para><parameter>--libexecdir=`pkg-config
[8cf3617d]110 --variable=prefix ORBit-2.0`/lib/gdm</parameter>: This parameter is
111 used so that the <application>GDM</application> internal support programs
112 are installed in
113 <filename class='directory'>$GNOME_PREFIX/lib/gdm</filename> instead
114 of <filename class='directory'>$GNOME_PREFIX/libexec</filename>.</para>
115
[a18731b]116 <para><parameter>--sysconfdir=&gnome-etc-dir;</parameter>: This command puts
117 configuration files in <filename class="directory">&gnome-etc-dir;</filename>
[0ed3f7f]118 instead of <filename class="directory">$GNOME_PREFIX/etc</filename>.</para>
[9d2dc4e2]119
[0ed3f7f]120 <para><parameter>--localstatedir=/var/lib</parameter>: This command
121 puts files in <filename class="directory">/var/lib</filename> instead of
[cec675bd]122 <filename class="directory">$GNOME_PREFIX/var</filename>. This also has
123 the downside affect of using
124 <filename class='directory'>/var/lib/log/gdm</filename> as the log
125 directory. See the <quote>Configuration Information</quote> section below
[7a00ed89]126 for instructions on relocating the log file directory.</para>
[9d2dc4e2]127
[0ed3f7f]128 <para><parameter>--with-pam-prefix=/etc</parameter>: This command puts
129 <application>PAM</application> configuration files in
130 <filename class="directory">/etc/pam.d</filename> instead of
[7a00ed89]131 <filename class="directory">&gnome-etc-dir;</filename>.</para>
[9d2dc4e2]132
[0ed3f7f]133 </sect2>
[9d2dc4e2]134
[0ed3f7f]135 <sect2 role="configuration">
136 <title>Configuring GDM</title>
[9d2dc4e2]137
[0ed3f7f]138 <sect3 id="gdm-config">
139 <title>Config Files</title>
[9d2dc4e2]140
[a18731b]141 <para><filename>&gnome-etc-dir;/gdm/gdm.conf</filename></para>
[9d2dc4e2]142
[0ed3f7f]143 <indexterm zone="gdm gdm-config">
[a18731b]144 <primary sortas="e-etc-gnome-&gnome-version;&gnome-minor-version;gdm-gdm.conf">
145 &gnome-etc-dir;/gdm/gdm.conf</primary>
[0ed3f7f]146 </indexterm>
[bd0a1b0]147
[0ed3f7f]148 </sect3>
149
150 <sect3>
151 <title>Configuration Information</title>
152
[3102d0f]153 <para>Change the directory containing the <application>GDM</application>
154 log files to the <filename class='directory'>/var/log</filename>
155 hierarchy by creating a directory and modifying the
[a18731b]156 <filename>&gnome-etc-dir;/gdm/gdm.conf</filename> configuration file. Issue
[3102d0f]157 the following commands as the
158 <systemitem class="username">root</systemitem> user:</para>
159
160<screen role="root"><userinput>install -v -m755 -d /var/log/gdm &amp;&amp;
[7a00ed89]161sed -i "s|var/lib/log|var/log|" &gnome-etc-dir;/gdm/gdm.conf &amp;&amp;
162rmdir -v /var/lib/log/gdm &amp;&amp;
163rmdir -v /var/lib/log</userinput></screen>
[1ab6a6c9]164
[0ed3f7f]165 <para>The <application>GDM</application> <application>PAM</application>
[7a00ed89]166 configuration files contain modules not present in a BLFS installation.
167 If you have <application>PAM</application> installed, issue the following
168 commands as the <systemitem class="username">root</systemitem> user to
169 replace those files with files containing correctly specified
170 modules:</para>
[0ed3f7f]171
172<screen role="root"><userinput>cat &gt; /etc/pam.d/gdm &lt;&lt; "EOF"
173<literal>auth required pam_unix.so
[9d2dc4e2]174auth required pam_nologin.so
175account required pam_unix.so
176password required pam_unix.so
[0ed3f7f]177session required pam_unix.so</literal>
[45698ce]178
[0ed3f7f]179EOF
180cat &gt; /etc/pam.d/gdm-autologin &lt;&lt; "EOF"
181<literal>auth required pam_env.so
[9d2dc4e2]182auth required pam_nologin.so
183auth required pam_permit.so
184account required pam_unix.so
185password required pam_unix.so
[0ed3f7f]186session required pam_unix.so</literal>
[45698ce]187
[0ed3f7f]188EOF</userinput></screen>
189
190 <indexterm zone="gdm gdm-config">
191 <primary sortas="e-etc-pam.d-gdm">/etc/pam.d/gdm</primary>
192 </indexterm>
193
194 <indexterm zone="gdm gdm-config">
195 <primary
196 sortas="e-etc-pam.d-gdm-autologin">/etc/pam.d/gdm-autologin</primary>
197 </indexterm>
198
[3565e02]199 <para id="gdm-config-dbus">If you have <application>D-BUS</application>
200 installed and you want to start the session
201 <application>D-BUS</application> daemon when you start the GNOME desktop
202 environment using <command>gdm</command>, you'll need to create a new
203 Xsession file. Create the file using the following command as the root
204 user.</para>
205
206<screen role="root"><userinput>cat &gt; $GNOME_PREFIX/share/xsessions/gnome-dbus.desktop &lt;&lt; "EOF"
207<literal>[Desktop Entry]
208Encoding=UTF-8
209Name=GNOME with D-BUS
210Comment=GNOME Desktop with D-BUS support
211Exec=dbus-launch --exit-with-session gnome-session
212TryExec=/usr/bin/dbus-launch
213Icon=
214Type=Application</literal>
215
[7a00ed89]216EOF
217chmod -v 644 $GNOME_PREFIX/share/xsessions/gnome-dbus.desktop</userinput></screen>
[3565e02]218
219 <para>Choose this session using the session selection dialog on the
220 display manager login screen. You also have the opportunity to make this
221 your default session.</para>
222
[cbf206e]223 <note>
224 <para>You may use the <filename class='extension'>.desktop</filename>
225 file created above as an example to create additional
226 <filename class='extension'>.desktop</filename> files and add any other
227 desired items to the <application>GDM</application> display manager session
228 selection menu.</para>
229 </note>
230
[3565e02]231 <para><command>gdm</command> can be tested by executing it as the
232 <systemitem class="username">root</systemitem> user. Use the
233 <command>gdm-stop</command> command if you wish to stop the display
234 manager.</para>
[0ed3f7f]235
236 </sect3>
237
[1ab6a6c9]238 <sect3 id="gdm-init">
[0ed3f7f]239 <title>Boot Script</title>
240
[7a00ed89]241 <para>To start a graphical login when the system is booted, install the
[0ed3f7f]242 <filename>/etc/rc.d/init.d/gdm</filename> init script included in the
[5254d12]243 <xref linkend="bootscripts"/> package. If your
[94cc990]244 <envar>GNOME_PREFIX</envar> environment variable is anything other than
[7a00ed89]245 <filename class='directory'>/usr</filename> or <filename
246 class='directory'>/opt/gnome-&gnome-version;&gnome-minor-version;</filename>,
247 you will need to modify the <envar>PATH</envar> statement in the script
248 to include the path where you have <application>GNOME</application>
[3565e02]249 installed.</para>
[0ed3f7f]250
251 <indexterm zone="gdm gdm-init">
252 <primary sortas="f-gdm">gdm</primary>
253 </indexterm>
254
255<screen role="root"><userinput>make install-gdm</userinput></screen>
256
257 <para>To autostart with a graphical login, edit
258 <filename>/etc/inittab</filename> so that the line containing:</para>
259
260<screen><literal>id:3:initdefault:</literal></screen>
261
262 <para>is changed to:</para>
263
264<screen><literal>id:5:initdefault:</literal></screen>
265
266 </sect3>
267
268 </sect2>
269
270 <sect2 role="content">
271 <title>Contents</title>
272
273 <segmentedlist>
274 <segtitle>Installed Programs</segtitle>
275 <segtitle>Installed Libraries</segtitle>
276 <segtitle>Installed Directories</segtitle>
277
278 <seglistitem>
[7a00ed89]279 <seg>gdm, gdm-binary, gdm-dmx-reconnect-proxy, gdm-restart,
280 gdm-safe-restart, gdm-stop, gdmXnest, gdmXnestchooser, gdmdynamic,
281 gdmflexiserver, gdmphotosetup, gdmsetup, and gdmthemetester</seg>
[0ed3f7f]282 <seg>None</seg>
[8cf3617d]283 <seg>&gnome-etc-dir;/[,g]dm,
284 /var/lib/gdm,
285 /var/log/gdm and the following directories in $GNOME_PREFIX/:
286 share/[[,gnome/help/ ,omf/]gdm, gnome/capplets, xsessions]</seg>
[0ed3f7f]287 </seglistitem>
288 </segmentedlist>
289
290 <variablelist>
291 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
292 <?dbfo list-presentation="list"?>
293 <?dbhtml list-presentation="table"?>
294
295 <varlistentry id="gdm-prog">
296 <term><command>gdm</command></term>
297 <listitem>
298 <para>is a wrapper script to execute the
299 <application>GDM</application> binary, the configurable
300 <application>GNOME</application> based login prompt.</para>
301 <indexterm zone="gdm gdm-prog">
302 <primary sortas="b-gdm">gdm</primary>
303 </indexterm>
304 </listitem>
305 </varlistentry>
306
307 <varlistentry id="gdm-restart">
308 <term><command>gdm-restart</command></term>
309 <listitem>
310 <para>sends the HUP signal to the <application>GDM</application>
311 daemon so that it restarts. It's used after the config file
312 is edited</para>
313 <indexterm zone="gdm gdm-restart">
314 <primary sortas="b-gdm-restart">gdm-restart</primary>
315 </indexterm>
316 </listitem>
317 </varlistentry>
318
319 <varlistentry id="gdm-safe-restart">
320 <term><command>gdm-safe-restart</command></term>
321 <listitem>
322 <para>sends the USR1 signal to the <application>GDM</application>
323 daemon so that it restarts. It's used after the config file
324 is edited.</para>
325 <indexterm zone="gdm gdm-safe-restart">
326 <primary sortas="b-gdm-safe-restart">gdm-safe-restart</primary>
327 </indexterm>
328 </listitem>
329 </varlistentry>
330
[7a00ed89]331 <varlistentry id="gdmsetup">
332 <term><command>gdmsetup</command></term>
[0ed3f7f]333 <listitem>
[7a00ed89]334 <para>is a graphical interface to edit the
335 <filename>gdm.conf</filename> file.</para>
336 <indexterm zone="gdm gdmsetup">
337 <primary sortas="b-gdmsetup">gdmsetup</primary>
[0ed3f7f]338 </indexterm>
339 </listitem>
340 </varlistentry>
341 </variablelist>
342
343 </sect2>
[91557b0]344
345</sect1>
Note: See TracBrowser for help on using the repository browser.