source: x/dm/sddm.xml@ 6d772cc

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 6d772cc was 6d772cc, checked in by Fernando de Oliveira <fernando@…>, 9 years ago
  • Update to wireshark-1.12.7.
  • Update to mpg123-1.22.4.
  • more short descriptions.
  • sddm-0.11.0: reformat.

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