source: kde/plasma5/plasma-all.xml@ 6dd3533

10.0 10.1 11.0 8.4 9.0 9.1 ken/refactor-virt lazarus qt5new trunk upgradedb xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 6dd3533 was 6dd3533, checked in by Pierre Labastie <pieere@…>, 3 years ago

Tag KDE

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

  • Property mode set to 100644
File size: 15.1 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.1 GB (330 MB installed)">
12 <!ENTITY plasma5-time "13 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="pulseaudio"/>,
73 <xref linkend="qca"/>,
74 <xref linkend="sassc"/>,
75 <xref linkend="taglib"/>, and
76 <xref linkend="xcb-util-cursor"/>
77 </para>
78
79 <bridgehead renderas="sect4">Recommended</bridgehead>
80 <para role="recommended">
81 <xref linkend="fftw"/>,
82 <xref linkend="gsettings-desktop-schemas"/>,
83 <xref linkend="libdbusmenu-qt"/>,
84 <xref linkend="libcanberra"/>,
85 <xref linkend="libinput"/>,
86 <xref linkend="linux-pam"/>,
87 <xref linkend="lm_sensors"/>,
88 <xref linkend="oxygen-icons5"/>, and
89 <xref linkend="pciutils"/>
90 </para>
91
92 <bridgehead renderas="sect4">Optional</bridgehead>
93 <para role="optional">
94 <xref linkend="glu"/>,
95 <xref linkend='ibus'/>,
96 <xref linkend="xorg-synaptics-driver"/>,
97 <ulink url="http://distributions.freedesktop.org/wiki/AppStream">appstream-qt</ulink>,
98 <ulink url="https://www.kdevelop.org/">KDevPlatform</ulink>,
99 <ulink url="http://gpsd.berlios.de">libgps</ulink>,
100 <ulink url="https://github.com/libhybris/libhybris">libhybris</ulink>,
101 <ulink url="http://sourceforge.net/projects/libraw1394/">libraw1394</ulink>,
102 <ulink url="https://bitbucket.org/godsme/mockcpp">mockcpp</ulink>,
103 <ulink url="https://www.freedesktop.org/software/PackageKit/releases/">packagekit-qt</ulink>,
104 <ulink url="http://qalculate.sourceforge.net">Qalculate</ulink>,
105 <ulink url="https://launchpad.net/qapt">Qapt</ulink>,
106 <ulink url="https://github.com/osiam/osiam">SCIM</ulink>, and
107 <ulink url="http://www.dest-unreach.org/socat/">socat</ulink> (for pam_kwallet)
108 </para>
109
110 <para condition="html" role="usernotes">User Notes:
111 <ulink url="&blfs-wiki;/kf5"/></para>
112
113 <sect2>
114 <title>Downloading KDE Plasma5</title>
115
116 <para>
117 The easiest way to get the KDE Plasma5 packages is to use a single
118 <command>wget</command> to fetch them all at once:
119 </para>
120
121<screen><userinput>url=http://download.kde.org/stable/plasma/&plasma5-version;/
122wget -r -nH -nd -A '*.xz' -np $url</userinput>
123<literal>
124The options used here are:
125 -r recurse through child directories
126 -nH disable generation of host-prefixed directories
127 -nd do not create a hierarchy of directories
128 -A '*.xz' just get the *.xz files
129 -np don't get parent directories</literal></screen>
130
131 </sect2>
132
133 <sect2>
134 <title>Setting Package Order</title>
135
136 <para>
137 The order of building files is important due to internal dependencies.
138 Create the list of files in the proper order as follows:
139 </para>
140
141<screen><userinput>cat &gt; plasma-&plasma5-version;.md5 &lt;&lt; "EOF"
142<literal>1195f11a0f135da965f7c84a0b535ad6 kdecoration-5.15.0.tar.xz
1430d4896be04000503bedcf5c7d51e896a libkscreen-5.15.0.tar.xz
144784f3f907050c36265d0c289aa15779f libksysguard-5.15.0.tar.xz
14541d68903361098906f7feb05aeef96da breeze-5.15.0.tar.xz
1469a0d85a3a6b97e0f0920604e73c8f4f8 breeze-gtk-5.15.0.tar.xz
1470ed614d82dff50dd7b1df7165113f600 kscreenlocker-5.15.0.tar.xz
14886528bd2bd6f8a66108fc2ceba3cc1af oxygen-5.15.0.tar.xz
149fdd8a90fc4b917602547adf44553990d kinfocenter-5.15.0.tar.xz
1508c0b0aaf98727d52c00bfe3ca5152775 ksysguard-5.15.0.tar.xz
15152f86eb52dda1ccd547a8a66893d439e kwin-5.15.0.tar.xz
1525424d6b8af2025c44acdaea10615a539 plasma-workspace-5.15.0.tar.xz
1538649b958165f1a87f07373be0f97fbf3 bluedevil-5.15.0.tar.xz
1542914de589f74b154fe29e3103be34ef6 kde-gtk-config-5.15.0.tar.xz
15579d22683db231b7623cf2ebe384994b6 khotkeys-5.15.0.tar.xz
156821abe928b627a33ae43ffeace3990e5 kmenuedit-5.15.0.tar.xz
15760dae1dde512a5b8c8f54adb48e83ec4 kscreen-5.15.0.tar.xz
1582c41b3ae8862a4243169e45348b1cd63 kwallet-pam-5.15.0.tar.xz
159ef01bd635719a4bf3c6845dbc08e7bc3 kwayland-integration-5.15.0.tar.xz
1606d461e4deeeae854e7efdff26c0fbc2e kwrited-5.15.0.tar.xz
1617fd8557369f2d3a59e1d84c78a265afc milou-5.15.0.tar.xz
162d3c9475c2b51cdb1f2efedfb5ab6cf88 plasma-nm-5.15.0.tar.xz
1636eab227685df4ccd68ada3a4b633711f plasma-pa-5.15.0.tar.xz
16493a379e907d3b03205771e1b5c20ea7d plasma-workspace-wallpapers-5.15.0.tar.xz
165ed5c4fc72e5d72c8da607bd5fe60693f polkit-kde-agent-1-5.15.0.tar.xz
16612d65231a8265ee56d2ef1915aef7894 powerdevil-5.15.0.tar.xz
167939ec9bc31bb3c89a73163950bdcedda plasma-desktop-5.15.0.tar.xz
168d7b299906680e0b564ff24f5c0d70f27 kdeplasma-addons-5.15.0.tar.xz
16992751cff053861a46f58d5ca8837cb65 kgamma5-5.15.0.tar.xz
170f6a267d3e76056a70abc262963f10ed5 ksshaskpass-5.15.0.tar.xz
171#f910c1c8e687ddade3c161e9b6b9b598 plasma-sdk-5.15.0.tar.xz
17219e3f3cb0c8341039f9855e79b9f395c sddm-kcm-5.15.0.tar.xz
1739755f8d9e1c84fcf105b464b513bb269 user-manager-5.15.0.tar.xz
174d7135447c459e8c0bdb5d1fb1d703c01 discover-5.15.0.tar.xz
175#745357574864bd167cff7b294486e145 breeze-grub-5.15.0.tar.xz
176#a31d2ba0c628cf40d5102c14930a353c breeze-plymouth-5.15.0.tar.xz
177885978ef5cae1c843673be511998fe22 kactivitymanagerd-5.15.0.tar.xz
1783fe2706c6c26f26d9aa38fb658763c9f plasma-integration-5.15.0.tar.xz
179e8d58c1860a29905fcfb0933de163231 plasma-tests-5.15.0.tar.xz
180710233d7a0cb25b66caba2d496f706ba plymouth-kcm-5.15.0.tar.xz
18178c04d7c16031002fb373a53ba75514a xdg-desktop-portal-kde-5.15.0.tar.xz
182b1c8325c6a26a2b3f48b4adb6ce0a533 drkonqi-5.15.0.tar.xz
1833241eed0c5938ecb07c7b6462179fb9b plasma-vault-5.15.0.tar.xz
18490c0b196206104b28def99c770db4ac1 plasma-browser-integration-5.15.0.tar.xz
1857033a941eef914415feea7051bf1e42f kde-cli-tools-5.15.0.tar.xz
186580f675f1f03e5d2f4aec5cd6eebfe5f systemsettings-5.15.0.tar.xz</literal>
187EOF</userinput></screen>
188
189 <note><para>The breeze-grub, breeze-plymouth, and plymouth-kcm packages
190 above are all for customized support of <ulink
191 url="https://www.freedesktop.org/wiki/Software/Plymouth/">Plymouth</ulink>
192 which is designed to be run within an initial ram disk during boot (see
193 <xref linkend="initramfs"/>). The plasma-sdk package is optional and used
194 for software development.</para></note>
195
196 </sect2>
197
198 <sect2 role="installation">
199 <title>Installation of Plasma5</title>
200
201 &as_root;
202
203 <para>
204 First, start a subshell that will exit on error:
205 </para>
206
207<screen><userinput>bash -e</userinput></screen>
208
209 <para>
210 Install all of the packages by running the following
211 commands:
212 </para>
213
214<screen><userinput>while read -r line; do
215
216 # Get the file name, ignoring comments and blank lines
217 if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
218 file=$(echo $line | cut -d" " -f2)
219
220 pkg=$(echo $file|sed 's|^.*/||') # Remove directory
221 packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
222
223 tar -xf $file
224 pushd $packagedir
225
226 mkdir build
227 cd build
228
229 cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
230 -DCMAKE_BUILD_TYPE=Release \
231 -DBUILD_TESTING=OFF \
232 -Wno-dev .. &amp;&amp;
233
234 make
235 as_root make install
236 popd
237
238<!-- some packages end up with files owned by root in $packagedir,
239 so use as_root for removing -->
240 as_root rm -rf $packagedir
241 as_root /sbin/ldconfig
242
243done &lt; plasma-&plasma5-version;.md5
244
245exit
246
247install -dvm 755 /usr/share/xsessions &amp;&amp;
248cd /usr/share/xsessions/ &amp;&amp;
249[ -e plasma.desktop ] ||
250as_root ln -sfv $KF5_PREFIX/share/xsessions/plasma.desktop<!--
251cd $KF5_PREFIX/share/plasma/plasmoids
252
253for j in $(find -name \*.js); do
254 as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
255done--></userinput></screen>
256
257 </sect2>
258<!--
259 <sect2 role="commands">
260 <title>Command Explanations</title>
261
262 <para>
263 <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
264 Create symbolic links so qml files can find needed javascript modules.
265 </para>
266
267 </sect2>
268-->
269 <sect2 role="configuration">
270 <title>Configuring Plasma</title>
271
272 <sect3>
273 <title>Linux PAM Configuration</title>
274
275 <para>
276 If you built Plasma with the recommended <application>Linux
277 PAM</application> support, create necessary configuration files by
278 running the following commands as the <systemitem
279 class="username">root</systemitem> user:
280 </para>
281
282<screen role="root"><userinput>cat &gt;&gt; /etc/pam.d/kde &lt;&lt; "EOF"
283# Begin /etc/pam.d/kde
284
285auth requisite pam_nologin.so
286auth required pam_env.so
287
288auth required pam_succeed_if.so uid &gt;= 1000 quiet
289auth include system-auth
290
291account include system-account
292password include system-password
293session include system-session
294
295# End /etc/pam.d/kde
296EOF
297
298cat &gt; /etc/pam.d/kde-np &lt;&lt; "EOF"
299# Begin /etc/pam.d/kde-np
300
301auth requisite pam_nologin.so
302auth required pam_env.so
303
304auth required pam_succeed_if.so uid &gt;= 1000 quiet
305auth required pam_permit.so
306
307account include system-account
308password include system-password
309session include system-session
310
311# End /etc/pam.d/kde-np
312EOF
313
314cat &gt; /etc/pam.d/kscreensaver &lt;&lt; "EOF"
315# Begin /etc/pam.d/kscreensaver
316
317auth include system-auth
318account include system-account
319
320# End /etc/pam.d/kscreensaver
321EOF</userinput></screen>
322 </sect3>
323 </sect2>
324
325 <sect2 role="starting">
326 <title>Starting Plasma5</title>
327
328 <para revision="sysv">
329 You can start <application>Plasma5</application> from runlevel 3, using
330 <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
331 such as <xref linkend="lightdm"/>.
332 </para>
333
334 <para revision="systemd">
335 You can start <application>Plasma5</application> from a TTY, using
336 <xref linkend="xinit"/><!--, or from a graphical display manager, such as
337 <xref linkend="sddm"/>-->.
338 </para>
339
340 <para>
341 To start <application>Plasma 5</application> using <xref linkend="xinit"/>,
342 run the following commands:
343 </para>
344
345<screen revision="sysv"><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
346<literal>ck-launch-session dbus-launch --exit-with-session $KF5_PREFIX/bin/startkde</literal>
347EOF
348
349startx</userinput></screen>
350
351<screen revision="systemd"><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
352<literal>dbus-launch --exit-with-session $KF5_PREFIX/bin/startkde</literal>
353EOF
354
355startx</userinput></screen>
356
357 <para>
358 The X session starts on the first unused virtual terminal, normally vt7.
359 You can switch to another vt<emphasis>n</emphasis> simultaneously
360 pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
361 (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
362 normally started at vt7, use Ctrl-Alt-F7. The vt where the command
363 <command>startx</command> was executed will display many messages,
364 including X starting messages, applications automatically started with
365 the session, and eventually, some warning and error messages. You may
366 prefer to redirect those messages to a log file, which not only will keep
367 the initial vt uncluttered, but can also be used for debugging purposes. This
368 can be done starting X with:
369 </para>
370
371 <screen><userinput>startx &amp;&gt; ~/x-session-errors</userinput></screen>
372
373 <note revision="sysv">
374 <para>
375 You may wish to drop consolekit and/or dbus-launch, e.g., just using
376 startkde in ~/.xinitrc. However some capabilities such as mounting or
377 umounting file systems from a file manager will not be possible, or the
378 reboot option may be absent or inoperative, among other problems.
379 </para>
380 </note>
381 <para>
382 When shutting down or rebooting, the shutdown messages appear on the vt
383 where X was running. If you wish to see those messages, simultaneously
384 press keys Alt-F7 (assuming that X was running on vt7).
385 </para>
386
387 <para>If you intend to start <application>Plasma</application> using a
388 display manager such as <xref linkend="lightdm"/>, there will be two entries
389 for <application>Plasma</application>, one for use with
390 <application>Xorg</application>, and another for
391 <application>Wayland</application>. Modify the
392 <application>Xorg</application> entry with the following command, as the
393 <systemitem class="username">root</systemitem> user, so that you can
394 differentiate between the two:</para>
395
396<screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
397
398
399 </sect2>
400
401 <sect2 role="content">
402 <title>Contents</title>
403
404 <segmentedlist>
405 <segtitle>Installed Programs</segtitle>
406 <segtitle>Installed Libraries</segtitle>
407 <segtitle>Installed Directories</segtitle>
408
409 <seglistitem>
410 <seg>
411 There are too many plasma programs (50 in /opt/kf5/bin) to list
412 separately here.
413 </seg>
414 <seg>
415 There are too many plasma libraries (39 in /opt/kf5/lib) to list
416 separately here.
417 </seg>
418 <seg>
419 There are too many plasma directories (over 1000 in /opt/kf5) to
420 list separately here.
421 </seg>
422 </seglistitem>
423 </segmentedlist>
424
425 </sect2>
426
427</sect1>
428
Note: See TracBrowser for help on using the repository browser.