source: kde/plasma5/plasma-all.xml@ 9d8bf2a

10.0 10.1 11.0 qt5new trunk xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 9d8bf2a was 9d8bf2a, checked in by Bruce Dubbs <bdubbs@…>, 13 months ago

Update to plasma-5.19.4.

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

  • Property mode set to 100644
File size: 16.2 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 "121 MB">
11 <!ENTITY plasma5-buildsize "1.3 GB (327 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 &lfs10_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="https://gpsd.gitlab.io/gpsd/">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>018aa45f5cf8e43e7a20618928affebe kdecoration-5.19.4.tar.xz
1603f371e5e60fb8e884af6c6ee247b0e8d libkscreen-5.19.4.tar.xz
1615cafda895bbfa0c06e93c53616b89700 libksysguard-5.19.4.tar.xz
162108b5e62a2abca19fcfa3b4ff8f131f3 breeze-5.19.4.tar.xz
1632cb9cf02aa9e3c2b8e676165b99f8774 breeze-gtk-5.19.4.tar.xz
16467ac644f6ef96bf5b83066022345b4e0 kscreenlocker-5.19.4.tar.xz
1650df5f8e9868151a2899ba81f5dec567b oxygen-5.19.4.tar.xz
166d1ce45d4d530d1257416ad1c0ff0286f kinfocenter-5.19.4.tar.xz
16779a948dbf0bb8c83f1f2ee17efd61385 ksysguard-5.19.4.tar.xz
1684be1ba7337efe304d0b41a899edc5dc5 kwayland-server-5.19.4.tar.xz
169197cadd24436310957258d2b40244ae8 kwin-5.19.4.tar.xz
17015d58fbcfcf42d86629af7a77860e5a3 plasma-workspace-5.19.4.tar.xz
1716a6d4347ea08f7dbce275fec3931bf26 bluedevil-5.19.4.tar.xz
172972626bf6107585561f9f6335d3f8e16 kde-gtk-config-5.19.4.tar.xz
173b73b47db04afcb39c6a5547fc4b715dc khotkeys-5.19.4.tar.xz
1740b8fa3d76cb2b6f87d3d76884773d5b5 kmenuedit-5.19.4.tar.xz
17560223cfe9581d0913a421877a1946dab kscreen-5.19.4.tar.xz
176a89d3e90f4595b2acb7d911584f1883d kwallet-pam-5.19.4.tar.xz
177b471f4de79180257d05baebb6b9b587e kwayland-integration-5.19.4.tar.xz
17896faee06be1d88890c421b4d6334b783 kwrited-5.19.4.tar.xz
179edcdefa304ed8df4d89e2bb48cb1cdd2 milou-5.19.4.tar.xz
180a5af79f15adec8b2dd19ce286e575691 plasma-nm-5.19.4.tar.xz
181f6eff79bb6a683e66208228ff566c116 plasma-pa-5.19.4.tar.xz
182569c55902960eda4658634bac40dd22e plasma-workspace-wallpapers-5.19.4.tar.xz
1830a3f401968a27c3ae5caec07064c2343 polkit-kde-agent-1-5.19.4.tar.xz
1849a2c2cbd8df0d5ce5133b842fa5ed636 powerdevil-5.19.4.tar.xz
1851f1ea5c20ef9b90f106a2d25a7128a35 plasma-desktop-5.19.4.tar.xz
186a8fefae0ae99a25f31c798b921d42564 kdeplasma-addons-5.19.4.tar.xz
1873344cda599e9a33c510c9113f9da3948 kgamma5-5.19.4.tar.xz
188e490ae9cef3e092124047dbbbcf0a3e5 ksshaskpass-5.19.4.tar.xz
189#e211c0b303736f2c913f7eee4b112792 plasma-sdk-5.19.4.tar.xz
190da829188c6b8c5116cb156b388adf1b8 sddm-kcm-5.19.4.tar.xz
1910787296981e74adb829df253e6cd8a82 user-manager-5.19.4.tar.xz
19299e3c88039d905aeee25984807d04f22 discover-5.19.4.tar.xz
193#70f67b313e08ff3735c5dabcc4d34d2f breeze-grub-5.19.4.tar.xz
194#a38f1c99c6f43ce767a978319f87a011 breeze-plymouth-5.19.4.tar.xz
195c2340132ae128347a83fa8748a46ed9d kactivitymanagerd-5.19.4.tar.xz
19610fea9aa0c4a74dce276bd006f56fdc0 plasma-integration-5.19.4.tar.xz
1977645d39b27be8f378b2fe66a9e7a4734 plasma-tests-5.19.4.tar.xz
198#74b4d61d44f5181e06fb5ae467f84d2d plymouth-kcm-5.19.4.tar.xz
199a4831d1a9f75b378e690daa07a543a88 xdg-desktop-portal-kde-5.19.4.tar.xz
20039c97b134ab62d432187b2fadccacc11 drkonqi-5.19.4.tar.xz
201b74993d79c92e8e39cf4910b2401c8f2 plasma-vault-5.19.4.tar.xz
202b43af2c7267fcfd591c9b3d1b94dfa80 plasma-browser-integration-5.19.4.tar.xz
203d0aa151e8dfe37bc412bf4a9fdfa027d kde-cli-tools-5.19.4.tar.xz
2045d0d2934a79dcd46e10165812ea69cc9 systemsettings-5.19.4.tar.xz
2053e05594393cba476cf41c9001fe152f5 plasma-thunderbolt-5.19.4.tar.xz
206#6fcb468827748d81a3d79a862e80ee52 plasma-nano-5.19.4.tar.xz
207#13d0a1017e9a44fc91b27147866ff36b plasma-phone-components-5.19.4.tar.xz</literal>
208EOF</userinput></screen>
209
210 <note>
211 <para>
212 The breeze-grub, breeze-plymouth, and plymouth-kcm packages above are
213 all for customized support of <ulink
214 url="https://www.freedesktop.org/wiki/Software/Plymouth/"
215 >Plymouth</ulink>
216 which is designed to be run within an initial ram disk during boot (see
217 <xref linkend="initramfs"/>). The plasma-sdk package is optional and
218 used for software development. The plasma-nano package is used for
219 embedded systems and plasma-phone-components provides phone
220 functionality for Plasma.
221 </para>
222 </note>
223
224 </sect2>
225
226 <sect2 role="installation">
227 <title>Installation of Plasma5</title>
228
229 &as_root;
230
231 <para>
232 First, start a subshell that will exit on error:
233 </para>
234
235<screen><userinput>bash -e</userinput></screen>
236
237 <para>
238 Install all of the packages by running the following
239 commands:
240 </para>
241
242<screen><userinput>while read -r line; do
243
244 # Get the file name, ignoring comments and blank lines
245 if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
246 file=$(echo $line | cut -d" " -f2)
247
248 pkg=$(echo $file|sed 's|^.*/||') # Remove directory
249 packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
250
251 tar -xf $file
252 pushd $packagedir
253
254 # Fix some build issues when generating some configuration files
255 case $name in
256 plasma-workspace)
257 sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
258 ;;
259
260 khotkeys)
261 sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
262 ;;
263
264 plasma-desktop)
265 sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
266 ;;
267 esac
268
269 mkdir build
270 cd build
271
272 cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
273 -DCMAKE_BUILD_TYPE=Release \
274 -DBUILD_TESTING=OFF \
275 -Wno-dev .. &amp;&amp;
276
277 make
278 as_root make install
279 popd
280
281<!-- some packages end up with files owned by root in $packagedir,
282 so use as_root for removing -->
283 as_root rm -rf $packagedir
284 as_root /sbin/ldconfig
285
286done &lt; plasma-&plasma5-version;.md5
287
288exit</userinput></screen>
289
290 <para>
291 If you did not set <envar>$KF5_PREFIX</envar> to
292 <filename>/usr</filename>, create symlinks to allow display managers to
293 find <application>Plasma</application>:
294 </para>
295
296<screen><userinput>as_root install -dvm 755 /usr/share/xsessions &amp;&amp;
297cd /usr/share/xsessions/ &amp;&amp;
298[ -e plasma.desktop ] ||
299as_root ln -sfv $KF5_PREFIX/share/xsessions/plasma.desktop &amp;&amp;
300as_root install -dvm 755 /usr/share/wayland-sessions &amp;&amp;
301cd /usr/share/wayland-sessions/ &amp;&amp;
302[ -e plasmawayland.desktop ] ||
303as_root ln -sfv $KF5_PREFIX/share/wayland-sessions/plasmawayland.desktop<!--
304cd $KF5_PREFIX/share/plasma/plasmoids
305
306for j in $(find -name \*.js); do
307 as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
308done--></userinput></screen>
309
310 </sect2>
311<!--
312 <sect2 role="commands">
313 <title>Command Explanations</title>
314
315 <para>
316 <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
317 Create symbolic links so qml files can find needed javascript modules.
318 </para>
319
320 </sect2>
321-->
322 <sect2 role="configuration">
323 <title>Configuring Plasma</title>
324
325 <sect3>
326 <title>Linux PAM Configuration</title>
327
328 <para>
329 If you built Plasma with the recommended <application>Linux
330 PAM</application> support, create necessary configuration files by
331 running the following commands as the <systemitem
332 class="username">root</systemitem> user:
333 </para>
334
335<screen role="root"><userinput>cat &gt; /etc/pam.d/kde &lt;&lt; "EOF"
336<literal># Begin /etc/pam.d/kde
337
338auth requisite pam_nologin.so
339auth required pam_env.so
340
341auth required pam_succeed_if.so uid &gt;= 1000 quiet
342auth include system-auth
343
344account include system-account
345password include system-password
346session include system-session
347
348# End /etc/pam.d/kde</literal>
349EOF
350
351cat &gt; /etc/pam.d/kde-np &lt;&lt; "EOF"
352<literal># Begin /etc/pam.d/kde-np
353
354auth requisite pam_nologin.so
355auth required pam_env.so
356
357auth required pam_succeed_if.so uid &gt;= 1000 quiet
358auth required pam_permit.so
359
360account include system-account
361password include system-password
362session include system-session
363
364# End /etc/pam.d/kde-np</literal>
365EOF
366
367cat &gt; /etc/pam.d/kscreensaver &lt;&lt; "EOF"
368<literal># Begin /etc/pam.d/kscreensaver
369
370auth include system-auth
371account include system-account
372
373# End /etc/pam.d/kscreensaver</literal>
374EOF</userinput></screen>
375 </sect3>
376 </sect2>
377
378 <sect2 role="starting">
379 <title>Starting Plasma5</title>
380
381 <para revision="sysv">
382 You can start <application>Plasma5</application> from runlevel 3, using
383 <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
384 such as <xref linkend="lightdm"/>.
385 </para>
386
387 <para revision="systemd">
388 You can start <application>Plasma5</application> from a TTY, using
389 <xref linkend="xinit"/><!--, or from a graphical display manager, such as
390 <xref linkend="sddm"/>-->.
391 </para>
392
393 <para>
394 To start <application>Plasma 5</application> using <xref linkend="xinit"/>,
395 run the following commands:
396 </para>
397
398<screen><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
399<literal>dbus-launch --exit-with-session $KF5_PREFIX/bin/startplasma-x11</literal>
400EOF
401
402startx</userinput></screen>
403
404 <para>
405 The X session starts on the first unused virtual terminal, normally vt7.
406 You can switch to another vt<emphasis>n</emphasis> simultaneously
407 pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
408 (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
409 normally started at vt7, use Ctrl-Alt-F7. The vt where the command
410 <command>startx</command> was executed will display many messages,
411 including X starting messages, applications automatically started with
412 the session, and eventually, some warning and error messages. You may
413 prefer to redirect those messages to a log file, which not only will keep
414 the initial vt uncluttered, but can also be used for debugging purposes. This
415 can be done starting X with:
416 </para>
417
418 <screen><userinput>startx &amp;&gt; ~/x-session-errors</userinput></screen>
419
420 <para>
421 When shutting down or rebooting, the shutdown messages appear on the vt
422 where X was running. If you wish to see those messages, simultaneously
423 press keys Alt-F7 (assuming that X was running on vt7).
424 </para>
425
426 <para>
427 If you intend to start <application>Plasma</application> using a
428 display manager such as <xref linkend="lightdm"/>, there will be two entries
429 for <application>Plasma</application>, one for use with
430 <application>Xorg</application>, and another for
431 <application>Wayland</application>. Modify the
432 <application>Xorg</application> entry with the following command, as the
433 <systemitem class="username">root</systemitem> user, so that you can
434 differentiate between the two:</para>
435
436<screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
437
438
439 </sect2>
440
441 <sect2 role="content">
442 <title>Contents</title>
443
444 <segmentedlist>
445 <segtitle>Installed Programs</segtitle>
446 <segtitle>Installed Libraries</segtitle>
447 <segtitle>Installed Directories</segtitle>
448
449 <seglistitem>
450 <seg>
451 There are too many plasma programs (50 in /opt/kf5/bin) to list
452 separately here.
453 </seg>
454 <seg>
455 There are too many plasma libraries (39 in /opt/kf5/lib) to list
456 separately here.
457 </seg>
458 <seg>
459 There are too many plasma directories (over 1000 in /opt/kf5) to
460 list separately here.
461 </seg>
462 </seglistitem>
463 </segmentedlist>
464
465 </sect2>
466
467</sect1>
Note: See TracBrowser for help on using the repository browser.