source: kde/plasma5/plasma-all.xml@ 56c69c1e

11.0 11.1 11.2 lazarus plabs/python-mods qt5new trunk upgradedb xry111/intltool xry111/soup3 xry111/test-20220226
Last change on this file since 56c69c1e was 56c69c1e, checked in by Pierre Labastie <pierre.labastie@…>, 17 months ago

Add accoutsservice as a runtime dep of plasma

  • Property mode set to 100644
File size: 17.0 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 "140 MB">
11 <!ENTITY plasma5-buildsize "1.6 GB (355 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 <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 &lfs110a_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 <!-- does not seem to be needed as of 5.22.4 <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="accountsservice"/> and
111 <xref role="runtime" linkend="smartmontools"/>
112 </para>
113
114 <bridgehead renderas="sect4">Optional</bridgehead>
115 <para role="optional">
116 <xref linkend="glu"/>,
117 <xref linkend='ibus'/>,
118 <xref linkend="xorg-synaptics-driver"/>,
119 <ulink url="http://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="http://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 <para condition="html" role="usernotes">User Notes:
133 <ulink url="&blfs-wiki;/kf5"/></para>
134
135 <sect2>
136 <title>Downloading KDE Plasma5</title>
137
138 <para>
139 The easiest way to get the KDE Plasma5 packages is to use a single
140 <command>wget</command> to fetch them all at once:
141 </para>
142
143<screen><userinput>url=https://download.kde.org/stable/plasma/&plasma5-version;/
144wget -r -nH -nd -A '*.xz' -np $url</userinput>
145<literal>
146The options used here are:
147 -r recurse through child directories
148 -nH disable generation of host-prefixed directories
149 -nd do not create a hierarchy of directories
150 -A '*.xz' just get the *.xz files
151 -np don't get parent directories</literal></screen>
152
153 </sect2>
154
155 <sect2>
156 <title>Setting Package Order</title>
157
158 <para>
159 The order of building files is important due to internal dependencies.
160 Create the list of files in the proper order as follows:
161 </para>
162
163<screen><userinput>cat &gt; plasma-&plasma5-version;.md5 &lt;&lt; "EOF"
164<literal>7fab69fa5fc3211b35e3d03f1172831a kdecoration-5.22.4.tar.xz
165a587fecf0473c225f39a7f8a7c611d3b libkscreen-5.22.4.tar.xz
166115f8e14d6ef58715183eb8036c431c1 libksysguard-5.22.4.tar.xz
167516a58571f6daeb60a2509057e67712b breeze-5.22.4.tar.xz
1683b06f3768fc345893625ef44d7e72a98 breeze-gtk-5.22.4.tar.xz
169049dabd694abed120b4f84d37f05de8c layer-shell-qt-5.22.4.tar.xz
17017af84caeb942de9a8e3d819f20645b0 kscreenlocker-5.22.4.tar.xz
171ffe09b47f6cc20d13ec311edeb13a9b3 oxygen-5.22.4.tar.xz
172916bfa4ce6b40ca8ef80b75018d63ab1 kinfocenter-5.22.4.tar.xz
173365f7cd632d41447561ec1bdf7497bba kwayland-server-5.22.4.tar.xz
17409cf360780185b33fca9561684a0f41f kwin-5.22.4.tar.xz
1755cb1ab2a9d3ce0c05eba07ef4c8ac478 plasma-workspace-5.22.4.tar.xz
17675dd5e0fed93781f0ae031a091dcce4b plasma-disks-5.22.4.tar.xz
1773d7abfe0952b356cc12cbd75be14f5e0 bluedevil-5.22.4.tar.xz
1782515439a0daaf325b0fcf9ce1a537660 kde-gtk-config-5.22.4.tar.xz
1798f2f4b902c98d7890dc1ec3756c27871 khotkeys-5.22.4.tar.xz
180aa03bf8d1c799a4410b567b44b47f6cd kmenuedit-5.22.4.tar.xz
1816fab0d760e9e6a33255441aab3874b2f kscreen-5.22.4.tar.xz
1823dae9ce525c52ac3bacaff464dc4264c kwallet-pam-5.22.4.tar.xz
183fa9772ef7737037992aea52739aea95a kwayland-integration-5.22.4.tar.xz
18451502b6a48f2b7790364881a578cdd1b kwrited-5.22.4.tar.xz
1856d85652d5fa13953370bc4f37247e3b4 milou-5.22.4.tar.xz
18661c7fc4c00637715e8d0c4491298b5b7 plasma-nm-5.22.4.tar.xz
18731272515681adc5d0ca987a9dc182de5 plasma-pa-5.22.4.tar.xz
18895aefdbfd0a3cd6b871e50968ccf43d9 plasma-workspace-wallpapers-5.22.4.tar.xz
1899a36fb70a6d1f1f637d75a75e77eb9ba polkit-kde-agent-1-5.22.4.tar.xz
190f7860ee18c994a8b87f39965b53f4f1f powerdevil-5.22.4.tar.xz
191ba7687bdea331a62127f7cc69029c194 plasma-desktop-5.22.4.tar.xz
1929c393f6da042841ed8cf41f9ad126b5c kdeplasma-addons-5.22.4.tar.xz
193bf508d7b503f1923fdb5fbd22f957981 kgamma5-5.22.4.tar.xz
194239d00ede4c0e941dc6407f8510f1678 ksshaskpass-5.22.4.tar.xz
195#ba59a194b4812db25022c189e129151f plasma-sdk-5.22.4.tar.xz
1963ecfe0501ce2ec0f8c8bda3a01c78be7 sddm-kcm-5.22.4.tar.xz
197a81e62bd36f3db28712274da80ed52a4 discover-5.22.4.tar.xz
198#9abba589089c1088e1836cabe9e593f6 breeze-grub-5.22.4.tar.xz
199#d038d1db0f1ed5e80b9d22a537dd1872 breeze-plymouth-5.22.4.tar.xz
2007aef306ec8c2131f0fa22d2b558f73fb kactivitymanagerd-5.22.4.tar.xz
2018c30da2b1dbcfbfaa715c050339b0e0a plasma-integration-5.22.4.tar.xz
202006171ce3edae4b67d27b1577cdc84a1 plasma-tests-5.22.4.tar.xz
203#442fd33f46a982eeeb925fd6f7d919b1 plymouth-kcm-5.22.4.tar.xz
204900994c0628b8b3767c83db0b4f16e0c xdg-desktop-portal-kde-5.22.4.tar.xz
20561ebe5891cf9adcd62d32c5069573ff0 drkonqi-5.22.4.tar.xz
206d464d91d37cf12da1721abc18ec94140 plasma-vault-5.22.4.tar.xz
2078c9a2286634cb89fb04d0278c6af8f8c plasma-browser-integration-5.22.4.tar.xz
208257e25f2388014932ecf786dd9e49bd5 kde-cli-tools-5.22.4.tar.xz
2099314599d78ed6683018ff5a7b69d2a08 systemsettings-5.22.4.tar.xz
2103ea20e78932f2a487d932acd1eff10f7 plasma-thunderbolt-5.22.4.tar.xz
211#0ecfa8ed1962f4f842967ed7b66d14f8 plasma-nano-5.22.4.tar.xz
212#157a441ad0519936dcb75856ae83010e plasma-phone-components-5.22.4.tar.xz
21371b0da480c6b91b6445b6bdbe452bdae plasma-firewall-5.22.4.tar.xz
214026a4d3cd063ba86e77c9ffa711aa769 plasma-systemmonitor-5.22.4.tar.xz
2150d72d2e9f5d6a3975068e1a472ce9982 qqc2-breeze-style-5.22.4.tar.xz
216171c556167b17fd2b16783015c3f8ae6 ksystemstats-5.22.4.tar.xz</literal>
217EOF</userinput></screen>
218
219 <note>
220 <para>
221 The breeze-grub, breeze-plymouth, and plymouth-kcm packages above are
222 all for customized support of <ulink
223 url="https://www.freedesktop.org/wiki/Software/Plymouth/"
224 >Plymouth</ulink>
225 which is designed to be run within an initial ram disk during boot (see
226 <xref linkend="initramfs"/>). The plasma-sdk package is optional and
227 used for software development. The plasma-nano package is used for
228 embedded systems and plasma-phone-components provides phone
229 functionality for Plasma.
230 </para>
231 </note>
232
233 </sect2>
234
235 <sect2 role="installation">
236 <title>Installation of Plasma5</title>
237
238 &as_root;
239
240 <para>
241 First, start a subshell that will exit on error:
242 </para>
243
244<screen><userinput>bash -e</userinput></screen>
245
246 <para>
247 Install all of the packages by running the following
248 commands:
249 </para>
250
251<screen><userinput>while read -r line; do
252
253 # Get the file name, ignoring comments and blank lines
254 if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
255 file=$(echo $line | cut -d" " -f2)
256
257 pkg=$(echo $file|sed 's|^.*/||') # Remove directory
258 packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
259
260 tar -xf $file
261 pushd $packagedir
262<!--
263 # Fix some build issues when generating some configuration files
264 case $name in
265 plasma-workspace)
266 sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
267 ;;
268
269 khotkeys)
270 sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
271 ;;
272
273 plasma-desktop)
274 sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
275 ;;
276 esac
277-->
278 mkdir build
279 cd build
280
281 cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
282 -DCMAKE_BUILD_TYPE=Release \
283 -DBUILD_TESTING=OFF \
284 -Wno-dev .. &amp;&amp;
285
286 make
287 as_root make install
288 popd
289
290<!-- some packages end up with files owned by root in $packagedir,
291 so use as_root for removing -->
292 as_root rm -rf $packagedir
293 as_root /sbin/ldconfig
294
295done &lt; plasma-&plasma5-version;.md5
296
297exit</userinput></screen>
298
299 <para>
300 If you did not set <envar>$KF5_PREFIX</envar> to
301 <filename>/usr</filename>, create symlinks to allow display managers to
302 find <application>Plasma</application>:
303 </para>
304
305<screen><userinput>as_root install -dvm 755 /usr/share/xsessions &amp;&amp;
306cd /usr/share/xsessions/ &amp;&amp;
307[ -e plasma.desktop ] ||
308as_root ln -sfv $KF5_PREFIX/share/xsessions/plasma.desktop &amp;&amp;
309as_root install -dvm 755 /usr/share/wayland-sessions &amp;&amp;
310cd /usr/share/wayland-sessions/ &amp;&amp;
311[ -e plasmawayland.desktop ] ||
312as_root ln -sfv $KF5_PREFIX/share/wayland-sessions/plasmawayland.desktop<!--
313cd $KF5_PREFIX/share/plasma/plasmoids
314
315for j in $(find -name \*.js); do
316 as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
317done--></userinput></screen>
318
319 <para revision="sysv">
320 Useless systemd units have been installed in
321 <filename class="directory">$KF5_PREFIX/lib</filename>. Remove
322 them now (as <systemitem class="username">root</systemitem>):
323 </para>
324
325<screen role="root"
326 revision="sysv"><userinput>rm -rf $KF5_PREFIX/lib/systemd</userinput></screen>
327
328 </sect2>
329<!--
330 <sect2 role="commands">
331 <title>Command Explanations</title>
332
333 <para>
334 <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
335 Create symbolic links so qml files can find needed javascript modules.
336 </para>
337
338 </sect2>
339-->
340 <sect2 role="configuration">
341 <title>Configuring Plasma</title>
342
343 <sect3>
344 <title>Linux PAM Configuration</title>
345
346 <para>
347 If you built Plasma with the recommended <application>Linux
348 PAM</application> support, create necessary configuration files by
349 running the following commands as the <systemitem
350 class="username">root</systemitem> user:
351 </para>
352
353<screen role="root"><userinput>cat &gt; /etc/pam.d/kde &lt;&lt; "EOF"
354<literal># Begin /etc/pam.d/kde
355
356auth requisite pam_nologin.so
357auth required pam_env.so
358
359auth required pam_succeed_if.so uid &gt;= 1000 quiet
360auth include system-auth
361
362account include system-account
363password include system-password
364session include system-session
365
366# End /etc/pam.d/kde</literal>
367EOF
368
369cat &gt; /etc/pam.d/kde-np &lt;&lt; "EOF"
370<literal># Begin /etc/pam.d/kde-np
371
372auth requisite pam_nologin.so
373auth required pam_env.so
374
375auth required pam_succeed_if.so uid &gt;= 1000 quiet
376auth required pam_permit.so
377
378account include system-account
379password include system-password
380session include system-session
381
382# End /etc/pam.d/kde-np</literal>
383EOF
384
385cat &gt; /etc/pam.d/kscreensaver &lt;&lt; "EOF"
386<literal># Begin /etc/pam.d/kscreensaver
387
388auth include system-auth
389account include system-account
390
391# End /etc/pam.d/kscreensaver</literal>
392EOF</userinput></screen>
393 </sect3>
394 </sect2>
395
396 <sect2 role="starting">
397 <title>Starting Plasma5</title>
398
399 <para revision="sysv">
400 You can start <application>Plasma5</application> from runlevel 3, using
401 <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
402 such as <xref linkend="lightdm"/>.
403 </para>
404
405 <para revision="systemd">
406 You can start <application>Plasma5</application> from a TTY, using
407 <xref linkend="xinit"/><!--, or from a graphical display manager, such as
408 <xref linkend="sddm"/>-->.
409 </para>
410
411 <para>
412 To start <application>Plasma 5</application> using <xref linkend="xinit"/>,
413 run the following commands:
414 </para>
415
416<screen><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
417<literal>dbus-launch --exit-with-session $KF5_PREFIX/bin/startplasma-x11</literal>
418EOF
419
420startx</userinput></screen>
421
422 <para>
423 The X session starts on the first unused virtual terminal, normally vt7.
424 You can switch to another vt<emphasis>n</emphasis> simultaneously
425 pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
426 (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
427 normally started at vt7, use Ctrl-Alt-F7. The vt where the command
428 <command>startx</command> was executed will display many messages,
429 including X starting messages, applications automatically started with
430 the session, and eventually, some warning and error messages. You may
431 prefer to redirect those messages to a log file, which not only will keep
432 the initial vt uncluttered, but can also be used for debugging purposes. This
433 can be done starting X with:
434 </para>
435
436 <screen><userinput>startx &amp;&gt; ~/x-session-errors</userinput></screen>
437
438 <para>
439 When shutting down or rebooting, the shutdown messages appear on the vt
440 where X was running. If you wish to see those messages, simultaneously
441 press keys Alt-F7 (assuming that X was running on vt7).
442 </para>
443<!-- Now the entry is "plasma (X11)" for Xorg, so I guess this is
444 not needed anymore:
445 <para>
446 If you intend to start <application>Plasma</application> using a
447 display manager such as <xref linkend="lightdm"/>, there will be two entries
448 for <application>Plasma</application>, one for use with
449 <application>Xorg</application>, and another for
450 <application>Wayland</application>. Modify the
451 <application>Xorg</application> entry with the following command, as the
452 <systemitem class="username">root</systemitem> user, so that you can
453 differentiate between the two:</para>
454
455<screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
456-->
457
458 </sect2>
459
460 <sect2 role="content">
461 <title>Contents</title>
462
463 <segmentedlist>
464 <segtitle>Installed Programs</segtitle>
465 <segtitle>Installed Libraries</segtitle>
466 <segtitle>Installed Directories</segtitle>
467
468 <seglistitem>
469 <seg>
470 There are too many plasma programs (63 in /opt/kf5/bin) to list
471 separately here.
472 </seg>
473 <seg>
474 There are too many plasma libraries (40 in /opt/kf5/lib) to list
475 separately here.
476 </seg>
477 <seg>
478 There are too many plasma directories (over 1000 in /opt/kf5) to
479 list separately here.
480 </seg>
481 </seglistitem>
482 </segmentedlist>
483
484 </sect2>
485
486</sect1>
Note: See TracBrowser for help on using the repository browser.