2014-09-01 22:53:56 +08:00
|
|
|
<?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;
|
|
|
|
|
2017-08-16 02:49:48 +08:00
|
|
|
<!ENTITY lxdm-download-http "&sourceforge-dl;/lxdm/lxdm-&lxdm-version;.tar.xz">
|
2014-09-01 22:53:56 +08:00
|
|
|
<!ENTITY lxdm-download-ftp " ">
|
2015-11-26 02:04:36 +08:00
|
|
|
<!ENTITY lxdm-md5sum "061caae432634e6db38bbdc84bc6ffa0">
|
2015-11-01 04:12:48 +08:00
|
|
|
<!ENTITY lxdm-size "236 KB">
|
2015-11-26 02:04:36 +08:00
|
|
|
<!ENTITY lxdm-buildsize "5.6 MB">
|
2014-09-01 22:53:56 +08:00
|
|
|
<!ENTITY lxdm-time "less than 0.1 SBU ">
|
|
|
|
]>
|
|
|
|
|
2015-08-02 03:49:50 +08:00
|
|
|
<sect1 id="lxdm" xreflabel="lxdm-&lxdm-version;">
|
2014-09-01 22:53:56 +08:00
|
|
|
<?dbhtml filename="lxdm.html"?>
|
|
|
|
|
|
|
|
|
2015-08-02 03:49:50 +08:00
|
|
|
<title>lxdm-&lxdm-version;</title>
|
2014-09-01 22:53:56 +08:00
|
|
|
|
|
|
|
<indexterm zone="lxdm">
|
2015-08-02 03:49:50 +08:00
|
|
|
<primary sortas="a-lxdm">lxdm</primary>
|
2014-09-01 22:53:56 +08:00
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to LXDM</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The <application>LXDM</application> is a lightweight Display Manager for
|
|
|
|
the <application>LXDE</application> desktop. It can also be used as an
|
|
|
|
alternative to other Display Managers such as
|
|
|
|
<application>GNOME's</application> <application>GDM</application> or
|
2015-08-02 07:47:07 +08:00
|
|
|
<application>LightDM</application>.
|
2014-09-01 22:53:56 +08:00
|
|
|
</para>
|
|
|
|
|
2023-08-26 03:30:10 +08:00
|
|
|
&lfs120_checked;
|
2014-09-01 22:53:56 +08:00
|
|
|
|
2023-02-23 09:21:48 +08:00
|
|
|
<note>
|
|
|
|
<para>
|
2023-08-27 16:04:08 +08:00
|
|
|
The <application>lxdm</application> display manager does not support
|
|
|
|
wayland based window managers such as <application>plasma-wayland</application>
|
2023-02-23 09:21:48 +08:00
|
|
|
or <application>gnome-wayland</application>.
|
|
|
|
</para>
|
|
|
|
</note>
|
|
|
|
|
2014-09-01 22:53:56 +08:00
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&lxdm-download-http;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&lxdm-download-ftp;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download MD5 sum: &lxdm-md5sum;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download size: &lxdm-size;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated disk space required: &lxdm-buildsize;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated build time: &lxdm-time;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">LXDM Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
|
|
<para role="required">
|
|
|
|
<xref linkend="gtk2"/>,
|
2015-08-02 07:47:07 +08:00
|
|
|
<xref linkend="iso-codes"/>, and
|
2017-09-16 17:39:13 +08:00
|
|
|
<xref role="runtime" linkend="librsvg"/> (runtime, for default theme
|
|
|
|
background)
|
2014-09-01 22:53:56 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
|
|
|
<para role="recommended">
|
2019-06-28 04:55:17 +08:00
|
|
|
<xref linkend="lxsession"/> (for <application>lxpolkit</application>) or
|
2019-09-20 22:15:17 +08:00
|
|
|
<xref role="nodep" linkend="polkit-gnome"/>
|
2014-09-01 22:53:56 +08:00
|
|
|
</para>
|
2015-08-02 03:49:50 +08:00
|
|
|
|
2014-09-01 22:53:56 +08:00
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
|
|
<para role="optional">
|
|
|
|
<xref linkend="gtk3"/>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of LXDM</title>
|
|
|
|
|
|
|
|
<para>
|
2014-09-05 00:57:50 +08:00
|
|
|
First, some fixes.
|
2014-09-01 22:53:56 +08:00
|
|
|
</para>
|
|
|
|
|
2016-11-16 06:10:46 +08:00
|
|
|
<screen><userinput>cat > pam/lxdm << "EOF"
|
2016-11-02 09:10:20 +08:00
|
|
|
<literal># Begin /etc/pam.d/lxdm
|
|
|
|
|
|
|
|
auth requisite pam_nologin.so
|
|
|
|
auth required pam_env.so
|
2019-06-28 04:55:17 +08:00
|
|
|
auth required pam_succeed_if.so uid >= 1000 quiet
|
2016-11-02 09:10:20 +08:00
|
|
|
auth include system-auth
|
|
|
|
|
|
|
|
account include system-account
|
|
|
|
|
|
|
|
password include system-password
|
|
|
|
|
|
|
|
session required pam_limits.so
|
|
|
|
session include system-session
|
|
|
|
|
|
|
|
# End /etc/pam.d/lxdm</literal>
|
2014-09-01 22:53:56 +08:00
|
|
|
EOF
|
|
|
|
|
2014-09-04 06:22:26 +08:00
|
|
|
sed -i 's:sysconfig/i18n:profile.d/i18n.sh:g' data/lxdm.in &&
|
2014-09-05 00:57:50 +08:00
|
|
|
sed -i 's:/etc/xprofile:/etc/profile:g' data/Xsession &&
|
2014-09-25 18:38:33 +08:00
|
|
|
sed -e 's/^bg/#&/' \
|
|
|
|
-e '/reset=1/ s/# //' \
|
|
|
|
-e 's/logou$/logout/' \
|
2014-10-13 22:19:24 +08:00
|
|
|
-e "/arg=/a arg=$XORG_PREFIX/bin/X" \
|
2014-09-25 18:38:33 +08:00
|
|
|
-i data/lxdm.conf.in</userinput></screen>
|
2014-09-01 22:53:56 +08:00
|
|
|
|
|
|
|
<para>
|
|
|
|
Install <application>LXDM</application> by running the following
|
|
|
|
commands:
|
|
|
|
</para>
|
|
|
|
|
2016-09-05 04:51:37 +08:00
|
|
|
<screen revision="sysv"><userinput>./configure --prefix=/usr \
|
2014-09-01 22:53:56 +08:00
|
|
|
--sysconfdir=/etc \
|
|
|
|
--with-pam \
|
2014-09-03 06:53:27 +08:00
|
|
|
--with-systemdsystemunitdir=no &&
|
2014-09-01 22:53:56 +08:00
|
|
|
make</userinput></screen>
|
|
|
|
|
2016-09-05 04:51:37 +08:00
|
|
|
<screen revision="systemd"><userinput>./configure --prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
2016-11-02 09:10:20 +08:00
|
|
|
--with-pam \
|
|
|
|
--with-systemdsystemunitdir=/lib/systemd/system &&
|
2016-09-05 04:51:37 +08:00
|
|
|
make</userinput></screen>
|
|
|
|
|
2014-09-01 22:53:56 +08:00
|
|
|
<para>
|
|
|
|
This package does not come with a test suite.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
2014-09-04 06:22:26 +08:00
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
2014-09-03 06:53:27 +08:00
|
|
|
|
2014-09-01 22:53:56 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<!--Optional section-->
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<command>cat > pam/lxdm << "EOF" ...</command>: Replace default
|
|
|
|
<filename>/etc/pam.d/lxdm</filename> by another one appropriate for BLFS.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2014-09-25 10:54:04 +08:00
|
|
|
<command>sed -i ... data/lxdm.conf.in</command>: Modifications in the
|
2014-09-25 18:38:33 +08:00
|
|
|
default configuration:
|
|
|
|
(1) fix the background to the default one;
|
|
|
|
(2) restart X when session is close;
|
|
|
|
(3) typo; and
|
|
|
|
(4) include <envar>XORG_PREFIX</envar>, which may be different from
|
|
|
|
<filename class="directory">/usr</filename>.
|
2014-09-01 22:53:56 +08:00
|
|
|
</para>
|
|
|
|
|
2014-09-04 06:22:26 +08:00
|
|
|
<para>
|
2014-09-05 00:57:50 +08:00
|
|
|
<command>sed -i ... data/Xsession</command>: Source
|
|
|
|
<filename>/etc/profile</filename>, instead of other file, according to
|
|
|
|
BLFS standard.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<command>sed -i ... data/lxdm.in</command>: Fix greeter's locale for BLFS
|
2014-09-04 06:22:26 +08:00
|
|
|
specification.
|
|
|
|
</para>
|
|
|
|
|
2014-09-01 22:53:56 +08:00
|
|
|
<para>
|
2015-02-15 06:18:13 +08:00
|
|
|
<parameter>--with-pam</parameter>: This parameter enables use of pam
|
2014-09-01 22:53:56 +08:00
|
|
|
authentication.
|
|
|
|
</para>
|
|
|
|
|
2016-09-05 04:51:37 +08:00
|
|
|
<para revision="sysv">
|
2015-02-15 06:18:13 +08:00
|
|
|
<parameter>--with-systemdsystemunitdir=no</parameter>: BLFS does not
|
|
|
|
support systemd.
|
2014-09-01 22:53:56 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="configuration">
|
|
|
|
<title>Configuring LXDM</title>
|
|
|
|
|
|
|
|
<sect3 id="lxdm-config">
|
|
|
|
<title>Config Files</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<filename>/etc/lxdm/lxdm.conf</filename>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<indexterm zone="lxdm lxdm-config">
|
|
|
|
<primary sortas="e-etc-lxdm-lxdm.conf">/etc/lxdm/lxdm.conf</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
2014-09-08 03:27:48 +08:00
|
|
|
<sect3 id="lxdm-init">
|
2020-10-06 20:16:17 +08:00
|
|
|
<title><phrase revision="sysv">Boot Script</phrase>
|
|
|
|
<phrase revision="systemd">Systemd Unit</phrase></title>
|
|
|
|
|
|
|
|
<indexterm zone="lxdm lxdm-init">
|
|
|
|
<primary sortas="f-lxdm">lxdm</primary>
|
|
|
|
</indexterm>
|
2014-09-08 03:27:48 +08:00
|
|
|
|
2016-11-02 09:10:20 +08:00
|
|
|
<para revision="sysv">
|
2020-10-06 20:16:17 +08:00
|
|
|
To start <command>lxdm</command> automatically when the system is
|
|
|
|
switched to runlevel 5, install the
|
|
|
|
<filename>/etc/rc.d/init.d/xdm</filename> script and the
|
|
|
|
<filename>/etc/sysconfig/xdm</filename> configuration file
|
|
|
|
included in the <xref linkend="bootscripts"/> package
|
|
|
|
and adjust <filename>/etc/inittab</filename> by running
|
|
|
|
as the <systemitem class="username">root</systemitem> user:
|
2016-11-02 09:10:20 +08:00
|
|
|
</para>
|
|
|
|
|
2020-10-06 20:16:17 +08:00
|
|
|
<screen role="root" revision="sysv"><userinput>make install-lxdm</userinput></screen>
|
|
|
|
|
2016-11-02 09:10:20 +08:00
|
|
|
<para revision="systemd">
|
|
|
|
To start <application>LXDM</application> at boot execute the following
|
|
|
|
command as the <systemitem class="username">root</systemitem> user:
|
2014-09-08 03:27:48 +08:00
|
|
|
</para>
|
|
|
|
|
2016-11-16 06:12:15 +08:00
|
|
|
<screen role="root" revision="systemd"><userinput>systemctl enable lxdm</userinput></screen>
|
2014-09-08 03:27:48 +08:00
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
2014-09-01 22:53:56 +08:00
|
|
|
<sect3>
|
|
|
|
<title>Configuration Information</title>
|
|
|
|
|
|
|
|
<para>
|
2015-08-02 07:47:07 +08:00
|
|
|
The LXDM daemon configuration file
|
|
|
|
(<filename>/etc/lxdm/lxdm.conf</filename>) specifies options that
|
2016-08-26 22:32:57 +08:00
|
|
|
include numlock on/off, background image (bg), session, etc. You can
|
2015-08-02 07:47:07 +08:00
|
|
|
set a default session by uncommenting the line:
|
2014-09-01 22:53:56 +08:00
|
|
|
session=/usr/bin/startlxde and replacing <command>startlxde</command>
|
|
|
|
with your session of choice. For <application>GNOME</application>
|
|
|
|
session=/usr/bin/gnome-session. For <application>OPENBOX</application>
|
|
|
|
session=/usr/bin/openbox-session and for
|
|
|
|
<application>XFCE</application> session=/usr/bin/startxfce4.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
It is also possible to set the preferred session on a per-user basis by
|
|
|
|
editing the ~/.dmrc file for each user and adding:
|
|
|
|
<screen><literal>[Desktop]
|
|
|
|
Session=xfce</literal></screen>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2015-08-02 07:47:07 +08:00
|
|
|
You can replace the default dummy face in the greeting screen by another
|
2014-09-01 22:53:56 +08:00
|
|
|
image representing your user. For that, copy or symlink the desired
|
2015-08-02 07:47:07 +08:00
|
|
|
image to your home directory with the name <filename>.face</filename>.
|
2014-09-01 22:53:56 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
2016-09-05 04:51:37 +08:00
|
|
|
<sect3 revision="sysv">
|
2014-09-03 06:53:27 +08:00
|
|
|
<title>Starting lxdm</title>
|
|
|
|
|
|
|
|
<para>
|
2020-10-06 20:16:17 +08:00
|
|
|
The <command>lxdm</command> greeter can be started from the command
|
|
|
|
line as the <systemitem class="username">root</systemitem> user:
|
2014-09-03 06:53:27 +08:00
|
|
|
</para>
|
|
|
|
|
2020-10-06 20:16:17 +08:00
|
|
|
<screen role="root"><userinput>telinit 5</userinput></screen>
|
2014-09-03 06:53:27 +08:00
|
|
|
|
|
|
|
<para>
|
2020-10-06 20:16:17 +08:00
|
|
|
Alternatively the runlevel can be permanently set to 5, starting the
|
|
|
|
<command>lxdm</command> greeter screen automatically, by modifying
|
|
|
|
<filename>/etc/inittab</filename>. As the <systemitem
|
|
|
|
class="username">root</systemitem> user:
|
2014-09-03 06:53:27 +08:00
|
|
|
</para>
|
|
|
|
|
2014-09-18 06:52:31 +08:00
|
|
|
<screen role="root"><userinput>cp -v /etc/inittab{,-orig} &&
|
2014-09-03 06:53:27 +08:00
|
|
|
sed -i '/initdefault/ s/3/5/' /etc/inittab</userinput></screen>
|
|
|
|
|
2015-08-02 07:47:07 +08:00
|
|
|
<note>
|
2020-10-06 20:16:17 +08:00
|
|
|
<para>
|
2015-08-02 07:47:07 +08:00
|
|
|
One important script, executed after login is
|
|
|
|
<filename>/etc/lxdm/Xsession</filename> which we have fixed to fit
|
2014-09-12 06:27:58 +08:00
|
|
|
BLFS specifications.
|
2020-10-06 20:16:17 +08:00
|
|
|
</para>
|
2015-08-02 07:47:07 +08:00
|
|
|
</note>
|
2014-09-07 00:20:49 +08:00
|
|
|
|
2014-09-03 06:53:27 +08:00
|
|
|
</sect3>
|
2015-08-02 03:49:50 +08:00
|
|
|
|
2014-09-01 22:53:56 +08:00
|
|
|
</sect2>
|
2021-09-07 01:42:49 +08:00
|
|
|
|
2014-09-01 22:53:56 +08:00
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>
|
2015-04-05 21:26:53 +08:00
|
|
|
lxdm, lxdm-binary and lxdm-config
|
2014-09-01 22:53:56 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
None
|
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
/etc/lxdm and
|
|
|
|
/usr/share/lxdm
|
|
|
|
</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="lxdm-prog">
|
|
|
|
<term><command>lxdm</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is a script to execute <command>lxdm-binary</command>
|
|
|
|
</para>
|
|
|
|
<indexterm zone="lxdm lxdm-prog">
|
|
|
|
<primary sortas="b-lxdm">lxdm</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2015-08-14 09:04:27 +08:00
|
|
|
<varlistentry id="lxdm-binary">
|
2014-09-01 22:53:56 +08:00
|
|
|
<term><command>lxdm-binary</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is the actual Display Manager; needs to be executed with option
|
|
|
|
<option>-d</option> to daemonize
|
|
|
|
</para>
|
2015-08-14 09:04:27 +08:00
|
|
|
<indexterm zone="lxdm lxdm-binary">
|
|
|
|
<primary sortas="b-lxdm-binary">lxdm-binary</primary>
|
2014-09-01 22:53:56 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="lxdm-config-prog">
|
|
|
|
<term><command>lxdm-config</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is a graphical customizing program
|
|
|
|
</para>
|
|
|
|
<indexterm zone="lxdm lxdm-config">
|
|
|
|
<primary sortas="b-lxdm">lxdm</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2014-09-07 00:20:49 +08:00
|
|
|
|
2014-09-01 22:53:56 +08:00
|
|
|
</variablelist>
|
2015-04-05 21:26:53 +08:00
|
|
|
|
2014-09-01 22:53:56 +08:00
|
|
|
</sect2>
|
2015-04-05 21:26:53 +08:00
|
|
|
|
2014-09-01 22:53:56 +08:00
|
|
|
</sect1>
|