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

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules 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 f4cb967e was f4cb967e, checked in by Bruce Dubbs <bdubbs@…>, 7 years ago

Update to kde plasm-5.10.5

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

  • Property mode set to 100644
File size: 14.7 KB
RevLine 
[153a5795]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
[c6a5c39]7 <!ENTITY plasma5-download-http "http://download.kde.org/stable/plasma/&plasma5-version;">
[153a5795]8 <!ENTITY plasma5-download-ftp " ">
9 <!ENTITY plasma5-md5sum "See Below">
[a01d308]10 <!ENTITY plasma5-size "103 MB">
[f4cb967e]11 <!ENTITY plasma5-buildsize "932 MB (291 MB installed)">
12 <!ENTITY plasma5-time "36 SBU">
[153a5795]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
[6c91a92a]30 5 and QML. It has been derived from the monolithic KDE 4 desktop.
[1c8d0ff]31 They implement the KDE Display Environment (Plasma 5).</para>
[366fbbb8]32
[f4cb967e]33 &lfs81_checked;
[153a5795]34
35 <para>The instructions below build all of the Plasma 5 packages in one
[f97d5f6]36 step by using a bash script.</para>
[153a5795]37
38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
41 <para>Download (HTTP): <ulink url="&plasma5-download-http;"/></para>
42 </listitem>
43 <listitem>
44 <para>Download (FTP): <ulink url="&plasma5-download-ftp;"/></para>
45 </listitem>
46 <listitem>
47 <para>Download MD5 sum: &plasma5-md5sum;</para>
48 </listitem>
49 <listitem>
50 <para>Download size: &plasma5-size;</para>
51 </listitem>
52 <listitem>
53 <para>Estimated disk space required: &plasma5-buildsize;</para>
54 </listitem>
55 <listitem>
56 <para>Estimated build time: &plasma5-time;</para>
57 </listitem>
58 </itemizedlist>
59
60 <bridgehead renderas="sect3">Plasma 5 Dependencies</bridgehead>
61
62 <bridgehead renderas="sect4">Required</bridgehead>
63 <para role="required">
[89f706b2]64 <!--<xref linkend="fontforge"/>,-->
[f3429309]65 <xref linkend="gtk2"/>,
66 <xref linkend="gtk3"/>,
[f97d5f6]67 <xref linkend="kf5-frameworks"/>,
[366fbbb8]68 <xref linkend="libpwquality"/>,
[1c8d0ff]69 <xref linkend="libxkbcommon"/>,
[366fbbb8]70 <xref linkend="mesa"/> built with <xref linkend="wayland"/>,
[f3429309]71 <xref linkend="NetworkManager"/>,
72 <xref linkend="pulseaudio"/>,
73 <xref linkend="python2"/>,
[460cec4b]74 <xref linkend="qca"/> (built with qt5),
[f3429309]75 <xref linkend="taglib"/>, and
[1c8d0ff]76 <xref linkend="xcb-util-cursor"/>
[153a5795]77 </para>
78
79 <bridgehead renderas="sect4">Recommended</bridgehead>
80 <para role="recommended">
[f3429309]81 <xref linkend="libdbusmenu-qt"/>,
82 <xref linkend="libcanberra"/>,
83 <xref linkend="libinput"/>,
[0779b94]84 <xref linkend="linux-pam"/>,
[f3429309]85 <xref linkend="lm_sensors"/>,
[88bb10f]86 <xref linkend="oxygen-icons5"/>, and
[0779b94]87 <xref linkend="pciutils"/>
[153a5795]88 </para>
89
[0779b94]90 <bridgehead renderas="sect4">Optional</bridgehead>
[153a5795]91 <para role="optional">
[0779b94]92 <xref linkend="glu"/>,
[7b1bc743]93 <xref linkend='ibus'/>,
[0779b94]94 <xref linkend="xorg-synaptics-driver"/>,
[ce228c2]95 <ulink url="http://distributions.freedesktop.org/wiki/AppStream">appstream-qt</ulink>,
96 <ulink url="https://www.kdevelop.org/">KDevPlatform</ulink>,
[0779b94]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>,
[ce228c2]101 <ulink url="https://www.freedesktop.org/software/PackageKit/releases/">packagekit-qt</ulink>,
[0779b94]102 <ulink url="http://qalculate.sourceforge.net">Qalculate</ulink>,
[ce228c2]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 (for pam_kwallet)</ulink>
[153a5795]106 </para>
107
108 <para condition="html" role="usernotes">User Notes:
109 <ulink url="&blfs-wiki;/kf5"/></para>
110
111 <sect2>
[773b316]112 <title>Downloading KDE Plasma5</title>
[153a5795]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>
[f3429309]118
[153a5795]119<screen><userinput>url=http://download.kde.org/stable/plasma/&plasma5-version;/
[a01d308]120wget -r -nH -nd -A '*.xz' -np $url</userinput>
[153a5795]121<literal>
[f3429309]122The options used here are:
[153a5795]123 -r recurse through child directories
124 -nH disable generation of host-prefixed directories
[a01d308]125 -nd do not create a hierarchy of directories
[153a5795]126 -A '*.xz' just get the *.xz files
[10a9447]127 -np don't get parent directories</literal></screen>
[153a5795]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
[ed4a7a2]139<screen><userinput>cat &gt; plasma-&plasma5-version;.md5 &lt;&lt; "EOF"
[f4cb967e]140<literal>61b926818863e0ff1e87b9a7f4bc1371 kde-cli-tools-5.10.5.tar.xz
141133cfcf1c2f3f98f60036a0fb4cd2c84 kdecoration-5.10.5.tar.xz
14293465b802514e1a3d90ae3b79f7a7f85 libkscreen-5.10.5.tar.xz
1438352206006bd8df100ccf4457330c91f libksysguard-5.10.5.tar.xz
144f78318b14525ed3a56e33f4f24e5cd04 breeze-5.10.5.tar.xz
14502be5bb69c94ac18097375ae66384092 breeze-gtk-5.10.5.tar.xz
14690c04db347b282202a06a41e33f28083 kscreenlocker-5.10.5.tar.xz
1479874a761b9e92a88e6b4abba571c9f61 oxygen-5.10.5.tar.xz
14860e424cdcc01adc499902229c3a8ee80 kinfocenter-5.10.5.tar.xz
1493e531a86dbc0f517e79bbba83c8bba5b ksysguard-5.10.5.tar.xz
1505e8ad3d570909cd2910fbb1fe50650db kwin-5.10.5.tar.xz
15191d3559768edb8d805897f09bb9ca0ed systemsettings-5.10.5.tar.xz
1527332e40293623cc59a5d296afb0cac50 plasma-workspace-5.10.5.tar.xz
1539d55bed36f274f1b79427e0e515441b1 bluedevil-5.10.5.tar.xz
154f4f21444ee52f793c43bd1245880c408 kde-gtk-config-5.10.5.tar.xz
155b96fa0308bf5242924e608181b48d777 khotkeys-5.10.5.tar.xz
156c2259c358887d8e21b497e90a8dcef50 kmenuedit-5.10.5.tar.xz
15729a7eac44b1239a371d2f8337285cfa9 kscreen-5.10.5.tar.xz
1584117c95c592c7f51c6f1e54b9eb9a015 kwallet-pam-5.10.5.tar.xz
15937720b8eaf3e6271dc21b8cd7fda14d2 kwayland-integration-5.10.5.tar.xz
1600377a56033de0415174400dfe8e7516a kwrited-5.10.5.tar.xz
161b925292bb0300bea67e60e39bbffddf5 milou-5.10.5.tar.xz
1624ab4a1840448808ec998cbcfefdf6ac0 plasma-nm-5.10.5.tar.xz
163cf32842a5a80fcf875231548db222c73 plasma-pa-5.10.5.tar.xz
164e477f6554f7a266e52521ff98cc7b798 plasma-workspace-wallpapers-5.10.5.tar.xz
165eb76e3c900a3288792eb36524394ace8 polkit-kde-agent-1-5.10.5.tar.xz
166cf9600ad417ac19a2905f313d2a4b63c powerdevil-5.10.5.tar.xz
16707df99ee595a53c6d9f50c17ddb7bcb4 plasma-desktop-5.10.5.tar.xz
1685f69006dbd233aefa54b1f2f474ba0ec kdeplasma-addons-5.10.5.tar.xz
16973bf718d8625bcd7990200854846f330 kgamma5-5.10.5.tar.xz
1703013943358a15d878ffcd6cc0529ee8c ksshaskpass-5.10.5.tar.xz
171#2108f6f1856edbb845303faffa0663ec plasma-sdk-5.10.5.tar.xz
17299243c64866c23c03251fbe179ac4f4b sddm-kcm-5.10.5.tar.xz
173e05c789e6f6e21d642c4194480ca1b8c user-manager-5.10.5.tar.xz
174da06f5c055b78c773b8acd813cb22682 discover-5.10.5.tar.xz
175#c3463607251ff3fdcd73cc5eb0ab203c breeze-grub-5.10.5.tar.xz
176#f2e14a9075792c3e3a6df512490429b4 breeze-plymouth-5.10.5.tar.xz
177ac13d5b70b28c77d3a37d22cd4b949d5 kactivitymanagerd-5.10.5.tar.xz
17874e1cf72ec6c4ad920447b4cc7635c08 plasma-integration-5.10.5.tar.xz
179c03584b89c09b0d154bdb93290c11b81 plasma-tests-5.10.5.tar.xz
180#479e80625971fedb4bef3101060c91cf plymouth-kcm-5.10.5.tar.xz
1813ec1936fa9def125630493418455b6d8 xdg-desktop-portal-kde-5.10.5.tar.xz</literal>
[153a5795]182EOF</userinput></screen>
183
[a01d308]184 <note><para>The breeze-grub, breeze-plymouth, and plymouth-kcm packages
185 above are all for customized support of <ulink
[ce228c2]186 url="https://www.freedesktop.org/wiki/Software/Plymouth/">Plymouth</ulink>
187 which is designed to be run within an initial ram disk during boot (see
[3011abe]188 <xref linkend="initramfs"/>). The plasma-sdk package is optional and used
[dd8ae08]189 for software development.</para></note>
[ce228c2]190
[153a5795]191 </sect2>
192
193 <sect2 role="installation">
194 <title>Installation of Plasma5</title>
195
196 &as_root;
197
198 <para>
199 First, start a subshell that will exit on error:
200 </para>
201
202<screen><userinput>bash -e</userinput></screen>
203
204 <para>
205 Install all of the packages by running the following
206 commands:
207 </para>
208
209<screen><userinput>while read -r line; do
210
211 # Get the file name, ignoring comments and blank lines
212 if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
213 file=$(echo $line | cut -d" " -f2)
[f3429309]214
[153a5795]215 pkg=$(echo $file|sed 's|^.*/||') # Remove directory
216 packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
217
218 tar -xf $file
219 pushd $packagedir
220
[69a9de5]221 mkdir build
222 cd build
[153a5795]223
[1c8d0ff]224 cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
225 -DCMAKE_BUILD_TYPE=Release \
226 -DBUILD_TESTING=OFF \
[69a9de5]227 -Wno-dev .. &amp;&amp;
[153a5795]228
[69a9de5]229 make
230 as_root make install
231 popd
[153a5795]232
[b44e7de2]233<!-- some packages end up with files owned by root in $packagedir,
[8f445fdc]234 so use as_root for removing -->
235 as_root rm -rf $packagedir
[69a9de5]236 as_root /sbin/ldconfig
237
[ed4a7a2]238done &lt; plasma-&plasma5-version;.md5
[153a5795]239
[1c8d0ff]240exit
241
242cd $KF5_PREFIX/share/plasma/plasmoids
[153a5795]243
[1c8d0ff]244for j in $(find -name \*.js); do
[3d656d7]245 as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
[1c8d0ff]246done</userinput></screen>
[153a5795]247
248 </sect2>
249
250 <sect2 role="commands">
251 <title>Command Explanations</title>
252
253 <para>
[1c8d0ff]254 <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
255 Create symbolic links so qml files can find needed javascript modules.
[153a5795]256 </para>
257
258 </sect2>
[3b0f105]259
260 <sect2 role="configuration">
261 <title>Configuring Plasma</title>
262
263 <sect3>
264 <title>Linux PAM Configuration</title>
265
266 <para>
267 If you built Plasma with the recommended <application>Linux
268 PAM</application> support, create necessary configuration files by
269 running the following commands as the <systemitem
270 class="username">root</systemitem> user:
271 </para>
272
273<screen role="root"><userinput>cat &gt;&gt; /etc/pam.d/kde &lt;&lt; "EOF"
274# Begin /etc/pam.d/kde
275
276auth requisite pam_nologin.so
277auth required pam_env.so
278
279auth required pam_succeed_if.so uid &gt;= 1000 quiet
280auth include system-auth
281
282account include system-account
283password include system-password
284session include system-session
285
286# End /etc/pam.d/kde
287EOF
288
289cat &gt; /etc/pam.d/kde-np &lt;&lt; "EOF"
290# Begin /etc/pam.d/kde-np
291
292auth requisite pam_nologin.so
293auth required pam_env.so
294
295auth required pam_succeed_if.so uid &gt;= 1000 quiet
296auth required pam_permit.so
297
298account include system-account
299password include system-password
300session include system-session
301
302# End /etc/pam.d/kde-np
303EOF
304
305cat &gt; /etc/pam.d/kscreensaver &lt;&lt; "EOF"
306# Begin /etc/pam.d/kscreensaver
307
308auth include system-auth
309account include system-account
310
311# End /etc/pam.d/kscreensaver
312EOF</userinput></screen>
313 </sect3>
314 </sect2>
315
[1c8d0ff]316 <sect2 role="starting">
317 <title>Starting Plasma5</title>
318
[3f460da0]319 <para revision="sysv">
[1c8d0ff]320 You can start <application>Plasma5</application> from runlevel 3, using
321 <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
322 such as <xref linkend="sddm"/>.
323 </para>
324
[3f460da0]325 <para revision="systemd">
326 You can start <application>Plasma5</application> from a TTY, using
[fd42347a]327 <xref linkend="xinit"/><!--, or from a graphical display manager, such as
328 <xref linkend="sddm"/>-->.
[3f460da0]329 </para>
330
[1c8d0ff]331 <para>
[460cec4b]332 To start <application>Plasma 5</application> using <xref linkend="xinit"/>,
[1c8d0ff]333 run the following commands:
334 </para>
335
[3f460da0]336<screen revision="sysv"><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
[1c8d0ff]337<literal>ck-launch-session dbus-launch --exit-with-session $KF5_PREFIX/bin/startkde</literal>
338EOF
339
[3f460da0]340startx</userinput></screen>
341
342<screen revision="systemd"><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
343<literal>dbus-launch --exit-with-session $KF5_PREFIX/bin/startkde</literal>
344EOF
345
[1c8d0ff]346startx</userinput></screen>
347
348 <para>
349 The X session starts on the first unused virtual terminal, normally vt7.
350 You can switch to another vt<emphasis>n</emphasis> simultaneously
351 pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
352 (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
353 normally started at vt7, use Ctrl-Alt-F7. The vt where the command
354 <command>startx</command> was executed will display many messages,
355 including X starting messages, applications automatically started with
356 the session, and eventually, some warning and error messages. You may
357 prefer to redirect those messages to a log file, which not only will keep
358 the initial vt uncluttered, but can also be used for debugging purposes. This
359 can be done starting X with:
360 </para>
361
[3011abe]362 <screen><userinput>startx &amp;&gt; ~/x-session-errors</userinput></screen>
[1c8d0ff]363
[3f460da0]364 <note revision="sysv">
[1c8d0ff]365 <para>
366 You may wish to drop consolekit and/or dbus-launch, e.g., just using
367 startkde in ~/.xinitrc. However some capabilities such as mounting or
368 umounting file systems from a file manager will not be possible, or the
369 reboot option may be absent or inoperative, among other problems.
370 </para>
371 </note>
372 <para>
373 When shutting down or rebooting, the shutdown messages appear on the vt
374 where X was running. If you wish to see those messages, simultaneously
375 press keys Alt-F7 (assuming that X was running on vt7).
376 </para>
377
[f29eb8a]378 <para>If you intend to start <application>Plasma</application> using a
379 display manager such as <xref linkend="sddm"/>, there will be two entries
380 for <application>Plasma</application>, one for use with
381 <application>Xorg</application>, and another for
382 <application>Wayland</application>. Modify the
383 <application>Xorg</application> entry with the following command, as the
384 <systemitem class="username">root</systemitem> user, so that you can
385 differentiate between the two:</para>
386
387<screen><userinput role="root">sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
388
389
[1c8d0ff]390 </sect2>
391
[153a5795]392 <sect2 role="content">
393 <title>Contents</title>
394
395 <segmentedlist>
396 <segtitle>Installed Programs</segtitle>
397 <segtitle>Installed Libraries</segtitle>
398 <segtitle>Installed Directories</segtitle>
399
400 <seglistitem>
401 <seg>
[83ef2a4]402 There are too many plasma programs (50 in /opt/kf5/bin) to list
403 separately here.
[153a5795]404 </seg>
405 <seg>
[83ef2a4]406 There are too many plasma libraries (39 in /opt/kf5/lib) to list
407 separately here.
[153a5795]408 </seg>
409 <seg>
[83ef2a4]410 There are too many plasma directories (over 1000 in /opt/kf5) to
411 list separately here.
[153a5795]412 </seg>
413 </seglistitem>
414 </segmentedlist>
415
416 </sect2>
417
418</sect1>
419
Note: See TracBrowser for help on using the repository browser.