2015-08-02 03:49:50 +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-10-16 04:42:19 +08:00
|
|
|
<!ENTITY sddm-download-http "https://github.com/sddm/sddm/releases/download/v&sddm-version;/sddm-&sddm-version;.tar.xz">
|
2015-08-02 03:49:50 +08:00
|
|
|
<!ENTITY sddm-download-ftp " ">
|
2017-10-16 04:42:19 +08:00
|
|
|
<!ENTITY sddm-md5sum "b41182cc9d53d75485c112ab82dc95d0">
|
|
|
|
<!ENTITY sddm-size "3.2 MB">
|
|
|
|
<!ENTITY sddm-buildsize "20 MB">
|
|
|
|
<!ENTITY sddm-time "0.6 SBU ">
|
2015-08-02 03:49:50 +08:00
|
|
|
]>
|
|
|
|
|
2016-09-09 17:46:04 +08:00
|
|
|
<sect1 id="sddm" xreflabel="sddm-&sddm-version;">
|
2015-08-02 03:49:50 +08:00
|
|
|
<?dbhtml filename="sddm.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>sddm-&sddm-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="sddm">
|
|
|
|
<primary sortas="a-SDDM">SDDM</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to SDDM</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The <application>SDDM</application> package contains a lightweight
|
2015-08-02 07:47:07 +08:00
|
|
|
display manager based upon <application>Qt</application> and QML.
|
2015-08-02 03:49:50 +08:00
|
|
|
</para>
|
|
|
|
|
2017-09-01 02:35:03 +08:00
|
|
|
&lfs81_checked;
|
2015-08-02 03:49:50 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&sddm-download-http;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&sddm-download-ftp;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download MD5 sum: &sddm-md5sum;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download size: &sddm-size;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated disk space required: &sddm-buildsize;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated build time: &sddm-time;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">SDDM Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
|
|
<para role="required">
|
2016-09-06 07:38:03 +08:00
|
|
|
<xref linkend="cmake"/>,
|
|
|
|
<xref linkend="extra-cmake-modules"/> and
|
2015-08-02 03:49:50 +08:00
|
|
|
<xref linkend="qt5"/>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
|
|
|
<para role="recommended">
|
2015-08-03 01:27:34 +08:00
|
|
|
<xref linkend="linux-pam"/> and
|
|
|
|
<xref linkend="upower"/>
|
2015-08-02 03:49:50 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
|
|
<para role="optional">
|
2017-11-19 06:17:57 +08:00
|
|
|
<xref linkend="docutils"/> (for the man pages)
|
2015-08-02 03:49:50 +08:00
|
|
|
</para>
|
|
|
|
|
2017-09-16 17:39:13 +08:00
|
|
|
<bridgehead renderas="sect4" revision="sysv">Runtime Dependency</bridgehead>
|
2016-06-04 11:04:06 +08:00
|
|
|
<para role="required" revision="sysv">
|
2017-09-16 17:39:13 +08:00
|
|
|
<xref role="runtime" linkend="consolekit"/>
|
2015-08-02 03:49:50 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
|
|
<ulink url="&blfs-wiki;/sddm"/>
|
|
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of SDDM</title>
|
|
|
|
|
|
|
|
<para>
|
2015-08-02 07:47:07 +08:00
|
|
|
First, create a dedicated user and group to take
|
2015-08-02 03:49:50 +08:00
|
|
|
control of the <command>sddm</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 &&
|
2015-08-14 09:04:27 +08:00
|
|
|
useradd -c "SDDM Daemon" \
|
|
|
|
-d /var/lib/sddm \
|
|
|
|
-u 64 -g sddm \
|
|
|
|
-s /bin/false sddm</userinput></screen>
|
2015-08-02 03:49:50 +08:00
|
|
|
|
2016-09-09 17:46:04 +08:00
|
|
|
<para revision="sysv">
|
2016-09-06 07:38:03 +08:00
|
|
|
Next, fix the application to start <command>upowerd</command>,
|
2015-09-25 09:11:15 +08:00
|
|
|
if necessary, and after login, start the session with
|
|
|
|
<command>ck-launch-session</command>:
|
|
|
|
</para>
|
|
|
|
|
2016-09-09 17:46:04 +08:00
|
|
|
<screen revision="sysv"><userinput>sed -e '/UPOWER_SERVICE)/ s:^://:' \
|
2015-09-25 09:11:15 +08:00
|
|
|
-i src/daemon/PowerManager.cpp &&
|
|
|
|
|
2016-09-02 04:45:39 +08:00
|
|
|
sed -e '/\$@$/s/exec/& ck-launch-session/' \
|
2015-09-25 09:11:15 +08:00
|
|
|
-i data/scripts/Xsession</userinput></screen>
|
|
|
|
|
2017-10-16 04:42:19 +08:00
|
|
|
<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>
|
|
|
|
|
2015-08-02 03:49:50 +08:00
|
|
|
<para>
|
|
|
|
Install <application>SDDM</application> by running the following
|
|
|
|
commands:
|
|
|
|
</para>
|
|
|
|
|
2016-09-09 17:46:04 +08:00
|
|
|
<screen revision="sysv"><userinput>mkdir build &&
|
2015-08-02 03:49:50 +08:00
|
|
|
cd build &&
|
|
|
|
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DENABLE_JOURNALD=OFF \
|
2015-09-25 09:11:15 +08:00
|
|
|
-DDBUS_CONFIG_FILENAME=sddm_org.freedesktop.DisplayManager.conf \
|
2015-08-02 03:49:50 +08:00
|
|
|
-Wno-dev .. &&
|
|
|
|
make</userinput></screen>
|
|
|
|
|
2016-09-09 17:46:04 +08:00
|
|
|
<screen revision="systemd"><userinput>mkdir build &&
|
|
|
|
cd build &&
|
|
|
|
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-Wno-dev .. &&
|
|
|
|
make</userinput></screen>
|
|
|
|
|
2015-08-02 03:49:50 +08:00
|
|
|
<para>
|
|
|
|
This package does not come with a test suite.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
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>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<parameter>-DCMAKE_BUILD_TYPE=Release</parameter>: This switch is used to
|
2015-08-02 07:47:07 +08:00
|
|
|
apply additional compiler optimizations.
|
2015-08-02 03:49:50 +08:00
|
|
|
</para>
|
|
|
|
|
2016-09-09 17:46:04 +08:00
|
|
|
<para revision="sysv">
|
2015-08-02 03:49:50 +08:00
|
|
|
<parameter>-DENABLE_JOURNALD=OFF</parameter>: This switch is used because
|
2017-10-16 04:42:19 +08:00
|
|
|
this version of BLFS does not support <application>systemd</application>.
|
2015-08-02 03:49:50 +08:00
|
|
|
</para>
|
|
|
|
|
2016-09-09 17:46:04 +08:00
|
|
|
<para revision="sysv">
|
2015-09-25 09:11:15 +08:00
|
|
|
<parameter>-DDBUS_CONFIG_FILENAME=sddm_org.freedesktop.DisplayManager.conf</parameter>:
|
2016-09-02 04:45:39 +08:00
|
|
|
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.
|
2015-09-25 09:11:15 +08:00
|
|
|
</para>
|
|
|
|
|
2015-08-03 01:27:34 +08:00
|
|
|
<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
|
2017-11-19 06:17:57 +08:00
|
|
|
<xref linkend="docutils"/> to build them.
|
2015-08-03 01:27:34 +08:00
|
|
|
</para>
|
|
|
|
|
2015-08-02 03:49:50 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="configuration">
|
|
|
|
<title>Configuring SDDM</title>
|
|
|
|
|
2015-08-03 01:27:34 +08:00
|
|
|
<sect3 id="sddm-config">
|
2017-10-16 04:42:19 +08:00
|
|
|
<title>Config Files</title>
|
2015-08-03 01:27:34 +08:00
|
|
|
|
|
|
|
<para>
|
2017-10-16 04:42:19 +08:00
|
|
|
/usr/lib/sddm/sddm.conf.d/*, /etc/sddm.conf.d/*, and /etc/sddm.conf
|
2015-08-03 01:27:34 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<indexterm zone="sddm sddm-config">
|
2017-10-16 04:42:19 +08:00
|
|
|
<primary sortas="e-usr-lib-sddm.conf.d">/usr/lib/sddm/sddm.conf.d</primary>
|
2015-08-03 01:27:34 +08:00
|
|
|
</indexterm>
|
|
|
|
|
2017-10-16 04:42:19 +08:00
|
|
|
<indexterm zone="sddm sddm-config">
|
|
|
|
<primary sortas="e-sddm.conf.d">/etc/sddm.conf.d</primary>
|
|
|
|
</indexterm>
|
2015-08-21 22:53:14 +08:00
|
|
|
|
2017-10-16 04:42:19 +08:00
|
|
|
<indexterm zone="sddm sddm-config">
|
|
|
|
<primary sortas="e-sddm.conf">/etc/sddm.conf</primary>
|
|
|
|
</indexterm>
|
2015-09-25 21:48:24 +08:00
|
|
|
|
2015-08-21 22:53:14 +08:00
|
|
|
<para>
|
2017-10-16 04:42:19 +08:00
|
|
|
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>.
|
2015-09-25 09:11:15 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Normally, you want to edit this file. For example, if Xorg is installed
|
2015-09-27 00:18:35 +08:00
|
|
|
in /opt, use your preferred editor as the <systemitem
|
|
|
|
class="username">root</systemitem> user to replace the default
|
|
|
|
<emphasis>XauthPath</emphasis> value by
|
2015-09-25 21:48:24 +08:00
|
|
|
<emphasis>/opt/xorg/bin/xauth</emphasis>. Or, as the <systemitem
|
2015-09-27 00:18:35 +08:00
|
|
|
class="username">root</systemitem> user, issue:
|
2015-08-21 22:53:14 +08:00
|
|
|
</para>
|
|
|
|
|
2015-09-18 10:52:45 +08:00
|
|
|
<screen role="root"><userinput>sed -e '/ServerPath/ s|usr|opt/xorg|' \
|
2015-08-21 22:53:14 +08:00
|
|
|
-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>
|
|
|
|
|
2015-09-25 09:11:15 +08:00
|
|
|
<para>
|
2015-09-25 21:48:24 +08:00
|
|
|
From now on, we will describe how to modify configurations using sed.
|
|
|
|
Of course, you may instead use your preferred editor as the <systemitem
|
2015-09-27 00:18:35 +08:00
|
|
|
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
|
2015-09-25 21:48:24 +08:00
|
|
|
<systemitem class="username">root</systemitem> user, issue:
|
2015-09-25 09:11:15 +08:00
|
|
|
</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>
|
2015-09-25 21:48:24 +08:00
|
|
|
for Desktop users. For Notebook users, replace \"on\" by \"off\",
|
|
|
|
in the command above.
|
2015-09-25 09:11:15 +08:00
|
|
|
</para>
|
|
|
|
|
2015-08-21 22:53:14 +08:00
|
|
|
</sect3>
|
2015-08-03 01:27:34 +08:00
|
|
|
|
2015-08-02 07:47:07 +08:00
|
|
|
<sect3 id="sddm-bootscript">
|
|
|
|
<title>Boot Script</title>
|
|
|
|
|
|
|
|
<para>
|
2017-10-16 04:42:19 +08:00
|
|
|
Install the <filename revision="sysv">/etc/rc.d/init.d/sddm</filename>
|
|
|
|
init script from the <xref linkend="bootscripts" revision="sysv"/>
|
2016-06-04 08:20:40 +08:00
|
|
|
<xref linkend="systemd-units" revision="systemd"/> package.
|
2015-08-02 07:47:07 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<indexterm zone="sddm sddm-bootscript">
|
|
|
|
<primary sortas="f-sddm">sddm</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
2016-09-09 17:46:04 +08:00
|
|
|
<screen role="root" revision="sysv"><userinput>make install-sddm</userinput></screen>
|
|
|
|
|
|
|
|
<screen role="root" revision="systemd"><userinput>systemctl enable sddm</userinput></screen>
|
2015-08-02 07:47:07 +08:00
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
2015-08-02 03:49:50 +08:00
|
|
|
<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>
|
|
|
|
|
2016-09-09 17:46:04 +08:00
|
|
|
<screen role="root" revision="sysv"><userinput>cat > /etc/pam.d/sddm << "EOF"
|
2015-08-02 03:49:50 +08:00
|
|
|
<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
|
2015-08-02 07:47:07 +08:00
|
|
|
|
2015-09-18 10:52:45 +08:00
|
|
|
cat > /etc/pam.d/sddm-autologin << "EOF"
|
2015-08-02 03:49:50 +08:00
|
|
|
<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
|
2015-08-02 07:47:07 +08:00
|
|
|
|
2015-08-02 03:49:50 +08:00
|
|
|
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
|
|
|
|
|
2016-09-09 17:46:04 +08:00
|
|
|
# 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
|
|
|
|
|
2017-01-06 06:56:02 +08:00
|
|
|
auth required pam_succeed_if.so uid >= 1000 quiet
|
2016-09-09 17:46:04 +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/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
|
|
|
|
|
2017-01-06 06:56:02 +08:00
|
|
|
auth required pam_succeed_if.so uid >= 1000 quiet
|
2016-09-09 17:46:04 +08:00
|
|
|
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
|
|
|
|
|
2015-08-02 03:49:50 +08:00
|
|
|
# End /etc/pam.d/sddm-greeter</literal>
|
|
|
|
EOF</userinput></screen>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
2016-09-09 17:46:04 +08:00
|
|
|
<sect3 id="sddm-init" revision="sysv">
|
2015-08-02 03:49:50 +08:00
|
|
|
<title>Starting sddm</title>
|
|
|
|
|
|
|
|
<para>
|
2015-09-25 21:48:24 +08:00
|
|
|
If the sddm bootscript has been installed, start sddm by running, as the
|
2015-08-02 07:47:07 +08:00
|
|
|
<systemitem class="username">root</systemitem> user:
|
2015-08-02 03:49:50 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>/etc/rc.d/init.d/sddm start</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
2015-08-03 01:27:34 +08:00
|
|
|
By convention, X should be executed at runlevel 5, consequently, the
|
2015-08-02 07:47:07 +08:00
|
|
|
same is true for <application>sddm</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:
|
2015-08-02 03:49:50 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>init 5</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
2015-08-02 07:47:07 +08:00
|
|
|
In order to permanently set the default to 5, starting the
|
|
|
|
<command>sddm</command> greeter screen automatically, modify
|
|
|
|
<filename>/etc/inittab</filename>. As the <systemitem
|
|
|
|
class="username">root</systemitem> user:
|
2015-08-02 03:49:50 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>cp -v /etc/inittab{,-orig} &&
|
|
|
|
sed -i '/initdefault/ s/3/5/' /etc/inittab</userinput></screen>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
2015-08-03 01:27:34 +08:00
|
|
|
<sect3 id="sddm-sessions">
|
|
|
|
<title>Available Sessions</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The greeter offers a list of available sessions,
|
|
|
|
depending on the Window Managers and Desktop Environments installed. The
|
2015-08-13 09:50:44 +08:00
|
|
|
list includes sessions which have a corresponding
|
2015-08-03 01:27:34 +08:00
|
|
|
<filename>.desktop</filename> file installed under
|
|
|
|
<filename class="directory">/usr/share/xsessions</filename>. Most of the
|
|
|
|
Window Managers and Desktop Environments automatically provide those
|
|
|
|
files, but if necessary, you may include a custom one.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
<sect3 id="sddm-themes">
|
|
|
|
<title>Themes</title>
|
|
|
|
|
|
|
|
<para>
|
2017-10-16 04:42:19 +08:00
|
|
|
Three themes are installed at <filename class="directory">
|
2015-08-03 01:27:34 +08:00
|
|
|
/usr/share/sddm/themes</filename>:
|
|
|
|
elarun,
|
|
|
|
maldives, and
|
2017-10-16 04:42:19 +08:00
|
|
|
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.
|
2015-08-21 22:53:14 +08:00
|
|
|
<quote>Current=maldives</quote>.
|
2015-08-03 01:27:34 +08:00
|
|
|
</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>
|
2015-08-03 21:53:52 +08:00
|
|
|
This application works well, but there are issues. You find the
|
2015-08-03 01:27:34 +08:00
|
|
|
mainstream known issues at
|
2015-08-04 03:31:52 +08:00
|
|
|
<ulink url="https://github.com/sddm/sddm/issues">Issues</ulink>.
|
|
|
|
The BLFS development team have found some issues.
|
2015-08-03 01:27:34 +08:00
|
|
|
</para>
|
|
|
|
|
2015-09-25 09:11:15 +08:00
|
|
|
<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>
|
|
|
|
|
2015-08-03 01:27:34 +08:00
|
|
|
<para>
|
|
|
|
Keyboard selection: the greeter shows a double question mark or the
|
|
|
|
wrong keyboard. When you start to type the password or user name
|
2015-08-04 03:31:52 +08:00
|
|
|
(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
|
2015-08-03 01:27:34 +08:00
|
|
|
<systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
2015-08-14 09:04:27 +08:00
|
|
|
<screen role="root"><userinput>echo 'setxkbmap <replaceable>"<your keyboard comma separated list>"</replaceable>' >> \
|
|
|
|
/usr/share/sddm/scripts/Xsetup</userinput></screen>
|
2015-08-04 03:31:52 +08:00
|
|
|
|
|
|
|
<para>
|
2015-09-25 09:11:15 +08:00
|
|
|
E.g. <command>echo 'setxkbmap "fr,gb,br,us"' >>
|
2015-09-25 21:48:24 +08:00
|
|
|
/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.
|
2015-08-04 03:31:52 +08:00
|
|
|
</para>
|
2015-08-03 01:27:34 +08:00
|
|
|
|
|
|
|
<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>
|
2015-09-25 21:48:24 +08:00
|
|
|
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.
|
2015-08-03 01:27:34 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
2015-08-02 03:49:50 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>
|
|
|
|
sddm and sddm-greeter
|
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
None
|
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
$QT5DIR/qml/SddmComponents,
|
2015-08-02 07:47:07 +08:00
|
|
|
/usr/share/sddm, and
|
2015-08-02 03:49:50 +08:00
|
|
|
/var/lib/sddm
|
|
|
|
</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="sddm-prog">
|
|
|
|
<term><command>sddm</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is a display and login manager based on
|
2015-08-02 07:47:07 +08:00
|
|
|
<application>Qt</application> libraries.
|
2015-08-02 03:49:50 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="sddm sddm-prog">
|
|
|
|
<primary sortas="b-sddm">sddm</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="sddm-greeter">
|
|
|
|
<term><command>sddm-greeter</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is an auxiliary process that displays the greeter,
|
2015-08-02 07:47:07 +08:00
|
|
|
a graphical user interface that performs user
|
|
|
|
authentication and initiates the selected window manager
|
|
|
|
or display environment.
|
2015-08-02 03:49:50 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="sddm sddm-greeter">
|
|
|
|
<primary sortas="b-sddm-greeter">sddm-greeter</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|