[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[80f933b] | 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 | <!ENTITY sddm-download-http "https://github.com/sddm/sddm/archive/v&sddm-version;/sddm-&sddm-version;.tar.gz">
|
---|
| 8 | <!ENTITY sddm-download-ftp " ">
|
---|
[f86d98e0] | 9 | <!ENTITY sddm-md5sum "e32a35c282d9be3360737eefbe25b5fa">
|
---|
[80f933b] | 10 | <!ENTITY sddm-size "3.4 MB">
|
---|
[f86d98e0] | 11 | <!ENTITY sddm-buildsize "24 MB">
|
---|
[665150a] | 12 | <!ENTITY sddm-time "0.3 SBU (Using parallelism=4)">
|
---|
[80f933b] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="sddm" xreflabel="sddm-&sddm-version;">
|
---|
| 16 | <?dbhtml filename="sddm.html"?>
|
---|
| 17 |
|
---|
| 18 | <title>sddm-&sddm-version;</title>
|
---|
| 19 |
|
---|
| 20 | <indexterm zone="sddm">
|
---|
| 21 | <primary sortas="a-sddm">sddm</primary>
|
---|
| 22 | </indexterm>
|
---|
| 23 |
|
---|
| 24 | <sect2 role="package">
|
---|
| 25 | <title>Introduction to sddm</title>
|
---|
| 26 |
|
---|
| 27 | <para>
|
---|
| 28 | The <application>sddm</application> package contains a lightweight
|
---|
| 29 | display manager based upon <application>Qt</application> and QML.
|
---|
| 30 | </para>
|
---|
| 31 |
|
---|
[d8c3e3f] | 32 | &lfs121_checked;
|
---|
[80f933b] | 33 |
|
---|
| 34 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 35 | <itemizedlist spacing="compact">
|
---|
| 36 | <listitem>
|
---|
| 37 | <para>
|
---|
| 38 | Download (HTTP): <ulink url="&sddm-download-http;"/>
|
---|
| 39 | </para>
|
---|
| 40 | </listitem>
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>
|
---|
| 43 | Download (FTP): <ulink url="&sddm-download-ftp;"/>
|
---|
| 44 | </para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>
|
---|
| 48 | Download MD5 sum: &sddm-md5sum;
|
---|
| 49 | </para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>
|
---|
| 53 | Download size: &sddm-size;
|
---|
| 54 | </para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>
|
---|
| 58 | Estimated disk space required: &sddm-buildsize;
|
---|
| 59 | </para>
|
---|
| 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>
|
---|
| 63 | Estimated build time: &sddm-time;
|
---|
| 64 | </para>
|
---|
| 65 | </listitem>
|
---|
| 66 | </itemizedlist>
|
---|
| 67 |
|
---|
| 68 | <bridgehead renderas="sect3">SDDM Dependencies</bridgehead>
|
---|
| 69 |
|
---|
| 70 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 71 | <para role="required">
|
---|
| 72 | <xref linkend="cmake"/>,
|
---|
[16bfa72] | 73 | <xref linkend="extra-cmake-modules"/>, and
|
---|
[80f933b] | 74 | &qt5-deps;
|
---|
| 75 | </para>
|
---|
| 76 |
|
---|
| 77 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 78 | <para role="recommended">
|
---|
[ad65d196] | 79 | <xref linkend="docutils"/> (for the man pages),
|
---|
| 80 | <xref linkend="linux-pam"/>, and
|
---|
[80f933b] | 81 | <xref linkend="upower"/>
|
---|
| 82 | </para>
|
---|
[16bfa72] | 83 |
|
---|
[80f933b] | 84 | <!--
|
---|
| 85 | <para condition="html" role="usernotes">User Notes:
|
---|
| 86 | <ulink url="&blfs-wiki;/sddm"/>
|
---|
| 87 | </para>
|
---|
| 88 | -->
|
---|
| 89 | </sect2>
|
---|
| 90 | <sect2 role="installation">
|
---|
| 91 | <title>Installation of SDDM</title>
|
---|
| 92 |
|
---|
| 93 | <para>
|
---|
| 94 | First, create a dedicated user and group to take
|
---|
| 95 | control of the <command>sddm</command> daemon after it is
|
---|
| 96 | started. Issue the following commands as the
|
---|
| 97 | &root; user:
|
---|
| 98 | </para>
|
---|
| 99 |
|
---|
| 100 | <screen role="root"><userinput>groupadd -g 64 sddm &&
|
---|
| 101 | useradd -c "sddm Daemon" \
|
---|
| 102 | -d /var/lib/sddm \
|
---|
| 103 | -u 64 -g sddm \
|
---|
| 104 | -s /bin/false sddm</userinput></screen>
|
---|
| 105 | <!--
|
---|
| 106 | <para revision="sysv">
|
---|
| 107 | Next, fix the application to start <command>upowerd</command>,
|
---|
| 108 | if necessary, and after login, start the session with
|
---|
| 109 | <command>ck-launch-session</command>:
|
---|
| 110 | </para>
|
---|
| 111 |
|
---|
| 112 | <screen revision="sysv"><userinput>sed -e '/UPOWER_SERVICE)/ s:^://:' \
|
---|
| 113 | -i src/daemon/PowerManager.cpp &&
|
---|
| 114 |
|
---|
| 115 | sed -e '/\$@$/s/exec/& ck-launch-session/' \
|
---|
| 116 | -i data/scripts/Xsession</userinput></screen>
|
---|
| 117 |
|
---|
| 118 | <para revision="sysv">
|
---|
| 119 | For sddm-0.16.0, ConsoleKit support has been added, but is broken. Remove
|
---|
| 120 | it with:
|
---|
| 121 | </para>
|
---|
| 122 | -->
|
---|
| 123 | <!-- This removes also logind support. Hopefully should be fixed for next
|
---|
[e440af5] | 124 | version
|
---|
[80f933b] | 125 | <screen revision="sysv"><userinput>sed -e '/available.*true/s/true/false/' \
|
---|
| 126 | -i src/daemon/LogindDBusTypes.cpp</userinput></screen>
|
---|
| 127 | -->
|
---|
| 128 | <para>
|
---|
| 129 | Install <application>sddm</application> by running the following
|
---|
| 130 | commands:
|
---|
| 131 | </para>
|
---|
| 132 |
|
---|
| 133 | <screen revision="sysv"><userinput>mkdir build &&
|
---|
| 134 | cd build &&
|
---|
| 135 |
|
---|
[4304a5f] | 136 | cmake -D CMAKE_INSTALL_PREFIX=/usr \
|
---|
| 137 | -D CMAKE_BUILD_TYPE=Release \
|
---|
| 138 | -D ENABLE_JOURNALD=OFF \
|
---|
| 139 | -D NO_SYSTEMD=ON \
|
---|
| 140 | -D RUNTIME_DIR=/run/sddm \
|
---|
| 141 | -D USE_ELOGIND=ON \
|
---|
| 142 | -D BUILD_MAN_PAGES=ON \
|
---|
| 143 | -D DATA_INSTALL_DIR=/usr/share/sddm \
|
---|
| 144 | -D DBUS_CONFIG_FILENAME=sddm_org.freedesktop.DisplayManager.conf \
|
---|
[ad65d196] | 145 | .. &&
|
---|
[80f933b] | 146 | make</userinput></screen>
|
---|
| 147 |
|
---|
| 148 | <screen revision="systemd"><userinput>mkdir build &&
|
---|
| 149 | cd build &&
|
---|
| 150 |
|
---|
[4304a5f] | 151 | cmake -D CMAKE_INSTALL_PREFIX=/usr \
|
---|
| 152 | -D CMAKE_BUILD_TYPE=Release \
|
---|
| 153 | -D RUNTIME_DIR=/run/sddm \
|
---|
| 154 | -D BUILD_MAN_PAGES=ON \
|
---|
| 155 | -D DATA_INSTALL_DIR=/usr/share/sddm \
|
---|
| 156 | -D DBUS_CONFIG_FILENAME=sddm_org.freedesktop.DisplayManager.conf \
|
---|
[ad65d196] | 157 | .. &&
|
---|
[80f933b] | 158 | make</userinput></screen>
|
---|
| 159 |
|
---|
| 160 | <para>
|
---|
| 161 | This package does not come with a test suite.
|
---|
| 162 | </para>
|
---|
| 163 |
|
---|
| 164 | <para>
|
---|
| 165 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 166 | </para>
|
---|
| 167 |
|
---|
| 168 | <screen role="root"><userinput>make install &&
|
---|
[ad65d196] | 169 | install -v -dm755 -o sddm -g sddm /var/lib/sddm
|
---|
| 170 | /usr/bin/sddm --example-config > /etc/sddm.conf</userinput></screen>
|
---|
[80f933b] | 171 |
|
---|
| 172 | </sect2>
|
---|
| 173 |
|
---|
| 174 | <sect2 role="commands">
|
---|
| 175 | <title>Command Explanations</title>
|
---|
| 176 |
|
---|
| 177 | <para>
|
---|
[4304a5f] | 178 | <parameter>-D CMAKE_BUILD_TYPE=Release</parameter>: This switch is used to
|
---|
[80f933b] | 179 | apply additional compiler optimizations.
|
---|
| 180 | </para>
|
---|
| 181 |
|
---|
| 182 | <para revision="sysv">
|
---|
[4304a5f] | 183 | <parameter>-D ENABLE_JOURNALD=OFF</parameter> and
|
---|
[dadb1c9f] | 184 | <parameter>-D NO_SYSTEMD=ON</parameter>: These switches are used because
|
---|
[80f933b] | 185 | this version of BLFS does not support <application>systemd</application>.
|
---|
| 186 | </para>
|
---|
| 187 |
|
---|
[16bfa72] | 188 | <para>
|
---|
[4304a5f] | 189 | <parameter>-D DBUS_CONFIG_FILENAME=sddm_org.freedesktop.DisplayManager.conf</parameter>:
|
---|
[80f933b] | 190 | This switch prevents the file <filename>
|
---|
| 191 | /etc/dbus-1/system.d/org.freedesktop.DisplayManager.conf</filename> from
|
---|
| 192 | being overwritten, as it may be used by other DM's.
|
---|
| 193 | </para>
|
---|
| 194 |
|
---|
| 195 | <para>
|
---|
[4304a5f] | 196 | <parameter>-D BUILD_MAN_PAGES=ON</parameter>: This switch is used to build
|
---|
[e440af5] | 197 | and install man pages.
|
---|
[80f933b] | 198 | </para>
|
---|
| 199 |
|
---|
| 200 | </sect2>
|
---|
| 201 |
|
---|
| 202 | <sect2 role="configuration">
|
---|
| 203 | <title>Configuring SDDM</title>
|
---|
| 204 |
|
---|
| 205 | <sect3 id="sddm-config">
|
---|
| 206 | <title>Config Files</title>
|
---|
| 207 |
|
---|
| 208 | <para>
|
---|
[f2cb575d] | 209 | /etc/sddm.config
|
---|
[80f933b] | 210 | </para>
|
---|
| 211 |
|
---|
| 212 | <indexterm zone="sddm sddm-config">
|
---|
| 213 | <primary sortas="e-sddm.conf">/etc/sddm.conf</primary>
|
---|
| 214 | </indexterm>
|
---|
| 215 |
|
---|
| 216 | <para>
|
---|
| 217 | Normally, you want to edit this file. For example, if Xorg is installed
|
---|
[16bfa72] | 218 | in /opt, use your preferred editor as the &root; user to replace the
|
---|
[f2cb575d] | 219 | default <emphasis>XauthPath</emphasis> value by
|
---|
| 220 | <emphasis>/opt/xorg/bin/xauth</emphasis>. Or, as the &root; user,
|
---|
| 221 | issue:
|
---|
[80f933b] | 222 | </para>
|
---|
| 223 |
|
---|
[8a5e15b] | 224 | <screen role="nodump"><userinput>sed -i.orig '/ServerPath/ s|usr|opt/xorg|' /etc/sddm.conf</userinput></screen>
|
---|
[80f933b] | 225 |
|
---|
| 226 | <para>
|
---|
| 227 | This command will do the substitution and create a copy of the original
|
---|
| 228 | file with name <filename>/etc/sddm.conf.orig</filename>.
|
---|
| 229 | </para>
|
---|
| 230 |
|
---|
| 231 | <para>
|
---|
| 232 | From now on, we will describe how to modify configurations using sed.
|
---|
[f2cb575d] | 233 | Of course, you may instead use your preferred editor as the &root;
|
---|
| 234 | user.
|
---|
[80f933b] | 235 | </para>
|
---|
| 236 |
|
---|
| 237 | <para>
|
---|
| 238 | For security reasons, you normally want the default
|
---|
| 239 | <emphasis>ServerArguments=-nolisten tcp</emphasis>, unless a remote
|
---|
| 240 | machine needs access to the local X server. In that case, as the
|
---|
[f2cb575d] | 241 | &root; user, issue:
|
---|
[80f933b] | 242 | </para>
|
---|
| 243 |
|
---|
[8a5e15b] | 244 | <screen role="nodump"><userinput>sed -i 's/-nolisten tcp//' /etc/sddm.conf</userinput></screen>
|
---|
[80f933b] | 245 |
|
---|
| 246 | <para>
|
---|
[16bfa72] | 247 | Desktop (Notebook) users, normally want the Num Lock key on (off). For
|
---|
[f2fa6d94] | 248 | that, as &root;, issue:
|
---|
[80f933b] | 249 | </para>
|
---|
| 250 |
|
---|
[8a5e15b] | 251 | <screen role="root"><userinput>sed -i '/Numlock/s/none/on/' /etc/sddm.conf</userinput></screen>
|
---|
[80f933b] | 252 |
|
---|
| 253 | <para>
|
---|
[f2cb575d] | 254 | for Desktop users. For Notebook users, replace /on/ by /off/
|
---|
[80f933b] | 255 | in the command above.
|
---|
| 256 | </para>
|
---|
| 257 |
|
---|
[f2fa6d94] | 258 | <para>
|
---|
| 259 | By default, a virtual keyboard is presented for the user. If this is
|
---|
| 260 | not desired, run as &root;:
|
---|
| 261 | </para>
|
---|
| 262 |
|
---|
| 263 | <screen role="root"><userinput>sed -i 's/qtvirtualkeyboard//' /etc/sddm.conf</userinput></screen>
|
---|
| 264 |
|
---|
[80f933b] | 265 | </sect3>
|
---|
| 266 |
|
---|
| 267 | <sect3 id="sddm-bootscript">
|
---|
| 268 | <title>Boot Script</title>
|
---|
| 269 |
|
---|
[16bfa72] | 270 | <para revision="sysv">
|
---|
[f2cb575d] | 271 | Install the <filename revision="sysv">/etc/rc.d/init.d/xdm</filename>
|
---|
[80f933b] | 272 | init script from the <xref linkend="bootscripts" revision="sysv"/>
|
---|
[16bfa72] | 273 | package, as the &root; user:
|
---|
| 274 | </para>
|
---|
| 275 |
|
---|
| 276 | <para revision="systemd">
|
---|
| 277 | Enable the pre-installed systemd unit by running the following command
|
---|
| 278 | as the &root; user:
|
---|
[80f933b] | 279 | </para>
|
---|
| 280 |
|
---|
| 281 | <indexterm zone="sddm sddm-bootscript">
|
---|
| 282 | <primary sortas="f-sddm">sddm</primary>
|
---|
| 283 | </indexterm>
|
---|
| 284 |
|
---|
| 285 | <screen role="root" revision="sysv"><userinput>make install-sddm</userinput></screen>
|
---|
| 286 |
|
---|
| 287 | <screen role="root" revision="systemd"><userinput>systemctl enable sddm</userinput></screen>
|
---|
| 288 |
|
---|
| 289 | </sect3>
|
---|
| 290 |
|
---|
| 291 | <sect3>
|
---|
| 292 | <title>Linux PAM Configuration</title>
|
---|
| 293 |
|
---|
[f2cb575d] | 294 | <note>
|
---|
| 295 | <para>
|
---|
[16bfa72] | 296 | The install procedure above installed a set of PAM configuration
|
---|
| 297 | files. These procedures overwrite them and use versions compatible
|
---|
| 298 | with a BLFS environment.
|
---|
[f2cb575d] | 299 | </para>
|
---|
| 300 | </note>
|
---|
| 301 |
|
---|
[80f933b] | 302 | <para>
|
---|
| 303 | If you have built <application>sddm</application>
|
---|
| 304 | with <application>Linux PAM</application> support,
|
---|
| 305 | create the necessary configuration files by running
|
---|
| 306 | the following commands as the &root; user:
|
---|
| 307 | </para>
|
---|
| 308 |
|
---|
| 309 | <screen role="root" revision="sysv"><userinput>cat > /etc/pam.d/sddm << "EOF"
|
---|
| 310 | <literal># Begin /etc/pam.d/sddm
|
---|
| 311 |
|
---|
| 312 | auth requisite pam_nologin.so
|
---|
| 313 | auth required pam_env.so
|
---|
| 314 |
|
---|
| 315 | auth required pam_succeed_if.so uid >= 1000 quiet
|
---|
| 316 | auth include system-auth
|
---|
| 317 |
|
---|
| 318 | account include system-account
|
---|
| 319 | password include system-password
|
---|
| 320 |
|
---|
| 321 | session required pam_limits.so
|
---|
| 322 | session include system-session
|
---|
| 323 |
|
---|
| 324 | # End /etc/pam.d/sddm</literal>
|
---|
| 325 | EOF
|
---|
| 326 |
|
---|
| 327 | cat > /etc/pam.d/sddm-autologin << "EOF"
|
---|
| 328 | <literal># Begin /etc/pam.d/sddm-autologin
|
---|
| 329 |
|
---|
| 330 | auth requisite pam_nologin.so
|
---|
| 331 | auth required pam_env.so
|
---|
| 332 |
|
---|
| 333 | auth required pam_succeed_if.so uid >= 1000 quiet
|
---|
| 334 | auth required pam_permit.so
|
---|
| 335 |
|
---|
| 336 | account include system-account
|
---|
| 337 |
|
---|
| 338 | password required pam_deny.so
|
---|
| 339 |
|
---|
| 340 | session required pam_limits.so
|
---|
| 341 | session include system-session
|
---|
| 342 |
|
---|
| 343 | # End /etc/pam.d/sddm-autologin</literal>
|
---|
| 344 | EOF
|
---|
| 345 |
|
---|
| 346 | cat > /etc/pam.d/sddm-greeter << "EOF"
|
---|
| 347 | <literal># Begin /etc/pam.d/sddm-greeter
|
---|
| 348 |
|
---|
| 349 | auth required pam_env.so
|
---|
| 350 | auth required pam_permit.so
|
---|
| 351 |
|
---|
| 352 | account required pam_permit.so
|
---|
| 353 | password required pam_deny.so
|
---|
| 354 | session required pam_unix.so
|
---|
| 355 | -session optional pam_systemd.so
|
---|
| 356 |
|
---|
| 357 | # End /etc/pam.d/sddm-greeter</literal>
|
---|
| 358 | EOF</userinput></screen>
|
---|
| 359 |
|
---|
| 360 | <screen role="root" revision="systemd"><userinput>cat > /etc/pam.d/sddm << "EOF" &&
|
---|
| 361 | <literal># Begin /etc/pam.d/sddm
|
---|
| 362 |
|
---|
| 363 | auth requisite pam_nologin.so
|
---|
| 364 | auth required pam_env.so
|
---|
| 365 |
|
---|
| 366 | auth required pam_succeed_if.so uid >= 1000 quiet
|
---|
| 367 | auth include system-auth
|
---|
| 368 |
|
---|
| 369 | account include system-account
|
---|
| 370 | password include system-password
|
---|
| 371 |
|
---|
| 372 | session required pam_limits.so
|
---|
| 373 | session include system-session
|
---|
| 374 |
|
---|
| 375 | # End /etc/pam.d/sddm</literal>
|
---|
| 376 | EOF
|
---|
| 377 |
|
---|
| 378 | cat > /etc/pam.d/sddm-autologin << "EOF" &&
|
---|
| 379 | <literal># Begin /etc/pam.d/sddm-autologin
|
---|
| 380 |
|
---|
| 381 | auth requisite pam_nologin.so
|
---|
| 382 | auth required pam_env.so
|
---|
| 383 |
|
---|
| 384 | auth required pam_succeed_if.so uid >= 1000 quiet
|
---|
| 385 | auth required pam_permit.so
|
---|
| 386 |
|
---|
| 387 | account include system-account
|
---|
| 388 |
|
---|
| 389 | password required pam_deny.so
|
---|
| 390 |
|
---|
| 391 | session required pam_limits.so
|
---|
| 392 | session include system-session
|
---|
| 393 |
|
---|
| 394 | # End /etc/pam.d/sddm-autologin</literal>
|
---|
| 395 | EOF
|
---|
| 396 |
|
---|
| 397 | cat > /etc/pam.d/sddm-greeter << "EOF"
|
---|
| 398 | <literal># Begin /etc/pam.d/sddm-greeter
|
---|
| 399 |
|
---|
| 400 | auth required pam_env.so
|
---|
| 401 | auth required pam_permit.so
|
---|
| 402 |
|
---|
| 403 | account required pam_permit.so
|
---|
| 404 | password required pam_deny.so
|
---|
| 405 | session required pam_unix.so
|
---|
| 406 | -session optional pam_systemd.so
|
---|
| 407 |
|
---|
| 408 | # End /etc/pam.d/sddm-greeter</literal>
|
---|
| 409 | EOF</userinput></screen>
|
---|
| 410 |
|
---|
| 411 | </sect3>
|
---|
| 412 |
|
---|
| 413 | <sect3 id="sddm-init" revision="sysv">
|
---|
| 414 | <title>Starting sddm</title>
|
---|
| 415 |
|
---|
| 416 | <para>
|
---|
| 417 | If the sddm bootscript has been installed, start sddm by running, as the
|
---|
[f2cb575d] | 418 | &root; user:
|
---|
[80f933b] | 419 | </para>
|
---|
| 420 |
|
---|
[665150a] | 421 | <screen role="nodump"><userinput>/etc/rc.d/init.d/xdm start</userinput></screen>
|
---|
[80f933b] | 422 |
|
---|
| 423 | <para>
|
---|
| 424 | By convention, X should be executed at runlevel 5, consequently, the
|
---|
[16bfa72] | 425 | same is true for <application>sddm</application>. However, the default
|
---|
[80f933b] | 426 | runlevel is 3. Changing to runlevel 5, from a console terminal, as
|
---|
| 427 | <systemitem class="username">root</systemitem> user, starts the
|
---|
| 428 | <command>sddm</command> bootscript, bringing up the greeter screen:
|
---|
| 429 | </para>
|
---|
| 430 |
|
---|
[665150a] | 431 | <screen role="nodump"><userinput>init 5</userinput></screen>
|
---|
[80f933b] | 432 |
|
---|
| 433 | <para>
|
---|
| 434 | In order to permanently set the default to 5, starting the
|
---|
| 435 | <command>sddm</command> greeter screen automatically, modify
|
---|
[16bfa72] | 436 | <filename>/etc/inittab</filename> as the <systemitem
|
---|
[80f933b] | 437 | class="username">root</systemitem> user:
|
---|
| 438 | </para>
|
---|
| 439 |
|
---|
| 440 | <screen role="root"><userinput>cp -v /etc/inittab{,-orig} &&
|
---|
| 441 | sed -i '/initdefault/ s/3/5/' /etc/inittab</userinput></screen>
|
---|
| 442 |
|
---|
| 443 | </sect3>
|
---|
| 444 |
|
---|
| 445 | <sect3 id="sddm-sessions">
|
---|
| 446 | <title>Available Sessions</title>
|
---|
| 447 |
|
---|
| 448 | <para>
|
---|
[f2cb575d] | 449 | The greeter offers a list of available sessions, depending on the
|
---|
| 450 | Window Managers and Desktop Environments installed. The list includes
|
---|
| 451 | sessions which have a corresponding <filename>.desktop</filename> file
|
---|
[16bfa72] | 452 | installed under
|
---|
| 453 | <filename class="directory">/usr/share/xsessions</filename> or
|
---|
| 454 | <filename class="directory">/usr/share/wayland-sessions</filename>.
|
---|
| 455 | Most of the Window Managers and Desktop Environments automatically
|
---|
| 456 | provide those files, but if necessary, you may include a custom one.
|
---|
[80f933b] | 457 | </para>
|
---|
| 458 |
|
---|
| 459 | </sect3>
|
---|
| 460 |
|
---|
| 461 | <sect3 id="sddm-themes">
|
---|
| 462 | <title>Themes</title>
|
---|
| 463 |
|
---|
| 464 | <para>
|
---|
| 465 | Three themes are installed at <filename class="directory">
|
---|
| 466 | /usr/share/sddm/themes</filename>:
|
---|
| 467 | elarun,
|
---|
| 468 | maldives, and
|
---|
| 469 | maya.
|
---|
| 470 | There is also a default theme, which is not present in that directory.
|
---|
| 471 | You can install other themes in that directory. In order to change the
|
---|
| 472 | theme, you need to edit <filename>/etc/sddm.conf</filename>,
|
---|
[af2b317] | 473 | to change the default (empty) theme, replacing
|
---|
| 474 | <literal>Current=</literal> with
|
---|
| 475 | <literal>Current=<replaceable><new theme></replaceable></literal>,
|
---|
| 476 | e.g. <literal>Current=maldives</literal>.
|
---|
[80f933b] | 477 | </para>
|
---|
| 478 |
|
---|
| 479 | <para>
|
---|
| 480 | In order to see the theme without leaving the session, issue:
|
---|
| 481 | </para>
|
---|
| 482 |
|
---|
[e24fb74] | 483 | <screen role="nodump"><userinput>sddm-greeter --test-mode --theme <replaceable><theme path></replaceable></userinput></screen>
|
---|
[80f933b] | 484 |
|
---|
| 485 | </sect3>
|
---|
[f2cb575d] | 486 | <!--
|
---|
[80f933b] | 487 | <sect3 id="sddm-Issues">
|
---|
| 488 | <title>Known Issues</title>
|
---|
| 489 |
|
---|
| 490 | <para>
|
---|
| 491 | This application works well, but there are issues. You find the
|
---|
| 492 | mainstream known issues at
|
---|
| 493 | <ulink url="https://github.com/sddm/sddm/issues">Issues</ulink>.
|
---|
| 494 | The BLFS development team have found some issues.
|
---|
| 495 | </para>
|
---|
| 496 |
|
---|
| 497 | <note>
|
---|
| 498 | <para>
|
---|
| 499 | In the next couple of paragraphs, due to a problem with sddm-greeter,
|
---|
| 500 | we mention how to define the keyboard used there. Notice that this is
|
---|
| 501 | also the keyboard that will be used in the X session, unless there is
|
---|
| 502 | a configuration in the Desktop Environment or in the Window Manager
|
---|
| 503 | overriding it, afterwards.
|
---|
| 504 | </para>
|
---|
| 505 | </note>
|
---|
| 506 |
|
---|
| 507 | <para>
|
---|
| 508 | Keyboard selection: the greeter shows a double question mark or the
|
---|
| 509 | wrong keyboard. When you start to type the password or user name
|
---|
| 510 | (depending on the theme, only password), the right keyboard selection
|
---|
| 511 | magically appears. Optionally, a workaround is to include the keyboard
|
---|
| 512 | list in <command>/usr/share/sddm/scripts/Xsetup</command> script, as the
|
---|
| 513 | <systemitem class="username">root</systemitem> user:
|
---|
| 514 | </para>
|
---|
| 515 |
|
---|
| 516 | <screen role="root"><userinput>echo 'setxkbmap <replaceable>"<your keyboard comma separated list>"</replaceable>' >> \
|
---|
| 517 | /usr/share/sddm/scripts/Xsetup</userinput></screen>
|
---|
| 518 |
|
---|
| 519 | <para>
|
---|
| 520 | E.g. <command>echo 'setxkbmap "fr,gb,br,us"' >>
|
---|
| 521 | /usr/share/sddm/scripts/Xsetup</command>. A very accurate definition
|
---|
| 522 | of the keyboard(s) is possible, for example: <command>echo 'setxkbmap
|
---|
| 523 | -model pc105 -layout br,us -variant abnt2,dvorak -keycodes evdev'
|
---|
| 524 | >> /usr/share/sddm/scripts/Xsetup</command>. See man setxkbmap.
|
---|
| 525 | </para>
|
---|
| 526 |
|
---|
| 527 | <para>
|
---|
| 528 | Dircolors: the <filename>/etc/dircolors</filename> file is not
|
---|
| 529 | honoured. Particularly, the compressed files are not displayed in red
|
---|
| 530 | colour. If this happens, a workaround is to issue, as the
|
---|
| 531 | <systemitem class="username">root</systemitem> user:
|
---|
| 532 | </para>
|
---|
| 533 |
|
---|
| 534 | <screen role="root"><userinput>echo "source /etc/profile.d/dircolors.sh" >> /etc/bashrc</userinput></screen>
|
---|
| 535 |
|
---|
| 536 | <para>
|
---|
| 537 | It has been reported that problems may happen with this package, if
|
---|
| 538 | Xorg is installed with a prefix other than <filename
|
---|
| 539 | class="directory">/usr</filename>. So far, BLFS development team has
|
---|
| 540 | not hit any problem, in this case.
|
---|
| 541 | </para>
|
---|
| 542 |
|
---|
| 543 | </sect3>
|
---|
[f2cb575d] | 544 | -->
|
---|
[80f933b] | 545 | </sect2>
|
---|
| 546 |
|
---|
| 547 | <sect2 role="content">
|
---|
| 548 | <title>Contents</title>
|
---|
| 549 |
|
---|
| 550 | <segmentedlist>
|
---|
| 551 | <segtitle>Installed Programs</segtitle>
|
---|
| 552 | <segtitle>Installed Libraries</segtitle>
|
---|
| 553 | <segtitle>Installed Directories</segtitle>
|
---|
| 554 |
|
---|
| 555 | <seglistitem>
|
---|
| 556 | <seg>
|
---|
[e440af5] | 557 | sddm and
|
---|
[f2cb575d] | 558 | sddm-greeter
|
---|
[80f933b] | 559 | </seg>
|
---|
| 560 | <seg>
|
---|
| 561 | None
|
---|
| 562 | </seg>
|
---|
| 563 | <seg>
|
---|
| 564 | $QT5DIR/qml/SddmComponents,
|
---|
| 565 | /usr/share/sddm, and
|
---|
| 566 | /var/lib/sddm
|
---|
| 567 | </seg>
|
---|
| 568 | </seglistitem>
|
---|
| 569 | </segmentedlist>
|
---|
| 570 |
|
---|
| 571 | <variablelist>
|
---|
| 572 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 573 | <?dbfo list-presentation="list"?>
|
---|
| 574 | <?dbhtml list-presentation="table"?>
|
---|
| 575 |
|
---|
| 576 | <varlistentry id="sddm-prog">
|
---|
| 577 | <term><command>sddm</command></term>
|
---|
| 578 | <listitem>
|
---|
| 579 | <para>
|
---|
| 580 | is a display and login manager based on
|
---|
| 581 | <application>Qt</application> libraries.
|
---|
| 582 | </para>
|
---|
| 583 | <indexterm zone="sddm sddm-prog">
|
---|
| 584 | <primary sortas="b-sddm">sddm</primary>
|
---|
| 585 | </indexterm>
|
---|
| 586 | </listitem>
|
---|
| 587 | </varlistentry>
|
---|
| 588 |
|
---|
| 589 | <varlistentry id="sddm-greeter">
|
---|
| 590 | <term><command>sddm-greeter</command></term>
|
---|
| 591 | <listitem>
|
---|
| 592 | <para>
|
---|
| 593 | is an auxiliary process that displays the greeter,
|
---|
| 594 | a graphical user interface that performs user
|
---|
| 595 | authentication and initiates the selected window manager
|
---|
| 596 | or display environment.
|
---|
| 597 | </para>
|
---|
| 598 | <indexterm zone="sddm sddm-greeter">
|
---|
| 599 | <primary sortas="b-sddm-greeter">sddm-greeter</primary>
|
---|
| 600 | </indexterm>
|
---|
| 601 | </listitem>
|
---|
| 602 | </varlistentry>
|
---|
| 603 |
|
---|
| 604 | </variablelist>
|
---|
| 605 |
|
---|
| 606 | </sect2>
|
---|
| 607 |
|
---|
| 608 | </sect1>
|
---|