2004-06-15 08:20:58 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2005-04-04 04:52:42 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
2004-06-15 08:20:58 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2005-05-22 00:13:49 +08:00
|
|
|
<!ENTITY gdm-download-http "http://ftp.gnome.org/pub/GNOME/sources/gdm/2.6/gdm-&gdm-version;.tar.bz2">
|
|
|
|
<!ENTITY gdm-download-ftp "ftp://ftp.gnome.org/pub/GNOME/sources/gdm/2.6/gdm-&gdm-version;.tar.bz2">
|
2005-05-30 20:17:15 +08:00
|
|
|
<!ENTITY gdm-md5sum "d845fe205412bb101d4c66d1e88a317d">
|
|
|
|
<!ENTITY gdm-size "3.4 MB">
|
|
|
|
<!ENTITY gdm-buildsize "46 MB">
|
|
|
|
<!ENTITY gdm-time "0.5 SBU">
|
2004-06-15 08:20:58 +08:00
|
|
|
]>
|
|
|
|
|
2004-05-14 21:59:28 +08:00
|
|
|
<sect1 id="gdm" xreflabel="GDM-&gdm-version;">
|
2005-05-22 00:13:49 +08:00
|
|
|
<?dbhtml filename="gdm.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>GDM-&gdm-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="gdm">
|
|
|
|
<primary sortas="a-GDM">GDM</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to GDM</title>
|
|
|
|
|
|
|
|
<para>The <application>GDM</application> package contains
|
|
|
|
<application>GNOME</application>'s Display Manager daemon. This is
|
|
|
|
useful for allowing configurable graphical logins.</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>Download (HTTP): <ulink url="&gdm-download-http;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (FTP): <ulink url="&gdm-download-ftp;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &gdm-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download size: &gdm-size;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated disk space required: &gdm-buildsize;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated build time: &gdm-time;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">GDM Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
|
|
<para><xref linkend="libgnomeui"/>,
|
|
|
|
<xref linkend="scrollkeeper"/> and
|
|
|
|
<xref linkend="librsvg"/></para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
|
|
<para><xref linkend="Linux_PAM"/>,
|
|
|
|
<xref linkend="tcpwrappers"/> and
|
|
|
|
<ulink url="http://www.nsa.gov/selinux/">SELinux</ulink></para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of GDM</title>
|
|
|
|
|
2005-05-30 20:17:15 +08:00
|
|
|
<para>It is recommended to have a dedicated user and group to take
|
2005-05-31 05:42:20 +08:00
|
|
|
control of the <command>gdm-binary</command> daemon after it is
|
|
|
|
started. Issue the following commands as the
|
2005-05-30 20:17:15 +08:00
|
|
|
<systemitem class="username">root</systemitem> user:</para>
|
|
|
|
|
2005-06-06 05:06:40 +08:00
|
|
|
<screen role='root'><userinput>groupadd -g 21 gdm &&
|
|
|
|
useradd -c "GDM Daemon Owner" -d /dev/null -g gdm -s /bin/bash -u 21 gdm</userinput></screen>
|
2005-05-30 20:17:15 +08:00
|
|
|
|
2005-05-22 00:13:49 +08:00
|
|
|
<para>Install <application>GDM</application> by running
|
2005-05-30 20:17:15 +08:00
|
|
|
the following commands as an unprivileged user:</para>
|
2005-05-22 00:13:49 +08:00
|
|
|
|
2005-05-30 20:17:15 +08:00
|
|
|
<screen><userinput>./configure --prefix=`pkg-config --variable=prefix ORBit-2.0` \
|
2004-06-15 08:20:58 +08:00
|
|
|
--libexecdir=`pkg-config --variable=prefix ORBit-2.0`/sbin \
|
|
|
|
--sysconfdir=/etc/gnome --localstatedir=/var/lib \
|
|
|
|
--with-pam-prefix=/etc &&
|
2005-05-30 20:17:15 +08:00
|
|
|
make</userinput></screen>
|
|
|
|
|
|
|
|
<para>This package does not come with a test suite.</para>
|
|
|
|
|
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
|
2005-05-31 11:22:53 +08:00
|
|
|
<screen role='root'><userinput>make install &&
|
2005-08-22 23:47:10 +08:00
|
|
|
chmod -v 644 `pkg-config --variable=prefix ORBit-2.0`\
|
2005-05-31 11:22:53 +08:00
|
|
|
/share/gdm/BuiltInSessions/default.desktop &&
|
2005-08-22 23:47:10 +08:00
|
|
|
chmod -v 644 `pkg-config --variable=prefix ORBit-2.0`\
|
2005-05-31 11:22:53 +08:00
|
|
|
/share/xsessions/gnome.desktop</userinput></screen>
|
2004-06-15 08:20:58 +08:00
|
|
|
|
2005-05-22 00:13:49 +08:00
|
|
|
</sect2>
|
2004-06-15 08:20:58 +08:00
|
|
|
|
2005-05-22 00:13:49 +08:00
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
2004-06-15 08:20:58 +08:00
|
|
|
|
2005-05-22 00:13:49 +08:00
|
|
|
<para><parameter>--sysconfdir=/etc/gnome</parameter>: This command puts
|
|
|
|
configuration files in <filename class="directory">/etc/gnome</filename>
|
|
|
|
instead of <filename class="directory">$GNOME_PREFIX/etc</filename>.</para>
|
2004-06-15 08:20:58 +08:00
|
|
|
|
2005-05-22 00:13:49 +08:00
|
|
|
<para><parameter>--localstatedir=/var/lib</parameter>: This command
|
|
|
|
puts files in <filename class="directory">/var/lib</filename> instead of
|
2005-05-31 05:42:20 +08:00
|
|
|
<filename class="directory">$GNOME_PREFIX/var</filename>. This also has
|
|
|
|
the downside affect of using
|
|
|
|
<filename class='directory'>/var/lib/log/gdm</filename> as the log
|
|
|
|
directory. See the <quote>Configuration Information</quote> section below
|
2005-05-30 20:17:15 +08:00
|
|
|
for information how to relocate the log file directory.</para>
|
2004-06-15 08:20:58 +08:00
|
|
|
|
2005-05-22 00:13:49 +08:00
|
|
|
<para><parameter>--with-pam-prefix=/etc</parameter>: This command puts
|
|
|
|
<application>PAM</application> configuration files in
|
|
|
|
<filename class="directory">/etc/pam.d</filename> instead of
|
|
|
|
<filename class="directory">/etc/gnome</filename>.</para>
|
2004-06-15 08:20:58 +08:00
|
|
|
|
2005-05-22 00:13:49 +08:00
|
|
|
</sect2>
|
2004-06-15 08:20:58 +08:00
|
|
|
|
2005-05-22 00:13:49 +08:00
|
|
|
<sect2 role="configuration">
|
|
|
|
<title>Configuring GDM</title>
|
2004-06-15 08:20:58 +08:00
|
|
|
|
2005-05-22 00:13:49 +08:00
|
|
|
<sect3 id="gdm-config">
|
|
|
|
<title>Config Files</title>
|
2004-06-15 08:20:58 +08:00
|
|
|
|
2005-05-22 00:13:49 +08:00
|
|
|
<para><filename>/etc/gnome/gdm/gdm.conf</filename></para>
|
2004-06-15 08:20:58 +08:00
|
|
|
|
2005-05-22 00:13:49 +08:00
|
|
|
<indexterm zone="gdm gdm-config">
|
|
|
|
<primary sortas="e-etc-gnome-gdm-gdm.conf">/etc/gnome/gdm/gdm.conf</primary>
|
|
|
|
</indexterm>
|
2004-12-03 13:29:03 +08:00
|
|
|
|
2005-05-22 00:13:49 +08:00
|
|
|
</sect3>
|
|
|
|
|
|
|
|
<sect3>
|
|
|
|
<title>Configuration Information</title>
|
|
|
|
|
2005-05-31 05:42:20 +08:00
|
|
|
<para>If desired, change the directory containing the
|
|
|
|
<application>GDM</application> log files to the
|
2005-05-30 20:17:15 +08:00
|
|
|
<filename class='directory'>/var/log</filename> hierarchy by modifying
|
|
|
|
the <filename>/etc/gnome/gdm/gdm.conf</filename> configuration file as
|
|
|
|
the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>sed -i -e "s|var/lib/log|var/log|" /etc/gnome/gdm/gdm.conf</userinput></screen>
|
|
|
|
|
2005-05-22 00:13:49 +08:00
|
|
|
<para>The <application>GDM</application> <application>PAM</application>
|
|
|
|
config files contain modules not present in a BLFS installation. The
|
2005-05-31 05:42:20 +08:00
|
|
|
following commands will replace those files (issue as the
|
2005-05-30 20:17:15 +08:00
|
|
|
<systemitem class="username">root</systemitem> user):</para>
|
2005-05-22 00:13:49 +08:00
|
|
|
|
|
|
|
<screen role="root"><userinput>cat > /etc/pam.d/gdm << "EOF"
|
|
|
|
<literal>auth required pam_unix.so
|
2004-06-15 08:20:58 +08:00
|
|
|
auth required pam_nologin.so
|
|
|
|
account required pam_unix.so
|
|
|
|
password required pam_unix.so
|
2005-05-22 00:13:49 +08:00
|
|
|
session required pam_unix.so</literal>
|
|
|
|
EOF
|
|
|
|
cat > /etc/pam.d/gdm-autologin << "EOF"
|
|
|
|
<literal>auth required pam_env.so
|
2004-06-15 08:20:58 +08:00
|
|
|
auth required pam_nologin.so
|
|
|
|
auth required pam_permit.so
|
|
|
|
account required pam_unix.so
|
|
|
|
password required pam_unix.so
|
2005-05-22 00:13:49 +08:00
|
|
|
session required pam_unix.so</literal>
|
|
|
|
EOF</userinput></screen>
|
|
|
|
|
|
|
|
<indexterm zone="gdm gdm-config">
|
|
|
|
<primary sortas="e-etc-pam.d-gdm">/etc/pam.d/gdm</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<indexterm zone="gdm gdm-config">
|
|
|
|
<primary
|
|
|
|
sortas="e-etc-pam.d-gdm-autologin">/etc/pam.d/gdm-autologin</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<para><command>gdm</command> can be tested by executing it from a
|
|
|
|
<systemitem class="username">root</systemitem> console.</para>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
2005-05-30 20:17:15 +08:00
|
|
|
<sect3 id="gdm-init">
|
2005-05-22 00:13:49 +08:00
|
|
|
<title>Boot Script</title>
|
|
|
|
|
|
|
|
<para>To start a graphical login at boot, install the
|
|
|
|
<filename>/etc/rc.d/init.d/gdm</filename> init script included in the
|
2005-06-01 02:10:31 +08:00
|
|
|
<xref linkend="intro-important-bootscripts"/> package. If your
|
|
|
|
<envar>GNOME_PREFIX</envar> environment variable is anything other than
|
|
|
|
<filename class='directory'>/usr</filename> or
|
|
|
|
<filename class='directory'>/opt/gnome-2.10</filename>, you will need to
|
|
|
|
modify the <envar>PATH</envar> statement in the script to include the
|
|
|
|
path where you have <application>GNOME</application> installed.</para>
|
2005-05-22 00:13:49 +08:00
|
|
|
|
|
|
|
<indexterm zone="gdm gdm-init">
|
|
|
|
<primary sortas="f-gdm">gdm</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>make install-gdm</userinput></screen>
|
|
|
|
|
|
|
|
<para>To autostart with a graphical login, edit
|
|
|
|
<filename>/etc/inittab</filename> so that the line containing:</para>
|
|
|
|
|
|
|
|
<screen><literal>id:3:initdefault:</literal></screen>
|
|
|
|
|
|
|
|
<para>is changed to:</para>
|
|
|
|
|
|
|
|
<screen><literal>id:5:initdefault:</literal></screen>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>gdm, gdm-binary, gdmXnest, gdmXnestchooser, gdmchooser,
|
|
|
|
gdmflexiserver, gdmgreeter, gdmlogin, gdmphotosetup, gdmsetup,
|
|
|
|
gdmthemetester, gdm-restart, gdm-safe-restart, gdm-stop,
|
|
|
|
gdmconfig, gdmopen, and gdmtranslate</seg>
|
|
|
|
<seg>None</seg>
|
2005-05-31 05:42:20 +08:00
|
|
|
<seg>/etc/gnome/dm, /etc/gnome/gdm,
|
2005-05-30 20:17:15 +08:00
|
|
|
$GNOME_PREFIX/share/gdm,
|
|
|
|
$GNOME_PREFIX/share/gnome/capplets,
|
|
|
|
$GNOME_PREFIX/share/gnome/help/gdm,
|
|
|
|
$GNOME_PREFIX/share/omf/gdm,
|
|
|
|
$GNOME_PREFIX/share/xsessions,
|
|
|
|
/var/lib/gdm and /var/log/gdm</seg>
|
2005-05-22 00:13:49 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="gdm-prog">
|
|
|
|
<term><command>gdm</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is a wrapper script to execute the
|
|
|
|
<application>GDM</application> binary, the configurable
|
|
|
|
<application>GNOME</application> based login prompt.</para>
|
|
|
|
<indexterm zone="gdm gdm-prog">
|
|
|
|
<primary sortas="b-gdm">gdm</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="gdmchooser">
|
|
|
|
<term><command>gdmchooser</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is an application for selecting XDMCP enabled hosts on
|
|
|
|
the local network.</para>
|
|
|
|
<indexterm zone="gdm gdmchooser">
|
|
|
|
<primary sortas="b-gdmchooser">gdmchooser</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="gdmsetup">
|
|
|
|
<term><command>gdmsetup</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is a graphical interface to edit the
|
|
|
|
<filename>gdm.conf</filename> file.</para>
|
|
|
|
<indexterm zone="gdm gdmsetup">
|
|
|
|
<primary sortas="b-gdmsetup">gdmsetup</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="gdm-restart">
|
|
|
|
<term><command>gdm-restart</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>sends the HUP signal to the <application>GDM</application>
|
|
|
|
daemon so that it restarts. It's used after the config file
|
|
|
|
is edited</para>
|
|
|
|
<indexterm zone="gdm gdm-restart">
|
|
|
|
<primary sortas="b-gdm-restart">gdm-restart</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="gdm-safe-restart">
|
|
|
|
<term><command>gdm-safe-restart</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>sends the USR1 signal to the <application>GDM</application>
|
|
|
|
daemon so that it restarts. It's used after the config file
|
|
|
|
is edited.</para>
|
|
|
|
<indexterm zone="gdm gdm-safe-restart">
|
|
|
|
<primary sortas="b-gdm-safe-restart">gdm-safe-restart</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="gdmconfig">
|
|
|
|
<term><command>gdmconfig</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is an application for managing the configuration of the
|
|
|
|
entire <application>GDM</application> applications suite. It
|
|
|
|
handles look and feel, security, XDMCP, GDMchooser and more.</para>
|
|
|
|
<indexterm zone="gdm gdmconfig">
|
|
|
|
<primary sortas="b-gdmconfig">gdmconfig</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
2004-05-14 21:59:28 +08:00
|
|
|
|
|
|
|
</sect1>
|