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

11.0 ken/refactor-virt lazarus qt5new trunk
Last change on this file since fda29e4 was fda29e4, checked in by Xi Ruoyao <xry111@…>, 6 months ago

remove hardcoded $Date: $

  • Property mode set to 100644
File size: 16.9 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 "130 MB">
11 <!ENTITY plasma5-buildsize "572 MB (357 MB installed)">
12 <!ENTITY plasma5-time "14 SBU (using parallelism=4)">
13]>
14
15<sect1 id="plasma5-build" xreflabel="Plasma-&plasma5-version;">
16 <?dbhtml filename="plasma-all.html"?>
17
18 <sect1info>
19 <date>$Date$</date>
20 </sect1info>
21
22 <title>Building Plasma 5</title>
23
24 <indexterm zone="plasma5-build">
25 <primary sortas="a-kde-plasma">KDE Plasma 5</primary>
26 </indexterm>
27
28 <para>
29 KDE Plasma 5 is a collection of packages based on top of KDE Frameworks
30 5 and QML. They implement the KDE Display Environment (Plasma 5).
31 </para>
32
33 &lfs101_checked;
34
35 <para>
36 The instructions below build all of the Plasma 5 packages in one
37 step by using a bash script.
38 </para>
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>
44 Download (HTTP): <ulink url="&plasma5-download-http;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download (FTP): <ulink url="&plasma5-download-ftp;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download MD5 sum: &plasma5-md5sum;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download size: &plasma5-size;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated disk space required: &plasma5-buildsize;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated build time: &plasma5-time;
70 </para>
71 </listitem>
72 </itemizedlist>
73
74 <bridgehead renderas="sect3">Plasma 5 Dependencies</bridgehead>
75
76 <bridgehead renderas="sect4">Required</bridgehead>
77 <para role="required">
78 <!--<xref linkend="fontforge"/>,-->
79 <xref linkend="GConf"/>,
80 <xref linkend="gtk2"/>,
81 <xref linkend="gtk3"/>,
82 <xref linkend="kf5-frameworks"/>,
83 <xref linkend="libpwquality"/>,
84 <xref linkend="libxkbcommon"/>,
85 <xref linkend="mesa"/> built with <xref linkend="wayland"/>,
86 <xref linkend="NetworkManager"/>,
87 <xref linkend="pipewire"/>,
88 <xref linkend="pulseaudio"/>,
89 <xref linkend="qca"/>,
90 <xref linkend="sassc"/>,
91 <xref linkend="taglib"/>, and
92 <xref linkend="xcb-util-cursor"/>
93 </para>
94
95 <bridgehead renderas="sect4">Recommended</bridgehead>
96 <para role="recommended">
97 <xref linkend="fftw"/>,
98 <xref linkend="gsettings-desktop-schemas"/>,
99 <xref linkend="libdbusmenu-qt"/>,
100 <xref linkend="libcanberra"/>,
101 <xref linkend="libinput"/>,
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="smartmontools"/>
111 </para>
112
113 <bridgehead renderas="sect4">Optional</bridgehead>
114 <para role="optional">
115 <xref linkend="glu"/>,
116 <xref linkend='ibus'/>,
117 <xref linkend="xorg-synaptics-driver"/>,
118 <ulink url="http://distributions.freedesktop.org/wiki/AppStream">appstream-qt</ulink>,
119 <ulink url="https://www.kdevelop.org/">KDevPlatform</ulink>,
120 <ulink url="https://gpsd.gitlab.io/gpsd/">libgps</ulink>,
121 <ulink url="https://github.com/libhybris/libhybris">libhybris</ulink>,
122 <ulink url="https://sourceforge.net/projects/libraw1394/">libraw1394</ulink>,
123 <ulink url="https://bitbucket.org/godsme/mockcpp">mockcpp</ulink>,
124 <ulink url="https://www.freedesktop.org/software/PackageKit/releases/">packagekit-qt</ulink>,
125 <ulink url="http://qalculate.github.io/">Qalculate</ulink>,
126 <ulink url="https://launchpad.net/qapt">Qapt</ulink>,
127 <ulink url="https://github.com/osiam/osiam">SCIM</ulink>, and
128 <ulink url="http://www.dest-unreach.org/socat/">socat</ulink> (for pam_kwallet)
129 </para>
130
131 <para condition="html" role="usernotes">User Notes:
132 <ulink url="&blfs-wiki;/kf5"/></para>
133
134 <sect2>
135 <title>Downloading KDE Plasma5</title>
136
137 <para>
138 The easiest way to get the KDE Plasma5 packages is to use a single
139 <command>wget</command> to fetch them all at once:
140 </para>
141
142<screen><userinput>url=https://download.kde.org/stable/plasma/&plasma5-version;/
143wget -r -nH -nd -A '*.xz' -np $url</userinput>
144<literal>
145The options used here are:
146 -r recurse through child directories
147 -nH disable generation of host-prefixed directories
148 -nd do not create a hierarchy of directories
149 -A '*.xz' just get the *.xz files
150 -np don't get parent directories</literal></screen>
151
152 </sect2>
153
154 <sect2>
155 <title>Setting Package Order</title>
156
157 <para>
158 The order of building files is important due to internal dependencies.
159 Create the list of files in the proper order as follows:
160 </para>
161
162<screen><userinput>cat &gt; plasma-&plasma5-version;.md5 &lt;&lt; "EOF"
163<literal>6704f5b7e08ddef06aaae2329c83edd0 kdecoration-5.21.1.tar.xz
1646b7cc3ccf7881ea0d0bde07ead95860c libkscreen-5.21.1.tar.xz
165ad1b34a1fa173c92d279941333e15d04 libksysguard-5.21.1.tar.xz
166672efd2a00cae728c602aee8dcbe6d34 breeze-5.21.1.tar.xz
167cd2968bedf5a2f81df05921fb27d3c4d breeze-gtk-5.21.1.tar.xz
1682607a8599c0923e824a5d9a8661fe11d kscreenlocker-5.21.1.tar.xz
1692b0542f736741808cf08ea08f60b3b70 oxygen-5.21.1.tar.xz
170a7254b02d4e52f406840090ad6cd1a04 kinfocenter-5.21.1.tar.xz
171efa5758ce2ee0f8fd70f188198187f6a ksysguard-5.21.1.tar.xz
172bee63f7adde88fda32313b479050cc91 kwayland-server-5.21.1.tar.xz
17356647c9a9a14c447013d734321dfeb28 kwin-5.21.1.tar.xz
174a6d561c5183168449de63840888ec120 plasma-workspace-5.21.1.tar.xz
175f94222d6d0237978e4a00d68abcf45b7 plasma-disks-5.21.1.tar.xz
176582c0bc22874a5dd28f82c765b2562e8 bluedevil-5.21.1.tar.xz
1771140e976e5cc8e157c0fb7d15058a07b kde-gtk-config-5.21.1.tar.xz
17885c2366ba57798df2cd2c4a006fa6430 khotkeys-5.21.1.tar.xz
179b6ea73b30e16f05923840c79146d0280 kmenuedit-5.21.1.tar.xz
1801dfd0ddec58bd28d93a09dea672dcb70 kscreen-5.21.1.tar.xz
181cefd31bcc087e54faa00a619c762ba63 kwallet-pam-5.21.1.tar.xz
1824faee9fba32bb4c4f69b98b23e3d5950 kwayland-integration-5.21.1.tar.xz
18325867c8239bea61976bd3f5ab8af9e9f kwrited-5.21.1.tar.xz
18445bf96a93445d1ab3c9a63d8b40d8974 milou-5.21.1.tar.xz
18509f1f2668113c01d327b9873ed4f80a6 plasma-nm-5.21.1.tar.xz
186a8d0daf6e671c125e7f09e4b67f9f158 plasma-pa-5.21.1.tar.xz
1870bc819955f9c5bc483d2b443b765d544 plasma-workspace-wallpapers-5.21.1.tar.xz
188b9d5703a6e291e3ba4d8f967b83beb94 polkit-kde-agent-1-5.21.1.tar.xz
18977758cb82a129155c4db2a0a4d14d993 powerdevil-5.21.1.tar.xz
19031070b325b1673aec305b1d13fe7fc08 plasma-desktop-5.21.1.tar.xz
191749d00234c2bc6991af0c0cd5bc36e96 kdeplasma-addons-5.21.1.tar.xz
19294e3eb05ee7c06e25587dd6c198fcc7c kgamma5-5.21.1.tar.xz
19361cac749eec698ffaa4d54eaaf251565 ksshaskpass-5.21.1.tar.xz
194#3f54255d7515f08615f7905329771ea6 plasma-sdk-5.21.1.tar.xz
195c675d299cc468021ce31267a69589373 sddm-kcm-5.21.1.tar.xz
1963311f6e733d26aa0a7803351cba7c0c5 discover-5.21.1.tar.xz
197#9d4627fe5e15c972d1bd5902653eb15c breeze-grub-5.21.1.tar.xz
198#006bd972f30dbf79f5d8cc6702816361 breeze-plymouth-5.21.1.tar.xz
199c30bbee8eed6943cb40144bcd70e9a55 kactivitymanagerd-5.21.1.tar.xz
2008db9a652a9c40be8f092efda2d6a8463 plasma-integration-5.21.1.tar.xz
20195d1ff516afb540c2a94297e6f816bb7 plasma-tests-5.21.1.tar.xz
202#b536cd7d2274c552b740fbfce9920a9f plymouth-kcm-5.21.1.tar.xz
203dfe793c51a0654a38a80404fbda4de57 xdg-desktop-portal-kde-5.21.1.tar.xz
2043a3de5e9e4caa35e95c009d2aa21cf04 drkonqi-5.21.1.tar.xz
205b4295f7d395e547f7936b76717e2d4cd plasma-vault-5.21.1.tar.xz
206caf1b7d83ec0c75c315fce35f4fcc1b4 plasma-browser-integration-5.21.1.tar.xz
207a19f5e8158322e91d08e93ccedc11feb kde-cli-tools-5.21.1.tar.xz
2083a626e27e0cf792142ad5269efe95ed9 systemsettings-5.21.1.tar.xz
2095d7d94423d252301cf236db930d21357 plasma-thunderbolt-5.21.1.tar.xz
210#b31c66f7c84c0d3177d116b3db06cd9e plasma-nano-5.21.1.tar.xz
211#e2a71cf0145b1f546bd4e1a483cd3017 plasma-phone-components-5.21.1.tar.xz
212eee25dec70bffac0dc0858d6a53f829e plasma-firewall-5.21.1.tar.xz
213de0b75f307c6674971079abd1c3e0d6e plasma-systemmonitor-5.21.1.tar.xz
214ee1d2b217efbc83d16218d4370bd6098 qqc2-breeze-style-5.21.1.tar.xz</literal>
215EOF</userinput></screen>
216
217 <note>
218 <para>
219 The breeze-grub, breeze-plymouth, and plymouth-kcm packages above are
220 all for customized support of <ulink
221 url="https://www.freedesktop.org/wiki/Software/Plymouth/"
222 >Plymouth</ulink>
223 which is designed to be run within an initial ram disk during boot (see
224 <xref linkend="initramfs"/>). The plasma-sdk package is optional and
225 used for software development. The plasma-nano package is used for
226 embedded systems and plasma-phone-components provides phone
227 functionality for Plasma.
228 </para>
229 </note>
230
231 </sect2>
232
233 <sect2 role="installation">
234 <title>Installation of Plasma5</title>
235
236 &as_root;
237
238 <para>
239 First, start a subshell that will exit on error:
240 </para>
241
242<screen><userinput>bash -e</userinput></screen>
243
244 <para>
245 Install all of the packages by running the following
246 commands:
247 </para>
248
249<screen><userinput>while read -r line; do
250
251 # Get the file name, ignoring comments and blank lines
252 if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
253 file=$(echo $line | cut -d" " -f2)
254
255 pkg=$(echo $file|sed 's|^.*/||') # Remove directory
256 packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
257
258 tar -xf $file
259 pushd $packagedir
260<!--
261 # Fix some build issues when generating some configuration files
262 case $name in
263 plasma-workspace)
264 sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
265 ;;
266
267 khotkeys)
268 sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
269 ;;
270
271 plasma-desktop)
272 sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
273 ;;
274 esac
275-->
276 mkdir build
277 cd build
278
279 cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
280 -DCMAKE_BUILD_TYPE=Release \
281 -DBUILD_TESTING=OFF \
282 -Wno-dev .. &amp;&amp;
283
284 make
285 as_root make install
286 popd
287
288<!-- some packages end up with files owned by root in $packagedir,
289 so use as_root for removing -->
290 as_root rm -rf $packagedir
291 as_root /sbin/ldconfig
292
293done &lt; plasma-&plasma5-version;.md5
294
295exit</userinput></screen>
296
297 <para>
298 If you did not set <envar>$KF5_PREFIX</envar> to
299 <filename>/usr</filename>, create symlinks to allow display managers to
300 find <application>Plasma</application>:
301 </para>
302
303<screen><userinput>as_root install -dvm 755 /usr/share/xsessions &amp;&amp;
304cd /usr/share/xsessions/ &amp;&amp;
305[ -e plasma.desktop ] ||
306as_root ln -sfv $KF5_PREFIX/share/xsessions/plasma.desktop &amp;&amp;
307as_root install -dvm 755 /usr/share/wayland-sessions &amp;&amp;
308cd /usr/share/wayland-sessions/ &amp;&amp;
309[ -e plasmawayland.desktop ] ||
310as_root ln -sfv $KF5_PREFIX/share/wayland-sessions/plasmawayland.desktop<!--
311cd $KF5_PREFIX/share/plasma/plasmoids
312
313for j in $(find -name \*.js); do
314 as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
315done--></userinput></screen>
316
317 <para revision="sysv">
318 Useless systemd units have been installed in
319 <filename class="directory">$KF5_PREFIX/lib</filename>. Remove
320 them now (as <systemitem class="username">root</systemitem>):
321 </para>
322
323<screen role="root"
324 revision="sysv"><userinput>rm -rf $KF5_PREFIX/lib/systemd</userinput></screen>
325
326 </sect2>
327<!--
328 <sect2 role="commands">
329 <title>Command Explanations</title>
330
331 <para>
332 <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
333 Create symbolic links so qml files can find needed javascript modules.
334 </para>
335
336 </sect2>
337-->
338 <sect2 role="configuration">
339 <title>Configuring Plasma</title>
340
341 <sect3>
342 <title>Linux PAM Configuration</title>
343
344 <para>
345 If you built Plasma with the recommended <application>Linux
346 PAM</application> support, create necessary configuration files by
347 running the following commands as the <systemitem
348 class="username">root</systemitem> user:
349 </para>
350
351<screen role="root"><userinput>cat &gt; /etc/pam.d/kde &lt;&lt; "EOF"
352<literal># Begin /etc/pam.d/kde
353
354auth requisite pam_nologin.so
355auth required pam_env.so
356
357auth required pam_succeed_if.so uid &gt;= 1000 quiet
358auth include system-auth
359
360account include system-account
361password include system-password
362session include system-session
363
364# End /etc/pam.d/kde</literal>
365EOF
366
367cat &gt; /etc/pam.d/kde-np &lt;&lt; "EOF"
368<literal># Begin /etc/pam.d/kde-np
369
370auth requisite pam_nologin.so
371auth required pam_env.so
372
373auth required pam_succeed_if.so uid &gt;= 1000 quiet
374auth required pam_permit.so
375
376account include system-account
377password include system-password
378session include system-session
379
380# End /etc/pam.d/kde-np</literal>
381EOF
382
383cat &gt; /etc/pam.d/kscreensaver &lt;&lt; "EOF"
384<literal># Begin /etc/pam.d/kscreensaver
385
386auth include system-auth
387account include system-account
388
389# End /etc/pam.d/kscreensaver</literal>
390EOF</userinput></screen>
391 </sect3>
392 </sect2>
393
394 <sect2 role="starting">
395 <title>Starting Plasma5</title>
396
397 <para revision="sysv">
398 You can start <application>Plasma5</application> from runlevel 3, using
399 <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
400 such as <xref linkend="lightdm"/>.
401 </para>
402
403 <para revision="systemd">
404 You can start <application>Plasma5</application> from a TTY, using
405 <xref linkend="xinit"/><!--, or from a graphical display manager, such as
406 <xref linkend="sddm"/>-->.
407 </para>
408
409 <para>
410 To start <application>Plasma 5</application> using <xref linkend="xinit"/>,
411 run the following commands:
412 </para>
413
414<screen><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
415<literal>dbus-launch --exit-with-session $KF5_PREFIX/bin/startplasma-x11</literal>
416EOF
417
418startx</userinput></screen>
419
420 <para>
421 The X session starts on the first unused virtual terminal, normally vt7.
422 You can switch to another vt<emphasis>n</emphasis> simultaneously
423 pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
424 (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
425 normally started at vt7, use Ctrl-Alt-F7. The vt where the command
426 <command>startx</command> was executed will display many messages,
427 including X starting messages, applications automatically started with
428 the session, and eventually, some warning and error messages. You may
429 prefer to redirect those messages to a log file, which not only will keep
430 the initial vt uncluttered, but can also be used for debugging purposes. This
431 can be done starting X with:
432 </para>
433
434 <screen><userinput>startx &amp;&gt; ~/x-session-errors</userinput></screen>
435
436 <para>
437 When shutting down or rebooting, the shutdown messages appear on the vt
438 where X was running. If you wish to see those messages, simultaneously
439 press keys Alt-F7 (assuming that X was running on vt7).
440 </para>
441<!-- Now the entry is "plasma (X11)" for Xorg, so I guess this is
442 not needed anymore:
443 <para>
444 If you intend to start <application>Plasma</application> using a
445 display manager such as <xref linkend="lightdm"/>, there will be two entries
446 for <application>Plasma</application>, one for use with
447 <application>Xorg</application>, and another for
448 <application>Wayland</application>. Modify the
449 <application>Xorg</application> entry with the following command, as the
450 <systemitem class="username">root</systemitem> user, so that you can
451 differentiate between the two:</para>
452
453<screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
454-->
455
456 </sect2>
457
458 <sect2 role="content">
459 <title>Contents</title>
460
461 <segmentedlist>
462 <segtitle>Installed Programs</segtitle>
463 <segtitle>Installed Libraries</segtitle>
464 <segtitle>Installed Directories</segtitle>
465
466 <seglistitem>
467 <seg>
468 There are too many plasma programs (63 in /opt/kf5/bin) to list
469 separately here.
470 </seg>
471 <seg>
472 There are too many plasma libraries (40 in /opt/kf5/lib) to list
473 separately here.
474 </seg>
475 <seg>
476 There are too many plasma directories (over 1000 in /opt/kf5) to
477 list separately here.
478 </seg>
479 </seglistitem>
480 </segmentedlist>
481
482 </sect2>
483
484</sect1>
Note: See TracBrowser for help on using the repository browser.