mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-27 09:42:12 +08:00
9fa25aa2c2
• Move lxdm-0.5.0 to Chapter "Didplay Managers". • Add sddm-0.11.0. git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@16311 af4574ff-66df-0310-9fd7-8a98e5e911e0
324 lines
9.0 KiB
XML
324 lines
9.0 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;
|
|
|
|
<!-- Place this in the general.ent file
|
|
<!ENTITY TEMPLATE-version "">
|
|
-->
|
|
|
|
<!ENTITY sddm-download-http "http://anduin.linuxfromscratch.org/sources/BLFS/conglomeration/sddm/sddm-&sddm-version;.tar.xz">
|
|
<!ENTITY sddm-download-ftp " ">
|
|
<!ENTITY sddm-md5sum "e110a7683867400dc9484d4744fd41dd">
|
|
<!ENTITY sddm-size "4.6 KB">
|
|
<!ENTITY sddm-buildsize "19 MB">
|
|
<!ENTITY sddm-time "0.6 SBU ">
|
|
]>
|
|
|
|
<sect1 id="sddm" xreflabel="sddm-&sddm-version;">
|
|
<?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
|
|
display manager written in <application>Qt</application> and QML.
|
|
</para>
|
|
|
|
&lfs77_checked; &gcc5_checked;
|
|
|
|
<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">
|
|
<xref linkend="cmake"/> and
|
|
<xref linkend="qt5"/>
|
|
</para>
|
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
|
<para role="recommended">
|
|
<xref linkend="linux-pam"/>
|
|
</para>
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
<para role="optional">
|
|
<ulink url="http://sourceforge.net/projects/docutils/">Docutils</ulink>
|
|
</para>
|
|
|
|
<bridgehead renderas="sect4">Runtime Dependencies</bridgehead>
|
|
<para role="required">
|
|
<xref linkend="consolekit"/>
|
|
</para>
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
<ulink url="&blfs-wiki;/sddm"/>
|
|
</para>
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of SDDM</title>
|
|
|
|
<para>
|
|
It is recommended to have a dedicated user and group to take
|
|
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 &&
|
|
useradd -c "SDDM Daemon Owner" -d /var/lib/sddm -u 64 \
|
|
-g sddm -s /bin/false sddm</userinput></screen>
|
|
|
|
<para>
|
|
Install <application>SDDM</application> by running the following
|
|
commands:
|
|
</para>
|
|
|
|
<screen><userinput>mkdir build &&
|
|
cd build &&
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DENABLE_JOURNALD=OFF \
|
|
-DBUILD_MAN_PAGES=ON
|
|
-Wno-dev .. &&
|
|
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>
|
|
|
|
<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
|
|
apply higher level of the compiler optimizations.
|
|
</para>
|
|
|
|
<para>
|
|
<parameter>-DENABLE_JOURNALD=OFF</parameter>: This switch is used because
|
|
BLFS does not support <application>systemd</application>.
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="configuration">
|
|
<title>Configuring SDDM</title>
|
|
|
|
<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"><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>
|
|
|
|
</sect3>
|
|
|
|
<sect3 id="sddm-init">
|
|
<title>Starting sddm</title>
|
|
|
|
<para>
|
|
You can manually start <command>sddm</command>, e.g, if the bootscript
|
|
has been installed, by running, as <systemitem
|
|
class="username">root</systemitem> user:
|
|
</para>
|
|
|
|
<screen role="root"><userinput>/etc/rc.d/init.d/sddm start</userinput></screen>
|
|
|
|
<para>
|
|
By definition, X should be executed at runlevel 5, consequently, the
|
|
same is true for <application>sddm</application>. However, BLFS default
|
|
runlevel is 3. Changing to runlevel 5, from the terminal, as
|
|
<systemitem class="username">root</systemitem> user, makes the
|
|
<command>sddm</command> bootscript to be executed, obtaining the
|
|
greeter screen:
|
|
</para>
|
|
|
|
<screen role="root"><userinput>init 5</userinput></screen>
|
|
|
|
<para>
|
|
In order to permanently set the default to 5, obtaining the
|
|
<command>sddm</command> greeter screen automatically, you can modify
|
|
<filename>/etc/inittab</filename>, as <systemitem
|
|
class="username">root</systemitem> user (the instructions below also
|
|
make a backup, so you can easily revert the modification):
|
|
</para>
|
|
|
|
<screen role="root"><userinput>cp -v /etc/inittab{,-orig} &&
|
|
sed -i '/initdefault/ s/3/5/' /etc/inittab</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>
|
|
sddm and sddm-greeter
|
|
</seg>
|
|
<seg>
|
|
None
|
|
</seg>
|
|
<seg>
|
|
$QT5DIR/qml/SddmComponents,
|
|
/usr/share/sddm and
|
|
/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
|
|
<application>Qt</application> technologies.
|
|
</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,
|
|
a graphical user interface to perform the
|
|
authentication and select the session to run.
|
|
</para>
|
|
<indexterm zone="sddm sddm-greeter">
|
|
<primary sortas="b-sddm-greeter">sddm-greeter</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|