source: kde/plasma5/plasma-all.xml@ 7899010

12.1 12.2 gimp3 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/for-12.3 xry111/llvm18 xry111/spidermonkey128
Last change on this file since 7899010 was fa559f1, checked in by Douglas R. Reno <renodr@…>, 13 months ago

Add AppStream to the book in support of libadwaita.

See Tickets #18599 and #18573 for more details.

  • Property mode set to 100644
File size: 18.4 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="appstream"/> (build with -qt=true),
116 <xref linkend="glu"/>,
117 <xref linkend='ibus'/>,
118 <xref linkend='qtwebengine'/>,
119 <xref linkend="xorg-synaptics-driver"/>,
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 <xref linkend="appstream"/> to be built
251 with the -Dqt=true switch.
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 The flatpack-kcm package is for managing support of flatpack applications.
256 </para>
257 </note>
258
259 </sect2>
260
261 <sect2 role="installation">
262 <title>Installation of Plasma5</title>
263
264 &as_root;
265
266 <para>
267 First, start a subshell that will exit on error:
268 </para>
269
270<screen><userinput>bash -e</userinput></screen>
271
272 <para>
273 Install all of the packages by running the following
274 commands:
275 </para>
276
277<screen><userinput>while read -r line; do
278
279 # Get the file name, ignoring comments and blank lines
280 if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
281 file=$(echo $line | cut -d" " -f2)
282
283 pkg=$(echo $file|sed 's|^.*/||') # Remove directory
284 packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
285
286 tar -xf $file
287 pushd $packagedir
288<!--
289 # Fix some build issues when generating some configuration files
290 case $name in
291 plasma-workspace)
292 sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
293 ;;
294
295 khotkeys)
296 sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
297 ;;
298
299 plasma-desktop)
300 sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
301 ;;
302 esac
303-->
304 mkdir build
305 cd build
306
307 cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
308 -DCMAKE_BUILD_TYPE=Release \
309 -DBUILD_TESTING=OFF \
310 -Wno-dev .. &amp;&amp;
311
312 make
313 as_root make install
314 popd
315
316<!-- some packages end up with files owned by root in $packagedir,
317 so use as_root for removing -->
318 as_root rm -rf $packagedir
319 as_root /sbin/ldconfig
320
321done &lt; plasma-&plasma5-version;.md5
322
323exit</userinput></screen>
324
325 <para>
326 If you did not set <envar>$KF5_PREFIX</envar> to
327 <filename>/usr</filename>, create symlinks to allow display managers to
328 find <application>Plasma</application>:
329 </para>
330
331<screen><userinput>as_root install -dvm 755 /usr/share/xsessions &amp;&amp;
332cd /usr/share/xsessions/ &amp;&amp;
333[ -e plasma.desktop ] ||
334as_root ln -sfv $KF5_PREFIX/share/xsessions/plasma.desktop &amp;&amp;
335as_root install -dvm 755 /usr/share/wayland-sessions &amp;&amp;
336cd /usr/share/wayland-sessions/ &amp;&amp;
337[ -e plasmawayland.desktop ] ||
338as_root ln -sfv $KF5_PREFIX/share/wayland-sessions/plasmawayland.desktop<!--
339cd $KF5_PREFIX/share/plasma/plasmoids
340
341for j in $(find -name \*.js); do
342 as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
343done--></userinput></screen>
344
345 <para revision="sysv">
346 Useless systemd units have been installed in
347 <filename class="directory">$KF5_PREFIX/lib</filename>. Remove
348 them now (as <systemitem class="username">root</systemitem>):
349 </para>
350
351<screen role="root"
352 revision="sysv"><userinput>rm -rf $KF5_PREFIX/lib/systemd</userinput></screen>
353
354 </sect2>
355<!--
356 <sect2 role="commands">
357 <title>Command Explanations</title>
358
359 <para>
360 <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
361 Create symbolic links so qml files can find needed javascript modules.
362 </para>
363
364 </sect2>
365-->
366 <sect2 role="configuration">
367 <title>Configuring Plasma</title>
368
369 <sect3>
370 <title>Linux PAM Configuration</title>
371
372 <para>
373 If you built Plasma with the recommended <application>Linux
374 PAM</application> support, create necessary configuration files by
375 running the following commands as the <systemitem
376 class="username">root</systemitem> user:
377 </para>
378
379<screen role="root"><userinput>cat &gt; /etc/pam.d/kde &lt;&lt; "EOF"
380<literal># Begin /etc/pam.d/kde
381
382auth requisite pam_nologin.so
383auth required pam_env.so
384
385auth required pam_succeed_if.so uid &gt;= 1000 quiet
386auth include system-auth
387
388account include system-account
389password include system-password
390session include system-session
391
392# End /etc/pam.d/kde</literal>
393EOF
394
395cat &gt; /etc/pam.d/kde-np &lt;&lt; "EOF"
396<literal># Begin /etc/pam.d/kde-np
397
398auth requisite pam_nologin.so
399auth required pam_env.so
400
401auth required pam_succeed_if.so uid &gt;= 1000 quiet
402auth required pam_permit.so
403
404account include system-account
405password include system-password
406session include system-session
407
408# End /etc/pam.d/kde-np</literal>
409EOF
410
411cat &gt; /etc/pam.d/kscreensaver &lt;&lt; "EOF"
412<literal># Begin /etc/pam.d/kscreensaver
413
414auth include system-auth
415account include system-account
416
417# End /etc/pam.d/kscreensaver</literal>
418EOF</userinput></screen>
419 </sect3>
420 </sect2>
421
422 <sect2 role="starting">
423 <title>Starting Plasma5</title>
424
425 <para revision="sysv">
426 You can start <application>Plasma5</application> from runlevel 3, using
427 <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
428 such as <xref linkend="lightdm"/>.
429 </para>
430
431 <para revision="systemd">
432 You can start <application>Plasma5</application> from a TTY, using
433 <xref linkend="xinit"/><!--, or from a graphical display manager, such as
434 <xref linkend="sddm"/>-->.
435 </para>
436
437 <para>
438 To start <application>Plasma 5</application> using <xref linkend="xinit"/>,
439 run the following commands:
440 </para>
441
442<screen role="nodump"><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
443<literal>dbus-launch --exit-with-x11 $KF5_PREFIX/bin/startplasma-x11</literal>
444EOF
445
446startx</userinput></screen>
447
448 <para>
449 The X session starts on the first unused virtual terminal, normally vt7.
450 You can switch to another vt<emphasis>n</emphasis> simultaneously
451 pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
452 (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
453 normally started at vt7, use Ctrl-Alt-F7. The vt where the command
454 <command>startx</command> was executed will display many messages,
455 including X starting messages, applications automatically started with
456 the session, and eventually, some warning and error messages. You may
457 prefer to redirect those messages to a log file, which not only will keep
458 the initial vt uncluttered, but can also be used for debugging purposes. This
459 can be done starting X with:
460 </para>
461
462 <screen role="nodump"><userinput>startx &amp;&gt; ~/x-session-errors</userinput></screen>
463
464 <para>
465 When shutting down or rebooting, the shutdown messages appear on the vt
466 where X was running. If you wish to see those messages, simultaneously
467 press keys Alt-F7 (assuming that X was running on vt7).
468 </para>
469<!-- Now the entry is "plasma (X11)" for Xorg, so I guess this is
470 not needed anymore:
471 <para>
472 If you intend to start <application>Plasma</application> using a
473 display manager such as <xref linkend="lightdm"/>, there will be two entries
474 for <application>Plasma</application>, one for use with
475 <application>Xorg</application>, and another for
476 <application>Wayland</application>. Modify the
477 <application>Xorg</application> entry with the following command, as the
478 <systemitem class="username">root</systemitem> user, so that you can
479 differentiate between the two:</para>
480
481<screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
482-->
483
484 </sect2>
485
486 <sect2 role="content">
487 <title>Contents</title>
488
489 <segmentedlist>
490 <segtitle>Installed Programs</segtitle>
491 <segtitle>Installed Libraries</segtitle>
492 <segtitle>Installed Directories</segtitle>
493
494 <seglistitem>
495 <seg>
496 There are too many plasma programs (63 in /opt/kf5/bin) to list
497 separately here.
498 </seg>
499 <seg>
500 There are too many plasma libraries (40 in /opt/kf5/lib) to list
501 separately here.
502 </seg>
503 <seg>
504 There are too many plasma directories (over 1000 in /opt/kf5) to
505 list separately here.
506 </seg>
507 </seglistitem>
508 </segmentedlist>
509
510 </sect2>
511
512</sect1>
Note: See TracBrowser for help on using the repository browser.