Author: bdubbs
Date: Fri Jan 5 10:17:22 2018
New Revision: 19650
Log:
Add lightdm
Added:
trunk/BOOK/x/dm/lightdm.xml
- copied, changed from r19647, trunk/BOOK/x/dm/sddm.xml
trunk/bootscripts/blfs/init.d/lightdm
- copied, changed from r19175, trunk/bootscripts/blfs/init.d/sddm
trunk/systemd-units/blfs/units/lightdm.service
Modified:
trunk/BOOK/general.ent
trunk/BOOK/introduction/welcome/changelog.xml
trunk/BOOK/packages.ent
trunk/BOOK/postlfs/config/users.xml
trunk/BOOK/x/dm/dm.xml
trunk/bootscripts/ChangeLog
trunk/bootscripts/Makefile
trunk/systemd-units/ChangeLog
trunk/systemd-units/Makefile
Modified: trunk/BOOK/general.ent
==============================================================================
--- trunk/BOOK/general.ent Fri Jan 5 08:26:16 2018 (r19649)
+++ trunk/BOOK/general.ent Fri Jan 5 10:17:22 2018 (r19650)
@@ -1,12 +1,12 @@
<!-- $LastChangedBy$ $Date$ -->
-<!ENTITY day "04"> <!-- Always 2 digits -->
+<!ENTITY day "05"> <!-- Always 2 digits -->
<!ENTITY month "01"> <!-- Always 2 digits -->
<!ENTITY year "2018">
<!ENTITY copyrightdate "2001-&year;">
<!ENTITY copyholder "The BLFS Development Team">
<!ENTITY version "&year;-&month;-&day;">
-<!ENTITY releasedate "January 4th, &year;">
+<!ENTITY releasedate "January 5th, &year;">
<!ENTITY pubdate "&year;-&month;-&day;"> <!-- metadata req. by TLDP -->
<!ENTITY blfs-version "svn"> <!-- svn|[release #] -->
<!ENTITY lfs-version "development"> <!-- x.y|development -->
@@ -77,8 +77,8 @@
<!ENTITY lfs-vim-version "7.4">
<!-- End LFS versions -->
-<!ENTITY blfs-bootscripts-version "20170731">
-<!ENTITY systemd-units-version "20160602">
+<!ENTITY blfs-bootscripts-version "20180105">
+<!ENTITY systemd-units-version "20180105">
<!ENTITY blfs-wiki "http://wiki.&lfs-domainname;/blfs/wiki">
Modified: trunk/BOOK/introduction/welcome/changelog.xml
==============================================================================
--- trunk/BOOK/introduction/welcome/changelog.xml Fri Jan 5 08:26:16
2018 (r19649)
+++ trunk/BOOK/introduction/welcome/changelog.xml Fri Jan 5 10:17:22
2018 (r19650)
@@ -42,6 +42,15 @@
</listitem>
-->
<listitem>
+ <para>January 5th, 2018</para>
+ <itemizedlist>
+ <listitem>
+ <para>[bdubbs] - Add lightdm.</para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+
+ <listitem>
<para>January 4th, 2018</para>
<itemizedlist>
<listitem>
Modified: trunk/BOOK/packages.ent
==============================================================================
--- trunk/BOOK/packages.ent Fri Jan 5 08:26:16 2018 (r19649)
+++ trunk/BOOK/packages.ent Fri Jan 5 10:17:22 2018 (r19650)
@@ -588,6 +588,8 @@
<!ENTITY qt5-dir "$QT5DIR">
<!-- Chapter 26 -->
+<!ENTITY lightdm-version "1.24.0">
+<!ENTITY lightdm-gtk-greeter-version "2.0.3">
<!ENTITY lxdm-version "0.5.3">
<!ENTITY sddm-version "0.16.0">
Modified: trunk/BOOK/postlfs/config/users.xml
==============================================================================
--- trunk/BOOK/postlfs/config/users.xml Fri Jan 5 08:26:16 2018 (r19649)
+++ trunk/BOOK/postlfs/config/users.xml Fri Jan 5 10:17:22 2018 (r19650)
@@ -111,6 +111,7 @@
<row><entry>wireshark</entry><entry> </entry><entry>62</entry></row>
<row><entry>lightdm </entry><entry>63</entry><entry>63</entry></row>
<row><entry>sddm </entry><entry>64</entry><entry>64</entry></row>
+ <row><entry>lightdm </entry><entry>65</entry><entry>65</entry></row>
<row><entry>scanner </entry><entry> </entry><entry>70</entry></row>
<row><entry>colord </entry><entry>71</entry><entry>71</entry></row>
Modified: trunk/BOOK/x/dm/dm.xml
==============================================================================
--- trunk/BOOK/x/dm/dm.xml Fri Jan 5 08:26:16 2018 (r19649)
+++ trunk/BOOK/x/dm/dm.xml Fri Jan 5 10:17:22 2018 (r19650)
@@ -61,6 +61,7 @@
</sect1>
+ <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="lightdm.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="lxdm.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="sddm.xml"/>
Copied and modified: trunk/BOOK/x/dm/lightdm.xml (from r19647,
trunk/BOOK/x/dm/sddm.xml)
==============================================================================
--- trunk/BOOK/x/dm/sddm.xml Wed Jan 3 17:32:24 2018 (r19647, copy
source)
+++ trunk/BOOK/x/dm/lightdm.xml Fri Jan 5 10:17:22 2018 (r19650)
@@ -4,160 +4,190 @@
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
- <!ENTITY sddm-download-http
"https://github.com/sddm/sddm/releases/download/v&sddm-version;/sddm-&sddm-version;.tar.xz">
- <!ENTITY sddm-download-ftp " ">
- <!ENTITY sddm-md5sum "b41182cc9d53d75485c112ab82dc95d0">
- <!ENTITY sddm-size "3.2 MB">
- <!ENTITY sddm-buildsize "20 MB">
- <!ENTITY sddm-time "0.6 SBU ">
+<!-- lightdm -->
+ <!ENTITY lightdm-download-http
"https://launchpad.net/lightdm/1.24/&lightdm-version;/+download/lightdm-&lightdm-version;.tar.xz">
+ <!ENTITY lightdm-download-ftp " ">
+ <!ENTITY lightdm-md5sum "76d65ba5d1bc93e80b611771698739db">
+ <!ENTITY lightdm-size "508 KB">
+ <!ENTITY lightdm-buildsize "20 MB">
+ <!ENTITY lightdm-time "0.2 SBU ">
+
+<!-- lightdm-gtk-greeter -->
+ <!ENTITY lightdm-gtk-greeter-download-http
"https://launchpad.net/lightdm-gtk-greeter/2.0/&lightdm-gtk-greeter-version;/+download/lightdm-gtk-greeter-&lightdm-gtk-greeter-version;.tar.gz">
+ <!ENTITY lightdm-gtk-greeter-download-ftp " ">
+ <!ENTITY lightdm-gtk-greeter-md5sum
"29f352906d200568cceb4d449b5619c6">
+ <!ENTITY lightdm-gtk-greeter-size "480 KB">
+ <!ENTITY lightdm-gtk-greeter-buildsize "3.9 MB">
+ <!ENTITY lightdm-gtk-greeter-time "less than 0.1 SBU ">
]>
-<sect1 id="sddm" xreflabel="sddm-&sddm-version;">
- <?dbhtml filename="sddm.html"?>
+<sect1 id="lightdm" xreflabel="lightdm-&lightdm-version;">
+ <?dbhtml filename="lightdm.html"?>
<sect1info>
<othername>$LastChangedBy$</othername>
<date>$Date$</date>
</sect1info>
- <title>sddm-&sddm-version;</title>
+ <title>lightdm-&lightdm-version;</title>
- <indexterm zone="sddm">
- <primary sortas="a-SDDM">SDDM</primary>
+ <indexterm zone="lightdm">
+ <primary sortas="a-lightdm">lightdm</primary>
</indexterm>
<sect2 role="package">
- <title>Introduction to SDDM</title>
+ <title>Introduction to Lightdm</title>
<para>
- The <application>SDDM</application> package contains a lightweight
- display manager based upon <application>Qt</application> and QML.
+ The <application>lightdm</application> package contains a lightweight
+ display manager based upon GTK.
</para>
&lfs81_checked;
- <bridgehead renderas="sect3">Package Information</bridgehead>
+ <bridgehead renderas="sect3">Lightdm Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
- Download (HTTP): <ulink url="&sddm-download-http;"/>
+ Download (HTTP): <ulink url="&lightdm-download-http;"/>
</para>
</listitem>
<listitem>
<para>
- Download (FTP): <ulink url="&sddm-download-ftp;"/>
+ Download (FTP): <ulink url="&lightdm-download-ftp;"/>
</para>
</listitem>
<listitem>
<para>
- Download MD5 sum: &sddm-md5sum;
+ Download MD5 sum: &lightdm-md5sum;
</para>
</listitem>
<listitem>
<para>
- Download size: &sddm-size;
+ Download size: &lightdm-size;
</para>
</listitem>
<listitem>
<para>
- Estimated disk space required: &sddm-buildsize;
+ Estimated disk space required: &lightdm-buildsize;
</para>
</listitem>
<listitem>
<para>
- Estimated build time: &sddm-time;
+ Estimated build time: &lightdm-time;
</para>
</listitem>
</itemizedlist>
- <bridgehead renderas="sect3">SDDM Dependencies</bridgehead>
+ <note>
+ <para>
+ The greeter is a program to present a graphical login screen. There
+ are several alternative greeters, but the gtk+ package is the reference
+ implementation. For a list of other greeters, see <ulink
+ url="https://en.wikipedia.org/wiki/LightDM"/>.
+ </para>
+ </note>
+
+ <bridgehead renderas="sect3">Lightdm-gtk-greeter Package
Information</bridgehead>
+ <itemizedlist spacing="compact">
+ <listitem>
+ <para>
+ Download (HTTP): <ulink url="&lightdm-gtk-greeter-download-http;"/>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Download (FTP): <ulink url="&lightdm-gtk-greeter-download-ftp;"/>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Download MD5 sum: &lightdm-gtk-greeter-md5sum;
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Download size: &lightdm-gtk-greeter-size;
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Estimated disk space required: &lightdm-gtk-greeter-buildsize;
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Estimated build time: &lightdm-gtk-greeter-time;
+ </para>
+ </listitem>
+ </itemizedlist>
+
+ <bridgehead renderas="sect3">Lightdm Dependencies</bridgehead>
<bridgehead renderas="sect4">Required</bridgehead>
<para role="required">
- <xref linkend="cmake"/>,
- <xref linkend="extra-cmake-modules"/> and
- <xref linkend="qt5"/>
+ <xref linkend="gtk3"/>,
+ <xref linkend="libgcrypt"/>,
+ <xref linkend="linux-pam"/>, and
+ <xref linkend="pcre"/>
</para>
<bridgehead renderas="sect4">Recommended</bridgehead>
<para role="recommended">
- <xref linkend="linux-pam"/> and
- <xref linkend="upower"/>
+ <xref linkend="gobject-introspection"/>,
+ <xref linkend="libxklavier"/>, and
+ <xref linkend="vala"/>
</para>
<bridgehead renderas="sect4">Optional</bridgehead>
<para role="optional">
- <xref linkend="docutils"/> (for the man pages)
- </para>
+ <xref linkend="at-spi2-core"/>,
+ <xref linkend="gtk-doc"/>,
+ <xref linkend="itstool"/>,
+ <xref linkend="qt5"/>,
+ <ulink url="https://launchpad.net/intltool">intltool</ulink>,
+ <ulink url="https://launchpad.net/ido">libido</ulink>, and
+ <ulink url="https://launchpad.net/libindicator">libindicator</ulink>
- <bridgehead renderas="sect4" revision="sysv">Runtime
Dependency</bridgehead>
- <para role="required" revision="sysv">
- <xref role="runtime" linkend="consolekit"/>
</para>
<para condition="html" role="usernotes">User Notes:
- <ulink url="&blfs-wiki;/sddm"/>
+ <ulink url="&blfs-wiki;/lightdm"/>
</para>
</sect2>
<sect2 role="installation">
- <title>Installation of SDDM</title>
+ <title>Installation of Lightdm</title>
<para>
First, create a dedicated user and group to take
- control of the <command>sddm</command> daemon after it is
+ control of the <command>lightdm</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 64 sddm &&
-useradd -c "SDDM Daemon" \
- -d /var/lib/sddm \
- -u 64 -g sddm \
- -s /bin/false sddm</userinput></screen>
-
- <para revision="sysv">
- Next, fix the application to start <command>upowerd</command>,
- if necessary, and after login, start the session with
- <command>ck-launch-session</command>:
- </para>
-
-<screen revision="sysv"><userinput>sed -e '/UPOWER_SERVICE)/ s:^://:' \
- -i src/daemon/PowerManager.cpp &&
-
-sed -e '/\$@$/s/exec/& ck-launch-session/' \
- -i data/scripts/Xsession</userinput></screen>
-
- <para revision="sysv">
- For sddm-0.16.0, ConsoleKit support has been added, but is broken. Remove
- it with:
- </para>
-<!-- This removes also logind support. Hopefully should be fixed for next
- version -->
-<screen revision="sysv"><userinput>sed -e '/available.*true/s/true/false/' \
- -i src/daemon/LogindDBusTypes.cpp</userinput></screen>
+<screen role="root"><userinput>groupadd -g 65 lightdm &&
+useradd -c "Lightdm Daemon" \
+ -d /var/lib/lightdm \
+ -u 65 -g lightdm \
+ -s /bin/false lightdm</userinput></screen>
<para>
- Install <application>SDDM</application> by running the following
+ Install <application>lightdm</application> by running the following
commands:
</para>
-<screen revision="sysv"><userinput>mkdir build &&
-cd build &&
-
-cmake -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE=Release \
- -DENABLE_JOURNALD=OFF \
- -DDBUS_CONFIG_FILENAME=sddm_org.freedesktop.DisplayManager.conf \
- -Wno-dev .. &&
-make</userinput></screen>
-
-<screen revision="systemd"><userinput>mkdir build &&
-cd build &&
-
-cmake -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE=Release \
- -Wno-dev .. &&
+<screen><userinput>./configure \
+ --prefix=/usr \
+ --libexecdir=/usr/lib/lightdm \
+ --localstatedir=/var \
+ --sbindir=/usr/bin \
+ --sysconfdir=/etc \
+ --disable-static \
+ --disable-tests \
+ --with-greeter-user=lightdm \
+ --with-greeter-session=lightdm-gtk-greeter \
+ --docdir=/usr/share/doc/lightdm-&lightdm-version; &&
make</userinput></screen>
<para>
@@ -168,11 +198,43 @@
Now, as the <systemitem class="username">root</systemitem> user:
</para>
-<screen role="root"><userinput>make install &&
-install -v -dm755 -o sddm -g sddm /var/lib/sddm</userinput></screen>
+<screen role="root"><userinput>make install
&&
+cp tests/src/lightdm-session /usr/bin &&
+rm -rf /etc/init &&
+install -v -dm755 -o lightdm -g lightdm /var/lib/lightdm &&
+install -v -dm755 -o lightdm -g lightdm /var/lib/lightdm-data &&
+install -v -dm755 -o lightdm -g lightdm /var/cache/lightdm &&
+install -v -dm770 -o lightdm -g lightdm /var/log/lightdm</userinput></screen>
+
+ <para>Now build the greeter:</para>
+
+<screen><userinput>tar -xf ../lightdm-gtk-greeter-2.0.3.tar.gz &&
+cd lightdm-gtk-greeter &&
+
+export CFLAGS="$CFLAGS -Wno-declaration-after-statement" &&
+
+./configure \
+ --prefix=/usr \
+ --libexecdir=/usr/lib/lightdm \
+ --sbindir=/usr/bin \
+ --sysconfdir=/etc \
+ --with-libxklavier \
+ --enable-kill-on-sigterm \
+ --disable-libido \
+ --disable-libindicator \
+ --disable-static
+ --docdir=/usr/share/doc/lightdm-gtk-greeter-&lightdm-gtk-greeter-version;
&&
- </sect2>
+make</userinput></screen>
+
+ <para>
+ Now, as the <systemitem class="username">root</systemitem> user:
+ </para>
+
+<screen><userinput>make install</userinput></screen>
+ </sect2>
+<!--
<sect2 role="commands">
<title>Command Explanations</title>
@@ -181,263 +243,79 @@
apply additional compiler optimizations.
</para>
- <para revision="sysv">
- <parameter>-DENABLE_JOURNALD=OFF</parameter>: This switch is used because
- this version of BLFS does not support <application>systemd</application>.
- </para>
-
- <para revision="sysv">
-
<parameter>-DDBUS_CONFIG_FILENAME=sddm_org.freedesktop.DisplayManager.conf</parameter>:
- This switch prevents the file <filename>
- /etc/dbus-1/system.d/org.freedesktop.DisplayManager.conf</filename> from
- being overwritten, as it may be used by other DM's.
- </para>
-
- <para>
- <option>-DBUILD_MAN_PAGES=ON</option>: This switch may be used if you
want
- the man pages to be installed. Notice that you need
- <xref linkend="docutils"/> to build them.
- </para>
-
</sect2>
-
+-->
<sect2 role="configuration">
- <title>Configuring SDDM</title>
+ <title>Configuring lightdm</title>
- <sect3 id="sddm-config">
+ <sect3 id="lightdm-config">
<title>Config Files</title>
<para>
- /usr/lib/sddm/sddm.conf.d/*, /etc/sddm.conf.d/*, and /etc/sddm.conf
+ /etc/lightdm/{lightdm,users,keys}.conf
</para>
- <indexterm zone="sddm sddm-config">
- <primary
sortas="e-usr-lib-sddm.conf.d">/usr/lib/sddm/sddm.conf.d</primary>
+ <indexterm zone="lightdm lightdm-config">
+ <primary
sortas="e-etc-lightdm-lightdm.conf">/etc/lightdm/lightdm.conf</primary>
</indexterm>
- <indexterm zone="sddm sddm-config">
- <primary sortas="e-sddm.conf.d">/etc/sddm.conf.d</primary>
+ <indexterm zone="lightdm lightdm-config">
+ <primary sortas="e-users.conf">/etc/lightdm/users.conf</primary>
</indexterm>
- <indexterm zone="sddm sddm-config">
- <primary sortas="e-sddm.conf">/etc/sddm.conf</primary>
+ <indexterm zone="lightdm lightdm-config">
+ <primary sortas="e-keys.conf">/etc/lightdm/keys.conf</primary>
</indexterm>
- <para>
- Only <filename>/etc/sddm.conf</filename> is installed, but the
- configuration files are read in the following order: all files in
- <filename class="directory">/usr/lib/sddm/sddm.conf.d</filename> in
- alphabetical order, then all files in <filename class="directory">
- /etc/sddm.conf.d</filename> in alphabetical order, and finally
- <filename>/etc/sddm.conf</filename>.
- </para>
-
- <para>
- Normally, you want to edit this file. For example, if Xorg is installed
- in /opt, use your preferred editor as the <systemitem
- class="username">root</systemitem> user to replace the default
- <emphasis>XauthPath</emphasis> value by
- <emphasis>/opt/xorg/bin/xauth</emphasis>. Or, as the <systemitem
- class="username">root</systemitem> user, issue:
- </para>
-
-<screen role="root"><userinput>sed -e '/ServerPath/ s|usr|opt/xorg|' \
- -i.orig /etc/sddm.conf</userinput></screen>
-
- <para>
- This command will do the substitution and create a copy of the original
- file with name <filename>/etc/sddm.conf.orig</filename>.
- </para>
-
- <para>
- From now on, we will describe how to modify configurations using sed.
- Of course, you may instead use your preferred editor as the <systemitem
- class="username">root</systemitem> user.
- </para>
-
- <para>
- For security reasons, you normally want the default
- <emphasis>ServerArguments=-nolisten tcp</emphasis>, unless a remote
- machine needs access to the local X server. In that case, as the
- <systemitem class="username">root</systemitem> user, issue:
- </para>
-
-<screen role="root"><userinput>sed -e 's/-nolisten tcp//'\
- -i /etc/sddm.conf</userinput></screen>
-
- <para>
- Desktop (Notebook) users, normally wish the Num Lock key on (off). For
- that, as the <systemitem
- class="username">root</systemitem> user, issue:
- </para>
-
-<screen role="root"><userinput>sed -e 's/\"none\"/\"on\"/' \
- -i /etc/sddm.conf</userinput></screen>
-
- <para>
- for Desktop users. For Notebook users, replace \"on\" by \"off\",
- in the command above.
- </para>
+ <indexterm zone="lightdm lightdm-config">
+ <primary sortas="e-lightdm-gtk-greeter.conf">
+ /etc/lightdm/lightdm-gtk-greeter.conf</primary>
+ </indexterm>
</sect3>
- <sect3 id="sddm-bootscript">
+ <sect3 id="lightdm-bootscript">
<title>Boot Script</title>
<para>
- Install the <filename revision="sysv">/etc/rc.d/init.d/sddm</filename>
+ Install the <filename
revision="sysv">/etc/rc.d/init.d/lightdm</filename>
init script from the <xref linkend="bootscripts" revision="sysv"/>
<xref linkend="systemd-units" revision="systemd"/> package.
</para>
- <indexterm zone="sddm sddm-bootscript">
- <primary sortas="f-sddm">sddm</primary>
+ <indexterm zone="lightdm lightdm-bootscript">
+ <primary sortas="f-lightdm">lightdm</primary>
</indexterm>
-<screen role="root" revision="sysv"><userinput>make
install-sddm</userinput></screen>
-
-<screen role="root" revision="systemd"><userinput>systemctl enable
sddm</userinput></screen>
+<screen role="root" revision="sysv"><userinput>make
install-lightdm</userinput></screen>
- </sect3>
-
- <sect3>
- <title>Linux PAM Configuration</title>
-
- <para>
- If you have built <application>SDDM</application>
- with <application>Linux PAM</application> support,
- create the necessary configuration files by running
- the following commands as the <systemitem
- class="username">root</systemitem> user:
- </para>
-
-<screen role="root" revision="sysv"><userinput>cat > /etc/pam.d/sddm
<< "EOF"
-<literal># Begin /etc/pam.d/sddm
-
-auth requisite pam_nologin.so
-auth required pam_env.so
-
-auth required pam_succeed_if.so uid >= 1000 quiet
-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/sddm</literal>
-EOF
-
-cat > /etc/pam.d/sddm-autologin << "EOF"
-<literal># Begin /etc/pam.d/sddm-autologin
-
-auth requisite pam_nologin.so
-auth required pam_env.so
-
-auth required pam_succeed_if.so uid >= 1000 quiet
-auth required pam_permit.so
-
-account include system-account
-
-password required pam_deny.so
-
-session required pam_limits.so
-session include system-session
-
-# End /etc/pam.d/sddm-autologin</literal>
-EOF
-
-cat > /etc/pam.d/sddm-greeter << "EOF"
-<literal># Begin /etc/pam.d/sddm-greeter
-
-auth required pam_env.so
-auth required pam_permit.so
-
-account required pam_permit.so
-password required pam_deny.so
-session required pam_unix.so
--session optional pam_systemd.so
-
-# End /etc/pam.d/sddm-greeter</literal>
-EOF</userinput></screen>
-
-<screen role="root" revision="systemd"><userinput>cat > /etc/pam.d/sddm
<< "EOF" &&
-<literal># Begin /etc/pam.d/sddm
-
-auth requisite pam_nologin.so
-auth required pam_env.so
-
-auth required pam_succeed_if.so uid >= 1000 quiet
-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/sddm</literal>
-EOF
-
-cat > /etc/pam.d/sddm-autologin << "EOF" &&
-<literal># Begin /etc/pam.d/sddm-autologin
-
-auth requisite pam_nologin.so
-auth required pam_env.so
-
-auth required pam_succeed_if.so uid >= 1000 quiet
-auth required pam_permit.so
-
-account include system-account
-
-password required pam_deny.so
-
-session required pam_limits.so
-session include system-session
-
-# End /etc/pam.d/sddm-autologin</literal>
-EOF
-
-cat > /etc/pam.d/sddm-greeter << "EOF"
-<literal># Begin /etc/pam.d/sddm-greeter
-
-auth required pam_env.so
-auth required pam_permit.so
-
-account required pam_permit.so
-password required pam_deny.so
-session required pam_unix.so
--session optional pam_systemd.so
-
-# End /etc/pam.d/sddm-greeter</literal>
-EOF</userinput></screen>
+<screen role="root" revision="systemd"><userinput>systemctl enable
lightdm</userinput></screen>
</sect3>
- <sect3 id="sddm-init" revision="sysv">
- <title>Starting sddm</title>
+ <sect3 id="lightdm-init" revision="sysv">
+ <title>Starting lightdm</title>
<para>
- If the sddm bootscript has been installed, start sddm by running, as
the
+ If the lightdm bootscript has been installed, start lightdm by
running, as the
<systemitem class="username">root</systemitem> user:
</para>
-<screen role="root"><userinput>/etc/rc.d/init.d/sddm start</userinput></screen>
+<screen role="root"><userinput>/etc/rc.d/init.d/lightdm
start</userinput></screen>
<para>
By convention, X should be executed at runlevel 5, consequently, the
- same is true for <application>sddm</application>. However, LFS default
+ same is true for <application>lightdm</application>. However, LFS
default
runlevel is 3. Changing to runlevel 5, from a console terminal, as
<systemitem class="username">root</systemitem> user, starts the
- <command>sddm</command> bootscript, bringing up the greeter screen:
+ <command>lightdm</command> bootscript, bringing up the greeter screen:
</para>
<screen role="root"><userinput>init 5</userinput></screen>
<para>
In order to permanently set the default to 5, starting the
- <command>sddm</command> greeter screen automatically, modify
+ <command>lightdm</command> greeter screen automatically, modify
<filename>/etc/inittab</filename>. As the <systemitem
class="username">root</systemitem> user:
</para>
@@ -447,7 +325,7 @@
</sect3>
- <sect3 id="sddm-sessions">
+ <sect3 id="lightdm-sessions">
<title>Available Sessions</title>
<para>
@@ -462,89 +340,6 @@
</sect3>
- <sect3 id="sddm-themes">
- <title>Themes</title>
-
- <para>
- Three themes are installed at <filename class="directory">
- /usr/share/sddm/themes</filename>:
- elarun,
- maldives, and
- maya.
- There is also a default theme, which is not present in that directory.
- You can install other themes in that directory. In order to change the
- theme, you need to edit <filename>/etc/sddm.conf</filename>,
- to change the default (empty) theme, replacing <quote>Current=</quote>
- with <quote>Current=<new theme></quote>, e.g.
- <quote>Current=maldives</quote>.
- </para>
-
- <para>
- In order to see the theme without leaving the session, issue:
- </para>
-
-<screen><userinput>sddm-greeter --test-mode --theme <replaceable><theme
path></replaceable></userinput></screen>
-
- </sect3>
-
- <sect3 id="sddm-Issues">
- <title>Known Issues</title>
-
- <para>
- This application works well, but there are issues. You find the
- mainstream known issues at
- <ulink url="https://github.com/sddm/sddm/issues">Issues</ulink>.
- The BLFS development team have found some issues.
- </para>
-
- <note>
- <para>
- In the next couple of paragraphs, due to a problem with sddm-greeter,
- we mention how to define the keyboard used there. Notice that this is
- also the keyboard that will be used in the X session, unless there is
- a configuration in the Desktop Environment or in the Window Manager
- overriding it, afterwards.
- </para>
- </note>
-
- <para>
- Keyboard selection: the greeter shows a double question mark or the
- wrong keyboard. When you start to type the password or user name
- (depending on the theme, only password), the right keyboard selection
- magically appears. Optionally, a workaround is to include the keyboard
- list in <command>/usr/share/sddm/scripts/Xsetup</command> script, as
the
- <systemitem class="username">root</systemitem> user:
- </para>
-
-<screen role="root"><userinput>echo 'setxkbmap <replaceable>"<your keyboard
comma separated list>"</replaceable>' >> \
- /usr/share/sddm/scripts/Xsetup</userinput></screen>
-
- <para>
- E.g. <command>echo 'setxkbmap "fr,gb,br,us"' >>
- /usr/share/sddm/scripts/Xsetup</command>. A very accurate definition
- of the keyboard(s) is possible, for example: <command>echo 'setxkbmap
- -model pc105 -layout br,us -variant abnt2,dvorak -keycodes evdev'
- >> /usr/share/sddm/scripts/Xsetup</command>. See man setxkbmap.
- </para>
-
- <para>
- Dircolors: the <filename>/etc/dircolors</filename> file is not
- honoured. Particularly, the compressed files are not displayed in red
- colour. If this happens, a workaround is to issue, as the
- <systemitem class="username">root</systemitem> user:
- </para>
-
-<screen role="root"><userinput>echo "source /etc/profile.d/dircolors.sh"
>> /etc/bashrc</userinput></screen>
-
- <para>
- It has been reported that problems may happen with this package, if
- Xorg is installed with a prefix other than <filename
- class="directory">/usr</filename>. So far, BLFS development team has
- not hit any problem, in this case.
- </para>
-
- </sect3>
-
</sect2>
<sect2 role="content">
@@ -557,15 +352,25 @@
<seglistitem>
<seg>
- sddm and sddm-greeter
+ dm-tool,
+ lightdm, and
+ lightdm-gtk-greeter
</seg>
<seg>
- None
+ liblightdm-gobject-1.so
</seg>
<seg>
- $QT5DIR/qml/SddmComponents,
- /usr/share/sddm, and
- /var/lib/sddm
+ /etc/lightdm,
+ /etc/apparmor.d,
+ /usr/lib/lightdm,
+ /usr/include/lightdm-gobject-1,
+ /usr/share/help/C/lightdm
+ /usr/share/gtk-doc/html/lightdm-gobject-1,
+ /usr/share/doc/lightdm-gtk-greeter-&lightdm-gtk-greeter-version;,
+ /var/lib/lightdm,
+ /var/lib/lightdm-data,
+ /var/cache/lightdm, and
+ /var/log/lightdm
</seg>
</seglistitem>
</segmentedlist>
@@ -575,21 +380,20 @@
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
- <varlistentry id="sddm-prog">
- <term><command>sddm</command></term>
+ <varlistentry id="lightdm-prog">
+ <term><command>lightdm</command></term>
<listitem>
<para>
- is a display and login manager based on
- <application>Qt</application> libraries.
+ is a display and login manager.
</para>
- <indexterm zone="sddm sddm-prog">
- <primary sortas="b-sddm">sddm</primary>
+ <indexterm zone="lightdm lightdm-prog">
+ <primary sortas="b-lightdm">lightdm</primary>
</indexterm>
</listitem>
</varlistentry>
- <varlistentry id="sddm-greeter">
- <term><command>sddm-greeter</command></term>
+ <varlistentry id="lightdm-gtk-greeter">
+ <term><command>lightdm-gtk-greeter</command></term>
<listitem>
<para>
is an auxiliary process that displays the greeter,
@@ -597,8 +401,8 @@
authentication and initiates the selected window manager
or display environment.
</para>
- <indexterm zone="sddm sddm-greeter">
- <primary sortas="b-sddm-greeter">sddm-greeter</primary>
+ <indexterm zone="lightdm lightdm-gtk-greeter">
+ <primary
sortas="b-lightdm-gtk-greeter">lightdm-gtk-greeter</primary>
</indexterm>
</listitem>
</varlistentry>
Modified: trunk/bootscripts/ChangeLog
==============================================================================
--- trunk/bootscripts/ChangeLog Fri Jan 5 08:26:16 2018 (r19649)
+++ trunk/bootscripts/ChangeLog Fri Jan 5 10:17:22 2018 (r19650)
@@ -1,3 +1,6 @@
+2018-01-05 Bruce Dubbs <[email protected]>
+ * Add lightdm bootscript
+
2017-07-31 Bruce Dubbs <[email protected]>
* Delete references to rpc.rquotad in nfs-server script
Modified: trunk/bootscripts/Makefile
==============================================================================
--- trunk/bootscripts/Makefile Fri Jan 5 08:26:16 2018 (r19649)
+++ trunk/bootscripts/Makefile Fri Jan 5 10:17:22 2018 (r19650)
@@ -448,6 +448,16 @@
ln -sf ../init.d/sddm ${EXTDIR}/rc.d/rc5.d/S95sddm
ln -sf ../init.d/sddm ${EXTDIR}/rc.d/rc6.d/K05sddm
+install-lightdm: create-dirs
+ install -m ${MODE} blfs/init.d/lightdm ${EXTDIR}/rc.d/init.d/
+ ln -sf ../init.d/lightdm ${EXTDIR}/rc.d/rc0.d/K05lightdm
+ ln -sf ../init.d/lightdm ${EXTDIR}/rc.d/rc1.d/K05lightdm
+ ln -sf ../init.d/lightdm ${EXTDIR}/rc.d/rc2.d/K05lightdm
+ ln -sf ../init.d/lightdm ${EXTDIR}/rc.d/rc3.d/K05lightdm
+ ln -sf ../init.d/lightdm ${EXTDIR}/rc.d/rc4.d/K05lightdm
+ ln -sf ../init.d/lightdm ${EXTDIR}/rc.d/rc5.d/S95lightdm
+ ln -sf ../init.d/lightdm ${EXTDIR}/rc.d/rc6.d/K05lightdm
+
install-sendmail: create-dirs
install -m ${MODE} blfs/init.d/sendmail ${EXTDIR}/rc.d/init.d/
ln -sf ../init.d/sendmail ${EXTDIR}/rc.d/rc0.d/K25sendmail
@@ -972,6 +982,16 @@
rm -f ${EXTDIR}/rc.d/rc5.d/S95sddm
rm -f ${EXTDIR}/rc.d/rc6.d/K05sddm
+uninstall-lightdm:
+ rm -f ${EXTDIR}/rc.d/init.d/lightdm
+ rm -f ${EXTDIR}/rc.d/rc0.d/K05lightdm
+ rm -f ${EXTDIR}/rc.d/rc1.d/K05lightdm
+ rm -f ${EXTDIR}/rc.d/rc2.d/K05lightdm
+ rm -f ${EXTDIR}/rc.d/rc3.d/K05lightdm
+ rm -f ${EXTDIR}/rc.d/rc4.d/K05lightdm
+ rm -f ${EXTDIR}/rc.d/rc5.d/S95lightdm
+ rm -f ${EXTDIR}/rc.d/rc6.d/K05lightdm
+
uninstall-sendmail:
rm -f ${EXTDIR}/rc.d/init.d/sendmail
rm -f ${EXTDIR}/rc.d/rc0.d/K25sendmail
Copied and modified: trunk/bootscripts/blfs/init.d/lightdm (from r19175,
trunk/bootscripts/blfs/init.d/sddm)
==============================================================================
--- trunk/bootscripts/blfs/init.d/sddm Fri Sep 1 16:49:43 2017
(r19175, copy source)
+++ trunk/bootscripts/blfs/init.d/lightdm Fri Jan 5 10:17:22 2018
(r19650)
@@ -1,35 +1,36 @@
#!/bin/sh
-# Begin /etc/rc.d/init.d/sddm
+# Begin /etc/rc.d/init.d/lightdm
### BEGIN INIT INFO
-# Provides: sddm
+# Provides: lightdm
# Required-Start: $local_fs
# Should-Start: $remote_fs $syslog
# Required-Stop: $local_fs
# Should-Stop: $remote_fs $syslog
# Default-Start: 5
# Default-Stop: 0 1 2 3 4 6
-# Short-Description: Starts sddm.
-# Description: Starts sddm daemon.
+# Short-Description: Starts lightdm.
+# Description: Starts lightdm daemon.
# X-LFS-Provided-By: BLFS
### END INIT INFO
. /lib/lsb/init-functions
+[ -e /opt/xorg/bin/X ] && . /etc/profile
-BIN_FILE="/usr/bin/sddm"
+BIN_FILE="/usr/bin/lightdm"
#$LastChangedBy$
#$Date$
case $1 in
start)
- log_info_msg "Starting SDDM..."
+ log_info_msg "Starting lightdm..."
start_daemon $BIN_FILE &
evaluate_retval
;;
stop)
- log_info_msg "Stopping SDDM..."
+ log_info_msg "Stopping lightdm..."
killproc $BIN_FILE
evaluate_retval
;;
@@ -50,4 +51,4 @@
;;
esac
-# End /etc/rc.d/init.d/sddm
+# End /etc/rc.d/init.d/lightdm
Modified: trunk/systemd-units/ChangeLog
==============================================================================
--- trunk/systemd-units/ChangeLog Fri Jan 5 08:26:16 2018 (r19649)
+++ trunk/systemd-units/ChangeLog Fri Jan 5 10:17:22 2018 (r19650)
@@ -1,8 +1,10 @@
-2014-07-20 Armin K. <[email protected]>
- * Import first revision of the standalone
- units package.
+2018-01-05 Bruce Dubbs <[email protected]>
+ * Add lightdm service.
2016-03-07 DJ Lucas <[email protected]>
* Add samba service.
+2014-07-20 Armin K. <[email protected]>
+ * Import first revision of the standalone
+ units package.
Modified: trunk/systemd-units/Makefile
==============================================================================
--- trunk/systemd-units/Makefile Fri Jan 5 08:26:16 2018 (r19649)
+++ trunk/systemd-units/Makefile Fri Jan 5 10:17:22 2018 (r19650)
@@ -89,6 +89,10 @@
test -n "${DESTDIR}" || systemctl enable krb5-kpropd.service
test -n "${DESTDIR}" || systemctl enable krb5-kadmind.service
+install-lightdm: create-dirs
+ install -m ${CONFMODE} blfs/units/lightdm.service ${UNITSDIR}/
+ test -n "${DESTDIR}" || systemctl enable lightdm.service
+
install-mysqld: create-dirs
install -m ${CONFMODE} blfs/tmpfiles/mysqld.conf ${TMPFILESDIR}/
install -m ${CONFMODE} blfs/units/mysqld.service ${UNITSDIR}/
@@ -273,6 +277,11 @@
test -n "${DESTDIR}" || systemctl disable krb5-kdc.service
rm -f ${UNITSDIR}/krb5-kadmind.service ${UNITSDIR}/krb5-kpropd.service
${UNITSDIR}/krb5-kdc.service
+uninstall-lightdm:
+ test -n "${DESTDIR}" || systemctl stop lightdm.service
+ test -n "${DESTDIR}" || systemctl disable lightdm.service
+ rm -f ${UNITSDIR}/lightdm.service
+
uninstall-mysqld:
test -n "${DESTDIR}" || systemctl stop mysqld.service
test -n "${DESTDIR}" || systemctl disable mysqld.service
Added: trunk/systemd-units/blfs/units/lightdm.service
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ trunk/systemd-units/blfs/units/lightdm.service Fri Jan 5 10:17:22
2018 (r19650)
@@ -0,0 +1,15 @@
+[Unit]
+Description=Light Display Manager
+Documentation=man:lightdm(1)
[email protected]
[email protected] systemd-user-sessions.service plymouth-quit.service
acpid.service
+
+[Service]
+ExecStart=/usr/bin/lightdm
+Restart=always
+IgnoreSIGPIPE=no
+BusName=org.freedesktop.DisplayManager
+
+[Install]
+Alias=display-manager.service
+
--
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page