source: x/dm/sddm.xml@ 60c7466

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 60c7466 was 60c7466, checked in by Bruce Dubbs <bdubbs@…>, 9 years ago

Update to pciutils-3.4.0

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

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