source: kde/plasma5/plasma-all.xml@ 665150a

12.1 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18
Last change on this file since 665150a was 665150a, checked in by Pierre Labastie <pierre.labastie@…>, 9 months ago

Make "nodump" what shouldn't be run by jhalfs

  • Property mode set to 100644
File size: 18.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
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 plasma5-download-http "https://download.kde.org/stable/plasma/&plasma5-version;">
8 <!ENTITY plasma5-download-ftp " ">
9 <!ENTITY plasma5-md5sum "See Below">
10 <!ENTITY plasma5-size "258 MB">
11 <!ENTITY plasma5-buildsize "1.7 GB (419 MB installed)">
12 <!ENTITY plasma5-time "19 SBU (using parallelism=4)">
13]>
14
15<sect1 id="plasma5-build" xreflabel="Plasma-&plasma5-version;">
16 <?dbhtml filename="plasma-all.html"?>
17
18
19 <title>Building Plasma 5</title>
20
21 <indexterm zone="plasma5-build">
22 <primary sortas="a-kde-plasma">KDE Plasma 5</primary>
23 </indexterm>
24
25 <para>
26 KDE Plasma 5 is a collection of packages based on top of KDE Frameworks
27 5 and QML. They implement the KDE Display Environment (Plasma 5).
28 </para>
29
30 &lfs120_checked;
31
32 <para>
33 The instructions below build all of the Plasma 5 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="&plasma5-download-http;"/>
42 </para>
43 </listitem>
44 <listitem>
45 <para>
46 Download (FTP): <ulink url="&plasma5-download-ftp;"/>
47 </para>
48 </listitem>
49 <listitem>
50 <para>
51 Download MD5 sum: &plasma5-md5sum;
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Download size: &plasma5-size;
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Estimated disk space required: &plasma5-buildsize;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Estimated build time: &plasma5-time;
67 </para>
68 </listitem>
69 </itemizedlist>
70
71 <bridgehead renderas="sect3">Plasma 5 Dependencies</bridgehead>
72
73 <bridgehead renderas="sect4">Required</bridgehead>
74 <para role="required">
75 <xref linkend="gtk2"/>,
76 <xref linkend="gtk3"/>,
77 <xref linkend="kf5-frameworks"/>,
78 <xref linkend="kuserfeedback"/>,
79 <xref linkend="libpwquality"/>,
80 <xref linkend="libqalculate"/>,
81 <xref linkend="libxkbcommon"/>,
82 <xref linkend="mesa"/> built with <xref linkend="wayland"/>,
83 <xref linkend="NetworkManager"/>,
84 <xref linkend="pipewire"/>,
85 <xref linkend="pulseaudio"/>,
86 <xref linkend="qca"/>,
87 <xref linkend="sassc"/>,
88 <xref linkend="taglib"/>, and
89 <xref linkend="xcb-util-cursor"/>
90 </para>
91
92 <bridgehead renderas="sect4">Recommended</bridgehead>
93 <para role="recommended">
94 <xref linkend="fftw"/>,
95 <xref linkend="gsettings-desktop-schemas"/>,
96 <xref linkend="libdbusmenu-qt"/>,
97 <xref linkend="libcanberra"/>,
98 <xref linkend="libinput"/>,
99 <xref linkend="libpcap"/>,
100 <xref linkend="linux-pam"/>,
101 <xref linkend="lm_sensors"/>,
102 <xref linkend="oxygen-icons5"/>, and
103 <xref linkend="pciutils"/>
104 </para>
105
106 <bridgehead renderas="sect4">Recommended (runtime)</bridgehead>
107 <para role="recommended">
108 <xref role="runtime" linkend="accountsservice"/>,
109 <xref role="runtime" linkend="smartmontools"/>, and
110 <xref role="runtime" linkend="xwayland"/>
111 </para>
112
113 <bridgehead renderas="sect4">Optional</bridgehead>
114 <para role="optional">
115 <xref linkend="glu"/>,
116 <xref linkend='ibus'/>,
117 <xref linkend='qtwebengine'/>,
118 <xref linkend="xorg-synaptics-driver"/>,
119 <ulink url="https://distributions.freedesktop.org/wiki/AppStream">appstream-qt</ulink>,
120 <ulink url="https://www.kdevelop.org/">KDevPlatform</ulink>,
121 <ulink url="https://gpsd.gitlab.io/gpsd/">libgps</ulink>,
122 <ulink url="https://github.com/libhybris/libhybris">libhybris</ulink>,
123 <ulink url="https://sourceforge.net/projects/libraw1394/">libraw1394</ulink>,
124 <ulink url="https://bitbucket.org/godsme/mockcpp">mockcpp</ulink>,
125 <ulink url="https://www.freedesktop.org/software/PackageKit/releases/">packagekit-qt</ulink>,
126 <ulink url="https://qalculate.github.io/">Qalculate</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 <note>
133 <para>
134 <xref linkend="qtwebengine"/> is required for aura-browser.
135 It is also optional for two other packages:
136 libksysguard and kdeplasma-addons. If QtWebEngine is installed later,
137 only these two packages need to be rebuilt. This allows
138 a more complete display in the system monitor application.
139 </para>
140 </note>
141
142 <para condition="html" role="usernotes">Editor Notes:
143 <ulink url="&blfs-wiki;/kf5"/></para>
144
145 <sect2>
146 <title>Downloading KDE Plasma5</title>
147
148 <para>
149 The easiest way to get the KDE Plasma5 packages is to use a single
150 <command>wget</command> to fetch them all at once:
151 </para>
152
153<screen><userinput>url=https://download.kde.org/stable/plasma/&plasma5-version;/
154wget -r -nH -nd -A '*.xz' -np $url</userinput>
155<literal>
156The options used here are:
157 -r recurse through child directories
158 -nH disable generation of host-prefixed directories
159 -nd do not create a hierarchy of directories
160 -A '*.xz' just get the *.xz files
161 -np don't get parent directories</literal></screen>
162
163 </sect2>
164
165 <sect2>
166 <title>Setting Package Order</title>
167
168 <para>
169 The order of building files is important due to internal dependencies.
170 Create the list of files in the proper order as follows:
171 </para>
172
173<screen><userinput>cat &gt; plasma-&plasma5-version;.md5 &lt;&lt; "EOF"
174<literal>f8e36636128efc0172b0664df372f350 kdecoration-5.27.7.tar.xz
1750f40e7e4ef0675cf06afc828c6056821 libkscreen-5.27.7.tar.xz
176fdbbd274867d8013631eb66f889da983 libksysguard-5.27.7.tar.xz
1776d0358ed7bbb27557c073cfce675120f breeze-5.27.7.tar.xz
1787dac534103b595e861fb923e0a46af8a breeze-gtk-5.27.7.tar.xz
17927839d93e7bf42bd8e6e9d822572a3d3 layer-shell-qt-5.27.7.tar.xz
18056e13a523dc2b27dd2fe7d17cf87c427 kscreenlocker-5.27.7.tar.xz
1811806b24c107c30a0144be0c58361c391 oxygen-5.27.7.tar.xz
182b3b25a757de32befe4c282ebc9b928c3 kinfocenter-5.27.7.tar.xz
183f992f11ed7704e94809f4a609b444074 kwin-5.27.7.tar.xz
1845aa3a8e2e8c97b182cb15090f9149831 plasma-workspace-5.27.7.tar.xz
1852b3c139e30eaaf4cf42706c9e6212ca5 plasma-disks-5.27.7.tar.xz
186a347a0848863114e96ca25868b1d2483 bluedevil-5.27.7.tar.xz
18777731f7530552c096785e938554c5c0e kde-gtk-config-5.27.7.tar.xz
18819a17f02655872c827380bd1fc485b50 khotkeys-5.27.7.tar.xz
1894777cae88cb32e1dc77d6765f3cf17e3 kmenuedit-5.27.7.tar.xz
190a9618c0aa86cf8d0186e146aef644cd7 kscreen-5.27.7.tar.xz
191d75c043ef114b2b590f8ede12bb86a24 kwallet-pam-5.27.7.tar.xz
1929c4ebb3d608c08c83b87a880b731ef11 kwayland-integration-5.27.7.tar.xz
1932d04936cfcdb3da0ecab6b9c7f83339e kwrited-5.27.7.tar.xz
194ea10ad5ac86ad2a1f1c0dfdb28918ad8 milou-5.27.7.tar.xz
1951640a01420f5885d87e55a3fc3ca8410 plasma-nm-5.27.7.tar.xz
19624cdd5610e2b02c774486cdeaf0074f5 plasma-pa-5.27.7.tar.xz
1974d941372e2a0ba9fe4a42a668dfd6aeb plasma-workspace-wallpapers-5.27.7.tar.xz
198003d40545b13d58a2fa024236c92c18f polkit-kde-agent-1-5.27.7.tar.xz
1992708af1b47a164321111220f3e3fb5f8 powerdevil-5.27.7.tar.xz
2007f7d2bea26b4d825c9a6e8d57e400a4a plasma-desktop-5.27.7.1.tar.xz
201#b8f2c72d4d0ffd37573c1f949e8604aa plasma-desktop-5.27.7.tar.xz
202f66aefab6b7b3115ead7cf3966d6e2c6 kgamma5-5.27.7.tar.xz
203614a24e70dfdcbf225047951d1bb35af ksshaskpass-5.27.7.tar.xz
204#8e9460adae337baab8d80da3422f9e34 plasma-sdk-5.27.7.1.tar.xz
205#cba2b18c587dff393bd232d61a35046d plasma-sdk-5.27.7.tar.xz
206293fa8cd57834e07c719a055e2b47fbe sddm-kcm-5.27.7.tar.xz
207#7857d8972a9cc45cc3b672a6d5ff2b12 discover-5.27.7.tar.xz
208#9727481d29a7468420cb1a37a0b36e9e breeze-grub-5.27.7.tar.xz
209#157416774eb4bfc57a4e2caf4512f069 breeze-plymouth-5.27.7.tar.xz
210cdda9f9d374615768d8a324dae92ad1d kactivitymanagerd-5.27.7.tar.xz
2113e8fd694b222d4d6c3d4e2b952099fb0 plasma-integration-5.27.7.tar.xz
212#7bd722f2799f4b1c562be46c5b2d0da1 plymouth-kcm-5.27.7.tar.xz
21326e40eaf358dc02d71ab5cb511a5b3a8 xdg-desktop-portal-kde-5.27.7.tar.xz
214ce2a9be64095829d124d4f83c14a464c drkonqi-5.27.7.tar.xz
215410818deea59fc12aa3ed155e350e931 plasma-vault-5.27.7.tar.xz
2164636852897f802e64501fbae5e3dfb24 plasma-browser-integration-5.27.7.tar.xz
2173febab89d2fca2e67271d5e35723d7be kde-cli-tools-5.27.7.tar.xz
218799ec2ab0012e47d2b1660affe5f333e systemsettings-5.27.7.tar.xz
219fa9f2208c27d8a3e99c0cbb113087338 plasma-thunderbolt-5.27.7.tar.xz
220#c4dbf6737cc9d8d3396214d4bed14abf plasma-nano-5.27.7.tar.xz
221#74a1ec9c76b979fb8a3906204c93add4 plasma-mobile-5.27.7.tar.xz
222ca0a794b2d65c9c763d0f932b2bd9c1e plasma-firewall-5.27.7.tar.xz
2234f3a9803e3741521b1867303b179670a plasma-systemmonitor-5.27.7.tar.xz
22429fb63dc5c266b3fe0a2e849f1a1db28 qqc2-breeze-style-5.27.7.tar.xz
2252e3689a958a72aa1a09aa6edf471ce11 ksystemstats-5.27.7.tar.xz
22608434c4829aefd689c877fe84baa5ad6 oxygen-sounds-5.27.7.tar.xz
227#2b1b01328d062d6d9c3d92daaa26d13c aura-browser-5.27.7.tar.xz
228a32fedd93e3ecef504ea28ec27cbfd55 kdeplasma-addons-5.27.7.tar.xz
2291d759ab0bb02f630385e4dc267aaef6e kpipewire-5.27.7.tar.xz
230553afd4e952b601147ca868b7129303d plank-player-5.27.7.tar.xz
23151ad32e45ad4a0f5291d1a9ce4efa0f2 plasma-bigscreen-5.27.7.tar.xz
232fb25df16ef388f7dbfc163911e7828be plasma-remotecontrollers-5.27.7.tar.xz
233#507a8d13920b160b4683b093e90f6088 flatpak-kcm-5.27.7.tar.xz
234#9eadbc5ec19e2122f81742e0f38941f7 plasma-welcome-5.27.7.tar.xz</literal>
235EOF</userinput></screen>
236
237 <note>
238 <title>About Commented out Packages</title>
239 <para>
240 The breeze-grub, breeze-plymouth, and plymouth-kcm packages above are
241 all for customized support of <ulink
242 url="https://www.freedesktop.org/wiki/Software/Plymouth/"
243 >Plymouth</ulink>
244 which is designed to be run within an initial ram disk during boot (see
245 <xref linkend="initramfs"/>).
246 The plasma-sdk package is optional and used for software development.
247 The plasma-nano package is used for embedded systems and
248 plasma-mobile provides phone functionality for Plasma.
249 The aura-browser package requires <xref linkend="qtwebengine"/>.
250 The discover package requires the external package
251 <ulink url="https://distributions.freedesktop.org/wiki/AppStream">
252 appstream-qt</ulink>.
253 The plasma-welcome package requires the external package
254 <ulink url="https://download.kde.org/stable/release-service/&kf5apps-version;/src/">
255 kaccounts-integration</ulink>.
256 The flatpack-kcm package is for managing support of flatpack applications.
257 </para>
258 </note>
259
260 </sect2>
261
262 <sect2 role="installation">
263 <title>Installation of Plasma5</title>
264
265 &as_root;
266
267 <para>
268 First, start a subshell that will exit on error:
269 </para>
270
271<screen><userinput>bash -e</userinput></screen>
272
273 <para>
274 Install all of the packages by running the following
275 commands:
276 </para>
277
278<screen><userinput>while read -r line; do
279
280 # Get the file name, ignoring comments and blank lines
281 if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
282 file=$(echo $line | cut -d" " -f2)
283
284 pkg=$(echo $file|sed 's|^.*/||') # Remove directory
285 packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
286
287 tar -xf $file
288 pushd $packagedir
289<!--
290 # Fix some build issues when generating some configuration files
291 case $name in
292 plasma-workspace)
293 sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
294 ;;
295
296 khotkeys)
297 sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
298 ;;
299
300 plasma-desktop)
301 sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
302 ;;
303 esac
304-->
305 mkdir build
306 cd build
307
308 cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
309 -DCMAKE_BUILD_TYPE=Release \
310 -DBUILD_TESTING=OFF \
311 -Wno-dev .. &amp;&amp;
312
313 make
314 as_root make install
315 popd
316
317<!-- some packages end up with files owned by root in $packagedir,
318 so use as_root for removing -->
319 as_root rm -rf $packagedir
320 as_root /sbin/ldconfig
321
322done &lt; plasma-&plasma5-version;.md5
323
324exit</userinput></screen>
325
326 <para>
327 If you did not set <envar>$KF5_PREFIX</envar> to
328 <filename>/usr</filename>, create symlinks to allow display managers to
329 find <application>Plasma</application>:
330 </para>
331
332<screen><userinput>as_root install -dvm 755 /usr/share/xsessions &amp;&amp;
333cd /usr/share/xsessions/ &amp;&amp;
334[ -e plasma.desktop ] ||
335as_root ln -sfv $KF5_PREFIX/share/xsessions/plasma.desktop &amp;&amp;
336as_root install -dvm 755 /usr/share/wayland-sessions &amp;&amp;
337cd /usr/share/wayland-sessions/ &amp;&amp;
338[ -e plasmawayland.desktop ] ||
339as_root ln -sfv $KF5_PREFIX/share/wayland-sessions/plasmawayland.desktop<!--
340cd $KF5_PREFIX/share/plasma/plasmoids
341
342for j in $(find -name \*.js); do
343 as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
344done--></userinput></screen>
345
346 <para revision="sysv">
347 Useless systemd units have been installed in
348 <filename class="directory">$KF5_PREFIX/lib</filename>. Remove
349 them now (as <systemitem class="username">root</systemitem>):
350 </para>
351
352<screen role="root"
353 revision="sysv"><userinput>rm -rf $KF5_PREFIX/lib/systemd</userinput></screen>
354
355 </sect2>
356<!--
357 <sect2 role="commands">
358 <title>Command Explanations</title>
359
360 <para>
361 <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
362 Create symbolic links so qml files can find needed javascript modules.
363 </para>
364
365 </sect2>
366-->
367 <sect2 role="configuration">
368 <title>Configuring Plasma</title>
369
370 <sect3>
371 <title>Linux PAM Configuration</title>
372
373 <para>
374 If you built Plasma with the recommended <application>Linux
375 PAM</application> support, create necessary configuration files by
376 running the following commands as the <systemitem
377 class="username">root</systemitem> user:
378 </para>
379
380<screen role="root"><userinput>cat &gt; /etc/pam.d/kde &lt;&lt; "EOF"
381<literal># Begin /etc/pam.d/kde
382
383auth requisite pam_nologin.so
384auth required pam_env.so
385
386auth required pam_succeed_if.so uid &gt;= 1000 quiet
387auth include system-auth
388
389account include system-account
390password include system-password
391session include system-session
392
393# End /etc/pam.d/kde</literal>
394EOF
395
396cat &gt; /etc/pam.d/kde-np &lt;&lt; "EOF"
397<literal># Begin /etc/pam.d/kde-np
398
399auth requisite pam_nologin.so
400auth required pam_env.so
401
402auth required pam_succeed_if.so uid &gt;= 1000 quiet
403auth required pam_permit.so
404
405account include system-account
406password include system-password
407session include system-session
408
409# End /etc/pam.d/kde-np</literal>
410EOF
411
412cat &gt; /etc/pam.d/kscreensaver &lt;&lt; "EOF"
413<literal># Begin /etc/pam.d/kscreensaver
414
415auth include system-auth
416account include system-account
417
418# End /etc/pam.d/kscreensaver</literal>
419EOF</userinput></screen>
420 </sect3>
421 </sect2>
422
423 <sect2 role="starting">
424 <title>Starting Plasma5</title>
425
426 <para revision="sysv">
427 You can start <application>Plasma5</application> from runlevel 3, using
428 <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
429 such as <xref linkend="lightdm"/>.
430 </para>
431
432 <para revision="systemd">
433 You can start <application>Plasma5</application> from a TTY, using
434 <xref linkend="xinit"/><!--, or from a graphical display manager, such as
435 <xref linkend="sddm"/>-->.
436 </para>
437
438 <para>
439 To start <application>Plasma 5</application> using <xref linkend="xinit"/>,
440 run the following commands:
441 </para>
442
443<screen role="nodump"><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
444<literal>dbus-launch --exit-with-x11 $KF5_PREFIX/bin/startplasma-x11</literal>
445EOF
446
447startx</userinput></screen>
448
449 <para>
450 The X session starts on the first unused virtual terminal, normally vt7.
451 You can switch to another vt<emphasis>n</emphasis> simultaneously
452 pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
453 (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
454 normally started at vt7, use Ctrl-Alt-F7. The vt where the command
455 <command>startx</command> was executed will display many messages,
456 including X starting messages, applications automatically started with
457 the session, and eventually, some warning and error messages. You may
458 prefer to redirect those messages to a log file, which not only will keep
459 the initial vt uncluttered, but can also be used for debugging purposes. This
460 can be done starting X with:
461 </para>
462
463 <screen role="nodump"><userinput>startx &amp;&gt; ~/x-session-errors</userinput></screen>
464
465 <para>
466 When shutting down or rebooting, the shutdown messages appear on the vt
467 where X was running. If you wish to see those messages, simultaneously
468 press keys Alt-F7 (assuming that X was running on vt7).
469 </para>
470<!-- Now the entry is "plasma (X11)" for Xorg, so I guess this is
471 not needed anymore:
472 <para>
473 If you intend to start <application>Plasma</application> using a
474 display manager such as <xref linkend="lightdm"/>, there will be two entries
475 for <application>Plasma</application>, one for use with
476 <application>Xorg</application>, and another for
477 <application>Wayland</application>. Modify the
478 <application>Xorg</application> entry with the following command, as the
479 <systemitem class="username">root</systemitem> user, so that you can
480 differentiate between the two:</para>
481
482<screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
483-->
484
485 </sect2>
486
487 <sect2 role="content">
488 <title>Contents</title>
489
490 <segmentedlist>
491 <segtitle>Installed Programs</segtitle>
492 <segtitle>Installed Libraries</segtitle>
493 <segtitle>Installed Directories</segtitle>
494
495 <seglistitem>
496 <seg>
497 There are too many plasma programs (63 in /opt/kf5/bin) to list
498 separately here.
499 </seg>
500 <seg>
501 There are too many plasma libraries (40 in /opt/kf5/lib) to list
502 separately here.
503 </seg>
504 <seg>
505 There are too many plasma directories (over 1000 in /opt/kf5) to
506 list separately here.
507 </seg>
508 </seglistitem>
509 </segmentedlist>
510
511 </sect2>
512
513</sect1>
Note: See TracBrowser for help on using the repository browser.