source: x/dm/sddm.xml@ a65d410

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since a65d410 was a65d410, checked in by Fernando de Oliveira <fernando@…>, 9 years ago
  • sddm-0.11.0: We can get a keyboard list!
  • Update to libidn-1.32.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@16322 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 13.8 KB
Line 
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 "&sources-anduin-other-http;/sddm-&sddm-version;.tar.gz">
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 &amp;&amp;
118useradd -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 &amp;&amp;
136cd build &amp;&amp;
137
138cmake -DCMAKE_INSTALL_PREFIX=/usr \
139 -DCMAKE_BUILD_TYPE=Release \
140 -DENABLE_JOURNALD=OFF \
141 -Wno-dev .. &amp;&amp;
142make</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 &amp;&amp;
153install -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 &gt; /etc/pam.d/sddm &lt;&lt; "EOF" &amp;&amp;
223<literal># Begin /etc/pam.d/sddm
224
225auth requisite pam_nologin.so
226auth required pam_env.so
227
228auth required pam_succeed_if.so uid &gt;= 1000 quiet
229auth include system-auth
230
231account include system-account
232password include system-password
233
234session required pam_limits.so
235session include system-session
236
237# End /etc/pam.d/sddm</literal>
238EOF
239
240cat &gt; /etc/pam.d/sddm-autologin &lt;&lt; "EOF" &amp;&amp;
241<literal># Begin /etc/pam.d/sddm-autologin
242
243auth requisite pam_nologin.so
244auth required pam_env.so
245
246auth required pam_succeed_if.so uid &gt;= 1000 quiet
247auth required pam_permit.so
248
249account include system-account
250
251password required pam_deny.so
252
253session required pam_limits.so
254session include system-session
255
256# End /etc/pam.d/sddm-autologin</literal>
257EOF
258
259cat &gt; /etc/pam.d/sddm-greeter &lt;&lt; "EOF"
260<literal># Begin /etc/pam.d/sddm-greeter
261
262auth required pam_env.so
263auth required pam_permit.so
264
265account required pam_permit.so
266password required pam_deny.so
267session required pam_unix.so
268-session optional pam_systemd.so
269
270# End /etc/pam.d/sddm-greeter</literal>
271EOF</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} &amp;&amp;
303sed -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>&lt;insert new theme name here&gt;</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>&lt;theme path&gt;</replaceable></userinput></screen>
354
355 </sect3>
356
357 <sect3 id="sddm-Issues">
358 <title>Known Issues</title>
359
360 <para>
361 This application 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>.
364 The BLFS development team have found some issues.
365 </para>
366
367 <para>
368 Keyboard selection: the greeter shows a double question mark or the
369 wrong keyboard. When you start to type the password or user name
370 (depending on the theme, only password), the right keyboard selection
371 magically appears. Optionally, a workaround is to include the keyboard
372 list in <command>/usr/share/sddm/scripts/Xsetup</command> script, as the
373 <systemitem class="username">root</systemitem> user:
374 </para>
375
376<screen role="root"><userinput>echo 'setxkbmap <replaceable>"&lt;your keyboard comma separated list&gt;"</replaceable>' &gt;&gt; /usr/share/sddm/scripts/Xsetup</userinput></screen>
377
378 <para>
379 E.g. <command>echo 'setxkbmap "gb,br,us"' &gt;&gt;
380 /usr/share/sddm/scripts/Xsetup</command>
381 </para>
382
383 <para>
384 Dircolors: the <filename>/etc/dircolors</filename> file is not
385 honoured. Particularly, the compressed files are not displayed in red
386 colour. If this happens, a workaround is to issue, as the
387 <systemitem class="username">root</systemitem> user:
388 </para>
389
390<screen role="root"><userinput>echo "source /etc/profile.d/dircolors.sh" &gt;&gt; /etc/bashrc</userinput></screen>
391
392 <para>
393 It has been reported that this package does not work with Xorg installed
394 with a prefix other than <filename class="directory">/usr</filename>.
395 </para>
396
397 </sect3>
398
399 </sect2>
400
401 <sect2 role="content">
402 <title>Contents</title>
403
404 <segmentedlist>
405 <segtitle>Installed Programs</segtitle>
406 <segtitle>Installed Libraries</segtitle>
407 <segtitle>Installed Directories</segtitle>
408
409 <seglistitem>
410 <seg>
411 sddm and sddm-greeter
412 </seg>
413 <seg>
414 None
415 </seg>
416 <seg>
417 $QT5DIR/qml/SddmComponents,
418 /usr/share/sddm, and
419 /var/lib/sddm
420 </seg>
421 </seglistitem>
422 </segmentedlist>
423
424 <variablelist>
425 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
426 <?dbfo list-presentation="list"?>
427 <?dbhtml list-presentation="table"?>
428
429 <varlistentry id="sddm-prog">
430 <term><command>sddm</command></term>
431 <listitem>
432 <para>
433 is a display and login manager based on
434 <application>Qt</application> libraries.
435 </para>
436 <indexterm zone="sddm sddm-prog">
437 <primary sortas="b-sddm">sddm</primary>
438 </indexterm>
439 </listitem>
440 </varlistentry>
441
442 <varlistentry id="sddm-greeter">
443 <term><command>sddm-greeter</command></term>
444 <listitem>
445 <para>
446 is an auxiliary process that displays the greeter,
447 a graphical user interface that performs user
448 authentication and initiates the selected window manager
449 or display environment.
450 </para>
451 <indexterm zone="sddm sddm-greeter">
452 <primary sortas="b-sddm-greeter">sddm-greeter</primary>
453 </indexterm>
454 </listitem>
455 </varlistentry>
456
457 </variablelist>
458
459 </sect2>
460
461</sect1>
Note: See TracBrowser for help on using the repository browser.