source: kde/plasma5/plasma-all.xml@ 7a763b4

10.1 11.0 qt5new trunk xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 7a763b4 was 7a763b4, checked in by Pierre Labastie <pieere@…>, 7 months ago

plasma.desktop does not need to be fixed anymore

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

  • 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 "http://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 <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 &lfs101_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">Recommended (runtime)</bridgehead>
110 <para role="recommended">
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="http://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=http://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>6704f5b7e08ddef06aaae2329c83edd0 kdecoration-5.21.1.tar.xz
1656b7cc3ccf7881ea0d0bde07ead95860c libkscreen-5.21.1.tar.xz
166ad1b34a1fa173c92d279941333e15d04 libksysguard-5.21.1.tar.xz
167672efd2a00cae728c602aee8dcbe6d34 breeze-5.21.1.tar.xz
168cd2968bedf5a2f81df05921fb27d3c4d breeze-gtk-5.21.1.tar.xz
1692607a8599c0923e824a5d9a8661fe11d kscreenlocker-5.21.1.tar.xz
1702b0542f736741808cf08ea08f60b3b70 oxygen-5.21.1.tar.xz
171a7254b02d4e52f406840090ad6cd1a04 kinfocenter-5.21.1.tar.xz
172efa5758ce2ee0f8fd70f188198187f6a ksysguard-5.21.1.tar.xz
173bee63f7adde88fda32313b479050cc91 kwayland-server-5.21.1.tar.xz
17456647c9a9a14c447013d734321dfeb28 kwin-5.21.1.tar.xz
175a6d561c5183168449de63840888ec120 plasma-workspace-5.21.1.tar.xz
176f94222d6d0237978e4a00d68abcf45b7 plasma-disks-5.21.1.tar.xz
177582c0bc22874a5dd28f82c765b2562e8 bluedevil-5.21.1.tar.xz
1781140e976e5cc8e157c0fb7d15058a07b kde-gtk-config-5.21.1.tar.xz
17985c2366ba57798df2cd2c4a006fa6430 khotkeys-5.21.1.tar.xz
180b6ea73b30e16f05923840c79146d0280 kmenuedit-5.21.1.tar.xz
1811dfd0ddec58bd28d93a09dea672dcb70 kscreen-5.21.1.tar.xz
182cefd31bcc087e54faa00a619c762ba63 kwallet-pam-5.21.1.tar.xz
1834faee9fba32bb4c4f69b98b23e3d5950 kwayland-integration-5.21.1.tar.xz
18425867c8239bea61976bd3f5ab8af9e9f kwrited-5.21.1.tar.xz
18545bf96a93445d1ab3c9a63d8b40d8974 milou-5.21.1.tar.xz
18609f1f2668113c01d327b9873ed4f80a6 plasma-nm-5.21.1.tar.xz
187a8d0daf6e671c125e7f09e4b67f9f158 plasma-pa-5.21.1.tar.xz
1880bc819955f9c5bc483d2b443b765d544 plasma-workspace-wallpapers-5.21.1.tar.xz
189b9d5703a6e291e3ba4d8f967b83beb94 polkit-kde-agent-1-5.21.1.tar.xz
19077758cb82a129155c4db2a0a4d14d993 powerdevil-5.21.1.tar.xz
19131070b325b1673aec305b1d13fe7fc08 plasma-desktop-5.21.1.tar.xz
192749d00234c2bc6991af0c0cd5bc36e96 kdeplasma-addons-5.21.1.tar.xz
19394e3eb05ee7c06e25587dd6c198fcc7c kgamma5-5.21.1.tar.xz
19461cac749eec698ffaa4d54eaaf251565 ksshaskpass-5.21.1.tar.xz
195#3f54255d7515f08615f7905329771ea6 plasma-sdk-5.21.1.tar.xz
196c675d299cc468021ce31267a69589373 sddm-kcm-5.21.1.tar.xz
1973311f6e733d26aa0a7803351cba7c0c5 discover-5.21.1.tar.xz
198#9d4627fe5e15c972d1bd5902653eb15c breeze-grub-5.21.1.tar.xz
199#006bd972f30dbf79f5d8cc6702816361 breeze-plymouth-5.21.1.tar.xz
200c30bbee8eed6943cb40144bcd70e9a55 kactivitymanagerd-5.21.1.tar.xz
2018db9a652a9c40be8f092efda2d6a8463 plasma-integration-5.21.1.tar.xz
20295d1ff516afb540c2a94297e6f816bb7 plasma-tests-5.21.1.tar.xz
203#b536cd7d2274c552b740fbfce9920a9f plymouth-kcm-5.21.1.tar.xz
204dfe793c51a0654a38a80404fbda4de57 xdg-desktop-portal-kde-5.21.1.tar.xz
2053a3de5e9e4caa35e95c009d2aa21cf04 drkonqi-5.21.1.tar.xz
206b4295f7d395e547f7936b76717e2d4cd plasma-vault-5.21.1.tar.xz
207caf1b7d83ec0c75c315fce35f4fcc1b4 plasma-browser-integration-5.21.1.tar.xz
208a19f5e8158322e91d08e93ccedc11feb kde-cli-tools-5.21.1.tar.xz
2093a626e27e0cf792142ad5269efe95ed9 systemsettings-5.21.1.tar.xz
2105d7d94423d252301cf236db930d21357 plasma-thunderbolt-5.21.1.tar.xz
211#b31c66f7c84c0d3177d116b3db06cd9e plasma-nano-5.21.1.tar.xz
212#e2a71cf0145b1f546bd4e1a483cd3017 plasma-phone-components-5.21.1.tar.xz
213eee25dec70bffac0dc0858d6a53f829e plasma-firewall-5.21.1.tar.xz
214de0b75f307c6674971079abd1c3e0d6e plasma-systemmonitor-5.21.1.tar.xz
215ee1d2b217efbc83d16218d4370bd6098 qqc2-breeze-style-5.21.1.tar.xz</literal>
216EOF</userinput></screen>
217
218 <note>
219 <para>
220 The breeze-grub, breeze-plymouth, and plymouth-kcm packages above are
221 all for customized support of <ulink
222 url="https://www.freedesktop.org/wiki/Software/Plymouth/"
223 >Plymouth</ulink>
224 which is designed to be run within an initial ram disk during boot (see
225 <xref linkend="initramfs"/>). The plasma-sdk package is optional and
226 used for software development. The plasma-nano package is used for
227 embedded systems and plasma-phone-components provides phone
228 functionality for Plasma.
229 </para>
230 </note>
231
232 </sect2>
233
234 <sect2 role="installation">
235 <title>Installation of Plasma5</title>
236
237 &as_root;
238
239 <para>
240 First, start a subshell that will exit on error:
241 </para>
242
243<screen><userinput>bash -e</userinput></screen>
244
245 <para>
246 Install all of the packages by running the following
247 commands:
248 </para>
249
250<screen><userinput>while read -r line; do
251
252 # Get the file name, ignoring comments and blank lines
253 if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
254 file=$(echo $line | cut -d" " -f2)
255
256 pkg=$(echo $file|sed 's|^.*/||') # Remove directory
257 packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
258
259 tar -xf $file
260 pushd $packagedir
261<!--
262 # Fix some build issues when generating some configuration files
263 case $name in
264 plasma-workspace)
265 sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
266 ;;
267
268 khotkeys)
269 sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
270 ;;
271
272 plasma-desktop)
273 sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
274 ;;
275 esac
276-->
277 mkdir build
278 cd build
279
280 cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
281 -DCMAKE_BUILD_TYPE=Release \
282 -DBUILD_TESTING=OFF \
283 -Wno-dev .. &amp;&amp;
284
285 make
286 as_root make install
287 popd
288
289<!-- some packages end up with files owned by root in $packagedir,
290 so use as_root for removing -->
291 as_root rm -rf $packagedir
292 as_root /sbin/ldconfig
293
294done &lt; plasma-&plasma5-version;.md5
295
296exit</userinput></screen>
297
298 <para>
299 If you did not set <envar>$KF5_PREFIX</envar> to
300 <filename>/usr</filename>, create symlinks to allow display managers to
301 find <application>Plasma</application>:
302 </para>
303
304<screen><userinput>as_root install -dvm 755 /usr/share/xsessions &amp;&amp;
305cd /usr/share/xsessions/ &amp;&amp;
306[ -e plasma.desktop ] ||
307as_root ln -sfv $KF5_PREFIX/share/xsessions/plasma.desktop &amp;&amp;
308as_root install -dvm 755 /usr/share/wayland-sessions &amp;&amp;
309cd /usr/share/wayland-sessions/ &amp;&amp;
310[ -e plasmawayland.desktop ] ||
311as_root ln -sfv $KF5_PREFIX/share/wayland-sessions/plasmawayland.desktop<!--
312cd $KF5_PREFIX/share/plasma/plasmoids
313
314for j in $(find -name \*.js); do
315 as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
316done--></userinput></screen>
317
318 <para revision="sysv">
319 Useless systemd units have been installed in
320 <filename class="directory">$KF5_PREFIX/lib</filename>. Remove
321 them now (as <systemitem class="username">root</systemitem>):
322 </para>
323
324<screen role="root"
325 revision="sysv"><userinput>rm -rf $KF5_PREFIX/lib/systemd</userinput></screen>
326
327 </sect2>
328<!--
329 <sect2 role="commands">
330 <title>Command Explanations</title>
331
332 <para>
333 <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
334 Create symbolic links so qml files can find needed javascript modules.
335 </para>
336
337 </sect2>
338-->
339 <sect2 role="configuration">
340 <title>Configuring Plasma</title>
341
342 <sect3>
343 <title>Linux PAM Configuration</title>
344
345 <para>
346 If you built Plasma with the recommended <application>Linux
347 PAM</application> support, create necessary configuration files by
348 running the following commands as the <systemitem
349 class="username">root</systemitem> user:
350 </para>
351
352<screen role="root"><userinput>cat &gt; /etc/pam.d/kde &lt;&lt; "EOF"
353<literal># Begin /etc/pam.d/kde
354
355auth requisite pam_nologin.so
356auth required pam_env.so
357
358auth required pam_succeed_if.so uid &gt;= 1000 quiet
359auth include system-auth
360
361account include system-account
362password include system-password
363session include system-session
364
365# End /etc/pam.d/kde</literal>
366EOF
367
368cat &gt; /etc/pam.d/kde-np &lt;&lt; "EOF"
369<literal># Begin /etc/pam.d/kde-np
370
371auth requisite pam_nologin.so
372auth required pam_env.so
373
374auth required pam_succeed_if.so uid &gt;= 1000 quiet
375auth required pam_permit.so
376
377account include system-account
378password include system-password
379session include system-session
380
381# End /etc/pam.d/kde-np</literal>
382EOF
383
384cat &gt; /etc/pam.d/kscreensaver &lt;&lt; "EOF"
385<literal># Begin /etc/pam.d/kscreensaver
386
387auth include system-auth
388account include system-account
389
390# End /etc/pam.d/kscreensaver</literal>
391EOF</userinput></screen>
392 </sect3>
393 </sect2>
394
395 <sect2 role="starting">
396 <title>Starting Plasma5</title>
397
398 <para revision="sysv">
399 You can start <application>Plasma5</application> from runlevel 3, using
400 <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
401 such as <xref linkend="lightdm"/>.
402 </para>
403
404 <para revision="systemd">
405 You can start <application>Plasma5</application> from a TTY, using
406 <xref linkend="xinit"/><!--, or from a graphical display manager, such as
407 <xref linkend="sddm"/>-->.
408 </para>
409
410 <para>
411 To start <application>Plasma 5</application> using <xref linkend="xinit"/>,
412 run the following commands:
413 </para>
414
415<screen><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
416<literal>dbus-launch --exit-with-session $KF5_PREFIX/bin/startplasma-x11</literal>
417EOF
418
419startx</userinput></screen>
420
421 <para>
422 The X session starts on the first unused virtual terminal, normally vt7.
423 You can switch to another vt<emphasis>n</emphasis> simultaneously
424 pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
425 (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
426 normally started at vt7, use Ctrl-Alt-F7. The vt where the command
427 <command>startx</command> was executed will display many messages,
428 including X starting messages, applications automatically started with
429 the session, and eventually, some warning and error messages. You may
430 prefer to redirect those messages to a log file, which not only will keep
431 the initial vt uncluttered, but can also be used for debugging purposes. This
432 can be done starting X with:
433 </para>
434
435 <screen><userinput>startx &amp;&gt; ~/x-session-errors</userinput></screen>
436
437 <para>
438 When shutting down or rebooting, the shutdown messages appear on the vt
439 where X was running. If you wish to see those messages, simultaneously
440 press keys Alt-F7 (assuming that X was running on vt7).
441 </para>
442<!-- Now the entry is "plasma (X11)" for Xorg, so I guess this is
443 not needed anymore:
444 <para>
445 If you intend to start <application>Plasma</application> using a
446 display manager such as <xref linkend="lightdm"/>, there will be two entries
447 for <application>Plasma</application>, one for use with
448 <application>Xorg</application>, and another for
449 <application>Wayland</application>. Modify the
450 <application>Xorg</application> entry with the following command, as the
451 <systemitem class="username">root</systemitem> user, so that you can
452 differentiate between the two:</para>
453
454<screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
455-->
456
457 </sect2>
458
459 <sect2 role="content">
460 <title>Contents</title>
461
462 <segmentedlist>
463 <segtitle>Installed Programs</segtitle>
464 <segtitle>Installed Libraries</segtitle>
465 <segtitle>Installed Directories</segtitle>
466
467 <seglistitem>
468 <seg>
469 There are too many plasma programs (63 in /opt/kf5/bin) to list
470 separately here.
471 </seg>
472 <seg>
473 There are too many plasma libraries (40 in /opt/kf5/lib) to list
474 separately here.
475 </seg>
476 <seg>
477 There are too many plasma directories (over 1000 in /opt/kf5) to
478 list separately here.
479 </seg>
480 </seglistitem>
481 </segmentedlist>
482
483 </sect2>
484
485</sect1>
Note: See TracBrowser for help on using the repository browser.