source: kde/plasma5/plasma-all.xml@ 4969ec3c

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.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 4969ec3c was 4969ec3c, checked in by Douglas R. Reno <renodr@…>, 4 years ago

plasma5: Use the correct name of plasmawayland.desktop

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

  • Property mode set to 100644
File size: 16.1 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">
[d9907c9]10 <!ENTITY plasma5-size "108 MB">
[1d4ec9d]11 <!ENTITY plasma5-buildsize "1.2 GB (294 MB installed)">
[d9907c9]12 <!ENTITY plasma5-time "17 SBU (using parallelism=4)">
[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">
[2630345]26 <primary sortas="a-kde-plasma">KDE Plasma 5</primary>
[153a5795]27 </indexterm>
28
[1c8c15c]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>
[366fbbb8]33
[d9907c9]34 &lfs91_checked;
[153a5795]35
[1c8c15c]36 <para>
37 The instructions below build all of the Plasma 5 packages in one
38 step by using a bash script.
39 </para>
[153a5795]40
41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
[1c8c15c]44 <para>
45 Download (HTTP): <ulink url="&plasma5-download-http;"/>
46 </para>
[153a5795]47 </listitem>
48 <listitem>
[1c8c15c]49 <para>
50 Download (FTP): <ulink url="&plasma5-download-ftp;"/>
51 </para>
[153a5795]52 </listitem>
53 <listitem>
[1c8c15c]54 <para>
55 Download MD5 sum: &plasma5-md5sum;
56 </para>
[153a5795]57 </listitem>
58 <listitem>
[1c8c15c]59 <para>
60 Download size: &plasma5-size;
61 </para>
[153a5795]62 </listitem>
63 <listitem>
[1c8c15c]64 <para>
65 Estimated disk space required: &plasma5-buildsize;
66 </para>
[153a5795]67 </listitem>
68 <listitem>
[1c8c15c]69 <para>
70 Estimated build time: &plasma5-time;
71 </para>
[153a5795]72 </listitem>
73 </itemizedlist>
74
75 <bridgehead renderas="sect3">Plasma 5 Dependencies</bridgehead>
76
77 <bridgehead renderas="sect4">Required</bridgehead>
78 <para role="required">
[89f706b2]79 <!--<xref linkend="fontforge"/>,-->
[96f2797]80 <xref linkend="GConf"/>,
[f3429309]81 <xref linkend="gtk2"/>,
82 <xref linkend="gtk3"/>,
[f97d5f6]83 <xref linkend="kf5-frameworks"/>,
[366fbbb8]84 <xref linkend="libpwquality"/>,
[1c8d0ff]85 <xref linkend="libxkbcommon"/>,
[366fbbb8]86 <xref linkend="mesa"/> built with <xref linkend="wayland"/>,
[f3429309]87 <xref linkend="NetworkManager"/>,
[1f21b9c]88 <xref linkend="pipewire"/>,
[f3429309]89 <xref linkend="pulseaudio"/>,
[b7a66395]90 <xref linkend="qca"/>,
[95965b6]91 <xref linkend="sassc"/>,
[f3429309]92 <xref linkend="taglib"/>, and
[1c8d0ff]93 <xref linkend="xcb-util-cursor"/>
[153a5795]94 </para>
95
96 <bridgehead renderas="sect4">Recommended</bridgehead>
97 <para role="recommended">
[72b8751]98 <xref linkend="fftw"/>,
99 <xref linkend="gsettings-desktop-schemas"/>,
[f3429309]100 <xref linkend="libdbusmenu-qt"/>,
101 <xref linkend="libcanberra"/>,
102 <xref linkend="libinput"/>,
[0779b94]103 <xref linkend="linux-pam"/>,
[f3429309]104 <xref linkend="lm_sensors"/>,
[88bb10f]105 <xref linkend="oxygen-icons5"/>, and
[0779b94]106 <xref linkend="pciutils"/>
[153a5795]107 </para>
108
[0779b94]109 <bridgehead renderas="sect4">Optional</bridgehead>
[153a5795]110 <para role="optional">
[0779b94]111 <xref linkend="glu"/>,
[7b1bc743]112 <xref linkend='ibus'/>,
[0779b94]113 <xref linkend="xorg-synaptics-driver"/>,
[ce228c2]114 <ulink url="http://distributions.freedesktop.org/wiki/AppStream">appstream-qt</ulink>,
115 <ulink url="https://www.kdevelop.org/">KDevPlatform</ulink>,
[ea529d1]116 <ulink url="http://www.catb.org/gpsd/libgps.html">libgps</ulink>,
[0779b94]117 <ulink url="https://github.com/libhybris/libhybris">libhybris</ulink>,
118 <ulink url="http://sourceforge.net/projects/libraw1394/">libraw1394</ulink>,
119 <ulink url="https://bitbucket.org/godsme/mockcpp">mockcpp</ulink>,
[ce228c2]120 <ulink url="https://www.freedesktop.org/software/PackageKit/releases/">packagekit-qt</ulink>,
[ea529d1]121 <ulink url="http://qalculate.github.io/">Qalculate</ulink>,
[ce228c2]122 <ulink url="https://launchpad.net/qapt">Qapt</ulink>,
123 <ulink url="https://github.com/osiam/osiam">SCIM</ulink>, and
[4c3c7f43]124 <ulink url="http://www.dest-unreach.org/socat/">socat</ulink> (for pam_kwallet)
[153a5795]125 </para>
126
127 <para condition="html" role="usernotes">User Notes:
128 <ulink url="&blfs-wiki;/kf5"/></para>
129
130 <sect2>
[773b316]131 <title>Downloading KDE Plasma5</title>
[153a5795]132
133 <para>
134 The easiest way to get the KDE Plasma5 packages is to use a single
135 <command>wget</command> to fetch them all at once:
136 </para>
[f3429309]137
[153a5795]138<screen><userinput>url=http://download.kde.org/stable/plasma/&plasma5-version;/
[a01d308]139wget -r -nH -nd -A '*.xz' -np $url</userinput>
[153a5795]140<literal>
[f3429309]141The options used here are:
[153a5795]142 -r recurse through child directories
143 -nH disable generation of host-prefixed directories
[a01d308]144 -nd do not create a hierarchy of directories
[153a5795]145 -A '*.xz' just get the *.xz files
[10a9447]146 -np don't get parent directories</literal></screen>
[153a5795]147
148 </sect2>
149
150 <sect2>
151 <title>Setting Package Order</title>
152
153 <para>
154 The order of building files is important due to internal dependencies.
155 Create the list of files in the proper order as follows:
156 </para>
157
[ed4a7a2]158<screen><userinput>cat &gt; plasma-&plasma5-version;.md5 &lt;&lt; "EOF"
[d9907c9]159<literal>be7cccb3859c253740ad20eae56a1457 kdecoration-5.18.1.tar.xz
16084b92ff5c7ab70537bc757122375ab3c libkscreen-5.18.1.tar.xz
161645e7d0e5167d89abfcb0011748179a8 libksysguard-5.18.1.tar.xz
1620d6769306901883a9aadaaed4c199314 breeze-5.18.1.tar.xz
1639c797eddc66820e119a32b3ca0e54327 breeze-gtk-5.18.1.tar.xz
1642369c961fee61992bf16f8e5aabc296a kscreenlocker-5.18.1.tar.xz
165da5b0b9caca27a0b7faea3aac732e5d5 oxygen-5.18.1.tar.xz
166c687fdd7a0c36a3a6d7ebd063f3aee61 kinfocenter-5.18.1.tar.xz
167ae2bf8875c1b374d172267c7a0cca982 ksysguard-5.18.1.tar.xz
168216b067f13f43238c7515815001fc862 kwin-5.18.1.tar.xz
16997c106ec13bd9ecf87cc61e1cc29f374 plasma-workspace-5.18.1.tar.xz
1708d3ea52e9b215523225e316d47469f3f bluedevil-5.18.1.tar.xz
1717c16855fe0c390a9eaa60d2f4e624736 kde-gtk-config-5.18.1.tar.xz
172597ac5c22e2dc7bad5773781c4f5c563 khotkeys-5.18.1.tar.xz
173cd59deb1769ed3fdcfd620f1d5e82676 kmenuedit-5.18.1.tar.xz
174e957ca2f6374385e3b5598f839f843a5 kscreen-5.18.1.tar.xz
17525db35f344bd12fdf6d6e54b87d4b90c kwallet-pam-5.18.1.tar.xz
1768bda1526aa7f9dbf6aa842b08cf22655 kwayland-integration-5.18.1.tar.xz
177d0a29aed4ee8bcd9fce3e545f82832be kwrited-5.18.1.tar.xz
1782f4252bc1a8b07062e57d229fc3bc361 milou-5.18.1.tar.xz
1798663fa971594bc70d6898e8604f8c99a plasma-nm-5.18.1.tar.xz
1800554888991a1f1f70cbbb95afa48184a plasma-pa-5.18.1.tar.xz
18125fcaf7cb52f20b3126af9baa1409e3c plasma-workspace-wallpapers-5.18.1.tar.xz
1820b88def5b87e822aa7370d91dfd07913 polkit-kde-agent-1-5.18.1.tar.xz
1830326bf85fb50e15d5e78c43be9457993 powerdevil-5.18.1.tar.xz
18458ec01d70d18f23a03ec2040beb506f1 plasma-desktop-5.18.1.tar.xz
1859a44fb928f5dd22a695d38617660aeee kdeplasma-addons-5.18.1.tar.xz
1867200c6ebdc63dde79f64a9b2472b2d37 kgamma5-5.18.1.tar.xz
18778d68fd989b451a8e75fd9278a0c1947 ksshaskpass-5.18.1.tar.xz
188#4c907670bbe788499038254311f6ac0b plasma-sdk-5.18.1.tar.xz
1897533a7a459d476ece00d558d4fc9a8f7 sddm-kcm-5.18.1.tar.xz
1902b2351beb674ce01cca0b58d3c8a49b2 user-manager-5.18.1.tar.xz
191c76653dce9c3f9f1ac1edae6fe342ee7 discover-5.18.1.tar.xz
192#ca25ee8ad60b64d19850ccba8994547c breeze-grub-5.18.1.tar.xz
193#c8377f0f2ac3109014c8062e74145def breeze-plymouth-5.18.1.tar.xz
1947b5e6cbb5d84b69745030773bea176c0 kactivitymanagerd-5.18.1.tar.xz
195fa2e316a15f24c64a71c36d30b7f7585 plasma-integration-5.18.1.tar.xz
196a5d8cc4a47ba59969f98be0cc5800f83 plasma-tests-5.18.1.tar.xz
197#c13ae6eaa29760e67a9c17d6a1a48153 plymouth-kcm-5.18.1.tar.xz
198d6e2d1a982c83a553607d46a04fcfff7 xdg-desktop-portal-kde-5.18.1.tar.xz
1995b7bf736b767d40d77a4c51bca9708e0 drkonqi-5.18.1.tar.xz
2001ccf74eb8b851b1dba87f2cd3ed54052 plasma-vault-5.18.1.tar.xz
201a0f85c77e48c35a17cc326491155249e plasma-browser-integration-5.18.1.tar.xz
2027d73463b9115234991a631dc6741bab4 kde-cli-tools-5.18.1.tar.xz
203d420ca0680c67496b8572b143aae1dc9 systemsettings-5.18.1.tar.xz
204a2ae6b65f5ae2df57cfb29bf8ae56eda plasma-thunderbolt-5.18.1.tar.xz
205#3df1a7d13f5cce484ce8fb684c1c0015 plasma-nano-5.18.1.tar.xz
206#498e4c99016d51bc44abdb8416e7dba2 plasma-phone-components-5.18.1.tar.xz</literal>
[153a5795]207EOF</userinput></screen>
208
[1c8c15c]209 <note>
210 <para>
211 The breeze-grub, breeze-plymouth, and plymouth-kcm packages above are
212 all for customized support of <ulink
213 url="https://www.freedesktop.org/wiki/Software/Plymouth/"
214 >Plymouth</ulink>
215 which is designed to be run within an initial ram disk during boot (see
216 <xref linkend="initramfs"/>). The plasma-sdk package is optional and
217 used for software development. The plasma-nano package is used for
218 embedded systems and plasma-phone-components provides phone
219 functionality for Plasma.
220 </para>
221 </note>
[ce228c2]222
[153a5795]223 </sect2>
224
225 <sect2 role="installation">
226 <title>Installation of Plasma5</title>
227
228 &as_root;
229
230 <para>
231 First, start a subshell that will exit on error:
232 </para>
233
234<screen><userinput>bash -e</userinput></screen>
235
236 <para>
237 Install all of the packages by running the following
238 commands:
239 </para>
240
241<screen><userinput>while read -r line; do
242
243 # Get the file name, ignoring comments and blank lines
244 if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
245 file=$(echo $line | cut -d" " -f2)
[f3429309]246
[153a5795]247 pkg=$(echo $file|sed 's|^.*/||') # Remove directory
248 packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
249
250 tar -xf $file
251 pushd $packagedir
252
[4e0a40f]253 # Fix some build issues when generating some configuration files
[cfd5cb3]254 case $name in
255 plasma-workspace)
256 sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
257 ;;
258
259 khotkeys)
260 sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
261 ;;
262
263 plasma-desktop)
264 sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
265 ;;
266 esac
267
[69a9de5]268 mkdir build
269 cd build
[153a5795]270
[1c8d0ff]271 cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
272 -DCMAKE_BUILD_TYPE=Release \
273 -DBUILD_TESTING=OFF \
[69a9de5]274 -Wno-dev .. &amp;&amp;
[153a5795]275
[69a9de5]276 make
277 as_root make install
278 popd
[153a5795]279
[b44e7de2]280<!-- some packages end up with files owned by root in $packagedir,
[8f445fdc]281 so use as_root for removing -->
282 as_root rm -rf $packagedir
[69a9de5]283 as_root /sbin/ldconfig
284
[ed4a7a2]285done &lt; plasma-&plasma5-version;.md5
[153a5795]286
[527f3db]287exit</userinput></screen>
[1c8d0ff]288
[527f3db]289 <para>
290 If you did not set <envar>$KF5_PREFIX</envar> to
291 <filename>/usr</filename>, create symlinks to allow display managers to
292 find <application>Plasma</application>:
293 </para>
294
295<screen><userinput>as_root install -dvm 755 /usr/share/xsessions &amp;&amp;
296cd /usr/share/xsessions/ &amp;&amp;
297[ -e plasma.desktop ] ||
298as_root ln -sfv $KF5_PREFIX/share/xsessions/plasma.desktop &amp;&amp;
299as_root install -dvm 755 /usr/share/wayland-sessions &amp;&amp;
300cd /usr/share/wayland-sessions/ &amp;&amp;
[4969ec3c]301[ -e plasmawayland.desktop ] ||
302as_root ln -sfv $KF5_PREFIX/share/wayland-sessions/plasmawayland.desktop<!--
[1c8d0ff]303cd $KF5_PREFIX/share/plasma/plasmoids
[153a5795]304
[1c8d0ff]305for j in $(find -name \*.js); do
[3d656d7]306 as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
[5ac58b54]307done--></userinput></screen>
[153a5795]308
309 </sect2>
[5ac58b54]310<!--
[153a5795]311 <sect2 role="commands">
312 <title>Command Explanations</title>
313
314 <para>
[1c8d0ff]315 <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
316 Create symbolic links so qml files can find needed javascript modules.
[153a5795]317 </para>
318
319 </sect2>
[5ac58b54]320-->
[3b0f105]321 <sect2 role="configuration">
322 <title>Configuring Plasma</title>
323
324 <sect3>
325 <title>Linux PAM Configuration</title>
326
327 <para>
328 If you built Plasma with the recommended <application>Linux
329 PAM</application> support, create necessary configuration files by
330 running the following commands as the <systemitem
331 class="username">root</systemitem> user:
332 </para>
333
[941658d]334<screen role="root"><userinput>cat &gt; /etc/pam.d/kde &lt;&lt; "EOF"
[51dfb3e]335<literal># Begin /etc/pam.d/kde
[3b0f105]336
337auth requisite pam_nologin.so
338auth required pam_env.so
339
340auth required pam_succeed_if.so uid &gt;= 1000 quiet
341auth include system-auth
342
343account include system-account
344password include system-password
345session include system-session
346
[51dfb3e]347# End /etc/pam.d/kde</literal>
[3b0f105]348EOF
349
350cat &gt; /etc/pam.d/kde-np &lt;&lt; "EOF"
[51dfb3e]351<literal># Begin /etc/pam.d/kde-np
[3b0f105]352
353auth requisite pam_nologin.so
354auth required pam_env.so
355
356auth required pam_succeed_if.so uid &gt;= 1000 quiet
357auth required pam_permit.so
358
359account include system-account
360password include system-password
361session include system-session
362
[51dfb3e]363# End /etc/pam.d/kde-np</literal>
[3b0f105]364EOF
365
366cat &gt; /etc/pam.d/kscreensaver &lt;&lt; "EOF"
[51dfb3e]367<literal># Begin /etc/pam.d/kscreensaver
[3b0f105]368
369auth include system-auth
370account include system-account
371
[51dfb3e]372# End /etc/pam.d/kscreensaver</literal>
[3b0f105]373EOF</userinput></screen>
374 </sect3>
375 </sect2>
376
[1c8d0ff]377 <sect2 role="starting">
378 <title>Starting Plasma5</title>
379
[3f460da0]380 <para revision="sysv">
[1c8d0ff]381 You can start <application>Plasma5</application> from runlevel 3, using
382 <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
[c225bfa]383 such as <xref linkend="lightdm"/>.
[1c8d0ff]384 </para>
385
[3f460da0]386 <para revision="systemd">
387 You can start <application>Plasma5</application> from a TTY, using
[fd42347a]388 <xref linkend="xinit"/><!--, or from a graphical display manager, such as
389 <xref linkend="sddm"/>-->.
[3f460da0]390 </para>
391
[1c8d0ff]392 <para>
[460cec4b]393 To start <application>Plasma 5</application> using <xref linkend="xinit"/>,
[1c8d0ff]394 run the following commands:
395 </para>
396
[51dfb3e]397<screen><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
[718be191]398<literal>dbus-launch --exit-with-session $KF5_PREFIX/bin/startplasma-x11</literal>
[3f460da0]399EOF
400
[1c8d0ff]401startx</userinput></screen>
402
403 <para>
404 The X session starts on the first unused virtual terminal, normally vt7.
405 You can switch to another vt<emphasis>n</emphasis> simultaneously
406 pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
407 (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
408 normally started at vt7, use Ctrl-Alt-F7. The vt where the command
409 <command>startx</command> was executed will display many messages,
410 including X starting messages, applications automatically started with
411 the session, and eventually, some warning and error messages. You may
412 prefer to redirect those messages to a log file, which not only will keep
413 the initial vt uncluttered, but can also be used for debugging purposes. This
414 can be done starting X with:
415 </para>
416
[3011abe]417 <screen><userinput>startx &amp;&gt; ~/x-session-errors</userinput></screen>
[1c8d0ff]418
419 <para>
420 When shutting down or rebooting, the shutdown messages appear on the vt
421 where X was running. If you wish to see those messages, simultaneously
422 press keys Alt-F7 (assuming that X was running on vt7).
423 </para>
424
[1c8c15c]425 <para>
426 If you intend to start <application>Plasma</application> using a
[c225bfa]427 display manager such as <xref linkend="lightdm"/>, there will be two entries
[f29eb8a]428 for <application>Plasma</application>, one for use with
429 <application>Xorg</application>, and another for
430 <application>Wayland</application>. Modify the
431 <application>Xorg</application> entry with the following command, as the
432 <systemitem class="username">root</systemitem> user, so that you can
433 differentiate between the two:</para>
434
[33c8b427]435<screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
[f29eb8a]436
437
[1c8d0ff]438 </sect2>
439
[153a5795]440 <sect2 role="content">
441 <title>Contents</title>
442
443 <segmentedlist>
444 <segtitle>Installed Programs</segtitle>
445 <segtitle>Installed Libraries</segtitle>
446 <segtitle>Installed Directories</segtitle>
447
448 <seglistitem>
449 <seg>
[83ef2a4]450 There are too many plasma programs (50 in /opt/kf5/bin) to list
451 separately here.
[153a5795]452 </seg>
453 <seg>
[83ef2a4]454 There are too many plasma libraries (39 in /opt/kf5/lib) to list
455 separately here.
[153a5795]456 </seg>
457 <seg>
[83ef2a4]458 There are too many plasma directories (over 1000 in /opt/kf5) to
459 list separately here.
[153a5795]460 </seg>
461 </seglistitem>
462 </segmentedlist>
463
464 </sect2>
465
466</sect1>
Note: See TracBrowser for help on using the repository browser.