source: kde/plasma5/plasma-all.xml@ 2563594f

lazarus trunk
Last change on this file since 2563594f was 2563594f, checked in by Bruce Dubbs <bdubbs@…>, 3 months ago

Added Python modules in support of plasma.

Added certifi, psutil, pygdbmi, and sentry-sdk.

  • Property mode set to 100644
File size: 18.8 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE chapter 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 plasma-download-http "https://download.kde.org/stable/plasma/&plasma-version;">
8 <!ENTITY plasma-download-ftp " ">
9 <!ENTITY plasma-md5sum "See Below">
10 <!ENTITY plasma-size "230 MB">
11 <!ENTITY plasma-buildsize "1.7 GB (614 MB installed)">
12 <!ENTITY plasma-time "7.6 SBU (using parallelism=4)">
13]>
14
15<sect1 id="plasma-build" xreflabel="Plasma-&plasma-version;">
16 <?dbhtml filename="plasma-all.html"?>
17
18
19 <title>Building Plasma</title>
20
21 <indexterm zone="plasma-build">
22 <primary sortas="a-kde-plasma">KDE Plasma</primary>
23 </indexterm>
24
25 <para>
26 KDE Plasma is a collection of packages based on top of KDE Frameworks
27 and QML. They implement the KDE Display Environment (Plasma).
28 </para>
29
30 &lfs121_checked;
31
32 <para>
33 The instructions below build all of the Plasma packages in one
34 step by using a bash script.
35 </para>
36
37 <bridgehead renderas="sect3">Package Information</bridgehead>
38 <itemizedlist spacing="compact">
39 <listitem>
40 <para>
41 Download (HTTP): <ulink url="&plasma-download-http;"/>
42 </para>
43 </listitem>
44 <listitem>
45 <para>
46 Download (FTP): <ulink url="&plasma-download-ftp;"/>
47 </para>
48 </listitem>
49 <listitem>
50 <para>
51 Download MD5 sum: &plasma-md5sum;
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Download size: &plasma-size;
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Estimated disk space required: &plasma-buildsize;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Estimated build time: &plasma-time;
67 </para>
68 </listitem>
69 </itemizedlist>
70
71 <bridgehead renderas="sect3">Plasma Dependencies</bridgehead>
72
73 <bridgehead renderas="sect4">Required</bridgehead>
74 <para role="required">
75 <!--<xref linkend="gtk2"/>, Does not seem to be needed any more -->
76 <xref linkend="boost"/>,
77 <xref linkend="gtk3"/>,
78 <xref linkend="kf6-frameworks"/>,
79 <xref linkend="kirigami-addons"/>,
80 <xref linkend="libdisplay-info"/>,
81 <xref linkend="libpwquality"/>,
82 <xref linkend="libqalculate"/>,
83 <xref linkend="libxcvt"/>,
84 <xref linkend="libxkbcommon"/>,
85 <xref linkend="mesa"/> built with <xref linkend="wayland"/>,
86 <xref linkend="pipewire"/>,
87 <xref linkend="pulseaudio"/>,
88 <xref linkend="qca"/>,
89 <xref linkend="qcoro"/>,
90 <xref linkend="sassc"/>,
91 <xref linkend="taglib"/>,
92 <xref linkend="xdotool"/>, and
93 <xref linkend="xorg-evdev-driver"/>
94 </para>
95
96 <bridgehead renderas="sect4">Recommended</bridgehead>
97 <para role="recommended">
98 <xref linkend="gsettings-desktop-schemas"/>,
99 <xref linkend="libcanberra"/>,
100 <xref linkend="libinput"/>,
101 <xref linkend="libpcap"/>,
102 <xref linkend="linux-pam"/>,
103 <xref linkend="lm_sensors"/>,
104 <xref linkend="oxygen-icons"/>,
105 <xref linkend="pciutils"/>,
106 <xref linkend="power-profiles-daemon"/> (for laptops), and
107 the following Python modules:
108 <xref linkend="psutil"/>,
109 <xref linkend="pygdbmi"/>,
110 <xref linkend="sentry-sdk"/>,
111 <xref linkend="urllib3"/> (if they are not installed, they will be
112 downloaded and installed by the drkonqi build procedure)
113 </para>
114
115 <bridgehead renderas="sect4">Recommended (runtime)</bridgehead>
116 <para role="recommended">
117 <xref role="runtime" linkend="accountsservice"/>,
118 <xref role="runtime" linkend="breeze-icons"/>,
119 <xref role="runtime" linkend="smartmontools"/>,
120 <xref role="runtime" linkend="xdg-desktop-portal"/>, and
121 <xref role="runtime" linkend="xwayland"/>
122 </para>
123
124 <bridgehead renderas="sect4">Optional</bridgehead>
125 <para role="optional">
126 <xref linkend="appstream"/> (build with -qt=true),
127 <xref linkend="glu"/>,
128 <xref linkend='ibus'/>,
129 <xref linkend='qtwebengine'/>,
130 <xref linkend="xorg-synaptics-driver"/>,
131 <ulink url="https://www.kdevelop.org/">KDevPlatform</ulink>,
132 <ulink url="https://gpsd.gitlab.io/gpsd/">libgps</ulink>,
133 <ulink url="https://github.com/libhybris/libhybris">libhybris</ulink>,
134 <ulink url="https://www.freedesktop.org/software/PackageKit/releases/">packagekit-qt</ulink>,
135 <ulink url="https://launchpad.net/qapt">Qapt</ulink>,
136 <ulink url="https://github.com/osiam/osiam">SCIM</ulink>, and
137 <ulink url="http://www.dest-unreach.org/socat/">socat</ulink> (for pam_kwallet)
138 </para>
139
140 <sect2>
141 <title>Downloading KDE Plasma</title>
142
143 <para>
144 The easiest way to get the KDE Plasma packages is to use a single
145 <command>wget</command> to fetch them all at once:
146 </para>
147
148<screen><userinput>url=https://download.kde.org/stable/plasma/&plasma-version;/
149wget -r -nH -nd -A '*.xz' -np $url</userinput>
150<literal>
151The options used here are:
152 -r recurse through child directories
153 -nH disable generation of host-prefixed directories
154 -nd do not create a hierarchy of directories
155 -A '*.xz' just get the *.xz files
156 -np don't get parent directories</literal></screen>
157
158 </sect2>
159
160 <sect2>
161 <title>Setting Package Order</title>
162
163 <para>
164 The order of building files is important due to internal dependencies.
165 Create the list of files in the proper order as follows:
166 </para>
167
168<screen><userinput>cat &gt; plasma-&plasma-version;.md5 &lt;&lt; "EOF"
169<literal>599e79f2908879ed7f7ffda3637c54a6 kdecoration-6.0.0.tar.xz
17096f956b40d929ddecb208101564aa269 libkscreen-6.0.0.tar.xz
171e09b5326dea0c32c64745a0ab3bb17fd libksysguard-6.0.0.tar.xz
1726546c71b2707637fb0c8ffd90abfc981 breeze-6.0.0.tar.xz
1736ec29676f896546f9fab485142fff113 breeze-gtk-6.0.0.tar.xz
1745d02ead00aa69e96d71fb892aa941fa3 layer-shell-qt-6.0.0.tar.xz
175c91f8689b5386ce42d8a270ba669dfc3 plasma-activities-6.0.0.tar.xz
176125c3e7cf3bb32d3103bb769c584660f libplasma-6.0.0.tar.xz
1779dbfb8774a5acead43b3a0afb90a893f kscreenlocker-6.0.0.tar.xz
178b37312379616a7c2309c834005ada178 oxygen-6.0.0.tar.xz
179643d13b69ffddf133f4067bd25e33034 kinfocenter-6.0.0.tar.xz
1804bc12254229c9762e29f2f75d2f44e1a kglobalacceld-6.0.0.tar.xz
18197c448777e08ea7fe53aaef2cb35d17a kwayland-6.0.0.tar.xz
182b5b1a531a62ba3b778c793c63b262509 kwin-6.0.0.tar.xz
1835ac7afff15ac496b580526cf5c017db7 plasma5support-6.0.0.tar.xz
184d931aa7909d574c0a5b26a4d5af1f4eb plasma-activities-stats-6.0.0.tar.xz
1851ce2e4da8cf65347f6fc5099b418ecc6 kpipewire-6.0.0.tar.xz
1864a155013537b80009cc1e7d1582fda33 plasma-workspace-6.0.0.tar.xz
187e32c8a5eac1ac01a763bbcc70b3f6945 plasma-disks-6.0.0.tar.xz
1884d18ce97c23bbf35d87b73efec71420c bluedevil-6.0.0.tar.xz
189bfc8028a6f0888965a3a555663ba893b kde-gtk-config-6.0.0.tar.xz
19083dffdc80445bbc617f0c0dcef04ca4a kmenuedit-6.0.0.tar.xz
19157acadb3a31ff06cad411269de2ea700 kscreen-6.0.0.tar.xz
1927fad253ac68778bf4046b72a892ade92 kwallet-pam-6.0.0.tar.xz
193115cb1253c7a903070ff76630370d97d kwrited-6.0.0.tar.xz
19490eb8b277e475f1447472ba467336547 milou-6.0.0.tar.xz
1957dcf751acdb6fc66b50734948831731a plasma-nm-6.0.0.tar.xz
196ca57d6c816ae40b595bf3e3e1a2617ff plasma-pa-6.0.0.tar.xz
197f4445ecabf52a5777fa405f36c791d72 plasma-workspace-wallpapers-6.0.0.tar.xz
198ae7b1d18a20699124d924b126335aaed polkit-kde-agent-1-6.0.0.tar.xz
19993aacc0af152b6d2e28a694bd211f29d powerdevil-6.0.0.tar.xz
20046d9dee5d8abfc12bd8c3ca8811327e7 plasma-desktop-6.0.0.tar.xz
2012b522f3fd18ed563c9fab882b83193eb kgamma-6.0.0.tar.xz
202a832617c17070ec2dce5cf019ab7ab1c ksshaskpass-6.0.0.tar.xz
203#65ceae0e87f6b11ec924d57d764913f4 plasma-sdk-6.0.0.tar.xz
204973e99f506a6fdad96a8b43d04a0b510 sddm-kcm-6.0.0.tar.xz
205#a7ab65d4a36e402df4b42c91cd2a16da discover-6.0.0.tar.xz
206#bc42922097f6964252a5f56e759c3844 breeze-grub-6.0.0.tar.xz
207#f399364375591938bdfb2d235f13923b breeze-plymouth-6.0.0.tar.xz
208c0248379f3df970fa19fe6d341dd00a4 kactivitymanagerd-6.0.0.tar.xz
209ad6dee45c10e415a92d76745e5901842 plasma-integration-6.0.0.tar.xz
210#e377ca58ca8089ce4e4c26c03e85b4f1 plymouth-kcm-6.0.0.tar.xz
211b0a1e9952e09e35f90d8131faed98882 xdg-desktop-portal-kde-6.0.0.tar.xz
21253864beb8ca2de75a8e4c1f52b0f4ea5 drkonqi-6.0.0.tar.xz
213e6c9b78fd0022d37dc4913e3dbe5205e plasma-vault-6.0.0.tar.xz
214#a5b70716031e98843e8fa1088f2eb0bc plasma-browser-integration-6.0.0.tar.xz
21591f1b7dbde5fcd508f3eab9cdf5f0681 kde-cli-tools-6.0.0.tar.xz
216876c57804ef1daadfcce81bb0d7e82a4 systemsettings-6.0.0.tar.xz
21729588e3f9d64d092060890a5a438cdb6 plasma-thunderbolt-6.0.0.tar.xz
218#cc307526ac2f02e7547cacea0eeccda6 plasma-nano-6.0.0.tar.xz
219#5e2effe947e2edf89cce35ef5c2527f6 plasma-mobile-6.0.0.tar.xz
220f791645b191b9f2e6cc9e6cf0037af00 plasma-firewall-6.0.0.tar.xz
221a4d558a30b2ae93dc680010867e10abc plasma-systemmonitor-6.0.0.tar.xz
222f250350b7fa2ff6f28f88233955c5638 qqc2-breeze-style-6.0.0.tar.xz
22328f4d1841cecffaf76462ba20e45c45b ksystemstats-6.0.0.tar.xz
2248aad48fd0f58f08ea197aa6d8e4dfab3 oxygen-sounds-6.0.0.tar.xz
2254d7c36f9ada95960ec0619547c716f81 kdeplasma-addons-6.0.0.tar.xz
226#df582e99c5288d1c0b8dcd1b34a31d08 flatpak-kcm-6.0.0.tar.xz
227eebf65971b0066c707eef50742a9c49e plasma-welcome-6.0.0.tar.xz
2288f0c51c160819c170dcc77722b6153e3 ocean-sound-theme-6.0.0.tar.xz
229b8963fb1790449d4a905cf85f017d1e9 print-manager-6.0.0.tar.xz
230#a05c7d650e44cd046fbc090fcbb69ae4 wacomtablet-6.0.0.tar.xz</literal>
231EOF</userinput></screen>
232
233 <note>
234 <title>About Commented Out Packages</title>
235 <para>
236 The breeze-grub, breeze-plymouth, and plymouth-kcm packages above are
237 all for customized support of <ulink
238 url="https://www.freedesktop.org/wiki/Software/Plymouth/"
239 >Plymouth</ulink>
240 which is designed to be run within an initial ram disk during boot (see
241 <xref linkend="initramfs"/>).
242
243 The plasma-sdk package is optional and used for software development.
244
245 The plasma-nano package is used for embedded systems.
246
247 The plasma-mobile package provides phone functionality for Plasma.
248
249 The discover package requires <xref linkend="appstream"/> to be built
250 with the -Dqt=true switch.
251<!--
252 The plasma-welcome package requires the external package
253 <ulink url="https://download.kde.org/stable/release-service/&kf5apps-version;/src/">
254 kaccounts-integration</ulink>.
255-->
256 The flatpack-kcm package is for managing support of flatpack applications.
257
258 The plasma-browser-integration package is only used by plasma-meta which is
259 not installed by BLFS.
260
261 The wacomtablet application requires plasma5 support.
262 </para>
263 </note>
264
265 </sect2>
266
267 <sect2 role="installation">
268 <title>Installation of Plasma</title>
269
270 &as_root;
271
272 <para>
273 First, start a subshell that will exit on error:
274 </para>
275
276<screen><userinput>bash -e</userinput></screen>
277
278 <para>
279 Install all of the packages by running the following
280 commands:
281 </para>
282
283<screen><userinput>while read -r line; do
284
285 # Get the file name, ignoring comments and blank lines
286 if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
287 file=$(echo $line | cut -d" " -f2)
288
289 pkg=$(echo $file|sed 's|^.*/||') # Remove directory
290 packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
291
292 tar -xf $file
293 pushd $packagedir
294<!--
295 # Fix some build issues when generating some configuration files
296 case $name in
297 plasma-workspace)
298 sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
299 ;;
300
301 khotkeys)
302 sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
303 ;;
304
305 plasma-desktop)
306 sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
307 ;;
308 esac
309-->
310 mkdir build
311 cd build
312
313 cmake -D CMAKE_INSTALL_PREFIX=$KF6_PREFIX \
314 -D CMAKE_INSTALL_LIBEXECDIR=libexec \
315 -D CMAKE_BUILD_TYPE=Release \
316 -D BUILD_QT5=OFF \
317 -D BUILD_TESTING=OFF \
318 -W no-dev .. &amp;&amp;
319
320 make
321 as_root make install
322 popd
323
324<!-- some packages end up with files owned by root in $packagedir,
325 so use as_root for removing -->
326 as_root rm -rf $packagedir
327 as_root /sbin/ldconfig
328
329done &lt; plasma-&plasma-version;.md5
330
331exit</userinput></screen>
332
333 <para>
334 If you did not set <envar>$KF6_PREFIX</envar> to
335 <filename>/usr</filename>, create symlinks to allow display managers to
336 find <application>Plasma</application>, and to allow the XDG Desktop
337 Portal to be detected. As the &root; user:
338 </para>
339
340<screen><userinput># Setup xsessions (X11 sessions)
341install -dvm 755 /usr/share/xsessions
342cd /usr/share/xsessions
343
344[ -e plasma.desktop ] ||
345ln -sfv $KF6_PREFIX/share/xsessions/plasmax11.desktop
346
347# Setup wayland-sessions
348install -dvm 755 /usr/share/wayland-sessions
349cd /usr/share/wayland-sessions
350
351[ -e plasmawayland.desktop ] ||
352ln -sfv $KF6_PREFIX/share/wayland-sessions/plasma.desktop
353<!-- work around a bug in xdg-desktop-portal-->
354# Setup xdg-desktop-portal
355install -dvm 755 /usr/share/xdg-desktop-portal
356cd /usr/share/xdg-desktop-portal
357
358[ -e kde-portals.conf ] ||
359ln -sfv $KF6_PREFIX/share/xdg-desktop-portal/kde-portals.conf
360
361# Setup kde partal
362install -dvm 755 /usr/share/xdg-desktop-portal/portals
363cd /usr/share/xdg-desktop-portal/portals
364
365[ -e kde.portal ] ||
366ln -sfv $KF6_PREFIX/share/xdg-desktop-portal/portals/kde.portal</userinput></screen>
367
368 <para revision="sysv">
369 Useless systemd units have been installed in
370 <filename class="directory">$KF6_PREFIX/lib</filename>. Remove
371 them now (as <systemitem class="username">root</systemitem>):
372 </para>
373
374<screen role="root"
375 revision="sysv"><userinput>rm -rf $KF6_PREFIX/lib/systemd</userinput></screen>
376
377 </sect2>
378<!--
379 <sect2 role="commands">
380 <title>Command Explanations</title>
381
382 <para>
383 <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
384 Create symbolic links so qml files can find needed javascript modules.
385 </para>
386
387 </sect2>
388-->
389 <sect2 role="configuration">
390 <title>Configuring Plasma</title>
391
392 <sect3>
393 <title>Linux PAM Configuration</title>
394
395 <para>
396 If you built Plasma with the recommended <application>Linux
397 PAM</application> support, create necessary configuration files by
398 running the following commands as the <systemitem
399 class="username">root</systemitem> user:
400 </para>
401
402<screen role="root"><userinput>cat &gt; /etc/pam.d/kde &lt;&lt; "EOF"
403<literal># Begin /etc/pam.d/kde
404
405auth requisite pam_nologin.so
406auth required pam_env.so
407
408auth required pam_succeed_if.so uid &gt;= 1000 quiet
409auth include system-auth
410
411account include system-account
412password include system-password
413session include system-session
414
415# End /etc/pam.d/kde</literal>
416EOF
417
418cat &gt; /etc/pam.d/kde-np &lt;&lt; "EOF"
419<literal># Begin /etc/pam.d/kde-np
420
421auth requisite pam_nologin.so
422auth required pam_env.so
423
424auth required pam_succeed_if.so uid &gt;= 1000 quiet
425auth required pam_permit.so
426
427account include system-account
428password include system-password
429session include system-session
430
431# End /etc/pam.d/kde-np</literal>
432EOF
433
434cat &gt; /etc/pam.d/kscreensaver &lt;&lt; "EOF"
435<literal># Begin /etc/pam.d/kscreensaver
436
437auth include system-auth
438account include system-account
439
440# End /etc/pam.d/kscreensaver</literal>
441EOF</userinput></screen>
442 </sect3>
443 </sect2>
444
445 <sect2 role="starting">
446 <title>Starting Plasma</title>
447
448 <para revision="sysv">
449 You can start <application>Plasma</application> from runlevel 3, using
450 <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
451 such as <xref linkend="lightdm"/>.
452 </para>
453
454 <para revision="systemd">
455 You can start <application>Plasma</application> from a TTY, using
456 <xref linkend="xinit"/><!--, or from a graphical display manager, such as
457 <xref linkend="sddm"/>-->.
458 </para>
459
460 <para>
461 To start <application>Plasma</application> using <xref linkend="xinit"/>,
462 run the following commands:
463 </para>
464
465<screen role="nodump"><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
466<literal>dbus-launch --exit-with-x11 $KF6_PREFIX/bin/startplasma-x11</literal>
467EOF
468
469startx</userinput></screen>
470
471 <para>
472 The X session starts on the first unused virtual terminal, normally vt7.
473 You can switch to another vt<emphasis>n</emphasis> simultaneously
474 pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
475 (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
476 normally started at vt7, use Ctrl-Alt-F7. The vt where the command
477 <command>startx</command> was executed will display many messages,
478 including X starting messages, applications automatically started with
479 the session, and eventually, some warning and error messages. You may
480 prefer to redirect those messages to a log file, which not only will keep
481 the initial vt uncluttered, but can also be used for debugging purposes. This
482 can be done starting X with:
483 </para>
484
485 <screen role="nodump"><userinput>startx &amp;&gt; ~/x-session-errors</userinput></screen>
486
487 <para>
488 When shutting down or rebooting, the shutdown messages appear on the vt
489 where X was running. If you wish to see those messages, simultaneously
490 press keys Alt-F7 (assuming that X was running on vt7).
491 </para>
492<!-- Start plasma wayland with
493
494/opt/kf6/lib/libexec/plasma-dbus-run-session-if-needed /opt/kf6/bin/startplasma-wayland
495
496Investigate why it's in /opt/kf6/lib/libexec and not just in /opt/kf6/libexec
497
498
499Now the entry is "plasma (X11)" for Xorg, so I guess this is
500 not needed anymore:
501 <para>
502 If you intend to start <application>Plasma</application> using a
503 display manager such as <xref linkend="lightdm"/>, there will be two entries
504 for <application>Plasma</application>, one for use with
505 <application>Xorg</application>, and another for
506 <application>Wayland</application>. Modify the
507 <application>Xorg</application> entry with the following command, as the
508 <systemitem class="username">root</systemitem> user, so that you can
509 differentiate between the two:</para>
510
511<screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
512-->
513
514 </sect2>
515
516 <sect2 role="content">
517 <title>Contents</title>
518
519 <segmentedlist>
520 <segtitle>Installed Programs</segtitle>
521 <segtitle>Installed Libraries</segtitle>
522 <segtitle>Installed Directories</segtitle>
523
524 <seglistitem>
525 <seg>
526 There are too many plasma programs (over 50 in /opt/kf6/bin) to list
527 separately here.
528 </seg>
529 <seg>
530 There are too many plasma libraries (over 250 in /opt/kf6/lib) to list
531 separately here.
532 </seg>
533 <seg>
534 There are too many plasma directories (over 2700 in /opt/kf6) to
535 list separately here.
536 </seg>
537 </seglistitem>
538 </segmentedlist>
539
540 </sect2>
541
542</sect1>
Note: See TracBrowser for help on using the repository browser.