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

10.0 10.1 11.0 9.1 ken/refactor-virt lazarus qt5new trunk xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since d9907c9 was d9907c9, checked in by Bruce Dubbs <bdubbs@…>, 20 months ago

Update to plasma5-5.18.1.
Update to cups-filters-1.27.1.
Tag KDE and printing/scanning chapters.

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

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