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 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"/>
|
---|
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 | First, create 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" -d /var/lib/sddm -u 64 -g sddm -s /bin/false sddm</userinput></screen>
|
---|
117 |
|
---|
118 | <para>
|
---|
119 | Install <application>SDDM</application> by running the following
|
---|
120 | commands:
|
---|
121 | </para>
|
---|
122 |
|
---|
123 | <screen><userinput>mkdir build &&
|
---|
124 | cd build &&
|
---|
125 |
|
---|
126 | cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
127 | -DCMAKE_BUILD_TYPE=Release \
|
---|
128 | -DENABLE_JOURNALD=OFF \
|
---|
129 | -DBUILD_MAN_PAGES=ON
|
---|
130 | -Wno-dev .. &&
|
---|
131 | make</userinput></screen>
|
---|
132 |
|
---|
133 | <para>
|
---|
134 | This package does not come with a test suite.
|
---|
135 | </para>
|
---|
136 |
|
---|
137 | <para>
|
---|
138 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
139 | </para>
|
---|
140 |
|
---|
141 | <screen role="root"><userinput>make install &&
|
---|
142 | install -v -dm755 -o sddm -g sddm /var/lib/sddm</userinput></screen>
|
---|
143 |
|
---|
144 | </sect2>
|
---|
145 |
|
---|
146 | <sect2 role="commands">
|
---|
147 | <title>Command Explanations</title>
|
---|
148 |
|
---|
149 | <para>
|
---|
150 | <parameter>-DCMAKE_BUILD_TYPE=Release</parameter>: This switch is used to
|
---|
151 | apply additional compiler optimizations.
|
---|
152 | </para>
|
---|
153 |
|
---|
154 | <para>
|
---|
155 | <parameter>-DENABLE_JOURNALD=OFF</parameter>: This switch is used because
|
---|
156 | BLFS does not support <application>systemd</application>.
|
---|
157 | </para>
|
---|
158 |
|
---|
159 | </sect2>
|
---|
160 |
|
---|
161 | <sect2 role="configuration">
|
---|
162 | <title>Configuring SDDM</title>
|
---|
163 |
|
---|
164 | <sect3 id="sddm-bootscript">
|
---|
165 | <title>Boot Script</title>
|
---|
166 |
|
---|
167 | <para>
|
---|
168 | Install the <filename>/etc/rc.d/init.d/sddm</filename> init script from
|
---|
169 | the <xref linkend="bootscripts"/> package.
|
---|
170 | </para>
|
---|
171 |
|
---|
172 | <indexterm zone="sddm sddm-bootscript">
|
---|
173 | <primary sortas="f-sddm">sddm</primary>
|
---|
174 | </indexterm>
|
---|
175 |
|
---|
176 | <screen role="root"><userinput>make install-sddm</userinput></screen>
|
---|
177 |
|
---|
178 | </sect3>
|
---|
179 |
|
---|
180 | <sect3>
|
---|
181 | <title>Linux PAM Configuration</title>
|
---|
182 |
|
---|
183 | <para>
|
---|
184 | If you have built <application>SDDM</application>
|
---|
185 | with <application>Linux PAM</application> support,
|
---|
186 | create the necessary configuration files by running
|
---|
187 | the following commands as the <systemitem
|
---|
188 | class="username">root</systemitem> user:
|
---|
189 | </para>
|
---|
190 |
|
---|
191 | <screen role="root"><userinput>cat > /etc/pam.d/sddm << "EOF" &&
|
---|
192 | <literal># Begin /etc/pam.d/sddm
|
---|
193 |
|
---|
194 | auth requisite pam_nologin.so
|
---|
195 | auth required pam_env.so
|
---|
196 |
|
---|
197 | auth required pam_succeed_if.so uid >= 1000 quiet
|
---|
198 | auth include system-auth
|
---|
199 |
|
---|
200 | account include system-account
|
---|
201 | password include system-password
|
---|
202 |
|
---|
203 | session required pam_limits.so
|
---|
204 | session include system-session
|
---|
205 |
|
---|
206 | # End /etc/pam.d/sddm</literal>
|
---|
207 | EOF
|
---|
208 |
|
---|
209 | cat > /etc/pam.d/sddm-autologin << "EOF" &&
|
---|
210 | <literal># Begin /etc/pam.d/sddm-autologin
|
---|
211 |
|
---|
212 | auth requisite pam_nologin.so
|
---|
213 | auth required pam_env.so
|
---|
214 |
|
---|
215 | auth required pam_succeed_if.so uid >= 1000 quiet
|
---|
216 | auth required pam_permit.so
|
---|
217 |
|
---|
218 | account include system-account
|
---|
219 |
|
---|
220 | password required pam_deny.so
|
---|
221 |
|
---|
222 | session required pam_limits.so
|
---|
223 | session include system-session
|
---|
224 |
|
---|
225 | # End /etc/pam.d/sddm-autologin</literal>
|
---|
226 | EOF
|
---|
227 |
|
---|
228 | cat > /etc/pam.d/sddm-greeter << "EOF"
|
---|
229 | <literal># Begin /etc/pam.d/sddm-greeter
|
---|
230 |
|
---|
231 | auth required pam_env.so
|
---|
232 | auth required pam_permit.so
|
---|
233 |
|
---|
234 | account required pam_permit.so
|
---|
235 | password required pam_deny.so
|
---|
236 | session required pam_unix.so
|
---|
237 | -session optional pam_systemd.so
|
---|
238 |
|
---|
239 | # End /etc/pam.d/sddm-greeter</literal>
|
---|
240 | EOF</userinput></screen>
|
---|
241 |
|
---|
242 | </sect3>
|
---|
243 |
|
---|
244 | <sect3 id="sddm-init">
|
---|
245 | <title>Starting sddm</title>
|
---|
246 |
|
---|
247 | <para>
|
---|
248 | If the sddm bootscript has been installed, start it by running, as
|
---|
249 | <systemitem class="username">root</systemitem> user:
|
---|
250 | </para>
|
---|
251 |
|
---|
252 | <screen role="root"><userinput>/etc/rc.d/init.d/sddm start</userinput></screen>
|
---|
253 |
|
---|
254 | <para>
|
---|
255 | By convertion, X should be executed at runlevel 5, consequently, the
|
---|
256 | same is true for <application>sddm</application>. However, LFS default
|
---|
257 | runlevel is 3. Changing to runlevel 5, from a console terminal, as
|
---|
258 | <systemitem class="username">root</systemitem> user, starts the
|
---|
259 | <command>sddm</command> bootscript, bringing up the greeter screen:
|
---|
260 | </para>
|
---|
261 |
|
---|
262 | <screen role="root"><userinput>init 5</userinput></screen>
|
---|
263 |
|
---|
264 | <para>
|
---|
265 | In order to permanently set the default to 5, starting the
|
---|
266 | <command>sddm</command> greeter screen automatically, modify
|
---|
267 | <filename>/etc/inittab</filename>. As the <systemitem
|
---|
268 | class="username">root</systemitem> user:
|
---|
269 | </para>
|
---|
270 |
|
---|
271 | <screen role="root"><userinput>cp -v /etc/inittab{,-orig} &&
|
---|
272 | sed -i '/initdefault/ s/3/5/' /etc/inittab</userinput></screen>
|
---|
273 |
|
---|
274 | </sect3>
|
---|
275 |
|
---|
276 | </sect2>
|
---|
277 |
|
---|
278 | <sect2 role="content">
|
---|
279 | <title>Contents</title>
|
---|
280 |
|
---|
281 | <segmentedlist>
|
---|
282 | <segtitle>Installed Programs</segtitle>
|
---|
283 | <segtitle>Installed Libraries</segtitle>
|
---|
284 | <segtitle>Installed Directories</segtitle>
|
---|
285 |
|
---|
286 | <seglistitem>
|
---|
287 | <seg>
|
---|
288 | sddm and sddm-greeter
|
---|
289 | </seg>
|
---|
290 | <seg>
|
---|
291 | None
|
---|
292 | </seg>
|
---|
293 | <seg>
|
---|
294 | $QT5DIR/qml/SddmComponents,
|
---|
295 | /usr/share/sddm, and
|
---|
296 | /var/lib/sddm
|
---|
297 | </seg>
|
---|
298 | </seglistitem>
|
---|
299 | </segmentedlist>
|
---|
300 |
|
---|
301 | <variablelist>
|
---|
302 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
303 | <?dbfo list-presentation="list"?>
|
---|
304 | <?dbhtml list-presentation="table"?>
|
---|
305 |
|
---|
306 | <varlistentry id="sddm-prog">
|
---|
307 | <term><command>sddm</command></term>
|
---|
308 | <listitem>
|
---|
309 | <para>
|
---|
310 | is a display and login manager based on
|
---|
311 | <application>Qt</application> libraries.
|
---|
312 | </para>
|
---|
313 | <indexterm zone="sddm sddm-prog">
|
---|
314 | <primary sortas="b-sddm">sddm</primary>
|
---|
315 | </indexterm>
|
---|
316 | </listitem>
|
---|
317 | </varlistentry>
|
---|
318 |
|
---|
319 | <varlistentry id="sddm-greeter">
|
---|
320 | <term><command>sddm-greeter</command></term>
|
---|
321 | <listitem>
|
---|
322 | <para>
|
---|
323 | is an auxiliary process that displays the greeter,
|
---|
324 | a graphical user interface that performs user
|
---|
325 | authentication and initiates the selected window manager
|
---|
326 | or display environment.
|
---|
327 | </para>
|
---|
328 | <indexterm zone="sddm sddm-greeter">
|
---|
329 | <primary sortas="b-sddm-greeter">sddm-greeter</primary>
|
---|
330 | </indexterm>
|
---|
331 | </listitem>
|
---|
332 | </varlistentry>
|
---|
333 |
|
---|
334 | </variablelist>
|
---|
335 |
|
---|
336 | </sect2>
|
---|
337 |
|
---|
338 | </sect1>
|
---|