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