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

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.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 c9d977e8 was c9d977e8, checked in by Pierre Labastie <pieere@…>, 6 years ago

Remove KDE4 memories

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

  • Property mode set to 100644
File size: 14.8 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">
[42846033]10 <!ENTITY plasma5-size "111 MB">
11 <!ENTITY plasma5-buildsize "985 MB (294 MB installed)">
12 <!ENTITY plasma5-time "14 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">
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
[c9d977e8]30 5 and QML. They implement the KDE Display Environment (Plasma 5).</para>
[366fbbb8]31
[f4cb967e]32 &lfs81_checked;
[153a5795]33
34 <para>The instructions below build all of the Plasma 5 packages in one
[f97d5f6]35 step by using a bash script.</para>
[153a5795]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">
[89f706b2]63 <!--<xref linkend="fontforge"/>,-->
[96f2797]64 <xref linkend="GConf"/>,
[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
[4c3c7f43]105 <ulink url="http://www.dest-unreach.org/socat/">socat</ulink> (for pam_kwallet)
[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"
[42846033]140<literal>d88f68c4dc164ffd01c8b97747a98d5b kde-cli-tools-5.11.4.tar.xz
141ec7ccf4213a349a89c44dd79ee4e84f0 kdecoration-5.11.4.tar.xz
142e5a76c0348deaf565a596ae37541b3ae libkscreen-5.11.4.tar.xz
143aa7f970cdddf05a0ea97972ee85b2238 libksysguard-5.11.4.tar.xz
144bde2d5344cd3cfbfca3d08559db3f1b1 breeze-5.11.4.tar.xz
1455fab1a28047962c2d66bfa3b922a0c7b breeze-gtk-5.11.4.tar.xz
146a93a609de1d346927399c6c12bf60843 kscreenlocker-5.11.4.tar.xz
147997c543e4cf9668ff1a76f9db29911ee oxygen-5.11.4.tar.xz
1480bcde5e63570448c76d53e20ab5eff3e kinfocenter-5.11.4.tar.xz
149de5775e01614cce24b2044f564445adc ksysguard-5.11.4.tar.xz
150f56900e45dbabb713cd4ef824e6d7323 kwin-5.11.4.tar.xz
151fd55a65c5459775ed524d8de897ec31f systemsettings-5.11.4.tar.xz
15240b6acaebf7412d4ba5feee476965e01 plasma-workspace-5.11.4.tar.xz
15323dda6808b0f584a49040cbe405af88b bluedevil-5.11.4.tar.xz
1544343f5e010ed3c0cec03e5e4b697c804 kde-gtk-config-5.11.4.tar.xz
155a99e7e73794b599be385839b88683503 khotkeys-5.11.4.tar.xz
1563a005563749fe7f1d3142b53a7f2ddfc kmenuedit-5.11.4.tar.xz
1571c3c53d350a9427cde77b8cba77a533c kscreen-5.11.4.tar.xz
1588f09c454407900cae56827caf5117e1d kwallet-pam-5.11.4.tar.xz
1599ed78f6b6407ceb16bdb594bb36bdbc2 kwayland-integration-5.11.4.tar.xz
16016fe5249444f345921dd88be983c9bfe kwrited-5.11.4.tar.xz
161d2e72f895c418cf2b7e51fbf4da8c240 milou-5.11.4.tar.xz
1628c999cacc92b3f256edcd0addd0878ac plasma-nm-5.11.4.tar.xz
163befbc3ebeb75b3b6cb8559f3b039e322 plasma-pa-5.11.4.tar.xz
164df943e57ebba65150df11b824fac5154 plasma-workspace-wallpapers-5.11.4.tar.xz
1655ccbd6b00367b48873b1b5653ad110c2 polkit-kde-agent-1-5.11.4.tar.xz
16685616354c53b934752f221b4d89cd3dc powerdevil-5.11.4.tar.xz
1675fb2f7a0aecd20b5eb3eba8c1d15956a plasma-desktop-5.11.4.tar.xz
168c08b672beb73bf531318ecce7d90cb84 kdeplasma-addons-5.11.4.tar.xz
169615358f580a64ac053d327771b00c67f kgamma5-5.11.4.tar.xz
1701a5d2ae7c34e3e7c9aedb931111554fa ksshaskpass-5.11.4.tar.xz
171#a8bdcdc6a79f79737070ceb7704ec2fc plasma-sdk-5.11.4.tar.xz
172335e0f9a1fce7f527b3d4b581ff915fb sddm-kcm-5.11.4.tar.xz
173965b833b71654869ecd865e2d59011f4 user-manager-5.11.4.tar.xz
1744d4bfd4f7197a989c917c40887d4ad8b discover-5.11.4.tar.xz
175#1f23543acaf94836807b647453682189 breeze-grub-5.11.4.tar.xz
176#1129678c3765a52d7d244094da25e20d breeze-plymouth-5.11.4.tar.xz
17724747273a2e9f0d09736b95fbfe82478 kactivitymanagerd-5.11.4.tar.xz
178ff4eeba3baf3b750aa158dfa622a8fe9 plasma-integration-5.11.4.tar.xz
17915d11076b37a6bbada14e72c3e6c4516 plasma-tests-5.11.4.tar.xz
18079f355d9b3ee53570045d9f90df36964 plymouth-kcm-5.11.4.tar.xz
1819358a51ce97edd9d53044bd096e69bc2 xdg-desktop-portal-kde-5.11.4.tar.xz
182e879c77b1dc567d04cb191cbb785ec45 drkonqi-5.11.4.tar.xz
1837726dbaabc0f0f301ffde730dc3e73c7 plasma-vault-5.11.4.tar.xz</literal>
[153a5795]184EOF</userinput></screen>
185
[a01d308]186 <note><para>The breeze-grub, breeze-plymouth, and plymouth-kcm packages
187 above are all for customized support of <ulink
[ce228c2]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
[3011abe]190 <xref linkend="initramfs"/>). The plasma-sdk package is optional and used
[dd8ae08]191 for software development.</para></note>
[ce228c2]192
[153a5795]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)
[f3429309]216
[153a5795]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
[69a9de5]223 mkdir build
224 cd build
[153a5795]225
[1c8d0ff]226 cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
227 -DCMAKE_BUILD_TYPE=Release \
228 -DBUILD_TESTING=OFF \
[69a9de5]229 -Wno-dev .. &amp;&amp;
[153a5795]230
[69a9de5]231 make
232 as_root make install
233 popd
[153a5795]234
[b44e7de2]235<!-- some packages end up with files owned by root in $packagedir,
[8f445fdc]236 so use as_root for removing -->
237 as_root rm -rf $packagedir
[69a9de5]238 as_root /sbin/ldconfig
239
[ed4a7a2]240done &lt; plasma-&plasma5-version;.md5
[153a5795]241
[1c8d0ff]242exit
243
244cd $KF5_PREFIX/share/plasma/plasmoids
[153a5795]245
[1c8d0ff]246for j in $(find -name \*.js); do
[3d656d7]247 as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
[1c8d0ff]248done</userinput></screen>
[153a5795]249
250 </sect2>
251
252 <sect2 role="commands">
253 <title>Command Explanations</title>
254
255 <para>
[1c8d0ff]256 <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
257 Create symbolic links so qml files can find needed javascript modules.
[153a5795]258 </para>
259
260 </sect2>
[3b0f105]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
[1c8d0ff]318 <sect2 role="starting">
319 <title>Starting Plasma5</title>
320
[3f460da0]321 <para revision="sysv">
[1c8d0ff]322 You can start <application>Plasma5</application> from runlevel 3, using
323 <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
[c225bfa]324 such as <xref linkend="lightdm"/>.
[1c8d0ff]325 </para>
326
[3f460da0]327 <para revision="systemd">
328 You can start <application>Plasma5</application> from a TTY, using
[fd42347a]329 <xref linkend="xinit"/><!--, or from a graphical display manager, such as
330 <xref linkend="sddm"/>-->.
[3f460da0]331 </para>
332
[1c8d0ff]333 <para>
[460cec4b]334 To start <application>Plasma 5</application> using <xref linkend="xinit"/>,
[1c8d0ff]335 run the following commands:
336 </para>
337
[3f460da0]338<screen revision="sysv"><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
[1c8d0ff]339<literal>ck-launch-session dbus-launch --exit-with-session $KF5_PREFIX/bin/startkde</literal>
340EOF
341
[3f460da0]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
[1c8d0ff]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
[3011abe]364 <screen><userinput>startx &amp;&gt; ~/x-session-errors</userinput></screen>
[1c8d0ff]365
[3f460da0]366 <note revision="sysv">
[1c8d0ff]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
[f29eb8a]380 <para>If you intend to start <application>Plasma</application> using a
[c225bfa]381 display manager such as <xref linkend="lightdm"/>, there will be two entries
[f29eb8a]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
[1c8d0ff]392 </sect2>
393
[153a5795]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>
[83ef2a4]404 There are too many plasma programs (50 in /opt/kf5/bin) to list
405 separately here.
[153a5795]406 </seg>
407 <seg>
[83ef2a4]408 There are too many plasma libraries (39 in /opt/kf5/lib) to list
409 separately here.
[153a5795]410 </seg>
411 <seg>
[83ef2a4]412 There are too many plasma directories (over 1000 in /opt/kf5) to
413 list separately here.
[153a5795]414 </seg>
415 </seglistitem>
416 </segmentedlist>
417
418 </sect2>
419
420</sect1>
421
Note: See TracBrowser for help on using the repository browser.