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

10.0 10.1 11.0 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind ken/refactor-virt lazarus perl-modules qt5new trunk xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since f161544 was f161544, checked in by Bruce Dubbs <bdubbs@…>, 4 years ago

Update to wireshark-2.4.5.
Tag kde apps and a few others.

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

  • Property mode set to 100644
File size: 14.8 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 "109 MB">
11 <!ENTITY plasma5-buildsize "985 MB (301 MB installed)">
12 <!ENTITY plasma5-time "15 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-kf5">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 &lfs82_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="pulseaudio"/>,
73 <xref linkend="python2"/>,
74 <xref linkend="qca"/>,
75 <xref linkend="taglib"/>, and
76 <xref linkend="xcb-util-cursor"/>
77 </para>
78
79 <bridgehead renderas="sect4">Recommended</bridgehead>
80 <para role="recommended">
81 <xref linkend="libdbusmenu-qt"/>,
82 <xref linkend="libcanberra"/>,
83 <xref linkend="libinput"/>,
84 <xref linkend="linux-pam"/>,
85 <xref linkend="lm_sensors"/>,
86 <xref linkend="oxygen-icons5"/>, and
87 <xref linkend="pciutils"/>
88 </para>
89
90 <bridgehead renderas="sect4">Optional</bridgehead>
91 <para role="optional">
92 <xref linkend="glu"/>,
93 <xref linkend='ibus'/>,
94 <xref linkend="xorg-synaptics-driver"/>,
95 <ulink url="http://distributions.freedesktop.org/wiki/AppStream">appstream-qt</ulink>,
96 <ulink url="https://www.kdevelop.org/">KDevPlatform</ulink>,
97 <ulink url="http://gpsd.berlios.de">libgps</ulink>,
98 <ulink url="https://github.com/libhybris/libhybris">libhybris</ulink>,
99 <ulink url="http://sourceforge.net/projects/libraw1394/">libraw1394</ulink>,
100 <ulink url="https://bitbucket.org/godsme/mockcpp">mockcpp</ulink>,
101 <ulink url="https://www.freedesktop.org/software/PackageKit/releases/">packagekit-qt</ulink>,
102 <ulink url="http://qalculate.sourceforge.net">Qalculate</ulink>,
103 <ulink url="https://launchpad.net/qapt">Qapt</ulink>,
104 <ulink url="https://github.com/osiam/osiam">SCIM</ulink>, and
105 <ulink url="http://www.dest-unreach.org/socat/">socat</ulink> (for pam_kwallet)
106 </para>
107
108 <para condition="html" role="usernotes">User Notes:
109 <ulink url="&blfs-wiki;/kf5"/></para>
110
111 <sect2>
112 <title>Downloading KDE Plasma5</title>
113
114 <para>
115 The easiest way to get the KDE Plasma5 packages is to use a single
116 <command>wget</command> to fetch them all at once:
117 </para>
118
119<screen><userinput>url=http://download.kde.org/stable/plasma/&plasma5-version;/
120wget -r -nH -nd -A '*.xz' -np $url</userinput>
121<literal>
122The options used here are:
123 -r recurse through child directories
124 -nH disable generation of host-prefixed directories
125 -nd do not create a hierarchy of directories
126 -A '*.xz' just get the *.xz files
127 -np don't get parent directories</literal></screen>
128
129 </sect2>
130
131 <sect2>
132 <title>Setting Package Order</title>
133
134 <para>
135 The order of building files is important due to internal dependencies.
136 Create the list of files in the proper order as follows:
137 </para>
138
139<screen><userinput>cat &gt; plasma-&plasma5-version;.md5 &lt;&lt; "EOF"
140<literal>a1abf188ffb59a4b6e23d058aa45f0d1 kde-cli-tools-5.12.1.tar.xz
1412eae0ba02fe25a10f43de9366c1aea00 kdecoration-5.12.1.tar.xz
142cee80062a266ff50b120c3fccc2da4af libkscreen-5.12.1.tar.xz
14372ab3939b76c432b977c31df305304f2 libksysguard-5.12.1.tar.xz
1442d265b041feb7f94fdc80cc40cca7fa8 breeze-5.12.1.tar.xz
14599aebe5eae6e42ee6eb0a61cf8f04284 breeze-gtk-5.12.1.tar.xz
146e8e5600b985e0305bcb1240da214395b kscreenlocker-5.12.1.tar.xz
147402dfcdfc23cb1c2b4a7f3347dfac5c2 oxygen-5.12.1.tar.xz
1481cb5e69233857722ee27e1fe35a550c9 kinfocenter-5.12.1.tar.xz
1497dc785af0e5b034197775470785b61b9 ksysguard-5.12.1.tar.xz
1505983d1f2b35d66252fc9b2c47c7d2ddb kwin-5.12.1.tar.xz
151c175ab510f420b7293792c14edf98ce6 systemsettings-5.12.1.tar.xz
1528d97e635b03bd046e2dda4c96317fea5 plasma-workspace-5.12.1.tar.xz
1536d717f754da760ab33a8c12ac1c37112 bluedevil-5.12.1.tar.xz
154dd0e8721048cd88b55f8dd45a5a72198 kde-gtk-config-5.12.1.tar.xz
155e6241737195d592ee4c2087ad4a4147f khotkeys-5.12.1.tar.xz
156c416fd50038aa35043560213b9920156 kmenuedit-5.12.1.tar.xz
157742a0c2a5067f92a3a5f2a8299680972 kscreen-5.12.1.tar.xz
158cfa6fa62948d37fc3fe9351084c0bb6a kwallet-pam-5.12.1.tar.xz
1593c8d15dfa606ec65d347bc59ead1c9ad kwayland-integration-5.12.1.tar.xz
1607ab4c14801ea6b85b454361f1ac864f3 kwrited-5.12.1.tar.xz
16111b5a0cf1c1997fd4b29af4f54d3723c milou-5.12.1.tar.xz
1620d63f11eae7adc6b5e7c32baa6ec4293 plasma-nm-5.12.1.tar.xz
163518ddf777698a65b3b10f246060aea9a plasma-pa-5.12.1.tar.xz
16420eaf7b6afbf93aa878d37816dd31676 plasma-workspace-wallpapers-5.12.1.tar.xz
1651b315a99664053b850d1ecda6da3ab63 polkit-kde-agent-1-5.12.1.tar.xz
16636e62e1a2fc85c22916de3a9d8eb8a89 powerdevil-5.12.1.tar.xz
167f8dd9aabaac4e80bae15d4580fe689ff plasma-desktop-5.12.1.tar.xz
1684f0179f85332dd001a860cb0da9aeb72 kdeplasma-addons-5.12.1.tar.xz
1691faca1598163b827c700489cad58a7f9 kgamma5-5.12.1.tar.xz
17028a187eb76929858e2f4c41a6540ea78 ksshaskpass-5.12.1.tar.xz
171#7943b64ceee1573343e89717ce22366b plasma-sdk-5.12.1.tar.xz
17228a1ad02d32a6c0fbdfc9dc1822d5ded sddm-kcm-5.12.1.tar.xz
173276bc0870e905dc1458664584eedb55d user-manager-5.12.1.tar.xz
17421046d3e4a2a877ef3bdcf46feacc425 discover-5.12.1.tar.xz
175#d354ce8e994921a2357db05b60d7911b breeze-grub-5.12.1.tar.xz
176#1ed17b5866e148568d5057b1b2a28566 breeze-plymouth-5.12.1.tar.xz
17708a7ebca2a8a4f5191f0aed74675d9f6 kactivitymanagerd-5.12.1.tar.xz
178f3a688a841d27ab2707bd479dbdfa93c plasma-integration-5.12.1.tar.xz
179e43d587afe912e3f29a708dd91dd940f plasma-tests-5.12.1.tar.xz
180466e30427fa30adba80847ca422223f2 plymouth-kcm-5.12.1.tar.xz
1816d60b5684501b81777563f7f1fc7e0f4 xdg-desktop-portal-kde-5.12.1.tar.xz
1828f784bb3f4140e0cc044d9fbecd72aac drkonqi-5.12.1.tar.xz
183170eb8041db38303c0daaf1399cf0153 plasma-vault-5.12.1.tar.xz</literal>
184EOF</userinput></screen>
185
186 <note><para>The breeze-grub, breeze-plymouth, and plymouth-kcm packages
187 above are all for customized support of <ulink
188 url="https://www.freedesktop.org/wiki/Software/Plymouth/">Plymouth</ulink>
189 which is designed to be run within an initial ram disk during boot (see
190 <xref linkend="initramfs"/>). The plasma-sdk package is optional and used
191 for software development.</para></note>
192
193 </sect2>
194
195 <sect2 role="installation">
196 <title>Installation of Plasma5</title>
197
198 &as_root;
199
200 <para>
201 First, start a subshell that will exit on error:
202 </para>
203
204<screen><userinput>bash -e</userinput></screen>
205
206 <para>
207 Install all of the packages by running the following
208 commands:
209 </para>
210
211<screen><userinput>while read -r line; do
212
213 # Get the file name, ignoring comments and blank lines
214 if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
215 file=$(echo $line | cut -d" " -f2)
216
217 pkg=$(echo $file|sed 's|^.*/||') # Remove directory
218 packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
219
220 tar -xf $file
221 pushd $packagedir
222
223 mkdir build
224 cd build
225
226 cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
227 -DCMAKE_BUILD_TYPE=Release \
228 -DBUILD_TESTING=OFF \
229 -Wno-dev .. &amp;&amp;
230
231 make
232 as_root make install
233 popd
234
235<!-- some packages end up with files owned by root in $packagedir,
236 so use as_root for removing -->
237 as_root rm -rf $packagedir
238 as_root /sbin/ldconfig
239
240done &lt; plasma-&plasma5-version;.md5
241
242exit
243
244cd $KF5_PREFIX/share/plasma/plasmoids
245
246for j in $(find -name \*.js); do
247 as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
248done</userinput></screen>
249
250 </sect2>
251
252 <sect2 role="commands">
253 <title>Command Explanations</title>
254
255 <para>
256 <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
257 Create symbolic links so qml files can find needed javascript modules.
258 </para>
259
260 </sect2>
261
262 <sect2 role="configuration">
263 <title>Configuring Plasma</title>
264
265 <sect3>
266 <title>Linux PAM Configuration</title>
267
268 <para>
269 If you built Plasma with the recommended <application>Linux
270 PAM</application> support, create necessary configuration files by
271 running the following commands as the <systemitem
272 class="username">root</systemitem> user:
273 </para>
274
275<screen role="root"><userinput>cat &gt;&gt; /etc/pam.d/kde &lt;&lt; "EOF"
276# Begin /etc/pam.d/kde
277
278auth requisite pam_nologin.so
279auth required pam_env.so
280
281auth required pam_succeed_if.so uid &gt;= 1000 quiet
282auth include system-auth
283
284account include system-account
285password include system-password
286session include system-session
287
288# End /etc/pam.d/kde
289EOF
290
291cat &gt; /etc/pam.d/kde-np &lt;&lt; "EOF"
292# Begin /etc/pam.d/kde-np
293
294auth requisite pam_nologin.so
295auth required pam_env.so
296
297auth required pam_succeed_if.so uid &gt;= 1000 quiet
298auth required pam_permit.so
299
300account include system-account
301password include system-password
302session include system-session
303
304# End /etc/pam.d/kde-np
305EOF
306
307cat &gt; /etc/pam.d/kscreensaver &lt;&lt; "EOF"
308# Begin /etc/pam.d/kscreensaver
309
310auth include system-auth
311account include system-account
312
313# End /etc/pam.d/kscreensaver
314EOF</userinput></screen>
315 </sect3>
316 </sect2>
317
318 <sect2 role="starting">
319 <title>Starting Plasma5</title>
320
321 <para revision="sysv">
322 You can start <application>Plasma5</application> from runlevel 3, using
323 <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
324 such as <xref linkend="lightdm"/>.
325 </para>
326
327 <para revision="systemd">
328 You can start <application>Plasma5</application> from a TTY, using
329 <xref linkend="xinit"/><!--, or from a graphical display manager, such as
330 <xref linkend="sddm"/>-->.
331 </para>
332
333 <para>
334 To start <application>Plasma 5</application> using <xref linkend="xinit"/>,
335 run the following commands:
336 </para>
337
338<screen revision="sysv"><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
339<literal>ck-launch-session dbus-launch --exit-with-session $KF5_PREFIX/bin/startkde</literal>
340EOF
341
342startx</userinput></screen>
343
344<screen revision="systemd"><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
345<literal>dbus-launch --exit-with-session $KF5_PREFIX/bin/startkde</literal>
346EOF
347
348startx</userinput></screen>
349
350 <para>
351 The X session starts on the first unused virtual terminal, normally vt7.
352 You can switch to another vt<emphasis>n</emphasis> simultaneously
353 pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
354 (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
355 normally started at vt7, use Ctrl-Alt-F7. The vt where the command
356 <command>startx</command> was executed will display many messages,
357 including X starting messages, applications automatically started with
358 the session, and eventually, some warning and error messages. You may
359 prefer to redirect those messages to a log file, which not only will keep
360 the initial vt uncluttered, but can also be used for debugging purposes. This
361 can be done starting X with:
362 </para>
363
364 <screen><userinput>startx &amp;&gt; ~/x-session-errors</userinput></screen>
365
366 <note revision="sysv">
367 <para>
368 You may wish to drop consolekit and/or dbus-launch, e.g., just using
369 startkde in ~/.xinitrc. However some capabilities such as mounting or
370 umounting file systems from a file manager will not be possible, or the
371 reboot option may be absent or inoperative, among other problems.
372 </para>
373 </note>
374 <para>
375 When shutting down or rebooting, the shutdown messages appear on the vt
376 where X was running. If you wish to see those messages, simultaneously
377 press keys Alt-F7 (assuming that X was running on vt7).
378 </para>
379
380 <para>If you intend to start <application>Plasma</application> using a
381 display manager such as <xref linkend="lightdm"/>, there will be two entries
382 for <application>Plasma</application>, one for use with
383 <application>Xorg</application>, and another for
384 <application>Wayland</application>. Modify the
385 <application>Xorg</application> entry with the following command, as the
386 <systemitem class="username">root</systemitem> user, so that you can
387 differentiate between the two:</para>
388
389<screen><userinput role="root">sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
390
391
392 </sect2>
393
394 <sect2 role="content">
395 <title>Contents</title>
396
397 <segmentedlist>
398 <segtitle>Installed Programs</segtitle>
399 <segtitle>Installed Libraries</segtitle>
400 <segtitle>Installed Directories</segtitle>
401
402 <seglistitem>
403 <seg>
404 There are too many plasma programs (50 in /opt/kf5/bin) to list
405 separately here.
406 </seg>
407 <seg>
408 There are too many plasma libraries (39 in /opt/kf5/lib) to list
409 separately here.
410 </seg>
411 <seg>
412 There are too many plasma directories (over 1000 in /opt/kf5) to
413 list separately here.
414 </seg>
415 </seglistitem>
416 </segmentedlist>
417
418 </sect2>
419
420</sect1>
421
Note: See TracBrowser for help on using the repository browser.