source: kde/plasma5/plasma-all.xml@ 51dfb3e

10.0 10.1 11.0 9.0 9.1 ken/refactor-virt lazarus qt5new trunk xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 51dfb3e was 51dfb3e, checked in by Bruce Dubbs <bdubbs@…>, 2 years ago

Move BLFS/trunk/BOOK and BLFS/trunk/bootscripts to
BLFS/branches/old-trunk-20190627 and BLFS/branches/old-bootscripts-20190627.

Move BLFS/branches/elogind-book and BLFS/branches/elogind-bootscripts
to trunk.

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

  • Property mode set to 100644
File size: 15.6 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 "95 MB">
11 <!ENTITY plasma5-buildsize "1.6 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 &lfs84_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>12e66b250e0e0036e837648f72e94b4e kdecoration-5.15.5.tar.xz
14408e28135014852c1bf57dd738a7c8cda libkscreen-5.15.5.tar.xz
1453fa13483c9f888571fa1a8a7a1ef821e libksysguard-5.15.5.tar.xz
14652221a5e47ffca0cffdc4577e9b097e2 breeze-5.15.5.tar.xz
1475aea654d15d6c107141affa6e32d1d4d breeze-gtk-5.15.5.tar.xz
148be96a0ab64cbeb9b9f728a977c0e2e6b kscreenlocker-5.15.5.tar.xz
149f561b58231384cf96e62768c7ebe4611 oxygen-5.15.5.tar.xz
150746b45e6d987b25a44e4469c7f66982f kinfocenter-5.15.5.tar.xz
1518f86ba0db6971a7a331b0314971fa6ae ksysguard-5.15.5.tar.xz
15291401cff50e97b2f153080e1a9d295d0 kwin-5.15.5.tar.xz
153a8598e9d6504f08389e5b0cdceae468c plasma-workspace-5.15.5.tar.xz
154f5cacbe4bfc12ca36535711d0562122f bluedevil-5.15.5.tar.xz
1555790d8f3be565c9f78a1a3dbe77dafe6 kde-gtk-config-5.15.5.tar.xz
156e40ad49f14cfe51e35c94e46bf4dcfb6 khotkeys-5.15.5.tar.xz
15738316c5655e273a2e5ee4bd096cee1a7 kmenuedit-5.15.5.tar.xz
1586ab623e477248aa4faf2bbf157fc786b kscreen-5.15.5.tar.xz
1594f563fc433dfd43960832fb7ddac6137 kwallet-pam-5.15.5.tar.xz
1604c029d5a2e0dec0c9ca746d910393ae3 kwayland-integration-5.15.5.tar.xz
161841b5be4dec688ac30c32f30045f96b5 kwrited-5.15.5.tar.xz
162ae3357fdfdfbf8c996b9ea5c445f042d milou-5.15.5.tar.xz
163806534c2fd234aa8630c5bfc6b4b8b54 plasma-nm-5.15.5.tar.xz
164599c5fcee476afb5cd59e6961c8c525f plasma-pa-5.15.5.tar.xz
165293d855ff8df007a1c75b2a4b0a29c47 plasma-workspace-wallpapers-5.15.5.tar.xz
1662c0581a3b6bb66d34de3f3b185471939 polkit-kde-agent-1-5.15.5.tar.xz
16708dca676733ed110ad73015ef61dfc52 powerdevil-5.15.5.tar.xz
16884cea7d6cc3d014839ec7f8b9696b8f2 plasma-desktop-5.15.5.tar.xz
169a194936a5fc7101d95bd92c43b377735 kdeplasma-addons-5.15.5.tar.xz
170b8d639e55d1c9de2bd77d5ea234f81f5 kgamma5-5.15.5.tar.xz
171965cd4f87a9bf64a7a54d511856084dd ksshaskpass-5.15.5.tar.xz
172#c14166ae4bbd60ce47d33f67c6d1718a plasma-sdk-5.15.5.tar.xz
173ebc9becccf08be045caf8c6ca86bf2fd sddm-kcm-5.15.5.tar.xz
1748e38b26a97b2b2e57b0be29d78fbb71e user-manager-5.15.5.tar.xz
175c84cfab3218989b8eae04f1414ee6cfc discover-5.15.5.tar.xz
176#c54c8792cf6db0906553da9dcdcbf80a breeze-grub-5.15.5.tar.xz
177#48f7ff45c8f976d3fe43d323797f7559 breeze-plymouth-5.15.5.tar.xz
178b428a82901a772971bfc5bb3df3dead0 kactivitymanagerd-5.15.5.tar.xz
1793c35e275cdc620e36857de4fea66501b plasma-integration-5.15.5.tar.xz
1808588f3aadbe22749e28bf92a90d49aab plasma-tests-5.15.5.tar.xz
18135c634a6e3b12b729dae73c9b7c3e0dc plymouth-kcm-5.15.5.tar.xz
182301ae8297bcc7891f26e065839f361e5 xdg-desktop-portal-kde-5.15.5.tar.xz
18387c9f9cec68b02cf1e88ce0b655e6e08 drkonqi-5.15.5.tar.xz
184f748d8b07dc118f6d2f392ae0c400606 plasma-vault-5.15.5.tar.xz
1859c838fa4fedf73322d4c7279d575545e plasma-browser-integration-5.15.5.tar.xz
18615b29094d80848ed7f976a736fe058ac kde-cli-tools-5.15.5.tar.xz
18760099023cd0d88640a50f080f9ccc921 systemsettings-5.15.5.tar.xz</literal>
188EOF</userinput></screen>
189
190 <note><para>The breeze-grub, breeze-plymouth, and plymouth-kcm packages
191 above are all for customized support of <ulink
192 url="https://www.freedesktop.org/wiki/Software/Plymouth/">Plymouth</ulink>
193 which is designed to be run within an initial ram disk during boot (see
194 <xref linkend="initramfs"/>). The plasma-sdk package is optional and used
195 for software development.</para></note>
196
197 </sect2>
198
199 <sect2 role="installation">
200 <title>Installation of Plasma5</title>
201
202 &as_root;
203
204 <para>
205 First, start a subshell that will exit on error:
206 </para>
207
208<screen><userinput>bash -e</userinput></screen>
209
210 <para>
211 Install all of the packages by running the following
212 commands:
213 </para>
214
215<screen><userinput>while read -r line; do
216
217 # Get the file name, ignoring comments and blank lines
218 if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
219 file=$(echo $line | cut -d" " -f2)
220
221 pkg=$(echo $file|sed 's|^.*/||') # Remove directory
222 packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
223
224 tar -xf $file
225 pushd $packagedir
226
227 # Fix some build issues when generating some configureation files
228 case $name in
229 plasma-workspace)
230 sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
231 ;;
232
233 khotkeys)
234 sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
235 ;;
236
237 plasma-desktop)
238 sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
239 ;;
240 esac
241
242 mkdir build
243 cd build
244
245 cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
246 -DCMAKE_BUILD_TYPE=Release \
247 -DBUILD_TESTING=OFF \
248 -Wno-dev .. &amp;&amp;
249
250 make
251 as_root make install
252 popd
253
254<!-- some packages end up with files owned by root in $packagedir,
255 so use as_root for removing -->
256 as_root rm -rf $packagedir
257 as_root /sbin/ldconfig
258
259done &lt; plasma-&plasma5-version;.md5
260
261exit</userinput></screen>
262
263 <para>
264 If you did not set <envar>$KF5_PREFIX</envar> to
265 <filename>/usr</filename>, create symlinks to allow display managers to
266 find <application>Plasma</application>:
267 </para>
268
269<screen><userinput>as_root install -dvm 755 /usr/share/xsessions &amp;&amp;
270cd /usr/share/xsessions/ &amp;&amp;
271[ -e plasma.desktop ] ||
272as_root ln -sfv $KF5_PREFIX/share/xsessions/plasma.desktop &amp;&amp;
273as_root install -dvm 755 /usr/share/wayland-sessions &amp;&amp;
274cd /usr/share/wayland-sessions/ &amp;&amp;
275[ -e plasma.desktop ] ||
276as_root ln -sfv $KF5_PREFIX/share/wayland-sessions/plasma.desktop<!--
277cd $KF5_PREFIX/share/plasma/plasmoids
278
279for j in $(find -name \*.js); do
280 as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
281done--></userinput></screen>
282
283 </sect2>
284<!--
285 <sect2 role="commands">
286 <title>Command Explanations</title>
287
288 <para>
289 <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
290 Create symbolic links so qml files can find needed javascript modules.
291 </para>
292
293 </sect2>
294-->
295 <sect2 role="configuration">
296 <title>Configuring Plasma</title>
297
298 <sect3>
299 <title>Linux PAM Configuration</title>
300
301 <para>
302 If you built Plasma with the recommended <application>Linux
303 PAM</application> support, create necessary configuration files by
304 running the following commands as the <systemitem
305 class="username">root</systemitem> user:
306 </para>
307
308<screen role="root"><userinput>cat &gt; /etc/pam.d/kde &lt;&lt; "EOF"
309<literal># Begin /etc/pam.d/kde
310
311auth requisite pam_nologin.so
312auth required pam_env.so
313
314auth required pam_succeed_if.so uid &gt;= 1000 quiet
315auth include system-auth
316
317account include system-account
318password include system-password
319session include system-session
320
321# End /etc/pam.d/kde</literal>
322EOF
323
324cat &gt; /etc/pam.d/kde-np &lt;&lt; "EOF"
325<literal># Begin /etc/pam.d/kde-np
326
327auth requisite pam_nologin.so
328auth required pam_env.so
329
330auth required pam_succeed_if.so uid &gt;= 1000 quiet
331auth required pam_permit.so
332
333account include system-account
334password include system-password
335session include system-session
336
337# End /etc/pam.d/kde-np</literal>
338EOF
339
340cat &gt; /etc/pam.d/kscreensaver &lt;&lt; "EOF"
341<literal># Begin /etc/pam.d/kscreensaver
342
343auth include system-auth
344account include system-account
345
346# End /etc/pam.d/kscreensaver</literal>
347EOF</userinput></screen>
348 </sect3>
349 </sect2>
350
351 <sect2 role="starting">
352 <title>Starting Plasma5</title>
353
354 <para revision="sysv">
355 You can start <application>Plasma5</application> from runlevel 3, using
356 <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
357 such as <xref linkend="lightdm"/>.
358 </para>
359
360 <para revision="systemd">
361 You can start <application>Plasma5</application> from a TTY, using
362 <xref linkend="xinit"/><!--, or from a graphical display manager, such as
363 <xref linkend="sddm"/>-->.
364 </para>
365
366 <para>
367 To start <application>Plasma 5</application> using <xref linkend="xinit"/>,
368 run the following commands:
369 </para>
370
371<screen><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
372<literal>dbus-launch --exit-with-session $KF5_PREFIX/bin/startkde</literal>
373EOF
374
375startx</userinput></screen>
376
377 <para>
378 The X session starts on the first unused virtual terminal, normally vt7.
379 You can switch to another vt<emphasis>n</emphasis> simultaneously
380 pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
381 (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
382 normally started at vt7, use Ctrl-Alt-F7. The vt where the command
383 <command>startx</command> was executed will display many messages,
384 including X starting messages, applications automatically started with
385 the session, and eventually, some warning and error messages. You may
386 prefer to redirect those messages to a log file, which not only will keep
387 the initial vt uncluttered, but can also be used for debugging purposes. This
388 can be done starting X with:
389 </para>
390
391 <screen><userinput>startx &amp;&gt; ~/x-session-errors</userinput></screen>
392
393 <para>
394 When shutting down or rebooting, the shutdown messages appear on the vt
395 where X was running. If you wish to see those messages, simultaneously
396 press keys Alt-F7 (assuming that X was running on vt7).
397 </para>
398
399 <para>If you intend to start <application>Plasma</application> using a
400 display manager such as <xref linkend="lightdm"/>, there will be two entries
401 for <application>Plasma</application>, one for use with
402 <application>Xorg</application>, and another for
403 <application>Wayland</application>. Modify the
404 <application>Xorg</application> entry with the following command, as the
405 <systemitem class="username">root</systemitem> user, so that you can
406 differentiate between the two:</para>
407
408<screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
409
410
411 </sect2>
412
413 <sect2 role="content">
414 <title>Contents</title>
415
416 <segmentedlist>
417 <segtitle>Installed Programs</segtitle>
418 <segtitle>Installed Libraries</segtitle>
419 <segtitle>Installed Directories</segtitle>
420
421 <seglistitem>
422 <seg>
423 There are too many plasma programs (50 in /opt/kf5/bin) to list
424 separately here.
425 </seg>
426 <seg>
427 There are too many plasma libraries (39 in /opt/kf5/lib) to list
428 separately here.
429 </seg>
430 <seg>
431 There are too many plasma directories (over 1000 in /opt/kf5) to
432 list separately here.
433 </seg>
434 </seglistitem>
435 </segmentedlist>
436
437 </sect2>
438
439</sect1>
Note: See TracBrowser for help on using the repository browser.