mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-27 09:42:12 +08:00
28a5598f23
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@23078 af4574ff-66df-0310-9fd7-8a98e5e911e0
369 lines
12 KiB
XML
369 lines
12 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
%general-entities;
|
|
|
|
<!ENTITY gdm-download-http "&gnome-download-http;/gdm/&gnome-minor-36;/gdm-&gdm-version;.tar.xz">
|
|
<!ENTITY gdm-download-ftp "&gnome-download-ftp;/gdm/&gnome-minor-36;/gdm-&gdm-version;.tar.xz">
|
|
<!ENTITY gdm-md5sum "18384eb8345dbee5a8219916debf7e43">
|
|
<!ENTITY gdm-size "1.2 MB">
|
|
<!ENTITY gdm-buildsize "43 MB">
|
|
<!ENTITY gdm-time "0.3 SBU">
|
|
]>
|
|
|
|
<sect1 id="gdm" xreflabel="GDM-&gdm-version;">
|
|
<?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>
|
|
<application>GDM</application> is a system service that is
|
|
responsible for providing graphical logins and managing local
|
|
and remote displays.
|
|
</para>
|
|
|
|
&lfs91_checked;
|
|
|
|
<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">Additional Downloads</bridgehead>
|
|
<itemizedlist spacing="compact">
|
|
<listitem>
|
|
<para>
|
|
Required patch:
|
|
<ulink url="&patch-root;/gdm-&gdm-version;-security_fix-1.patch"/>
|
|
</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
-->
|
|
<bridgehead renderas="sect3">GDM Dependencies</bridgehead>
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
<para role="required">
|
|
<xref linkend="accountsservice"/>,
|
|
<xref linkend="gtk3"/>,
|
|
<xref linkend="iso-codes"/>,
|
|
<xref linkend="itstool"/>,
|
|
<xref linkend="keyutils"/>,
|
|
<xref linkend="libcanberra"/>,
|
|
<xref linkend="libdaemon"/>, and
|
|
<xref linkend="linux-pam"/>
|
|
</para>
|
|
|
|
<bridgehead renderas="sect4">Runtime Dependencies</bridgehead>
|
|
<para role="required">
|
|
<xref role="runtime" linkend="gnome-session"/>,
|
|
<xref role="runtime" linkend="gnome-shell"/>, and
|
|
<phrase revision="sysv"><xref role="runtime" linkend="elogind"/></phrase>
|
|
<phrase revision="systemd"><xref role="runtime" linkend="systemd"/></phrase>
|
|
</para>
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
<ulink url="&blfs-wiki;/gdm"/>
|
|
</para>
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of GDM</title>
|
|
|
|
<para>
|
|
It is recommended to have a dedicated user and group to take
|
|
control of the <command>gdm</command> daemon after it is
|
|
started. Issue the following commands as the
|
|
<systemitem class="username">root</systemitem> user:
|
|
</para>
|
|
|
|
<screen role="root"><userinput>groupadd -g 21 gdm &&
|
|
useradd -c "GDM Daemon Owner" -d /var/lib/gdm -u 21 \
|
|
-g gdm -s /bin/false gdm &&
|
|
passwd -ql gdm</userinput></screen>
|
|
|
|
<!--
|
|
<note revision="sysv">
|
|
<para>
|
|
The <application>gdm</application> login screen is managed by
|
|
<application>gnome-shell</application>, which relies on the
|
|
<command>systemd-localed</command> daemon to get the system
|
|
settings. Since this daemon is not present on this system, a
|
|
<command>sed</command> is applied in the <xref
|
|
linkend="gnome-shell"/> instructions to change this behavior,
|
|
but then <application>gdm</application> uses the system settings,
|
|
which default to a US <quote>qwerty</quote> keyboard layout. This may
|
|
be an inconvience to enter a password when the machine keyboard
|
|
has a different layout. One possibility is to use the screen-keyboard
|
|
from the accessibility menu. Another possibility is to change the
|
|
defaults at compile time, by creating the following file:
|
|
</para>
|
|
|
|
<screen><userinput>cat > data/dconf/defaults/01-keyboard << EOF
|
|
<literal>[org/gnome/desktop/input-sources]
|
|
sources=[('xkb','<replaceable>layout</replaceable>')]</literal>
|
|
EOF</userinput></screen>
|
|
|
|
<para>
|
|
where <replaceable>layout</replaceable> should be replaced with
|
|
the acronym for your keyboard layout (one of the filenames in
|
|
<filename class="directory">/usr/share/X11/xkb/symbols</filename>).
|
|
</para>
|
|
</note>
|
|
-->
|
|
<para>
|
|
Install <application>GDM</application> by running the following
|
|
commands:
|
|
</para>
|
|
|
|
<screen revision="sysv"><userinput>sed 's@systemd@elogind@' -i data/pam-lfs/gdm-launch-environment.pam &&
|
|
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/var \
|
|
--without-plymouth \
|
|
--disable-static \
|
|
--enable-gdm-xsession \
|
|
--with-systemdsystemunitdir=no \
|
|
--with-pam-mod-dir=/lib/security &&
|
|
make</userinput></screen>
|
|
|
|
<screen revision="systemd"><userinput>./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/var \
|
|
--without-plymouth \
|
|
--disable-static \
|
|
--enable-gdm-xsession \
|
|
--with-pam-mod-dir=/lib/security &&
|
|
make</userinput></screen>
|
|
|
|
<para>
|
|
This package does not come with a usable test suite.
|
|
</para>
|
|
|
|
<para>
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
</para>
|
|
|
|
<screen role="root" revision="sysv"><userinput>make install</userinput></screen>
|
|
|
|
<screen role="root" revision="systemd"><userinput>make install &&
|
|
install -v -m644 data/gdm.service /lib/systemd/system/gdm.service</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="commands">
|
|
<title>Command Explanations</title>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
href="../../xincludes/static-libraries.xml"/>
|
|
|
|
<para>
|
|
<option>--with-initial-vt=7</option>: Use this switch
|
|
to make <application>GDM</application> start on VT7
|
|
instead of the first free VT.
|
|
</para>
|
|
|
|
<para>
|
|
<parameter>--without-plymouth</parameter>: GDM now explicitly requires
|
|
plymouth to be installed. Use this switch to disable this dependency.
|
|
</para>
|
|
|
|
<para>
|
|
<option>--with-default-pam-config=lfs</option>: Use this
|
|
switch if you did not create the
|
|
<filename>/etc/lfs-release</filename> file or distribution
|
|
auto detection will fail and you will be unable to use
|
|
<application>GDM</application>.
|
|
</para>
|
|
|
|
<para>
|
|
<parameter>--enable-gdm-xsession</parameter>: This enables the
|
|
installation of the <application>GDM</application> Xsession file.
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="configuration">
|
|
<title>Configuring GDM</title>
|
|
|
|
<sect3 id="gdm-config">
|
|
<title>Config Files</title>
|
|
|
|
<para>
|
|
<filename>/etc/gdm/custom.conf</filename>
|
|
</para>
|
|
|
|
<indexterm zone="gdm gdm-config">
|
|
<primary sortas="e-etc-gdm-custom.conf">/etc/gdm/custom.conf</primary>
|
|
</indexterm>
|
|
|
|
</sect3>
|
|
|
|
<sect3>
|
|
<title>Configuration Information</title>
|
|
|
|
<para>
|
|
The GDM daemon is configured using the
|
|
<filename>/etc/gdm/custom.conf</filename> file. Default values
|
|
are stored in GSettings in the <filename>gdm.schemas</filename>
|
|
file. It is recommended that end-users modify the
|
|
<filename>/etc/gdm/custom.conf</filename> file because the schemas
|
|
file may be overwritten when the user updates their system to have
|
|
a newer version of <application>GDM</application>.
|
|
</para>
|
|
|
|
</sect3>
|
|
|
|
<sect3 id="gdm-init">
|
|
<title><phrase revision="sysv">Boot Script</phrase>
|
|
<phrase revision="systemd">Systemd Unit</phrase></title>
|
|
|
|
<indexterm zone="gdm gdm-init">
|
|
<primary sortas="f-gdm">gdm</primary>
|
|
</indexterm>
|
|
|
|
<para revision="sysv">
|
|
To start the <command>gdm</command> automatically when the system
|
|
is booted, install the <filename>/etc/rc.d/init.d/gdm</filename>
|
|
init script included in the <xref linkend="bootscripts"/> package and
|
|
set the default runlevel to 5 (graphical login) as the
|
|
<systemitem class="username">root</systemitem> user:
|
|
</para>
|
|
|
|
<para revision="systemd">
|
|
To start the <command>gdm</command> daemon at boot, enable
|
|
the previously installed systemd unit by running the following command
|
|
as the <systemitem class="username">root</systemitem> user:
|
|
</para>
|
|
|
|
<screen role="root" revision="sysv"><userinput>make install-gdm</userinput></screen>
|
|
|
|
<para revision="sysv">
|
|
In order to permanently set the default runlevel to 5, starting the
|
|
<command>gdm</command> greeter screen automatically, you can modify
|
|
<filename>/etc/inittab</filename>. As the <systemitem
|
|
class="username">root</systemitem> user:
|
|
</para>
|
|
|
|
<screen role="root" revision="sysv"><userinput>sed /initdefault/s/3/5/ -i /etc/inittab</userinput></screen>
|
|
|
|
<para revision="sysv">
|
|
You should also disable default elogind power management:
|
|
</para>
|
|
|
|
<screen role="root" revision="sysv"><userinput>cat >> /etc/elogind/logind.conf << "EOF"
|
|
<literal>AllowSuspend=no
|
|
AllowHibernation=no</literal>
|
|
EOF</userinput></screen>
|
|
|
|
<screen role="root" revision="systemd"><userinput>systemctl enable gdm</userinput></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, gdmflexiserver, and gdm-screenshot
|
|
</seg>
|
|
<seg>
|
|
libgdm.so and pam_gdm.so (PAM Module)
|
|
</seg>
|
|
<seg>
|
|
/etc/gdm,
|
|
/usr/include/gdm,
|
|
/usr/share/gdm,
|
|
/usr/share/help/*/gdm,
|
|
/var/cache/gdm,
|
|
/var/lib/gdm,
|
|
/var/log/gdm, and
|
|
/var/run/gdm
|
|
</seg>
|
|
</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 login prompt for <application>GNOME</application>.
|
|
</para>
|
|
<indexterm zone="gdm gdm-prog">
|
|
<primary sortas="b-gdm">gdm</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="gdm-screenshot">
|
|
<term><command>gdm-screenshot</command></term>
|
|
<listitem>
|
|
<para>
|
|
is a screenshot tool for <application>GDM</application>.
|
|
</para>
|
|
<indexterm zone="gdm gdm-screenshot">
|
|
<primary sortas="b-gdm-screenshot">gdm-screenshot</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|