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

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since e444c3b9 was ae20e9a, checked in by Bruce Dubbs <bdubbs@…>, 17 months ago

Use --exit-with-x11 for dbus-launch

  • Property mode set to 100644
File size: 17.8 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 "192 MB">
11 <!ENTITY plasma5-buildsize "1.7 GB (419 MB installed)">
12 <!ENTITY plasma5-time "18 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 &lfs113_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="fontforge"/>,-->
76 <!-- does not seem to be needed as of 5.22.4 <xref linkend="GConf"/>, -->
77 <xref linkend="gtk2"/>,
78 <xref linkend="gtk3"/>,
79 <xref linkend="kf5-frameworks"/>,
80 <xref linkend="kuserfeedback"/>,
81 <xref linkend="libpwquality"/>,
82 <xref linkend="libqalculate"/>,
83 <xref linkend="libxkbcommon"/>,
84 <xref linkend="mesa"/> built with <xref linkend="wayland"/>,
85 <xref linkend="NetworkManager"/>,
86 <xref linkend="pipewire"/>,
87 <xref linkend="pulseaudio"/>,
88 <xref linkend="qca"/>,
89 <xref linkend="sassc"/>,
90 <xref linkend="taglib"/>, and
91 <xref linkend="xcb-util-cursor"/>
92 </para>
93
94 <bridgehead renderas="sect4">Recommended</bridgehead>
95 <para role="recommended">
96 <xref linkend="fftw"/>,
97 <xref linkend="gsettings-desktop-schemas"/>,
98 <xref linkend="libdbusmenu-qt"/>,
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-icons5"/>, and
105 <xref linkend="pciutils"/>
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"/>, and
112 <xref role="runtime" linkend="xwayland"/>
113 </para>
114
115 <bridgehead renderas="sect4">Optional</bridgehead>
116 <para role="optional">
117 <xref linkend="glu"/>,
118 <xref linkend='ibus'/>,
119 <xref linkend='qtwebengine'/>,
120 <xref linkend="xorg-synaptics-driver"/>,
121 <ulink url="https://distributions.freedesktop.org/wiki/AppStream">appstream-qt</ulink>,
122 <ulink url="https://www.kdevelop.org/">KDevPlatform</ulink>,
123 <ulink url="https://gpsd.gitlab.io/gpsd/">libgps</ulink>,
124 <ulink url="https://github.com/libhybris/libhybris">libhybris</ulink>,
125 <ulink url="https://sourceforge.net/projects/libraw1394/">libraw1394</ulink>,
126 <ulink url="https://bitbucket.org/godsme/mockcpp">mockcpp</ulink>,
127 <ulink url="https://www.freedesktop.org/software/PackageKit/releases/">packagekit-qt</ulink>,
128 <ulink url="https://qalculate.github.io/">Qalculate</ulink>,
129 <ulink url="https://launchpad.net/qapt">Qapt</ulink>,
130 <ulink url="https://github.com/osiam/osiam">SCIM</ulink>, and
131 <ulink url="http://www.dest-unreach.org/socat/">socat</ulink> (for pam_kwallet)
132 </para>
133
134 <note>
135 <para>
136 Only two plasma packages optionally use <xref linkend="qtwebengine"/>:
137 libksysguard and kdeplasma-addons. If QtWebEngine is installed later,
138 only those two packages have to be rebuilt. This allows to provide
139 a more complete display in the system monitor application.
140 </para>
141 </note>
142
143 <para condition="html" role="usernotes">User Notes:
144 <ulink url="&blfs-wiki;/kf5"/></para>
145
146 <sect2>
147 <title>Downloading KDE Plasma5</title>
148
149 <para>
150 The easiest way to get the KDE Plasma5 packages is to use a single
151 <command>wget</command> to fetch them all at once:
152 </para>
153
154<screen><userinput>url=https://download.kde.org/stable/plasma/&plasma5-version;/
155wget -r -nH -nd -A '*.xz' -np $url</userinput>
156<literal>
157The options used here are:
158 -r recurse through child directories
159 -nH disable generation of host-prefixed directories
160 -nd do not create a hierarchy of directories
161 -A '*.xz' just get the *.xz files
162 -np don't get parent directories</literal></screen>
163
164 </sect2>
165
166 <sect2>
167 <title>Setting Package Order</title>
168
169 <para>
170 The order of building files is important due to internal dependencies.
171 Create the list of files in the proper order as follows:
172 </para>
173
174<screen><userinput>cat &gt; plasma-&plasma5-version;.md5 &lt;&lt; "EOF"
175<literal>e436a039ec6b0016e5f52a71a5086ad8 kdecoration-5.26.5.tar.xz
176ec10440342d3b227499b61bbf86c04ab libkscreen-5.26.5.tar.xz
177a7a235a4d105eaa37c9c9923f34b7019 libksysguard-5.26.5.tar.xz
17865c2bc9680f8830b1fdfc231a2923fe7 breeze-5.26.5.tar.xz
179b43a9abaa1dbf083fbac92febf06ee62 breeze-gtk-5.26.5.tar.xz
1802a5c3f9ddb0dd1394574c85237c6a99d layer-shell-qt-5.26.5.tar.xz
181fbf3d2ff3dcfe2eb6770f18f0784b693 kscreenlocker-5.26.5.tar.xz
18244db61e1b0c27d951cfc0dd45fa19947 oxygen-5.26.5.tar.xz
1834a04fbf14eee03b81a5f95701758dadc kinfocenter-5.26.5.tar.xz
1846b2566e536949698fcb43ecb1cb331c8 kwin-5.26.5.tar.xz
1859b5ddbc03683da742ac0c03c821d9084 plasma-workspace-5.26.5.tar.xz
1864c118121937c0c92ab9630b28be83aab plasma-disks-5.26.5.tar.xz
1873440d7a273988cddb711ddd864ae85d7 bluedevil-5.26.5.tar.xz
18875f668ce669e853565c375937ca6db3b kde-gtk-config-5.26.5.tar.xz
1896e8673a19904011d79d9b8fd69890443 khotkeys-5.26.5.tar.xz
1907425d8cd9889bdb327b8a8b339274aa5 kmenuedit-5.26.5.tar.xz
1916f600d487eda8fd2cddf3e13c322ce78 kscreen-5.26.5.tar.xz
192def2d41c607309fdb622b270833b6078 kwallet-pam-5.26.5.tar.xz
193ce7b641d174973be3b944f9279609eaf kwayland-integration-5.26.5.tar.xz
194eb2171403b7fbae6b257404f58fea865 kwrited-5.26.5.tar.xz
195fc04856efefea7eba22064e7afdbddf7 milou-5.26.5.tar.xz
196adb5371f4383332da2d7bdc643d1ba3d plasma-nm-5.26.5.tar.xz
1978a277824eec12d339b9b0cec40e141da plasma-pa-5.26.5.tar.xz
1985112039742fa249c6272196fd2ea9b8c plasma-workspace-wallpapers-5.26.5.tar.xz
1991319507df888d5d1d1584487c72bb41c polkit-kde-agent-1-5.26.5.tar.xz
2001636fa123a48123922c6bd9114601188 powerdevil-5.26.5.tar.xz
2019c85a12b5fc4593ee3c9c3602b7c1fd7 plasma-desktop-5.26.5.tar.xz
202297ae0e3b025e2d8a9a6b4301aed97b3 kgamma5-5.26.5.tar.xz
203b34c0f8e8f00c881fa6636941a646cdf ksshaskpass-5.26.5.tar.xz
204#5310bb325acaacddd75cfcc9beb720ae plasma-sdk-5.26.5.tar.xz
205579e478775361bbb3499e1ec5b5011a1 sddm-kcm-5.26.5.tar.xz
2064c5d0fd055f04e9104de1039fb3d19e4 discover-5.26.5.tar.xz
207#4eddbae9f9e4add3637dd9fd99290047 breeze-grub-5.26.5.tar.xz
208#ddbea7d8d6c6bc3953039075628de7ee breeze-plymouth-5.26.5.tar.xz
2097a85cf42b67ac38e490f0749cd25496e kactivitymanagerd-5.26.5.tar.xz
210235d1c02582787ff5dd825fae434e6f9 plasma-integration-5.26.5.tar.xz
211a97a00137fcd4e446cbf849983bd1e64 plasma-tests-5.26.5.tar.xz
212#d16a86f8aee8e7f0da084535cdccca7f plymouth-kcm-5.26.5.tar.xz
21349abaee061653e65afe9ba509c6aef41 xdg-desktop-portal-kde-5.26.5.tar.xz
2148ea7332f06db75e41357cfe49d893042 drkonqi-5.26.5.tar.xz
215e147fcf2d2cfc030c3a5e12373e8dc29 plasma-vault-5.26.5.tar.xz
216a17305d04e3f43cd2c63870e58aa1002 plasma-browser-integration-5.26.5.tar.xz
217d7bf771ac16efb7b8c3c4e6a34193002 kde-cli-tools-5.26.5.tar.xz
2185c9d258caff107e2d668308fbdc1b88a systemsettings-5.26.5.tar.xz
219fb368c5c4ac28061a706c3558e4c4b66 plasma-thunderbolt-5.26.5.tar.xz
220#ebe05c7b3b95d0dca235830ab17b8d57 plasma-nano-5.26.5.tar.xz
221#cb64c2c61676c499f1807184928083c7 plasma-mobile-5.26.5.tar.xz
2220ac0a579b57b76e664d172845ae06a07 plasma-firewall-5.26.5.tar.xz
223d5c8bac2d756982328cd541649a7002b plasma-systemmonitor-5.26.5.tar.xz
22417608c1fb4b6503193a5769f35c7f9e5 qqc2-breeze-style-5.26.5.tar.xz
225146cef26a5a9b3c82d46cabd6842a07c ksystemstats-5.26.5.tar.xz
2266943aba014019057384b47339bb8ed0a oxygen-sounds-5.26.5.tar.xz
2277CF5ED434a6d21fd8458f89207986b9a aura-browser-5.26.5.tar.xz
228fc695034a7236fb6eab8a324216bc710 kdeplasma-addons-5.26.5.tar.xz
22971fce4036d0f6a6fdc9bf5db3d47b9c9 kpipewire-5.26.5.tar.xz
23026e7ae5887a56e971d2510262f9e0b55 plank-player-5.26.5.tar.xz
231116e7d1a64ee17d5a31aed066709725a plasma-bigscreen-5.26.5.tar.xz
232d55d570e84840440f89233c8915e5872 plasma-remotecontrollers-5.26.5.tar.xz</literal>
233EOF</userinput></screen>
234
235 <note>
236 <para>
237 The breeze-grub, breeze-plymouth, and plymouth-kcm packages above are
238 all for customized support of <ulink
239 url="https://www.freedesktop.org/wiki/Software/Plymouth/"
240 >Plymouth</ulink>
241 which is designed to be run within an initial ram disk during boot (see
242 <xref linkend="initramfs"/>). The plasma-sdk package is optional and
243 used for software development. The plasma-nano package is used for
244 embedded systems and plasma-phone-components provides phone
245 functionality for Plasma.
246 </para>
247 </note>
248
249 </sect2>
250
251 <sect2 role="installation">
252 <title>Installation of Plasma5</title>
253
254 &as_root;
255
256 <para>
257 First, start a subshell that will exit on error:
258 </para>
259
260<screen><userinput>bash -e</userinput></screen>
261
262 <para>
263 Install all of the packages by running the following
264 commands:
265 </para>
266
267<screen><userinput>while read -r line; do
268
269 # Get the file name, ignoring comments and blank lines
270 if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
271 file=$(echo $line | cut -d" " -f2)
272
273 pkg=$(echo $file|sed 's|^.*/||') # Remove directory
274 packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
275
276 tar -xf $file
277 pushd $packagedir
278<!--
279 # Fix some build issues when generating some configuration files
280 case $name in
281 plasma-workspace)
282 sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
283 ;;
284
285 khotkeys)
286 sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
287 ;;
288
289 plasma-desktop)
290 sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
291 ;;
292 esac
293-->
294 mkdir build
295 cd build
296
297 cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
298 -DCMAKE_BUILD_TYPE=Release \
299 -DBUILD_TESTING=OFF \
300 -Wno-dev .. &amp;&amp;
301
302 make
303 as_root make install
304 popd
305
306<!-- some packages end up with files owned by root in $packagedir,
307 so use as_root for removing -->
308 as_root rm -rf $packagedir
309 as_root /sbin/ldconfig
310
311done &lt; plasma-&plasma5-version;.md5
312
313exit</userinput></screen>
314
315 <para>
316 If you did not set <envar>$KF5_PREFIX</envar> to
317 <filename>/usr</filename>, create symlinks to allow display managers to
318 find <application>Plasma</application>:
319 </para>
320
321<screen><userinput>as_root install -dvm 755 /usr/share/xsessions &amp;&amp;
322cd /usr/share/xsessions/ &amp;&amp;
323[ -e plasma.desktop ] ||
324as_root ln -sfv $KF5_PREFIX/share/xsessions/plasma.desktop &amp;&amp;
325as_root install -dvm 755 /usr/share/wayland-sessions &amp;&amp;
326cd /usr/share/wayland-sessions/ &amp;&amp;
327[ -e plasmawayland.desktop ] ||
328as_root ln -sfv $KF5_PREFIX/share/wayland-sessions/plasmawayland.desktop<!--
329cd $KF5_PREFIX/share/plasma/plasmoids
330
331for j in $(find -name \*.js); do
332 as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
333done--></userinput></screen>
334
335 <para revision="sysv">
336 Useless systemd units have been installed in
337 <filename class="directory">$KF5_PREFIX/lib</filename>. Remove
338 them now (as <systemitem class="username">root</systemitem>):
339 </para>
340
341<screen role="root"
342 revision="sysv"><userinput>rm -rf $KF5_PREFIX/lib/systemd</userinput></screen>
343
344 </sect2>
345<!--
346 <sect2 role="commands">
347 <title>Command Explanations</title>
348
349 <para>
350 <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
351 Create symbolic links so qml files can find needed javascript modules.
352 </para>
353
354 </sect2>
355-->
356 <sect2 role="configuration">
357 <title>Configuring Plasma</title>
358
359 <sect3>
360 <title>Linux PAM Configuration</title>
361
362 <para>
363 If you built Plasma with the recommended <application>Linux
364 PAM</application> support, create necessary configuration files by
365 running the following commands as the <systemitem
366 class="username">root</systemitem> user:
367 </para>
368
369<screen role="root"><userinput>cat &gt; /etc/pam.d/kde &lt;&lt; "EOF"
370<literal># Begin /etc/pam.d/kde
371
372auth requisite pam_nologin.so
373auth required pam_env.so
374
375auth required pam_succeed_if.so uid &gt;= 1000 quiet
376auth include system-auth
377
378account include system-account
379password include system-password
380session include system-session
381
382# End /etc/pam.d/kde</literal>
383EOF
384
385cat &gt; /etc/pam.d/kde-np &lt;&lt; "EOF"
386<literal># Begin /etc/pam.d/kde-np
387
388auth requisite pam_nologin.so
389auth required pam_env.so
390
391auth required pam_succeed_if.so uid &gt;= 1000 quiet
392auth required pam_permit.so
393
394account include system-account
395password include system-password
396session include system-session
397
398# End /etc/pam.d/kde-np</literal>
399EOF
400
401cat &gt; /etc/pam.d/kscreensaver &lt;&lt; "EOF"
402<literal># Begin /etc/pam.d/kscreensaver
403
404auth include system-auth
405account include system-account
406
407# End /etc/pam.d/kscreensaver</literal>
408EOF</userinput></screen>
409 </sect3>
410 </sect2>
411
412 <sect2 role="starting">
413 <title>Starting Plasma5</title>
414
415 <para revision="sysv">
416 You can start <application>Plasma5</application> from runlevel 3, using
417 <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
418 such as <xref linkend="lightdm"/>.
419 </para>
420
421 <para revision="systemd">
422 You can start <application>Plasma5</application> from a TTY, using
423 <xref linkend="xinit"/><!--, or from a graphical display manager, such as
424 <xref linkend="sddm"/>-->.
425 </para>
426
427 <para>
428 To start <application>Plasma 5</application> using <xref linkend="xinit"/>,
429 run the following commands:
430 </para>
431
432<screen><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
433<literal>dbus-launch --exit-with-x11 $KF5_PREFIX/bin/startplasma-x11</literal>
434EOF
435
436startx</userinput></screen>
437
438 <para>
439 The X session starts on the first unused virtual terminal, normally vt7.
440 You can switch to another vt<emphasis>n</emphasis> simultaneously
441 pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
442 (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
443 normally started at vt7, use Ctrl-Alt-F7. The vt where the command
444 <command>startx</command> was executed will display many messages,
445 including X starting messages, applications automatically started with
446 the session, and eventually, some warning and error messages. You may
447 prefer to redirect those messages to a log file, which not only will keep
448 the initial vt uncluttered, but can also be used for debugging purposes. This
449 can be done starting X with:
450 </para>
451
452 <screen><userinput>startx &amp;&gt; ~/x-session-errors</userinput></screen>
453
454 <para>
455 When shutting down or rebooting, the shutdown messages appear on the vt
456 where X was running. If you wish to see those messages, simultaneously
457 press keys Alt-F7 (assuming that X was running on vt7).
458 </para>
459<!-- Now the entry is "plasma (X11)" for Xorg, so I guess this is
460 not needed anymore:
461 <para>
462 If you intend to start <application>Plasma</application> using a
463 display manager such as <xref linkend="lightdm"/>, there will be two entries
464 for <application>Plasma</application>, one for use with
465 <application>Xorg</application>, and another for
466 <application>Wayland</application>. Modify the
467 <application>Xorg</application> entry with the following command, as the
468 <systemitem class="username">root</systemitem> user, so that you can
469 differentiate between the two:</para>
470
471<screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
472-->
473
474 </sect2>
475
476 <sect2 role="content">
477 <title>Contents</title>
478
479 <segmentedlist>
480 <segtitle>Installed Programs</segtitle>
481 <segtitle>Installed Libraries</segtitle>
482 <segtitle>Installed Directories</segtitle>
483
484 <seglistitem>
485 <seg>
486 There are too many plasma programs (63 in /opt/kf5/bin) to list
487 separately here.
488 </seg>
489 <seg>
490 There are too many plasma libraries (40 in /opt/kf5/lib) to list
491 separately here.
492 </seg>
493 <seg>
494 There are too many plasma directories (over 1000 in /opt/kf5) to
495 list separately here.
496 </seg>
497 </seglistitem>
498 </segmentedlist>
499
500 </sect2>
501
502</sect1>
Note: See TracBrowser for help on using the repository browser.