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