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