source: kde/plasma5/plasma-all.xml@ 17f2889

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 17f2889 was 9db9de9, checked in by Bruce Dubbs <bdubbs@…>, 4 years ago

Update to plasma-5.18.0

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

  • Property mode set to 100644
File size: 15.9 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 "98 MB">
11 <!ENTITY plasma5-buildsize "1.2 GB (294 MB installed)">
12 <!ENTITY plasma5-time "20 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 &lfs90_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="pipewire"/>,
73 <xref linkend="pulseaudio"/>,
74 <xref linkend="qca"/>,
75 <xref linkend="sassc"/>,
76 <xref linkend="taglib"/>, and
77 <xref linkend="xcb-util-cursor"/>
78 </para>
79
80 <bridgehead renderas="sect4">Recommended</bridgehead>
81 <para role="recommended">
82 <xref linkend="fftw"/>,
83 <xref linkend="gsettings-desktop-schemas"/>,
84 <xref linkend="libdbusmenu-qt"/>,
85 <xref linkend="libcanberra"/>,
86 <xref linkend="libinput"/>,
87 <xref linkend="linux-pam"/>,
88 <xref linkend="lm_sensors"/>,
89 <xref linkend="oxygen-icons5"/>, and
90 <xref linkend="pciutils"/>
91 </para>
92
93 <bridgehead renderas="sect4">Optional</bridgehead>
94 <para role="optional">
95 <xref linkend="glu"/>,
96 <xref linkend='ibus'/>,
97 <xref linkend="xorg-synaptics-driver"/>,
98 <ulink url="http://distributions.freedesktop.org/wiki/AppStream">appstream-qt</ulink>,
99 <ulink url="https://www.kdevelop.org/">KDevPlatform</ulink>,
100 <ulink url="http://www.catb.org/gpsd/libgps.html">libgps</ulink>,
101 <ulink url="https://github.com/libhybris/libhybris">libhybris</ulink>,
102 <ulink url="http://sourceforge.net/projects/libraw1394/">libraw1394</ulink>,
103 <ulink url="https://bitbucket.org/godsme/mockcpp">mockcpp</ulink>,
104 <ulink url="https://www.freedesktop.org/software/PackageKit/releases/">packagekit-qt</ulink>,
105 <ulink url="http://qalculate.github.io/">Qalculate</ulink>,
106 <ulink url="https://launchpad.net/qapt">Qapt</ulink>,
107 <ulink url="https://github.com/osiam/osiam">SCIM</ulink>, and
108 <ulink url="http://www.dest-unreach.org/socat/">socat</ulink> (for pam_kwallet)
109 </para>
110
111 <para condition="html" role="usernotes">User Notes:
112 <ulink url="&blfs-wiki;/kf5"/></para>
113
114 <sect2>
115 <title>Downloading KDE Plasma5</title>
116
117 <para>
118 The easiest way to get the KDE Plasma5 packages is to use a single
119 <command>wget</command> to fetch them all at once:
120 </para>
121
122<screen><userinput>url=http://download.kde.org/stable/plasma/&plasma5-version;/
123wget -r -nH -nd -A '*.xz' -np $url</userinput>
124<literal>
125The options used here are:
126 -r recurse through child directories
127 -nH disable generation of host-prefixed directories
128 -nd do not create a hierarchy of directories
129 -A '*.xz' just get the *.xz files
130 -np don't get parent directories</literal></screen>
131
132 </sect2>
133
134 <sect2>
135 <title>Setting Package Order</title>
136
137 <para>
138 The order of building files is important due to internal dependencies.
139 Create the list of files in the proper order as follows:
140 </para>
141
142<screen><userinput>cat &gt; plasma-&plasma5-version;.md5 &lt;&lt; "EOF"
143<literal>65ad6be44bae48a8b95282f38a172bd5 kdecoration-5.18.0.tar.xz
144352ee02e39de0bb991fde185d910dc2b libkscreen-5.18.0.tar.xz
1456cd8353bb8ee8017eb9cec1d9784354e libksysguard-5.18.0.tar.xz
1464bfa3626154af80e53fa6df31088fa5d breeze-5.18.0.tar.xz
1476f4e972f00edbcc3078646066546fd1d breeze-gtk-5.18.0.tar.xz
14844ced6d2ea583ecdf39eb12121f797ea kscreenlocker-5.18.0.tar.xz
1498ad9334b3b7cdc74a457a43fe8e3d763 oxygen-5.18.0.tar.xz
15049a00ae8e8516ee9c63b1361e7e8b35a kinfocenter-5.18.0.tar.xz
1518877136028cbf810156ace05e23a0606 ksysguard-5.18.0.tar.xz
1526c9e520619c2dd1cfb58b18c39a35a2a kwin-5.18.0.tar.xz
15337a8c7b47c30a6fbc96812e07e520a17 plasma-workspace-5.18.0.tar.xz
1542df5eab9f574037d8ddd44595ae9740b bluedevil-5.18.0.tar.xz
1550bdcc24e5892f1ef18dacec5a7a02335 kde-gtk-config-5.18.0.tar.xz
156c9aa2a00ef44caf72fc35bac425bfb11 khotkeys-5.18.0.tar.xz
157bf513fd5cb621fe6188ae539af1357a0 kmenuedit-5.18.0.tar.xz
158a24eb028b1942bbb6be277830c883ca4 kscreen-5.18.0.tar.xz
159ff159637ce8450930120560657dc7aa4 kwallet-pam-5.18.0.tar.xz
16076828427796d566b04947c01219fb538 kwayland-integration-5.18.0.tar.xz
16126a01a5e99685854aa6cee4c1b5aa3ac kwrited-5.18.0.tar.xz
16275d8aef7a58acabd6cbf8e58622264e2 milou-5.18.0.tar.xz
1633702c99b031856ee14facf953ab96a12 plasma-nm-5.18.0.tar.xz
164af558e3b675c1dbde752b8f27d107f34 plasma-pa-5.18.0.tar.xz
165dbbf224c5f626d6e93aa049f05c79824 plasma-workspace-wallpapers-5.18.0.tar.xz
16664d690559f2ae9ad9724709d880e500b polkit-kde-agent-1-5.18.0.tar.xz
1672a295e35d8344c8c486d35ce31daed2e powerdevil-5.18.0.tar.xz
168f7763083a9ae5562a88725ede46019d9 plasma-desktop-5.18.0.tar.xz
169fbd61128d753723f94f3e3377f1c6dbf kdeplasma-addons-5.18.0.tar.xz
17004ff88998c5a0732b9a1bb76320155ca kgamma5-5.18.0.tar.xz
17154420fb7d114b527c820018db615db80 ksshaskpass-5.18.0.tar.xz
172#246b73de780bf92444ac4d6f69f50d2f plasma-sdk-5.18.0.tar.xz
1733ae3cbec00e5f354e680ae88683e92b4 sddm-kcm-5.18.0.tar.xz
17401663f7d1817c976119189ccbd8fc139 user-manager-5.18.0.tar.xz
175434034a0af6aa4456adef6002f9964d7 discover-5.18.0.tar.xz
176#0a5db8616c37961c34b4107672f8ca1f breeze-grub-5.18.0.tar.xz
177#2483b77974bfcd0b311d10d947486b8d breeze-plymouth-5.18.0.tar.xz
17819eeb2603042ed8f13861728a42240c3 kactivitymanagerd-5.18.0.tar.xz
17975ba0f7a3eb652b8aa52cdb2bb6cf449 plasma-integration-5.18.0.tar.xz
18071b682f963f4c219a10c92706f7e0de0 plasma-tests-5.18.0.tar.xz
181#2d10a553fa7d7ab7df3ad14ce41d4f7e plymouth-kcm-5.18.0.tar.xz
1826801ac281d11cd0b06132b8f0044b913 xdg-desktop-portal-kde-5.18.0.tar.xz
18369c20946b2cfaa5d94443bf2daa5cefc drkonqi-5.18.0.tar.xz
184404bb032a9870e2182ed28bac4b62f30 plasma-vault-5.18.0.tar.xz
185916bb56baee7ce272dc0076eef96c116 plasma-browser-integration-5.18.0.tar.xz
1866d28a752327246b0085192d784a30164 kde-cli-tools-5.18.0.tar.xz
187b89a6fcfd152fcff0c737b7994b93503 systemsettings-5.18.0.tar.xz
1889a4d8193ff7a01e0fea74de69897f63a plasma-thunderbolt-5.18.0.tar.xz
189#7f67365c7aa0e385abdc3b8e5a4ed290 plasma-nano-5.18.0.tar.xz
190#98a08ead926817ef803e0f0037ed7336 plasma-phone-components-5.18.0.tar.xz</literal>
191EOF</userinput></screen>
192
193 <note><para>The breeze-grub, breeze-plymouth, and plymouth-kcm packages
194 above are all for customized support of <ulink
195 url="https://www.freedesktop.org/wiki/Software/Plymouth/">Plymouth</ulink>
196 which is designed to be run within an initial ram disk during boot (see
197 <xref linkend="initramfs"/>). The plasma-sdk package is optional and used
198 for software development. The plasma-nano package is used for embedded
199 systems and plasma-phone-components provides phone functionality for Plasma.</para></note>
200
201 </sect2>
202
203 <sect2 role="installation">
204 <title>Installation of Plasma5</title>
205
206 &as_root;
207
208 <para>
209 First, start a subshell that will exit on error:
210 </para>
211
212<screen><userinput>bash -e</userinput></screen>
213
214 <para>
215 Install all of the packages by running the following
216 commands:
217 </para>
218
219<screen><userinput>while read -r line; do
220
221 # Get the file name, ignoring comments and blank lines
222 if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
223 file=$(echo $line | cut -d" " -f2)
224
225 pkg=$(echo $file|sed 's|^.*/||') # Remove directory
226 packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
227
228 tar -xf $file
229 pushd $packagedir
230
231 # Fix some build issues when generating some configuration files
232 case $name in
233 plasma-workspace)
234 sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
235 ;;
236
237 khotkeys)
238 sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
239 ;;
240
241 plasma-desktop)
242 sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
243 ;;
244 esac
245
246 mkdir build
247 cd build
248
249 cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
250 -DCMAKE_BUILD_TYPE=Release \
251 -DBUILD_TESTING=OFF \
252 -Wno-dev .. &amp;&amp;
253
254 make
255 as_root make install
256 popd
257
258<!-- some packages end up with files owned by root in $packagedir,
259 so use as_root for removing -->
260 as_root rm -rf $packagedir
261 as_root /sbin/ldconfig
262
263done &lt; plasma-&plasma5-version;.md5
264
265exit</userinput></screen>
266
267 <para>
268 If you did not set <envar>$KF5_PREFIX</envar> to
269 <filename>/usr</filename>, create symlinks to allow display managers to
270 find <application>Plasma</application>:
271 </para>
272
273<screen><userinput>as_root install -dvm 755 /usr/share/xsessions &amp;&amp;
274cd /usr/share/xsessions/ &amp;&amp;
275[ -e plasma.desktop ] ||
276as_root ln -sfv $KF5_PREFIX/share/xsessions/plasma.desktop &amp;&amp;
277as_root install -dvm 755 /usr/share/wayland-sessions &amp;&amp;
278cd /usr/share/wayland-sessions/ &amp;&amp;
279[ -e plasma.desktop ] ||
280as_root ln -sfv $KF5_PREFIX/share/wayland-sessions/plasma.desktop<!--
281cd $KF5_PREFIX/share/plasma/plasmoids
282
283for j in $(find -name \*.js); do
284 as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
285done--></userinput></screen>
286
287 </sect2>
288<!--
289 <sect2 role="commands">
290 <title>Command Explanations</title>
291
292 <para>
293 <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
294 Create symbolic links so qml files can find needed javascript modules.
295 </para>
296
297 </sect2>
298-->
299 <sect2 role="configuration">
300 <title>Configuring Plasma</title>
301
302 <sect3>
303 <title>Linux PAM Configuration</title>
304
305 <para>
306 If you built Plasma with the recommended <application>Linux
307 PAM</application> support, create necessary configuration files by
308 running the following commands as the <systemitem
309 class="username">root</systemitem> user:
310 </para>
311
312<screen role="root"><userinput>cat &gt; /etc/pam.d/kde &lt;&lt; "EOF"
313<literal># Begin /etc/pam.d/kde
314
315auth requisite pam_nologin.so
316auth required pam_env.so
317
318auth required pam_succeed_if.so uid &gt;= 1000 quiet
319auth include system-auth
320
321account include system-account
322password include system-password
323session include system-session
324
325# End /etc/pam.d/kde</literal>
326EOF
327
328cat &gt; /etc/pam.d/kde-np &lt;&lt; "EOF"
329<literal># Begin /etc/pam.d/kde-np
330
331auth requisite pam_nologin.so
332auth required pam_env.so
333
334auth required pam_succeed_if.so uid &gt;= 1000 quiet
335auth required pam_permit.so
336
337account include system-account
338password include system-password
339session include system-session
340
341# End /etc/pam.d/kde-np</literal>
342EOF
343
344cat &gt; /etc/pam.d/kscreensaver &lt;&lt; "EOF"
345<literal># Begin /etc/pam.d/kscreensaver
346
347auth include system-auth
348account include system-account
349
350# End /etc/pam.d/kscreensaver</literal>
351EOF</userinput></screen>
352 </sect3>
353 </sect2>
354
355 <sect2 role="starting">
356 <title>Starting Plasma5</title>
357
358 <para revision="sysv">
359 You can start <application>Plasma5</application> from runlevel 3, using
360 <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
361 such as <xref linkend="lightdm"/>.
362 </para>
363
364 <para revision="systemd">
365 You can start <application>Plasma5</application> from a TTY, using
366 <xref linkend="xinit"/><!--, or from a graphical display manager, such as
367 <xref linkend="sddm"/>-->.
368 </para>
369
370 <para>
371 To start <application>Plasma 5</application> using <xref linkend="xinit"/>,
372 run the following commands:
373 </para>
374
375<screen><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
376<literal>dbus-launch --exit-with-session $KF5_PREFIX/bin/startplasma-x11</literal>
377EOF
378
379startx</userinput></screen>
380
381 <para>
382 The X session starts on the first unused virtual terminal, normally vt7.
383 You can switch to another vt<emphasis>n</emphasis> simultaneously
384 pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
385 (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
386 normally started at vt7, use Ctrl-Alt-F7. The vt where the command
387 <command>startx</command> was executed will display many messages,
388 including X starting messages, applications automatically started with
389 the session, and eventually, some warning and error messages. You may
390 prefer to redirect those messages to a log file, which not only will keep
391 the initial vt uncluttered, but can also be used for debugging purposes. This
392 can be done starting X with:
393 </para>
394
395 <screen><userinput>startx &amp;&gt; ~/x-session-errors</userinput></screen>
396
397 <para>
398 When shutting down or rebooting, the shutdown messages appear on the vt
399 where X was running. If you wish to see those messages, simultaneously
400 press keys Alt-F7 (assuming that X was running on vt7).
401 </para>
402
403 <para>If you intend to start <application>Plasma</application> using a
404 display manager such as <xref linkend="lightdm"/>, there will be two entries
405 for <application>Plasma</application>, one for use with
406 <application>Xorg</application>, and another for
407 <application>Wayland</application>. Modify the
408 <application>Xorg</application> entry with the following command, as the
409 <systemitem class="username">root</systemitem> user, so that you can
410 differentiate between the two:</para>
411
412<screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
413
414
415 </sect2>
416
417 <sect2 role="content">
418 <title>Contents</title>
419
420 <segmentedlist>
421 <segtitle>Installed Programs</segtitle>
422 <segtitle>Installed Libraries</segtitle>
423 <segtitle>Installed Directories</segtitle>
424
425 <seglistitem>
426 <seg>
427 There are too many plasma programs (50 in /opt/kf5/bin) to list
428 separately here.
429 </seg>
430 <seg>
431 There are too many plasma libraries (39 in /opt/kf5/lib) to list
432 separately here.
433 </seg>
434 <seg>
435 There are too many plasma directories (over 1000 in /opt/kf5) to
436 list separately here.
437 </seg>
438 </seglistitem>
439 </segmentedlist>
440
441 </sect2>
442
443</sect1>
Note: See TracBrowser for help on using the repository browser.