source: kde/plasma5/plasma-all.xml@ 1c925d3a

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

Move dependency for NetworkManager from plasma to frameworks

  • Property mode set to 100644
File size: 18.4 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"/>, and
92 <xref linkend="xdotool"/>
93 </para>
94
95 <bridgehead renderas="sect4">Recommended</bridgehead>
96 <para role="recommended">
97 <xref linkend="gsettings-desktop-schemas"/>,
98 <xref linkend="libcanberra"/>,
99 <xref linkend="libinput"/>,
100 <xref linkend="libpcap"/>,
101 <xref linkend="linux-pam"/>,
102 <xref linkend="lm_sensors"/>,
103 <xref linkend="oxygen-icons"/>,
104 <xref linkend="pciutils"/>, and
105 <xref linkend="power-profiles-daemon"/> (for laptops)
106 </para>
107
108 <bridgehead renderas="sect4">Recommended (runtime)</bridgehead>
109 <para role="recommended">
110 <xref role="runtime" linkend="accountsservice"/>,
111 <xref role="runtime" linkend="smartmontools"/>,
112 <xref role="runtime" linkend="xdg-desktop-portal"/>, and
113 <xref role="runtime" linkend="xwayland"/>
114 </para>
115
116 <bridgehead renderas="sect4">Optional</bridgehead>
117 <para role="optional">
118 <xref linkend="appstream"/> (build with -qt=true),
119 <xref linkend="glu"/>,
120 <xref linkend='ibus'/>,
121 <xref linkend='qtwebengine'/>,
122 <xref linkend="xorg-synaptics-driver"/>,
123 <ulink url="https://www.kdevelop.org/">KDevPlatform</ulink>,
124 <ulink url="https://gpsd.gitlab.io/gpsd/">libgps</ulink>,
125 <ulink url="https://github.com/libhybris/libhybris">libhybris</ulink>,
126 <ulink url="https://www.freedesktop.org/software/PackageKit/releases/">packagekit-qt</ulink>,
127 <ulink url="https://launchpad.net/qapt">Qapt</ulink>,
128 <ulink url="https://github.com/osiam/osiam">SCIM</ulink>, and
129 <ulink url="http://www.dest-unreach.org/socat/">socat</ulink> (for pam_kwallet)
130 </para>
131
132 <sect2>
133 <title>Downloading KDE Plasma</title>
134
135 <para>
136 The easiest way to get the KDE Plasma packages is to use a single
137 <command>wget</command> to fetch them all at once:
138 </para>
139
140<screen><userinput>url=https://download.kde.org/stable/plasma/&plasma-version;/
141wget -r -nH -nd -A '*.xz' -np $url</userinput>
142<literal>
143The options used here are:
144 -r recurse through child directories
145 -nH disable generation of host-prefixed directories
146 -nd do not create a hierarchy of directories
147 -A '*.xz' just get the *.xz files
148 -np don't get parent directories</literal></screen>
149
150 </sect2>
151
152 <sect2>
153 <title>Setting Package Order</title>
154
155 <para>
156 The order of building files is important due to internal dependencies.
157 Create the list of files in the proper order as follows:
158 </para>
159
160<screen><userinput>cat &gt; plasma-&plasma-version;.md5 &lt;&lt; "EOF"
161<literal>599e79f2908879ed7f7ffda3637c54a6 kdecoration-6.0.0.tar.xz
16296f956b40d929ddecb208101564aa269 libkscreen-6.0.0.tar.xz
163e09b5326dea0c32c64745a0ab3bb17fd libksysguard-6.0.0.tar.xz
1646546c71b2707637fb0c8ffd90abfc981 breeze-6.0.0.tar.xz
1656ec29676f896546f9fab485142fff113 breeze-gtk-6.0.0.tar.xz
1665d02ead00aa69e96d71fb892aa941fa3 layer-shell-qt-6.0.0.tar.xz
167c91f8689b5386ce42d8a270ba669dfc3 plasma-activities-6.0.0.tar.xz
168125c3e7cf3bb32d3103bb769c584660f libplasma-6.0.0.tar.xz
1699dbfb8774a5acead43b3a0afb90a893f kscreenlocker-6.0.0.tar.xz
170b37312379616a7c2309c834005ada178 oxygen-6.0.0.tar.xz
171643d13b69ffddf133f4067bd25e33034 kinfocenter-6.0.0.tar.xz
1724bc12254229c9762e29f2f75d2f44e1a kglobalacceld-6.0.0.tar.xz
17397c448777e08ea7fe53aaef2cb35d17a kwayland-6.0.0.tar.xz
174b5b1a531a62ba3b778c793c63b262509 kwin-6.0.0.tar.xz
1755ac7afff15ac496b580526cf5c017db7 plasma5support-6.0.0.tar.xz
176d931aa7909d574c0a5b26a4d5af1f4eb plasma-activities-stats-6.0.0.tar.xz
1771ce2e4da8cf65347f6fc5099b418ecc6 kpipewire-6.0.0.tar.xz
1784a155013537b80009cc1e7d1582fda33 plasma-workspace-6.0.0.tar.xz
179e32c8a5eac1ac01a763bbcc70b3f6945 plasma-disks-6.0.0.tar.xz
1804d18ce97c23bbf35d87b73efec71420c bluedevil-6.0.0.tar.xz
181bfc8028a6f0888965a3a555663ba893b kde-gtk-config-6.0.0.tar.xz
18283dffdc80445bbc617f0c0dcef04ca4a kmenuedit-6.0.0.tar.xz
18357acadb3a31ff06cad411269de2ea700 kscreen-6.0.0.tar.xz
1847fad253ac68778bf4046b72a892ade92 kwallet-pam-6.0.0.tar.xz
185115cb1253c7a903070ff76630370d97d kwrited-6.0.0.tar.xz
18690eb8b277e475f1447472ba467336547 milou-6.0.0.tar.xz
1877dcf751acdb6fc66b50734948831731a plasma-nm-6.0.0.tar.xz
188ca57d6c816ae40b595bf3e3e1a2617ff plasma-pa-6.0.0.tar.xz
189f4445ecabf52a5777fa405f36c791d72 plasma-workspace-wallpapers-6.0.0.tar.xz
190ae7b1d18a20699124d924b126335aaed polkit-kde-agent-1-6.0.0.tar.xz
19193aacc0af152b6d2e28a694bd211f29d powerdevil-6.0.0.tar.xz
19246d9dee5d8abfc12bd8c3ca8811327e7 plasma-desktop-6.0.0.tar.xz
1932b522f3fd18ed563c9fab882b83193eb kgamma-6.0.0.tar.xz
194a832617c17070ec2dce5cf019ab7ab1c ksshaskpass-6.0.0.tar.xz
195#65ceae0e87f6b11ec924d57d764913f4 plasma-sdk-6.0.0.tar.xz
196973e99f506a6fdad96a8b43d04a0b510 sddm-kcm-6.0.0.tar.xz
197#a7ab65d4a36e402df4b42c91cd2a16da discover-6.0.0.tar.xz
198#bc42922097f6964252a5f56e759c3844 breeze-grub-6.0.0.tar.xz
199#f399364375591938bdfb2d235f13923b breeze-plymouth-6.0.0.tar.xz
200c0248379f3df970fa19fe6d341dd00a4 kactivitymanagerd-6.0.0.tar.xz
201ad6dee45c10e415a92d76745e5901842 plasma-integration-6.0.0.tar.xz
202#e377ca58ca8089ce4e4c26c03e85b4f1 plymouth-kcm-6.0.0.tar.xz
203b0a1e9952e09e35f90d8131faed98882 xdg-desktop-portal-kde-6.0.0.tar.xz
20453864beb8ca2de75a8e4c1f52b0f4ea5 drkonqi-6.0.0.tar.xz
205e6c9b78fd0022d37dc4913e3dbe5205e plasma-vault-6.0.0.tar.xz
206#a5b70716031e98843e8fa1088f2eb0bc plasma-browser-integration-6.0.0.tar.xz
20791f1b7dbde5fcd508f3eab9cdf5f0681 kde-cli-tools-6.0.0.tar.xz
208876c57804ef1daadfcce81bb0d7e82a4 systemsettings-6.0.0.tar.xz
20929588e3f9d64d092060890a5a438cdb6 plasma-thunderbolt-6.0.0.tar.xz
210#cc307526ac2f02e7547cacea0eeccda6 plasma-nano-6.0.0.tar.xz
211#5e2effe947e2edf89cce35ef5c2527f6 plasma-mobile-6.0.0.tar.xz
212f791645b191b9f2e6cc9e6cf0037af00 plasma-firewall-6.0.0.tar.xz
213a4d558a30b2ae93dc680010867e10abc plasma-systemmonitor-6.0.0.tar.xz
214f250350b7fa2ff6f28f88233955c5638 qqc2-breeze-style-6.0.0.tar.xz
21528f4d1841cecffaf76462ba20e45c45b ksystemstats-6.0.0.tar.xz
2168aad48fd0f58f08ea197aa6d8e4dfab3 oxygen-sounds-6.0.0.tar.xz
2174d7c36f9ada95960ec0619547c716f81 kdeplasma-addons-6.0.0.tar.xz
218#df582e99c5288d1c0b8dcd1b34a31d08 flatpak-kcm-6.0.0.tar.xz
219#eebf65971b0066c707eef50742a9c49e plasma-welcome-6.0.0.tar.xz
2208f0c51c160819c170dcc77722b6153e3 ocean-sound-theme-6.0.0.tar.xz
221b8963fb1790449d4a905cf85f017d1e9 print-manager-6.0.0.tar.xz
222#a05c7d650e44cd046fbc090fcbb69ae4 wacomtablet-6.0.0.tar.xz</literal>
223EOF</userinput></screen>
224
225 <note>
226 <title>About Commented Out Packages</title>
227 <para>
228 The breeze-grub, breeze-plymouth, and plymouth-kcm packages above are
229 all for customized support of <ulink
230 url="https://www.freedesktop.org/wiki/Software/Plymouth/"
231 >Plymouth</ulink>
232 which is designed to be run within an initial ram disk during boot (see
233 <xref linkend="initramfs"/>).
234
235 The plasma-sdk package is optional and used for software development.
236
237 The plasma-nano package is used for embedded systems.
238
239 The plasma-mobile package provides phone functionality for Plasma.
240
241 The discover package requires <xref linkend="appstream"/> to be built
242 with the -Dqt=true switch.
243
244 The plasma-welcome package requires the external package
245 <ulink url="https://download.kde.org/stable/release-service/&kf5apps-version;/src/">
246 kaccounts-integration</ulink>.
247
248 The flatpack-kcm package is for managing support of flatpack applications.
249
250 The plasma-browser-integration package is only used by plasma-meta which is
251 not installed by BLFS.
252
253 The wacomtablet application requires plasma5 support.
254 </para>
255 </note>
256
257 </sect2>
258
259 <sect2 role="installation">
260 <title>Installation of Plasma</title>
261
262 &as_root;
263
264 <para>
265 First, start a subshell that will exit on error:
266 </para>
267
268<screen><userinput>bash -e</userinput></screen>
269
270 <para>
271 Install all of the packages by running the following
272 commands:
273 </para>
274
275<screen><userinput>while read -r line; do
276
277 # Get the file name, ignoring comments and blank lines
278 if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
279 file=$(echo $line | cut -d" " -f2)
280
281 pkg=$(echo $file|sed 's|^.*/||') # Remove directory
282 packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
283
284 tar -xf $file
285 pushd $packagedir
286<!--
287 # Fix some build issues when generating some configuration files
288 case $name in
289 plasma-workspace)
290 sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
291 ;;
292
293 khotkeys)
294 sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
295 ;;
296
297 plasma-desktop)
298 sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
299 ;;
300 esac
301-->
302 mkdir build
303 cd build
304
305 cmake -D CMAKE_INSTALL_PREFIX=$KF6_PREFIX \
306 -d CMAKE_INSTALL_LIBEXECDIR=libexec \
307 -D CMAKE_BUILD_TYPE=Release \
308 -D BUILD_TESTING=OFF \
309 -W no-dev .. &amp;&amp;
310
311 make
312 as_root make install
313 popd
314
315<!-- some packages end up with files owned by root in $packagedir,
316 so use as_root for removing -->
317 as_root rm -rf $packagedir
318 as_root /sbin/ldconfig
319
320done &lt; plasma-&plasma-version;.md5
321
322exit</userinput></screen>
323
324 <para>
325 If you did not set <envar>$KF6_PREFIX</envar> to
326 <filename>/usr</filename>, create symlinks to allow display managers to
327 find <application>Plasma</application>, and to allow the XDG Desktop
328 Portal to be detected. As the &root; user:
329 </para>
330
331<screen><userinput># Setup xsessions (X11 sessions)
332install -dvm 755 /usr/share/xsessions
333cd /usr/share/xsessions
334
335[ -e plasma.desktop ] ||
336ln -sfv $KF6_PREFIX/share/xsessions/plasmax11.desktop
337
338# Setup wayland-sessions
339install -dvm 755 /usr/share/wayland-sessions
340cd /usr/share/wayland-sessions
341
342[ -e plasmawayland.desktop ] ||
343ln -sfv $KF6_PREFIX/share/wayland-sessions/plasma.desktop
344<!-- work around a bug in xdg-desktop-portal-->
345# Setup xdg-desktop-portal
346install -dvm 755 /usr/share/xdg-desktop-portal
347cd /usr/share/xdg-desktop-portal
348
349[ -e kde-portals.conf ] ||
350ln -sfv $KF6_PREFIX/share/xdg-desktop-portal/kde-portals.conf
351
352# Setup kde partal
353install -dvm 755 /usr/share/xdg-desktop-portal/portals
354cd /usr/share/xdg-desktop-portal/portals
355
356[ -e kde.portal ] ||
357ln -sfv $KF6_PREFIX/share/xdg-desktop-portal/portals/kde.portal</userinput></screen>
358
359 <para revision="sysv">
360 Useless systemd units have been installed in
361 <filename class="directory">$KF6_PREFIX/lib</filename>. Remove
362 them now (as <systemitem class="username">root</systemitem>):
363 </para>
364
365<screen role="root"
366 revision="sysv"><userinput>rm -rf $KF6_PREFIX/lib/systemd</userinput></screen>
367
368 </sect2>
369<!--
370 <sect2 role="commands">
371 <title>Command Explanations</title>
372
373 <para>
374 <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
375 Create symbolic links so qml files can find needed javascript modules.
376 </para>
377
378 </sect2>
379-->
380 <sect2 role="configuration">
381 <title>Configuring Plasma</title>
382
383 <sect3>
384 <title>Linux PAM Configuration</title>
385
386 <para>
387 If you built Plasma with the recommended <application>Linux
388 PAM</application> support, create necessary configuration files by
389 running the following commands as the <systemitem
390 class="username">root</systemitem> user:
391 </para>
392
393<screen role="root"><userinput>cat &gt; /etc/pam.d/kde &lt;&lt; "EOF"
394<literal># Begin /etc/pam.d/kde
395
396auth requisite pam_nologin.so
397auth required pam_env.so
398
399auth required pam_succeed_if.so uid &gt;= 1000 quiet
400auth include system-auth
401
402account include system-account
403password include system-password
404session include system-session
405
406# End /etc/pam.d/kde</literal>
407EOF
408
409cat &gt; /etc/pam.d/kde-np &lt;&lt; "EOF"
410<literal># Begin /etc/pam.d/kde-np
411
412auth requisite pam_nologin.so
413auth required pam_env.so
414
415auth required pam_succeed_if.so uid &gt;= 1000 quiet
416auth required pam_permit.so
417
418account include system-account
419password include system-password
420session include system-session
421
422# End /etc/pam.d/kde-np</literal>
423EOF
424
425cat &gt; /etc/pam.d/kscreensaver &lt;&lt; "EOF"
426<literal># Begin /etc/pam.d/kscreensaver
427
428auth include system-auth
429account include system-account
430
431# End /etc/pam.d/kscreensaver</literal>
432EOF</userinput></screen>
433 </sect3>
434 </sect2>
435
436 <sect2 role="starting">
437 <title>Starting Plasma</title>
438
439 <para revision="sysv">
440 You can start <application>Plasma</application> from runlevel 3, using
441 <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
442 such as <xref linkend="lightdm"/>.
443 </para>
444
445 <para revision="systemd">
446 You can start <application>Plasma</application> from a TTY, using
447 <xref linkend="xinit"/><!--, or from a graphical display manager, such as
448 <xref linkend="sddm"/>-->.
449 </para>
450
451 <para>
452 To start <application>Plasma</application> using <xref linkend="xinit"/>,
453 run the following commands:
454 </para>
455
456<screen role="nodump"><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
457<literal>dbus-launch --exit-with-x11 $KF6_PREFIX/bin/startplasma-x11</literal>
458EOF
459
460startx</userinput></screen>
461
462 <para>
463 The X session starts on the first unused virtual terminal, normally vt7.
464 You can switch to another vt<emphasis>n</emphasis> simultaneously
465 pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
466 (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
467 normally started at vt7, use Ctrl-Alt-F7. The vt where the command
468 <command>startx</command> was executed will display many messages,
469 including X starting messages, applications automatically started with
470 the session, and eventually, some warning and error messages. You may
471 prefer to redirect those messages to a log file, which not only will keep
472 the initial vt uncluttered, but can also be used for debugging purposes. This
473 can be done starting X with:
474 </para>
475
476 <screen role="nodump"><userinput>startx &amp;&gt; ~/x-session-errors</userinput></screen>
477
478 <para>
479 When shutting down or rebooting, the shutdown messages appear on the vt
480 where X was running. If you wish to see those messages, simultaneously
481 press keys Alt-F7 (assuming that X was running on vt7).
482 </para>
483<!-- Start plasma wayland with
484
485/opt/kf6/lib/libexec/plasma-dbus-run-session-if-needed /opt/kf6/bin/startplasma-wayland
486
487Investigate why it's in /opt/kf6/lib/libexec and not just in /opt/kf6/libexec
488
489
490Now the entry is "plasma (X11)" for Xorg, so I guess this is
491 not needed anymore:
492 <para>
493 If you intend to start <application>Plasma</application> using a
494 display manager such as <xref linkend="lightdm"/>, there will be two entries
495 for <application>Plasma</application>, one for use with
496 <application>Xorg</application>, and another for
497 <application>Wayland</application>. Modify the
498 <application>Xorg</application> entry with the following command, as the
499 <systemitem class="username">root</systemitem> user, so that you can
500 differentiate between the two:</para>
501
502<screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
503-->
504
505 </sect2>
506
507 <sect2 role="content">
508 <title>Contents</title>
509
510 <segmentedlist>
511 <segtitle>Installed Programs</segtitle>
512 <segtitle>Installed Libraries</segtitle>
513 <segtitle>Installed Directories</segtitle>
514
515 <seglistitem>
516 <seg>
517 There are too many plasma programs (over 50 in /opt/kf6/bin) to list
518 separately here.
519 </seg>
520 <seg>
521 There are too many plasma libraries (over 250 in /opt/kf6/lib) to list
522 separately here.
523 </seg>
524 <seg>
525 There are too many plasma directories (over 2700 in /opt/kf6) to
526 list separately here.
527 </seg>
528 </seglistitem>
529 </segmentedlist>
530
531 </sect2>
532
533</sect1>
Note: See TracBrowser for help on using the repository browser.