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 "18 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 based upon <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"/> and
|
---|
88 | <xref linkend="upower"/>
|
---|
89 | </para>
|
---|
90 |
|
---|
91 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
92 | <para role="optional">
|
---|
93 | <ulink url="http://sourceforge.net/projects/docutils/">Docutils</ulink>
|
---|
94 | (for the man pages)
|
---|
95 | </para>
|
---|
96 |
|
---|
97 | <bridgehead renderas="sect4">Runtime Dependencies</bridgehead>
|
---|
98 | <para role="required">
|
---|
99 | <xref linkend="consolekit"/>
|
---|
100 | </para>
|
---|
101 |
|
---|
102 | <para condition="html" role="usernotes">User Notes:
|
---|
103 | <ulink url="&blfs-wiki;/sddm"/>
|
---|
104 | </para>
|
---|
105 | </sect2>
|
---|
106 |
|
---|
107 | <sect2 role="installation">
|
---|
108 | <title>Installation of SDDM</title>
|
---|
109 |
|
---|
110 | <para>
|
---|
111 | First, create a dedicated user and group to take
|
---|
112 | control of the <command>sddm</command> daemon after it is
|
---|
113 | started. Issue the following commands as the
|
---|
114 | <systemitem class="username">root</systemitem> user:
|
---|
115 | </para>
|
---|
116 |
|
---|
117 | <screen role="root"><userinput>groupadd -g 64 sddm &&
|
---|
118 | useradd -c "SDDM Daemon" -d /var/lib/sddm -u 64 -g sddm -s /bin/false sddm</userinput></screen>
|
---|
119 |
|
---|
120 | <para>
|
---|
121 | By default, <application>SDDM</application> starts the X server with the
|
---|
122 | parameter <parameter>-nolisten tcp</parameter>. If you need to remotely
|
---|
123 | connect to X, this is undesirable. You can optionally remove this
|
---|
124 | parameter by running:
|
---|
125 | </para>
|
---|
126 |
|
---|
127 | <screen><userinput>sed -e '/nolisten/d' \
|
---|
128 | -i src/daemon/XorgDisplayServer.cpp</userinput></screen>
|
---|
129 |
|
---|
130 | <para>
|
---|
131 | Install <application>SDDM</application> by running the following
|
---|
132 | commands:
|
---|
133 | </para>
|
---|
134 |
|
---|
135 | <screen><userinput>mkdir build &&
|
---|
136 | cd build &&
|
---|
137 |
|
---|
138 | cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
139 | -DCMAKE_BUILD_TYPE=Release \
|
---|
140 | -DENABLE_JOURNALD=OFF \
|
---|
141 | -Wno-dev .. &&
|
---|
142 | make</userinput></screen>
|
---|
143 |
|
---|
144 | <para>
|
---|
145 | This package does not come with a test suite.
|
---|
146 | </para>
|
---|
147 |
|
---|
148 | <para>
|
---|
149 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
150 | </para>
|
---|
151 |
|
---|
152 | <screen role="root"><userinput>make install &&
|
---|
153 | install -v -dm755 -o sddm -g sddm /var/lib/sddm</userinput></screen>
|
---|
154 |
|
---|
155 | </sect2>
|
---|
156 |
|
---|
157 | <sect2 role="commands">
|
---|
158 | <title>Command Explanations</title>
|
---|
159 |
|
---|
160 | <para>
|
---|
161 | <parameter>-DCMAKE_BUILD_TYPE=Release</parameter>: This switch is used to
|
---|
162 | apply additional compiler optimizations.
|
---|
163 | </para>
|
---|
164 |
|
---|
165 | <para>
|
---|
166 | <parameter>-DENABLE_JOURNALD=OFF</parameter>: This switch is used because
|
---|
167 | BLFS does not support <application>systemd</application>.
|
---|
168 | </para>
|
---|
169 |
|
---|
170 | <para>
|
---|
171 | <option>-DBUILD_MAN_PAGES=ON</option>: This switch may be used if you want
|
---|
172 | the man pages to be installed. Notice that you need
|
---|
173 | <ulink url="http://sourceforge.net/projects/docutils/">Docutils</ulink>
|
---|
174 | to build them.
|
---|
175 | </para>
|
---|
176 |
|
---|
177 | </sect2>
|
---|
178 |
|
---|
179 | <sect2 role="configuration">
|
---|
180 | <title>Configuring SDDM</title>
|
---|
181 |
|
---|
182 | <sect3 id="sddm-config">
|
---|
183 | <title>Config File</title>
|
---|
184 |
|
---|
185 | <para>
|
---|
186 | /etc/sddm.conf
|
---|
187 | </para>
|
---|
188 |
|
---|
189 | <indexterm zone="sddm sddm-config">
|
---|
190 | <primary sortas="e-sddm.conf">/etc/sddm.conf</primary>
|
---|
191 | </indexterm>
|
---|
192 |
|
---|
193 | </sect3>
|
---|
194 |
|
---|
195 | <sect3 id="sddm-bootscript">
|
---|
196 | <title>Boot Script</title>
|
---|
197 |
|
---|
198 | <para>
|
---|
199 | Install the <filename>/etc/rc.d/init.d/sddm</filename> init script from
|
---|
200 | the <xref linkend="bootscripts"/> package.
|
---|
201 | </para>
|
---|
202 |
|
---|
203 | <indexterm zone="sddm sddm-bootscript">
|
---|
204 | <primary sortas="f-sddm">sddm</primary>
|
---|
205 | </indexterm>
|
---|
206 |
|
---|
207 | <screen role="root"><userinput>make install-sddm</userinput></screen>
|
---|
208 |
|
---|
209 | </sect3>
|
---|
210 |
|
---|
211 | <sect3>
|
---|
212 | <title>Linux PAM Configuration</title>
|
---|
213 |
|
---|
214 | <para>
|
---|
215 | If you have built <application>SDDM</application>
|
---|
216 | with <application>Linux PAM</application> support,
|
---|
217 | create the necessary configuration files by running
|
---|
218 | the following commands as the <systemitem
|
---|
219 | class="username">root</systemitem> user:
|
---|
220 | </para>
|
---|
221 |
|
---|
222 | <screen role="root"><userinput>cat > /etc/pam.d/sddm << "EOF" &&
|
---|
223 | <literal># Begin /etc/pam.d/sddm
|
---|
224 |
|
---|
225 | auth requisite pam_nologin.so
|
---|
226 | auth required pam_env.so
|
---|
227 |
|
---|
228 | auth required pam_succeed_if.so uid >= 1000 quiet
|
---|
229 | auth include system-auth
|
---|
230 |
|
---|
231 | account include system-account
|
---|
232 | password include system-password
|
---|
233 |
|
---|
234 | session required pam_limits.so
|
---|
235 | session include system-session
|
---|
236 |
|
---|
237 | # End /etc/pam.d/sddm</literal>
|
---|
238 | EOF
|
---|
239 |
|
---|
240 | cat > /etc/pam.d/sddm-autologin << "EOF" &&
|
---|
241 | <literal># Begin /etc/pam.d/sddm-autologin
|
---|
242 |
|
---|
243 | auth requisite pam_nologin.so
|
---|
244 | auth required pam_env.so
|
---|
245 |
|
---|
246 | auth required pam_succeed_if.so uid >= 1000 quiet
|
---|
247 | auth required pam_permit.so
|
---|
248 |
|
---|
249 | account include system-account
|
---|
250 |
|
---|
251 | password required pam_deny.so
|
---|
252 |
|
---|
253 | session required pam_limits.so
|
---|
254 | session include system-session
|
---|
255 |
|
---|
256 | # End /etc/pam.d/sddm-autologin</literal>
|
---|
257 | EOF
|
---|
258 |
|
---|
259 | cat > /etc/pam.d/sddm-greeter << "EOF"
|
---|
260 | <literal># Begin /etc/pam.d/sddm-greeter
|
---|
261 |
|
---|
262 | auth required pam_env.so
|
---|
263 | auth required pam_permit.so
|
---|
264 |
|
---|
265 | account required pam_permit.so
|
---|
266 | password required pam_deny.so
|
---|
267 | session required pam_unix.so
|
---|
268 | -session optional pam_systemd.so
|
---|
269 |
|
---|
270 | # End /etc/pam.d/sddm-greeter</literal>
|
---|
271 | EOF</userinput></screen>
|
---|
272 |
|
---|
273 | </sect3>
|
---|
274 |
|
---|
275 | <sect3 id="sddm-init">
|
---|
276 | <title>Starting sddm</title>
|
---|
277 |
|
---|
278 | <para>
|
---|
279 | If the sddm bootscript has been installed, start it by running, as
|
---|
280 | <systemitem class="username">root</systemitem> user:
|
---|
281 | </para>
|
---|
282 |
|
---|
283 | <screen role="root"><userinput>/etc/rc.d/init.d/sddm start</userinput></screen>
|
---|
284 |
|
---|
285 | <para>
|
---|
286 | By convention, X should be executed at runlevel 5, consequently, the
|
---|
287 | same is true for <application>sddm</application>. However, LFS default
|
---|
288 | runlevel is 3. Changing to runlevel 5, from a console terminal, as
|
---|
289 | <systemitem class="username">root</systemitem> user, starts the
|
---|
290 | <command>sddm</command> bootscript, bringing up the greeter screen:
|
---|
291 | </para>
|
---|
292 |
|
---|
293 | <screen role="root"><userinput>init 5</userinput></screen>
|
---|
294 |
|
---|
295 | <para>
|
---|
296 | In order to permanently set the default to 5, starting the
|
---|
297 | <command>sddm</command> greeter screen automatically, modify
|
---|
298 | <filename>/etc/inittab</filename>. As the <systemitem
|
---|
299 | class="username">root</systemitem> user:
|
---|
300 | </para>
|
---|
301 |
|
---|
302 | <screen role="root"><userinput>cp -v /etc/inittab{,-orig} &&
|
---|
303 | sed -i '/initdefault/ s/3/5/' /etc/inittab</userinput></screen>
|
---|
304 |
|
---|
305 | </sect3>
|
---|
306 |
|
---|
307 | <sect3 id="sddm-sessions">
|
---|
308 | <title>Available Sessions</title>
|
---|
309 |
|
---|
310 | <para>
|
---|
311 | The greeter offers a list of available sessions,
|
---|
312 | depending on the Window Managers and Desktop Environments installed. The
|
---|
313 | list includes sessions which have a correspoding
|
---|
314 | <filename>.desktop</filename> file installed under
|
---|
315 | <filename class="directory">/usr/share/xsessions</filename>. Most of the
|
---|
316 | Window Managers and Desktop Environments automatically provide those
|
---|
317 | files, but if necessary, you may include a custom one.
|
---|
318 | </para>
|
---|
319 |
|
---|
320 | </sect3>
|
---|
321 |
|
---|
322 | <sect3 id="sddm-themes">
|
---|
323 | <title>Themes</title>
|
---|
324 |
|
---|
325 | <para>
|
---|
326 | Four themes are installed at <filename class="directory">
|
---|
327 | /usr/share/sddm/themes</filename>:
|
---|
328 | circles,
|
---|
329 | elarun,
|
---|
330 | maldives, and
|
---|
331 | maui.
|
---|
332 | The default theme is <quote>maui</quote>. You can install other themes
|
---|
333 | in that directory. In order to change the theme, you need to edit
|
---|
334 | <filename>/etc/sddm.conf</filename>, which is not installed by default.
|
---|
335 | Before proceeding, make a backup of this file, if there is one already
|
---|
336 | installed. In order to generate <filename>/etc/sddm.conf</filename>,
|
---|
337 | issue, as the <systemitem class="username">root</systemitem> user:
|
---|
338 | </para>
|
---|
339 |
|
---|
340 | <screen role="root"><userinput>sddm --example-config > /etc/sddm.conf</userinput></screen>
|
---|
341 |
|
---|
342 | <para>
|
---|
343 | Now, using your preferred text editor, change the default
|
---|
344 | <quote>maui</quote> theme, replacing <quote>Current=maui</quote> by
|
---|
345 | <quote>Current=<replaceable><insert new theme name here></replaceable></quote>,
|
---|
346 | e.g. <quote>Current=maldives</quote>.
|
---|
347 | </para>
|
---|
348 |
|
---|
349 | <para>
|
---|
350 | In order to see the theme without leaving the session, issue:
|
---|
351 | </para>
|
---|
352 |
|
---|
353 | <screen><userinput>sddm-greeter --test-mode --theme <replaceable><theme path></replaceable></userinput></screen>
|
---|
354 |
|
---|
355 | </sect3>
|
---|
356 |
|
---|
357 | <sect3 id="sddm-Issues">
|
---|
358 | <title>Known Issues</title>
|
---|
359 |
|
---|
360 | <para>
|
---|
361 | This applications works well, but there are issues. You find the
|
---|
362 | mainstream known issues at
|
---|
363 | <ulink url="https://github.com/sddm/sddm/issues">Issues</ulink>. The BLFS development team have found some issues.
|
---|
364 | </para>
|
---|
365 |
|
---|
366 | <para>
|
---|
367 | Keyboard selection: the greeter shows a double question mark or the
|
---|
368 | wrong keyboard. When you start to type the password or user name
|
---|
369 | (depending on the theme, only password), magically the right keyboard
|
---|
370 | selection appears. Optionally a workaround is to include it in
|
---|
371 | <command>/usr/share/sddm/scripts/Xsetup</command> script, as the
|
---|
372 | <systemitem class="username">root</systemitem> user:
|
---|
373 | </para>
|
---|
374 |
|
---|
375 | <screen role="root"><userinput>echo "setxkbmap -option <replaceable><your keyboard option></replaceable>" >> /usr/share/sddm/scripts/Xsetup</userinput></screen>
|
---|
376 |
|
---|
377 | <para>
|
---|
378 | Dircolors: the <filename>/etc/dircolors</filename> file is not
|
---|
379 | honoured. Particularly, the compressed files are not displayed in red
|
---|
380 | colour. If this happens, a workaround is to issue, as the
|
---|
381 | <systemitem class="username">root</systemitem> user:
|
---|
382 | </para>
|
---|
383 |
|
---|
384 | <screen role="root"><userinput>echo "source /etc/profile.d/dircolors.sh" >> /etc/bashrc</userinput></screen>
|
---|
385 |
|
---|
386 | <para>
|
---|
387 | It has been reported that this package does not work with Xorg installed
|
---|
388 | in prefix other than <filename class="directory">/usr</filename>.
|
---|
389 | </para>
|
---|
390 |
|
---|
391 | </sect3>
|
---|
392 |
|
---|
393 | </sect2>
|
---|
394 |
|
---|
395 | <sect2 role="content">
|
---|
396 | <title>Contents</title>
|
---|
397 |
|
---|
398 | <segmentedlist>
|
---|
399 | <segtitle>Installed Programs</segtitle>
|
---|
400 | <segtitle>Installed Libraries</segtitle>
|
---|
401 | <segtitle>Installed Directories</segtitle>
|
---|
402 |
|
---|
403 | <seglistitem>
|
---|
404 | <seg>
|
---|
405 | sddm and sddm-greeter
|
---|
406 | </seg>
|
---|
407 | <seg>
|
---|
408 | None
|
---|
409 | </seg>
|
---|
410 | <seg>
|
---|
411 | $QT5DIR/qml/SddmComponents,
|
---|
412 | /usr/share/sddm, and
|
---|
413 | /var/lib/sddm
|
---|
414 | </seg>
|
---|
415 | </seglistitem>
|
---|
416 | </segmentedlist>
|
---|
417 |
|
---|
418 | <variablelist>
|
---|
419 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
420 | <?dbfo list-presentation="list"?>
|
---|
421 | <?dbhtml list-presentation="table"?>
|
---|
422 |
|
---|
423 | <varlistentry id="sddm-prog">
|
---|
424 | <term><command>sddm</command></term>
|
---|
425 | <listitem>
|
---|
426 | <para>
|
---|
427 | is a display and login manager based on
|
---|
428 | <application>Qt</application> libraries.
|
---|
429 | </para>
|
---|
430 | <indexterm zone="sddm sddm-prog">
|
---|
431 | <primary sortas="b-sddm">sddm</primary>
|
---|
432 | </indexterm>
|
---|
433 | </listitem>
|
---|
434 | </varlistentry>
|
---|
435 |
|
---|
436 | <varlistentry id="sddm-greeter">
|
---|
437 | <term><command>sddm-greeter</command></term>
|
---|
438 | <listitem>
|
---|
439 | <para>
|
---|
440 | is an auxiliary process that displays the greeter,
|
---|
441 | a graphical user interface that performs user
|
---|
442 | authentication and initiates the selected window manager
|
---|
443 | or display environment.
|
---|
444 | </para>
|
---|
445 | <indexterm zone="sddm sddm-greeter">
|
---|
446 | <primary sortas="b-sddm-greeter">sddm-greeter</primary>
|
---|
447 | </indexterm>
|
---|
448 | </listitem>
|
---|
449 | </varlistentry>
|
---|
450 |
|
---|
451 | </variablelist>
|
---|
452 |
|
---|
453 | </sect2>
|
---|
454 |
|
---|
455 | </sect1>
|
---|