source: kde/plasma5/plasma-all.xml@ 43c796e

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.4 9.0 9.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 43c796e was 33c8b427, checked in by Pierre Labastie <pieere@…>, 5 years ago

Tweak KF5 and plasma for Python 3 use

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

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