source: kde/plasma5/plasma-all.xml@ 1c8c15c

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 1c8c15c was 1c8c15c, checked in by Pierre Labastie <pieere@…>, 4 years ago

Fix <para> format: kde chapter

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@22818 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 16.1 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 "http://download.kde.org/stable/plasma/&plasma5-version;">
8 <!ENTITY plasma5-download-ftp " ">
9 <!ENTITY plasma5-md5sum "See Below">
10 <!ENTITY plasma5-size "108 MB">
11 <!ENTITY plasma5-buildsize "1.2 GB (294 MB installed)">
12 <!ENTITY plasma5-time "17 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 <othername>$LastChangedBy: bdubbs $</othername>
20 <date>$Date: 2015-09-24 16:44:04 -0500 (Thu, 24 Sep 2015) $</date>
21 </sect1info>
22
23 <title>Building Plasma 5</title>
24
25 <indexterm zone="plasma5-build">
26 <primary sortas="a-kde-plasma">KDE Plasma 5</primary>
27 </indexterm>
28
29 <para>
30 KDE Plasma 5 is a collection of packages based on top of KDE Frameworks
31 5 and QML. They implement the KDE Display Environment (Plasma 5).
32 </para>
33
34 &lfs91_checked;
35
36 <para>
37 The instructions below build all of the Plasma 5 packages in one
38 step by using a bash script.
39 </para>
40
41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
44 <para>
45 Download (HTTP): <ulink url="&plasma5-download-http;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download (FTP): <ulink url="&plasma5-download-ftp;"/>
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download MD5 sum: &plasma5-md5sum;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Download size: &plasma5-size;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated disk space required: &plasma5-buildsize;
66 </para>
67 </listitem>
68 <listitem>
69 <para>
70 Estimated build time: &plasma5-time;
71 </para>
72 </listitem>
73 </itemizedlist>
74
75 <bridgehead renderas="sect3">Plasma 5 Dependencies</bridgehead>
76
77 <bridgehead renderas="sect4">Required</bridgehead>
78 <para role="required">
79 <!--<xref linkend="fontforge"/>,-->
80 <xref linkend="GConf"/>,
81 <xref linkend="gtk2"/>,
82 <xref linkend="gtk3"/>,
83 <xref linkend="kf5-frameworks"/>,
84 <xref linkend="libpwquality"/>,
85 <xref linkend="libxkbcommon"/>,
86 <xref linkend="mesa"/> built with <xref linkend="wayland"/>,
87 <xref linkend="NetworkManager"/>,
88 <xref linkend="pipewire"/>,
89 <xref linkend="pulseaudio"/>,
90 <xref linkend="qca"/>,
91 <xref linkend="sassc"/>,
92 <xref linkend="taglib"/>, and
93 <xref linkend="xcb-util-cursor"/>
94 </para>
95
96 <bridgehead renderas="sect4">Recommended</bridgehead>
97 <para role="recommended">
98 <xref linkend="fftw"/>,
99 <xref linkend="gsettings-desktop-schemas"/>,
100 <xref linkend="libdbusmenu-qt"/>,
101 <xref linkend="libcanberra"/>,
102 <xref linkend="libinput"/>,
103 <xref linkend="linux-pam"/>,
104 <xref linkend="lm_sensors"/>,
105 <xref linkend="oxygen-icons5"/>, and
106 <xref linkend="pciutils"/>
107 </para>
108
109 <bridgehead renderas="sect4">Optional</bridgehead>
110 <para role="optional">
111 <xref linkend="glu"/>,
112 <xref linkend='ibus'/>,
113 <xref linkend="xorg-synaptics-driver"/>,
114 <ulink url="http://distributions.freedesktop.org/wiki/AppStream">appstream-qt</ulink>,
115 <ulink url="https://www.kdevelop.org/">KDevPlatform</ulink>,
116 <ulink url="http://www.catb.org/gpsd/libgps.html">libgps</ulink>,
117 <ulink url="https://github.com/libhybris/libhybris">libhybris</ulink>,
118 <ulink url="http://sourceforge.net/projects/libraw1394/">libraw1394</ulink>,
119 <ulink url="https://bitbucket.org/godsme/mockcpp">mockcpp</ulink>,
120 <ulink url="https://www.freedesktop.org/software/PackageKit/releases/">packagekit-qt</ulink>,
121 <ulink url="http://qalculate.github.io/">Qalculate</ulink>,
122 <ulink url="https://launchpad.net/qapt">Qapt</ulink>,
123 <ulink url="https://github.com/osiam/osiam">SCIM</ulink>, and
124 <ulink url="http://www.dest-unreach.org/socat/">socat</ulink> (for pam_kwallet)
125 </para>
126
127 <para condition="html" role="usernotes">User Notes:
128 <ulink url="&blfs-wiki;/kf5"/></para>
129
130 <sect2>
131 <title>Downloading KDE Plasma5</title>
132
133 <para>
134 The easiest way to get the KDE Plasma5 packages is to use a single
135 <command>wget</command> to fetch them all at once:
136 </para>
137
138<screen><userinput>url=http://download.kde.org/stable/plasma/&plasma5-version;/
139wget -r -nH -nd -A '*.xz' -np $url</userinput>
140<literal>
141The options used here are:
142 -r recurse through child directories
143 -nH disable generation of host-prefixed directories
144 -nd do not create a hierarchy of directories
145 -A '*.xz' just get the *.xz files
146 -np don't get parent directories</literal></screen>
147
148 </sect2>
149
150 <sect2>
151 <title>Setting Package Order</title>
152
153 <para>
154 The order of building files is important due to internal dependencies.
155 Create the list of files in the proper order as follows:
156 </para>
157
158<screen><userinput>cat &gt; plasma-&plasma5-version;.md5 &lt;&lt; "EOF"
159<literal>be7cccb3859c253740ad20eae56a1457 kdecoration-5.18.1.tar.xz
16084b92ff5c7ab70537bc757122375ab3c libkscreen-5.18.1.tar.xz
161645e7d0e5167d89abfcb0011748179a8 libksysguard-5.18.1.tar.xz
1620d6769306901883a9aadaaed4c199314 breeze-5.18.1.tar.xz
1639c797eddc66820e119a32b3ca0e54327 breeze-gtk-5.18.1.tar.xz
1642369c961fee61992bf16f8e5aabc296a kscreenlocker-5.18.1.tar.xz
165da5b0b9caca27a0b7faea3aac732e5d5 oxygen-5.18.1.tar.xz
166c687fdd7a0c36a3a6d7ebd063f3aee61 kinfocenter-5.18.1.tar.xz
167ae2bf8875c1b374d172267c7a0cca982 ksysguard-5.18.1.tar.xz
168216b067f13f43238c7515815001fc862 kwin-5.18.1.tar.xz
16997c106ec13bd9ecf87cc61e1cc29f374 plasma-workspace-5.18.1.tar.xz
1708d3ea52e9b215523225e316d47469f3f bluedevil-5.18.1.tar.xz
1717c16855fe0c390a9eaa60d2f4e624736 kde-gtk-config-5.18.1.tar.xz
172597ac5c22e2dc7bad5773781c4f5c563 khotkeys-5.18.1.tar.xz
173cd59deb1769ed3fdcfd620f1d5e82676 kmenuedit-5.18.1.tar.xz
174e957ca2f6374385e3b5598f839f843a5 kscreen-5.18.1.tar.xz
17525db35f344bd12fdf6d6e54b87d4b90c kwallet-pam-5.18.1.tar.xz
1768bda1526aa7f9dbf6aa842b08cf22655 kwayland-integration-5.18.1.tar.xz
177d0a29aed4ee8bcd9fce3e545f82832be kwrited-5.18.1.tar.xz
1782f4252bc1a8b07062e57d229fc3bc361 milou-5.18.1.tar.xz
1798663fa971594bc70d6898e8604f8c99a plasma-nm-5.18.1.tar.xz
1800554888991a1f1f70cbbb95afa48184a plasma-pa-5.18.1.tar.xz
18125fcaf7cb52f20b3126af9baa1409e3c plasma-workspace-wallpapers-5.18.1.tar.xz
1820b88def5b87e822aa7370d91dfd07913 polkit-kde-agent-1-5.18.1.tar.xz
1830326bf85fb50e15d5e78c43be9457993 powerdevil-5.18.1.tar.xz
18458ec01d70d18f23a03ec2040beb506f1 plasma-desktop-5.18.1.tar.xz
1859a44fb928f5dd22a695d38617660aeee kdeplasma-addons-5.18.1.tar.xz
1867200c6ebdc63dde79f64a9b2472b2d37 kgamma5-5.18.1.tar.xz
18778d68fd989b451a8e75fd9278a0c1947 ksshaskpass-5.18.1.tar.xz
188#4c907670bbe788499038254311f6ac0b plasma-sdk-5.18.1.tar.xz
1897533a7a459d476ece00d558d4fc9a8f7 sddm-kcm-5.18.1.tar.xz
1902b2351beb674ce01cca0b58d3c8a49b2 user-manager-5.18.1.tar.xz
191c76653dce9c3f9f1ac1edae6fe342ee7 discover-5.18.1.tar.xz
192#ca25ee8ad60b64d19850ccba8994547c breeze-grub-5.18.1.tar.xz
193#c8377f0f2ac3109014c8062e74145def breeze-plymouth-5.18.1.tar.xz
1947b5e6cbb5d84b69745030773bea176c0 kactivitymanagerd-5.18.1.tar.xz
195fa2e316a15f24c64a71c36d30b7f7585 plasma-integration-5.18.1.tar.xz
196a5d8cc4a47ba59969f98be0cc5800f83 plasma-tests-5.18.1.tar.xz
197#c13ae6eaa29760e67a9c17d6a1a48153 plymouth-kcm-5.18.1.tar.xz
198d6e2d1a982c83a553607d46a04fcfff7 xdg-desktop-portal-kde-5.18.1.tar.xz
1995b7bf736b767d40d77a4c51bca9708e0 drkonqi-5.18.1.tar.xz
2001ccf74eb8b851b1dba87f2cd3ed54052 plasma-vault-5.18.1.tar.xz
201a0f85c77e48c35a17cc326491155249e plasma-browser-integration-5.18.1.tar.xz
2027d73463b9115234991a631dc6741bab4 kde-cli-tools-5.18.1.tar.xz
203d420ca0680c67496b8572b143aae1dc9 systemsettings-5.18.1.tar.xz
204a2ae6b65f5ae2df57cfb29bf8ae56eda plasma-thunderbolt-5.18.1.tar.xz
205#3df1a7d13f5cce484ce8fb684c1c0015 plasma-nano-5.18.1.tar.xz
206#498e4c99016d51bc44abdb8416e7dba2 plasma-phone-components-5.18.1.tar.xz</literal>
207EOF</userinput></screen>
208
209 <note>
210 <para>
211 The breeze-grub, breeze-plymouth, and plymouth-kcm packages above are
212 all for customized support of <ulink
213 url="https://www.freedesktop.org/wiki/Software/Plymouth/"
214 >Plymouth</ulink>
215 which is designed to be run within an initial ram disk during boot (see
216 <xref linkend="initramfs"/>). The plasma-sdk package is optional and
217 used for software development. The plasma-nano package is used for
218 embedded systems and plasma-phone-components provides phone
219 functionality for Plasma.
220 </para>
221 </note>
222
223 </sect2>
224
225 <sect2 role="installation">
226 <title>Installation of Plasma5</title>
227
228 &as_root;
229
230 <para>
231 First, start a subshell that will exit on error:
232 </para>
233
234<screen><userinput>bash -e</userinput></screen>
235
236 <para>
237 Install all of the packages by running the following
238 commands:
239 </para>
240
241<screen><userinput>while read -r line; do
242
243 # Get the file name, ignoring comments and blank lines
244 if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
245 file=$(echo $line | cut -d" " -f2)
246
247 pkg=$(echo $file|sed 's|^.*/||') # Remove directory
248 packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
249
250 tar -xf $file
251 pushd $packagedir
252
253 # Fix some build issues when generating some configuration files
254 case $name in
255 plasma-workspace)
256 sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
257 ;;
258
259 khotkeys)
260 sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
261 ;;
262
263 plasma-desktop)
264 sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
265 ;;
266 esac
267
268 mkdir build
269 cd build
270
271 cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
272 -DCMAKE_BUILD_TYPE=Release \
273 -DBUILD_TESTING=OFF \
274 -Wno-dev .. &amp;&amp;
275
276 make
277 as_root make install
278 popd
279
280<!-- some packages end up with files owned by root in $packagedir,
281 so use as_root for removing -->
282 as_root rm -rf $packagedir
283 as_root /sbin/ldconfig
284
285done &lt; plasma-&plasma5-version;.md5
286
287exit</userinput></screen>
288
289 <para>
290 If you did not set <envar>$KF5_PREFIX</envar> to
291 <filename>/usr</filename>, create symlinks to allow display managers to
292 find <application>Plasma</application>:
293 </para>
294
295<screen><userinput>as_root install -dvm 755 /usr/share/xsessions &amp;&amp;
296cd /usr/share/xsessions/ &amp;&amp;
297[ -e plasma.desktop ] ||
298as_root ln -sfv $KF5_PREFIX/share/xsessions/plasma.desktop &amp;&amp;
299as_root install -dvm 755 /usr/share/wayland-sessions &amp;&amp;
300cd /usr/share/wayland-sessions/ &amp;&amp;
301[ -e plasma.desktop ] ||
302as_root ln -sfv $KF5_PREFIX/share/wayland-sessions/plasma.desktop<!--
303cd $KF5_PREFIX/share/plasma/plasmoids
304
305for j in $(find -name \*.js); do
306 as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
307done--></userinput></screen>
308
309 </sect2>
310<!--
311 <sect2 role="commands">
312 <title>Command Explanations</title>
313
314 <para>
315 <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
316 Create symbolic links so qml files can find needed javascript modules.
317 </para>
318
319 </sect2>
320-->
321 <sect2 role="configuration">
322 <title>Configuring Plasma</title>
323
324 <sect3>
325 <title>Linux PAM Configuration</title>
326
327 <para>
328 If you built Plasma with the recommended <application>Linux
329 PAM</application> support, create necessary configuration files by
330 running the following commands as the <systemitem
331 class="username">root</systemitem> user:
332 </para>
333
334<screen role="root"><userinput>cat &gt; /etc/pam.d/kde &lt;&lt; "EOF"
335<literal># Begin /etc/pam.d/kde
336
337auth requisite pam_nologin.so
338auth required pam_env.so
339
340auth required pam_succeed_if.so uid &gt;= 1000 quiet
341auth include system-auth
342
343account include system-account
344password include system-password
345session include system-session
346
347# End /etc/pam.d/kde</literal>
348EOF
349
350cat &gt; /etc/pam.d/kde-np &lt;&lt; "EOF"
351<literal># Begin /etc/pam.d/kde-np
352
353auth requisite pam_nologin.so
354auth required pam_env.so
355
356auth required pam_succeed_if.so uid &gt;= 1000 quiet
357auth required pam_permit.so
358
359account include system-account
360password include system-password
361session include system-session
362
363# End /etc/pam.d/kde-np</literal>
364EOF
365
366cat &gt; /etc/pam.d/kscreensaver &lt;&lt; "EOF"
367<literal># Begin /etc/pam.d/kscreensaver
368
369auth include system-auth
370account include system-account
371
372# End /etc/pam.d/kscreensaver</literal>
373EOF</userinput></screen>
374 </sect3>
375 </sect2>
376
377 <sect2 role="starting">
378 <title>Starting Plasma5</title>
379
380 <para revision="sysv">
381 You can start <application>Plasma5</application> from runlevel 3, using
382 <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
383 such as <xref linkend="lightdm"/>.
384 </para>
385
386 <para revision="systemd">
387 You can start <application>Plasma5</application> from a TTY, using
388 <xref linkend="xinit"/><!--, or from a graphical display manager, such as
389 <xref linkend="sddm"/>-->.
390 </para>
391
392 <para>
393 To start <application>Plasma 5</application> using <xref linkend="xinit"/>,
394 run the following commands:
395 </para>
396
397<screen><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
398<literal>dbus-launch --exit-with-session $KF5_PREFIX/bin/startplasma-x11</literal>
399EOF
400
401startx</userinput></screen>
402
403 <para>
404 The X session starts on the first unused virtual terminal, normally vt7.
405 You can switch to another vt<emphasis>n</emphasis> simultaneously
406 pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
407 (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
408 normally started at vt7, use Ctrl-Alt-F7. The vt where the command
409 <command>startx</command> was executed will display many messages,
410 including X starting messages, applications automatically started with
411 the session, and eventually, some warning and error messages. You may
412 prefer to redirect those messages to a log file, which not only will keep
413 the initial vt uncluttered, but can also be used for debugging purposes. This
414 can be done starting X with:
415 </para>
416
417 <screen><userinput>startx &amp;&gt; ~/x-session-errors</userinput></screen>
418
419 <para>
420 When shutting down or rebooting, the shutdown messages appear on the vt
421 where X was running. If you wish to see those messages, simultaneously
422 press keys Alt-F7 (assuming that X was running on vt7).
423 </para>
424
425 <para>
426 If you intend to start <application>Plasma</application> using a
427 display manager such as <xref linkend="lightdm"/>, there will be two entries
428 for <application>Plasma</application>, one for use with
429 <application>Xorg</application>, and another for
430 <application>Wayland</application>. Modify the
431 <application>Xorg</application> entry with the following command, as the
432 <systemitem class="username">root</systemitem> user, so that you can
433 differentiate between the two:</para>
434
435<screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
436
437
438 </sect2>
439
440 <sect2 role="content">
441 <title>Contents</title>
442
443 <segmentedlist>
444 <segtitle>Installed Programs</segtitle>
445 <segtitle>Installed Libraries</segtitle>
446 <segtitle>Installed Directories</segtitle>
447
448 <seglistitem>
449 <seg>
450 There are too many plasma programs (50 in /opt/kf5/bin) to list
451 separately here.
452 </seg>
453 <seg>
454 There are too many plasma libraries (39 in /opt/kf5/lib) to list
455 separately here.
456 </seg>
457 <seg>
458 There are too many plasma directories (over 1000 in /opt/kf5) to
459 list separately here.
460 </seg>
461 </seglistitem>
462 </segmentedlist>
463
464 </sect2>
465
466</sect1>
Note: See TracBrowser for help on using the repository browser.