source: kde/plasma5/plasma-all.xml@ 5b75675

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 5b75675 was e440af5, checked in by Pierre Labastie <pierre.labastie@…>, 10 months ago

Remove trailing spaces and a few typos

  • 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#69bcb008dc0c22bb9dad2f990778b46e plasma-sdk-5.27.7.5.27.7.1.tar.xz
206#cba2b18c587dff393bd232d61a35046d plasma-sdk-5.27.7.tar.xz
207293fa8cd57834e07c719a055e2b47fbe sddm-kcm-5.27.7.tar.xz
208#7857d8972a9cc45cc3b672a6d5ff2b12 discover-5.27.7.tar.xz
209#9727481d29a7468420cb1a37a0b36e9e breeze-grub-5.27.7.tar.xz
210#157416774eb4bfc57a4e2caf4512f069 breeze-plymouth-5.27.7.tar.xz
211cdda9f9d374615768d8a324dae92ad1d kactivitymanagerd-5.27.7.tar.xz
2123e8fd694b222d4d6c3d4e2b952099fb0 plasma-integration-5.27.7.tar.xz
213#7bd722f2799f4b1c562be46c5b2d0da1 plymouth-kcm-5.27.7.tar.xz
21426e40eaf358dc02d71ab5cb511a5b3a8 xdg-desktop-portal-kde-5.27.7.tar.xz
215ce2a9be64095829d124d4f83c14a464c drkonqi-5.27.7.tar.xz
216410818deea59fc12aa3ed155e350e931 plasma-vault-5.27.7.tar.xz
2174636852897f802e64501fbae5e3dfb24 plasma-browser-integration-5.27.7.tar.xz
2183febab89d2fca2e67271d5e35723d7be kde-cli-tools-5.27.7.tar.xz
219799ec2ab0012e47d2b1660affe5f333e systemsettings-5.27.7.tar.xz
220fa9f2208c27d8a3e99c0cbb113087338 plasma-thunderbolt-5.27.7.tar.xz
221#c4dbf6737cc9d8d3396214d4bed14abf plasma-nano-5.27.7.tar.xz
222#74a1ec9c76b979fb8a3906204c93add4 plasma-mobile-5.27.7.tar.xz
223ca0a794b2d65c9c763d0f932b2bd9c1e plasma-firewall-5.27.7.tar.xz
2244f3a9803e3741521b1867303b179670a plasma-systemmonitor-5.27.7.tar.xz
22529fb63dc5c266b3fe0a2e849f1a1db28 qqc2-breeze-style-5.27.7.tar.xz
2262e3689a958a72aa1a09aa6edf471ce11 ksystemstats-5.27.7.tar.xz
22708434c4829aefd689c877fe84baa5ad6 oxygen-sounds-5.27.7.tar.xz
228#2b1b01328d062d6d9c3d92daaa26d13c aura-browser-5.27.7.tar.xz
229a32fedd93e3ecef504ea28ec27cbfd55 kdeplasma-addons-5.27.7.tar.xz
2301d759ab0bb02f630385e4dc267aaef6e kpipewire-5.27.7.tar.xz
231553afd4e952b601147ca868b7129303d plank-player-5.27.7.tar.xz
23251ad32e45ad4a0f5291d1a9ce4efa0f2 plasma-bigscreen-5.27.7.tar.xz
233fb25df16ef388f7dbfc163911e7828be plasma-remotecontrollers-5.27.7.tar.xz
234#507a8d13920b160b4683b093e90f6088 flatpak-kcm-5.27.7.tar.xz
235#9eadbc5ec19e2122f81742e0f38941f7 plasma-welcome-5.27.7.tar.xz</literal>
236EOF</userinput></screen>
237
238 <note>
239 <title>About Commented out Packages</title>
240 <para>
241 The breeze-grub, breeze-plymouth, and plymouth-kcm packages above are
242 all for customized support of <ulink
243 url="https://www.freedesktop.org/wiki/Software/Plymouth/"
244 >Plymouth</ulink>
245 which is designed to be run within an initial ram disk during boot (see
246 <xref linkend="initramfs"/>).
247 The plasma-sdk package is optional and used for software development.
248 The plasma-nano package is used for embedded systems and
249 plasma-mobile provides phone functionality for Plasma.
250 The aura-browser package requires <xref linkend="qtwebengine"/>.
251 The discover package requires the external package
252 <ulink url="https://distributions.freedesktop.org/wiki/AppStream">
253 appstream-qt</ulink>.
254 The plasma-welcome package requires the external package
255 <ulink url="https://download.kde.org/stable/release-service/&kf5apps-version;/src/">
256 kaccounts-integration</ulink>.
257 The flatpack-kcm package is for managing support of flatpack applications.
258 </para>
259 </note>
260
261 </sect2>
262
263 <sect2 role="installation">
264 <title>Installation of Plasma5</title>
265
266 &as_root;
267
268 <para>
269 First, start a subshell that will exit on error:
270 </para>
271
272<screen><userinput>bash -e</userinput></screen>
273
274 <para>
275 Install all of the packages by running the following
276 commands:
277 </para>
278
279<screen><userinput>while read -r line; do
280
281 # Get the file name, ignoring comments and blank lines
282 if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
283 file=$(echo $line | cut -d" " -f2)
284
285 pkg=$(echo $file|sed 's|^.*/||') # Remove directory
286 packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
287
288 tar -xf $file
289 pushd $packagedir
290<!--
291 # Fix some build issues when generating some configuration files
292 case $name in
293 plasma-workspace)
294 sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
295 ;;
296
297 khotkeys)
298 sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
299 ;;
300
301 plasma-desktop)
302 sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
303 ;;
304 esac
305-->
306 mkdir build
307 cd build
308
309 cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
310 -DCMAKE_BUILD_TYPE=Release \
311 -DBUILD_TESTING=OFF \
312 -Wno-dev .. &amp;&amp;
313
314 make
315 as_root make install
316 popd
317
318<!-- some packages end up with files owned by root in $packagedir,
319 so use as_root for removing -->
320 as_root rm -rf $packagedir
321 as_root /sbin/ldconfig
322
323done &lt; plasma-&plasma5-version;.md5
324
325exit</userinput></screen>
326
327 <para>
328 If you did not set <envar>$KF5_PREFIX</envar> to
329 <filename>/usr</filename>, create symlinks to allow display managers to
330 find <application>Plasma</application>:
331 </para>
332
333<screen><userinput>as_root install -dvm 755 /usr/share/xsessions &amp;&amp;
334cd /usr/share/xsessions/ &amp;&amp;
335[ -e plasma.desktop ] ||
336as_root ln -sfv $KF5_PREFIX/share/xsessions/plasma.desktop &amp;&amp;
337as_root install -dvm 755 /usr/share/wayland-sessions &amp;&amp;
338cd /usr/share/wayland-sessions/ &amp;&amp;
339[ -e plasmawayland.desktop ] ||
340as_root ln -sfv $KF5_PREFIX/share/wayland-sessions/plasmawayland.desktop<!--
341cd $KF5_PREFIX/share/plasma/plasmoids
342
343for j in $(find -name \*.js); do
344 as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
345done--></userinput></screen>
346
347 <para revision="sysv">
348 Useless systemd units have been installed in
349 <filename class="directory">$KF5_PREFIX/lib</filename>. Remove
350 them now (as <systemitem class="username">root</systemitem>):
351 </para>
352
353<screen role="root"
354 revision="sysv"><userinput>rm -rf $KF5_PREFIX/lib/systemd</userinput></screen>
355
356 </sect2>
357<!--
358 <sect2 role="commands">
359 <title>Command Explanations</title>
360
361 <para>
362 <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
363 Create symbolic links so qml files can find needed javascript modules.
364 </para>
365
366 </sect2>
367-->
368 <sect2 role="configuration">
369 <title>Configuring Plasma</title>
370
371 <sect3>
372 <title>Linux PAM Configuration</title>
373
374 <para>
375 If you built Plasma with the recommended <application>Linux
376 PAM</application> support, create necessary configuration files by
377 running the following commands as the <systemitem
378 class="username">root</systemitem> user:
379 </para>
380
381<screen role="root"><userinput>cat &gt; /etc/pam.d/kde &lt;&lt; "EOF"
382<literal># Begin /etc/pam.d/kde
383
384auth requisite pam_nologin.so
385auth required pam_env.so
386
387auth required pam_succeed_if.so uid &gt;= 1000 quiet
388auth include system-auth
389
390account include system-account
391password include system-password
392session include system-session
393
394# End /etc/pam.d/kde</literal>
395EOF
396
397cat &gt; /etc/pam.d/kde-np &lt;&lt; "EOF"
398<literal># Begin /etc/pam.d/kde-np
399
400auth requisite pam_nologin.so
401auth required pam_env.so
402
403auth required pam_succeed_if.so uid &gt;= 1000 quiet
404auth required pam_permit.so
405
406account include system-account
407password include system-password
408session include system-session
409
410# End /etc/pam.d/kde-np</literal>
411EOF
412
413cat &gt; /etc/pam.d/kscreensaver &lt;&lt; "EOF"
414<literal># Begin /etc/pam.d/kscreensaver
415
416auth include system-auth
417account include system-account
418
419# End /etc/pam.d/kscreensaver</literal>
420EOF</userinput></screen>
421 </sect3>
422 </sect2>
423
424 <sect2 role="starting">
425 <title>Starting Plasma5</title>
426
427 <para revision="sysv">
428 You can start <application>Plasma5</application> from runlevel 3, using
429 <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
430 such as <xref linkend="lightdm"/>.
431 </para>
432
433 <para revision="systemd">
434 You can start <application>Plasma5</application> from a TTY, using
435 <xref linkend="xinit"/><!--, or from a graphical display manager, such as
436 <xref linkend="sddm"/>-->.
437 </para>
438
439 <para>
440 To start <application>Plasma 5</application> using <xref linkend="xinit"/>,
441 run the following commands:
442 </para>
443
444<screen><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
445<literal>dbus-launch --exit-with-x11 $KF5_PREFIX/bin/startplasma-x11</literal>
446EOF
447
448startx</userinput></screen>
449
450 <para>
451 The X session starts on the first unused virtual terminal, normally vt7.
452 You can switch to another vt<emphasis>n</emphasis> simultaneously
453 pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
454 (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
455 normally started at vt7, use Ctrl-Alt-F7. The vt where the command
456 <command>startx</command> was executed will display many messages,
457 including X starting messages, applications automatically started with
458 the session, and eventually, some warning and error messages. You may
459 prefer to redirect those messages to a log file, which not only will keep
460 the initial vt uncluttered, but can also be used for debugging purposes. This
461 can be done starting X with:
462 </para>
463
464 <screen><userinput>startx &amp;&gt; ~/x-session-errors</userinput></screen>
465
466 <para>
467 When shutting down or rebooting, the shutdown messages appear on the vt
468 where X was running. If you wish to see those messages, simultaneously
469 press keys Alt-F7 (assuming that X was running on vt7).
470 </para>
471<!-- Now the entry is "plasma (X11)" for Xorg, so I guess this is
472 not needed anymore:
473 <para>
474 If you intend to start <application>Plasma</application> using a
475 display manager such as <xref linkend="lightdm"/>, there will be two entries
476 for <application>Plasma</application>, one for use with
477 <application>Xorg</application>, and another for
478 <application>Wayland</application>. Modify the
479 <application>Xorg</application> entry with the following command, as the
480 <systemitem class="username">root</systemitem> user, so that you can
481 differentiate between the two:</para>
482
483<screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
484-->
485
486 </sect2>
487
488 <sect2 role="content">
489 <title>Contents</title>
490
491 <segmentedlist>
492 <segtitle>Installed Programs</segtitle>
493 <segtitle>Installed Libraries</segtitle>
494 <segtitle>Installed Directories</segtitle>
495
496 <seglistitem>
497 <seg>
498 There are too many plasma programs (63 in /opt/kf5/bin) to list
499 separately here.
500 </seg>
501 <seg>
502 There are too many plasma libraries (40 in /opt/kf5/lib) to list
503 separately here.
504 </seg>
505 <seg>
506 There are too many plasma directories (over 1000 in /opt/kf5) to
507 list separately here.
508 </seg>
509 </seglistitem>
510 </segmentedlist>
511
512 </sect2>
513
514</sect1>
Note: See TracBrowser for help on using the repository browser.