1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!-- Place this in the general.ent file
|
---|
8 | <!ENTITY TEMPLATE-version "">
|
---|
9 | -->
|
---|
10 |
|
---|
11 | <!ENTITY sddm-download-http "http://anduin.linuxfromscratch.org/sources/BLFS/conglomeration/sddm/sddm-&sddm-version;.tar.xz">
|
---|
12 | <!ENTITY sddm-download-ftp " ">
|
---|
13 | <!ENTITY sddm-md5sum "e110a7683867400dc9484d4744fd41dd">
|
---|
14 | <!ENTITY sddm-size "4.6 KB">
|
---|
15 | <!ENTITY sddm-buildsize "19 MB">
|
---|
16 | <!ENTITY sddm-time "0.6 SBU ">
|
---|
17 | ]>
|
---|
18 |
|
---|
19 | <sect1 id="sddm" xreflabel="sddm-&sddm-version;">
|
---|
20 | <?dbhtml filename="sddm.html"?>
|
---|
21 |
|
---|
22 | <sect1info>
|
---|
23 | <othername>$LastChangedBy$</othername>
|
---|
24 | <date>$Date$</date>
|
---|
25 | </sect1info>
|
---|
26 |
|
---|
27 | <title>sddm-&sddm-version;</title>
|
---|
28 |
|
---|
29 | <indexterm zone="sddm">
|
---|
30 | <primary sortas="a-SDDM">SDDM</primary>
|
---|
31 | </indexterm>
|
---|
32 |
|
---|
33 | <sect2 role="package">
|
---|
34 | <title>Introduction to SDDM</title>
|
---|
35 |
|
---|
36 | <para>
|
---|
37 | The <application>SDDM</application> package contains a lightweight
|
---|
38 | display manager written in <application>Qt</application> and QML.
|
---|
39 | </para>
|
---|
40 |
|
---|
41 | &lfs77_checked; &gcc5_checked;
|
---|
42 |
|
---|
43 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
44 | <itemizedlist spacing="compact">
|
---|
45 | <listitem>
|
---|
46 | <para>
|
---|
47 | Download (HTTP): <ulink url="&sddm-download-http;"/>
|
---|
48 | </para>
|
---|
49 | </listitem>
|
---|
50 | <listitem>
|
---|
51 | <para>
|
---|
52 | Download (FTP): <ulink url="&sddm-download-ftp;"/>
|
---|
53 | </para>
|
---|
54 | </listitem>
|
---|
55 | <listitem>
|
---|
56 | <para>
|
---|
57 | Download MD5 sum: &sddm-md5sum;
|
---|
58 | </para>
|
---|
59 | </listitem>
|
---|
60 | <listitem>
|
---|
61 | <para>
|
---|
62 | Download size: &sddm-size;
|
---|
63 | </para>
|
---|
64 | </listitem>
|
---|
65 | <listitem>
|
---|
66 | <para>
|
---|
67 | Estimated disk space required: &sddm-buildsize;
|
---|
68 | </para>
|
---|
69 | </listitem>
|
---|
70 | <listitem>
|
---|
71 | <para>
|
---|
72 | Estimated build time: &sddm-time;
|
---|
73 | </para>
|
---|
74 | </listitem>
|
---|
75 | </itemizedlist>
|
---|
76 |
|
---|
77 | <bridgehead renderas="sect3">SDDM Dependencies</bridgehead>
|
---|
78 |
|
---|
79 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
80 | <para role="required">
|
---|
81 | <xref linkend="cmake"/> and
|
---|
82 | <xref linkend="qt5"/>
|
---|
83 | </para>
|
---|
84 |
|
---|
85 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
86 | <para role="recommended">
|
---|
87 | <xref linkend="linux-pam"/>
|
---|
88 | </para>
|
---|
89 |
|
---|
90 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
91 | <para role="optional">
|
---|
92 | <ulink url="http://sourceforge.net/projects/docutils/">Docutils</ulink>
|
---|
93 | </para>
|
---|
94 |
|
---|
95 | <bridgehead renderas="sect4">Runtime Dependencies</bridgehead>
|
---|
96 | <para role="required">
|
---|
97 | <xref linkend="consolekit"/>
|
---|
98 | </para>
|
---|
99 |
|
---|
100 | <para condition="html" role="usernotes">User Notes:
|
---|
101 | <ulink url="&blfs-wiki;/sddm"/>
|
---|
102 | </para>
|
---|
103 | </sect2>
|
---|
104 |
|
---|
105 | <sect2 role="installation">
|
---|
106 | <title>Installation of SDDM</title>
|
---|
107 |
|
---|
108 | <para>
|
---|
109 | It is recommended to have a dedicated user and group to take
|
---|
110 | control of the <command>sddm</command> daemon after it is
|
---|
111 | started. Issue the following commands as the
|
---|
112 | <systemitem class="username">root</systemitem> user:
|
---|
113 | </para>
|
---|
114 |
|
---|
115 | <screen role="root"><userinput>groupadd -g 64 sddm &&
|
---|
116 | useradd -c "SDDM Daemon Owner" -d /var/lib/sddm -u 64 \
|
---|
117 | -g sddm -s /bin/false sddm</userinput></screen>
|
---|
118 |
|
---|
119 | <para>
|
---|
120 | Install <application>SDDM</application> by running the following
|
---|
121 | commands:
|
---|
122 | </para>
|
---|
123 |
|
---|
124 | <screen><userinput>mkdir build &&
|
---|
125 | cd build &&
|
---|
126 |
|
---|
127 | cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
128 | -DCMAKE_BUILD_TYPE=Release \
|
---|
129 | -DENABLE_JOURNALD=OFF \
|
---|
130 | -DBUILD_MAN_PAGES=ON
|
---|
131 | -Wno-dev .. &&
|
---|
132 | make</userinput></screen>
|
---|
133 |
|
---|
134 | <para>
|
---|
135 | This package does not come with a test suite.
|
---|
136 | </para>
|
---|
137 |
|
---|
138 | <para>
|
---|
139 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
140 | </para>
|
---|
141 |
|
---|
142 | <screen role="root"><userinput>make install &&
|
---|
143 | install -v -dm755 -o sddm -g sddm /var/lib/sddm</userinput></screen>
|
---|
144 |
|
---|
145 | </sect2>
|
---|
146 |
|
---|
147 | <sect2 role="commands">
|
---|
148 | <title>Command Explanations</title>
|
---|
149 |
|
---|
150 | <para>
|
---|
151 | <parameter>-DCMAKE_BUILD_TYPE=Release</parameter>: This switch is used to
|
---|
152 | apply higher level of the compiler optimizations.
|
---|
153 | </para>
|
---|
154 |
|
---|
155 | <para>
|
---|
156 | <parameter>-DENABLE_JOURNALD=OFF</parameter>: This switch is used because
|
---|
157 | BLFS does not support <application>systemd</application>.
|
---|
158 | </para>
|
---|
159 |
|
---|
160 | </sect2>
|
---|
161 |
|
---|
162 | <sect2 role="configuration">
|
---|
163 | <title>Configuring SDDM</title>
|
---|
164 |
|
---|
165 | <sect3>
|
---|
166 | <title>Linux PAM Configuration</title>
|
---|
167 |
|
---|
168 | <para>
|
---|
169 | If you have built <application>SDDM</application>
|
---|
170 | with <application>Linux PAM</application> support,
|
---|
171 | create the necessary configuration files by running
|
---|
172 | the following commands as the <systemitem
|
---|
173 | class="username">root</systemitem> user:
|
---|
174 | </para>
|
---|
175 |
|
---|
176 | <screen role="root"><userinput>cat > /etc/pam.d/sddm << "EOF" &&
|
---|
177 | <literal># Begin /etc/pam.d/sddm
|
---|
178 |
|
---|
179 | auth requisite pam_nologin.so
|
---|
180 | auth required pam_env.so
|
---|
181 |
|
---|
182 | auth required pam_succeed_if.so uid >= 1000 quiet
|
---|
183 | auth include system-auth
|
---|
184 |
|
---|
185 | account include system-account
|
---|
186 | password include system-password
|
---|
187 |
|
---|
188 | session required pam_limits.so
|
---|
189 | session include system-session
|
---|
190 |
|
---|
191 | # End /etc/pam.d/sddm</literal>
|
---|
192 | EOF
|
---|
193 | cat > /etc/pam.d/sddm-autologin << "EOF" &&
|
---|
194 | <literal># Begin /etc/pam.d/sddm-autologin
|
---|
195 |
|
---|
196 | auth requisite pam_nologin.so
|
---|
197 | auth required pam_env.so
|
---|
198 |
|
---|
199 | auth required pam_succeed_if.so uid >= 1000 quiet
|
---|
200 | auth required pam_permit.so
|
---|
201 |
|
---|
202 | account include system-account
|
---|
203 |
|
---|
204 | password required pam_deny.so
|
---|
205 |
|
---|
206 | session required pam_limits.so
|
---|
207 | session include system-session
|
---|
208 |
|
---|
209 | # End /etc/pam.d/sddm-autologin</literal>
|
---|
210 | EOF
|
---|
211 | cat > /etc/pam.d/sddm-greeter << "EOF"
|
---|
212 | <literal># Begin /etc/pam.d/sddm-greeter
|
---|
213 |
|
---|
214 | auth required pam_env.so
|
---|
215 | auth required pam_permit.so
|
---|
216 |
|
---|
217 | account required pam_permit.so
|
---|
218 | password required pam_deny.so
|
---|
219 | session required pam_unix.so
|
---|
220 | -session optional pam_systemd.so
|
---|
221 |
|
---|
222 | # End /etc/pam.d/sddm-greeter</literal>
|
---|
223 | EOF</userinput></screen>
|
---|
224 |
|
---|
225 | </sect3>
|
---|
226 |
|
---|
227 | <sect3 id="sddm-init">
|
---|
228 | <title>Starting sddm</title>
|
---|
229 |
|
---|
230 | <para>
|
---|
231 | You can manually start <command>sddm</command>, e.g, if the bootscript
|
---|
232 | has been installed, by running, as <systemitem
|
---|
233 | class="username">root</systemitem> user:
|
---|
234 | </para>
|
---|
235 |
|
---|
236 | <screen role="root"><userinput>/etc/rc.d/init.d/sddm start</userinput></screen>
|
---|
237 |
|
---|
238 | <para>
|
---|
239 | By definition, X should be executed at runlevel 5, consequently, the
|
---|
240 | same is true for <application>sddm</application>. However, BLFS default
|
---|
241 | runlevel is 3. Changing to runlevel 5, from the terminal, as
|
---|
242 | <systemitem class="username">root</systemitem> user, makes the
|
---|
243 | <command>sddm</command> bootscript to be executed, obtaining the
|
---|
244 | greeter screen:
|
---|
245 | </para>
|
---|
246 |
|
---|
247 | <screen role="root"><userinput>init 5</userinput></screen>
|
---|
248 |
|
---|
249 | <para>
|
---|
250 | In order to permanently set the default to 5, obtaining the
|
---|
251 | <command>sddm</command> greeter screen automatically, you can modify
|
---|
252 | <filename>/etc/inittab</filename>, as <systemitem
|
---|
253 | class="username">root</systemitem> user (the instructions below also
|
---|
254 | make a backup, so you can easily revert the modification):
|
---|
255 | </para>
|
---|
256 |
|
---|
257 | <screen role="root"><userinput>cp -v /etc/inittab{,-orig} &&
|
---|
258 | sed -i '/initdefault/ s/3/5/' /etc/inittab</userinput></screen>
|
---|
259 |
|
---|
260 | </sect3>
|
---|
261 |
|
---|
262 | </sect2>
|
---|
263 |
|
---|
264 | <sect2 role="content">
|
---|
265 | <title>Contents</title>
|
---|
266 |
|
---|
267 | <segmentedlist>
|
---|
268 | <segtitle>Installed Programs</segtitle>
|
---|
269 | <segtitle>Installed Libraries</segtitle>
|
---|
270 | <segtitle>Installed Directories</segtitle>
|
---|
271 |
|
---|
272 | <seglistitem>
|
---|
273 | <seg>
|
---|
274 | sddm and sddm-greeter
|
---|
275 | </seg>
|
---|
276 | <seg>
|
---|
277 | None
|
---|
278 | </seg>
|
---|
279 | <seg>
|
---|
280 | $QT5DIR/qml/SddmComponents,
|
---|
281 | /usr/share/sddm and
|
---|
282 | /var/lib/sddm
|
---|
283 | </seg>
|
---|
284 | </seglistitem>
|
---|
285 | </segmentedlist>
|
---|
286 |
|
---|
287 | <variablelist>
|
---|
288 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
289 | <?dbfo list-presentation="list"?>
|
---|
290 | <?dbhtml list-presentation="table"?>
|
---|
291 |
|
---|
292 | <varlistentry id="sddm-prog">
|
---|
293 | <term><command>sddm</command></term>
|
---|
294 | <listitem>
|
---|
295 | <para>
|
---|
296 | is a display and login manager based on
|
---|
297 | <application>Qt</application> technologies.
|
---|
298 | </para>
|
---|
299 | <indexterm zone="sddm sddm-prog">
|
---|
300 | <primary sortas="b-sddm">sddm</primary>
|
---|
301 | </indexterm>
|
---|
302 | </listitem>
|
---|
303 | </varlistentry>
|
---|
304 |
|
---|
305 | <varlistentry id="sddm-greeter">
|
---|
306 | <term><command>sddm-greeter</command></term>
|
---|
307 | <listitem>
|
---|
308 | <para>
|
---|
309 | is an auxiliary process that displays the greeter,
|
---|
310 | a graphical user interface to perform the
|
---|
311 | authentication and select the session to run.
|
---|
312 | </para>
|
---|
313 | <indexterm zone="sddm sddm-greeter">
|
---|
314 | <primary sortas="b-sddm-greeter">sddm-greeter</primary>
|
---|
315 | </indexterm>
|
---|
316 | </listitem>
|
---|
317 | </varlistentry>
|
---|
318 |
|
---|
319 | </variablelist>
|
---|
320 |
|
---|
321 | </sect2>
|
---|
322 |
|
---|
323 | </sect1>
|
---|