source: kde/plasma5/plasma-all.xml@ 3b0f105

10.0 10.1 11.0 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind ken/refactor-virt lazarus perl-modules qt5new trunk xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 3b0f105 was 3b0f105, checked in by Bruce Dubbs <bdubbs@…>, 5 years ago

Update to Business-ISSN-1.002 (Perl module).
Update to Business-ISMN-1.131 (perl module).
Update to shared-mime-info-1.8.
Add Linux-PAM configureation to Plasma.

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

  • Property mode set to 100644
File size: 14.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 "118 MB">
11 <!ENTITY plasma5-buildsize "918 MB (298 MB installed)">
12 <!ENTITY plasma5-time "35 SBU">
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
30 5 and QML. It has been derived from the monolithic KDE 4 desktop.
31 They implement the KDE Display Environment (Plasma 5).</para>
32
33 &lfs7a_checked;
34
35 <para>The instructions below build all of the Plasma 5 packages in one
36 step by using a bash script.</para>
37
38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
41 <para>Download (HTTP): <ulink url="&plasma5-download-http;"/></para>
42 </listitem>
43 <listitem>
44 <para>Download (FTP): <ulink url="&plasma5-download-ftp;"/></para>
45 </listitem>
46 <listitem>
47 <para>Download MD5 sum: &plasma5-md5sum;</para>
48 </listitem>
49 <listitem>
50 <para>Download size: &plasma5-size;</para>
51 </listitem>
52 <listitem>
53 <para>Estimated disk space required: &plasma5-buildsize;</para>
54 </listitem>
55 <listitem>
56 <para>Estimated build time: &plasma5-time;</para>
57 </listitem>
58 </itemizedlist>
59
60 <bridgehead renderas="sect3">Plasma 5 Dependencies</bridgehead>
61
62 <bridgehead renderas="sect4">Required</bridgehead>
63 <para role="required">
64 <xref linkend="fontforge"/>,
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="python2"/>,
74 <xref linkend="qca"/> (built with qt5),
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="libdbusmenu-qt"/>,
82 <xref linkend="libcanberra"/>,
83 <xref linkend="libinput"/>,
84 <xref linkend="linux-pam"/>,
85 <xref linkend="lm_sensors"/>,
86 <xref linkend="oxygen-icons5"/>, and
87 <xref linkend="pciutils"/>
88 </para>
89
90 <bridgehead renderas="sect4">Optional</bridgehead>
91 <para role="optional">
92 <xref linkend="glu"/>,
93 <xref linkend="xorg-synaptics-driver"/>,
94 <ulink url="http://distributions.freedesktop.org/wiki/AppStream">appstream-qt</ulink>,
95 <ulink url="https://github.com/ibus/ibus/wiki">ibus</ulink>,
96 <ulink url="https://www.kdevelop.org/">KDevPlatform</ulink>,
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>,
101 <ulink url="https://www.freedesktop.org/software/PackageKit/releases/">packagekit-qt</ulink>,
102 <ulink url="http://qalculate.sourceforge.net">Qalculate</ulink>,
103 <ulink url="https://launchpad.net/qapt">Qapt</ulink>,
104 <ulink url="https://github.com/osiam/osiam">SCIM</ulink>, and
105 <ulink url="http://www.dest-unreach.org/socat/">socat (for pam_kwallet)</ulink>
106 </para>
107
108 <para condition="html" role="usernotes">User Notes:
109 <ulink url="&blfs-wiki;/kf5"/></para>
110
111 <sect2>
112 <title>Downloading KDE Plasma5</title>
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>
118
119<screen><userinput>url=http://download.kde.org/stable/plasma/&plasma5-version;/
120wget -r -nH --cut-dirs=3 -A '*.xz' -np $url</userinput>
121<literal>
122The options used here are:
123 -r recurse through child directories
124 -nH disable generation of host-prefixed directories
125 --cut-dirs=3 remove three levels of directories when saving
126 -A '*.xz' just get the *.xz files
127 -np don't get parent directories</literal></screen>
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
139<screen><userinput>cat &gt; plasma-&plasma5-version;.md5 &lt;&lt; "EOF"
140<literal>1df33b64a8a70f8aa16cb6e2ebe50b77 kde-cli-tools-5.8.3.tar.xz
141a999aba2817d036b49d04b7c930bb628 kdecoration-5.8.3.tar.xz
142e067b3647ae57f578cbeb22a5f1bac24 libkscreen-5.8.3.tar.xz
143b1e35247a644aed86fcae2c2366464cd libksysguard-5.8.3.tar.xz
14482b92462f6af2d26aa06c1b3024c537b breeze-5.8.3.tar.xz
14537fa7923853f82cbb5f0afc45756095e breeze-gtk-5.8.3.tar.xz
146ebe4c3590a1980fb6dd8d5dd921c0bfc kscreenlocker-5.8.3.tar.xz
147742d43c831643e59941c948ee2a5f6fe oxygen-5.8.3.tar.xz
148f8dfa625a3465fbfd199e89fbd6c2464 kinfocenter-5.8.3.tar.xz
149fab59cb7f271d1e6c4786c3c944b6494 ksysguard-5.8.3.tar.xz
1504ca4c034bdc8b061224fba1dc5cbebb8 kwin-5.8.3.tar.xz
151e619e8d09b34e3414943f663e7cf27ce systemsettings-5.8.3.tar.xz
152b1dfb4e3dcbc4d5abc292c13c1f56c98 plasma-workspace-5.8.3.tar.xz
153d43ed6a106a57e1ac6b2c8fd30526ccd bluedevil-5.8.3.tar.xz
15427124671877ab154355d9debdb1a21cc kde-gtk-config-5.8.3.tar.xz
1556a1699844f054cb0b1a528f46ab28646 khotkeys-5.8.3.tar.xz
1562f61495615cf1f4d91d08e6275c851d2 kmenuedit-5.8.3.tar.xz
157326efe93eb24f777b819a23793c1df62 kscreen-5.8.3.tar.xz
1584f8edf1f153885619449fcf3598bc035 kwallet-pam-5.8.3.tar.xz
1591d77da3f9b701d7c1f344c56caedffed kwayland-integration-5.8.3.tar.xz
1603b31b450fcb78e699e1c1858635b8a5a kwrited-5.8.3.tar.xz
161ad7e7252704da330d0c18facdcd5fcb5 milou-5.8.3.tar.xz
162e395c0f574c2da9ca582229ba9b34bbb plasma-nm-5.8.3.tar.xz
1630a8f6f88cc44b143606b5813d321f7cb plasma-pa-5.8.3.tar.xz
16461e414c11737a7d68508e7ca2bf23961 plasma-workspace-wallpapers-5.8.3.tar.xz
1654f2c534cc9be408b0e5212e215fd09ec polkit-kde-agent-1-5.8.3.tar.xz
1667c8d1daedd56316f6d31447c16e6a418 powerdevil-5.8.3.tar.xz
167aa5da5228844438e5e006d33ce420247 plasma-desktop-5.8.3.tar.xz
16810e79c1d2ff4c0eac46afa3d1d45e40d kdeplasma-addons-5.8.3.tar.xz
16996783ce869720db10d31cc2012e979b8 kgamma5-5.8.3.tar.xz
170527fedb60d86c190afd82c9e9bde7280 ksshaskpass-5.8.3.tar.xz
171#33136122f59bff2fb3852c9b69315e89 plasma-sdk-5.8.3.tar.xz
172bc2d2bf98617cbb8225aa1e3414b7348 sddm-kcm-5.8.3.tar.xz
173a32eebfc3fe7a09d8073bf0d9af82f70 user-manager-5.8.3.tar.xz
174555043b0cdeb1cfdb00ee45ec5dec7c6 discover-5.8.3.tar.xz
175#7198c250a28af27bc0e7c3c9a72e3c5b breeze-grub-5.8.3.tar.xz
176#da694db9f5ce172724a968922c3a9cda breeze-plymouth-5.8.3.tar.xz
17704326ce336dd6f3b8feaca32e9aba536 kactivitymanagerd-5.8.3.tar.xz
178e28dff65bbde4ed297154934c671ac19 plasma-integration-5.8.3.tar.xz
1796ce815e02a34caa745121dcf0159baac plasma-tests-5.8.3.tar.xz</literal>
180EOF</userinput></screen>
181
182 <note><para>The breeze-grub and breeze-plymouth packages above are both for
183 customized support of <ulink
184 url="https://www.freedesktop.org/wiki/Software/Plymouth/">Plymouth</ulink>
185 which is designed to be run within an initial ram disk during boot (see
186 <xref linkend="initramfs"/>). The plasma-sdk package is optional and used
187 for software development.</para></note>
188
189 </sect2>
190
191 <sect2 role="installation">
192 <title>Installation of Plasma5</title>
193
194 &as_root;
195
196 <para>
197 First, start a subshell that will exit on error:
198 </para>
199
200<screen><userinput>bash -e</userinput></screen>
201
202 <para>
203 Install all of the packages by running the following
204 commands:
205 </para>
206
207<screen><userinput>while read -r line; do
208
209 # Get the file name, ignoring comments and blank lines
210 if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
211 file=$(echo $line | cut -d" " -f2)
212
213 pkg=$(echo $file|sed 's|^.*/||') # Remove directory
214 packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
215
216 # Correct the name of the extracted directory
217 case $packagedir in
218 plasma-workspace-5.6.5.1 )
219 packagedir=plasma-workspace-5.6.5
220 ;;
221 esac
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 -DLIB_INSTALL_DIR=lib \
232 -DBUILD_TESTING=OFF \
233 -Wno-dev .. &amp;&amp;
234
235 make
236 as_root make install
237 popd
238
239<!-- somme packages end up with files owned by root in $packagedir,
240 so use as_root for removing -->
241 as_root rm -rf $packagedir
242 as_root /sbin/ldconfig
243
244done &lt; plasma-&plasma5-version;.md5
245
246exit
247
248cd $KF5_PREFIX/share/plasma/plasmoids
249
250for j in $(find -name \*.js); do
251 as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
252done</userinput></screen>
253
254 </sect2>
255
256 <sect2 role="commands">
257 <title>Command Explanations</title>
258
259 <para>
260 <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
261 Create symbolic links so qml files can find needed javascript modules.
262 </para>
263
264 </sect2>
265
266 <sect2 role="configuration">
267 <title>Configuring Plasma</title>
268
269 <sect3>
270 <title>Linux PAM Configuration</title>
271
272 <para>
273 If you built Plasma with the recommended <application>Linux
274 PAM</application> support, create necessary configuration files by
275 running the following commands as the <systemitem
276 class="username">root</systemitem> user:
277 </para>
278
279<screen role="root"><userinput>cat &gt;&gt; /etc/pam.d/kde &lt;&lt; "EOF"
280# Begin /etc/pam.d/kde
281
282auth requisite pam_nologin.so
283auth required pam_env.so
284
285auth required pam_succeed_if.so uid &gt;= 1000 quiet
286auth include system-auth
287
288account include system-account
289password include system-password
290session include system-session
291
292# End /etc/pam.d/kde
293EOF
294
295cat &gt; /etc/pam.d/kde-np &lt;&lt; "EOF"
296# Begin /etc/pam.d/kde-np
297
298auth requisite pam_nologin.so
299auth required pam_env.so
300
301auth required pam_succeed_if.so uid &gt;= 1000 quiet
302auth required pam_permit.so
303
304account include system-account
305password include system-password
306session include system-session
307
308# End /etc/pam.d/kde-np
309EOF
310
311cat &gt; /etc/pam.d/kscreensaver &lt;&lt; "EOF"
312# Begin /etc/pam.d/kscreensaver
313
314auth include system-auth
315account include system-account
316
317# End /etc/pam.d/kscreensaver
318EOF</userinput></screen>
319 </sect3>
320 </sect2>
321
322 <sect2 role="starting">
323 <title>Starting Plasma5</title>
324
325 <para revision="sysv">
326 You can start <application>Plasma5</application> from runlevel 3, using
327 <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
328 such as <xref linkend="sddm"/>.
329 </para>
330
331 <para revision="systemd">
332 You can start <application>Plasma5</application> from a TTY, using
333 <xref linkend="xinit"/><!--, or from a graphical display manager, such as
334 <xref linkend="sddm"/>-->.
335 </para>
336
337 <para>
338 To start <application>Plasma 5</application> using <xref linkend="xinit"/>,
339 run the following commands:
340 </para>
341
342<screen revision="sysv"><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
343<literal>ck-launch-session dbus-launch --exit-with-session $KF5_PREFIX/bin/startkde</literal>
344EOF
345
346startx</userinput></screen>
347
348<screen revision="systemd"><userinput>cat &gt; ~/.xinitrc &lt;&lt; "EOF"
349<literal>dbus-launch --exit-with-session $KF5_PREFIX/bin/startkde</literal>
350EOF
351
352startx</userinput></screen>
353
354 <para>
355 The X session starts on the first unused virtual terminal, normally vt7.
356 You can switch to another vt<emphasis>n</emphasis> simultaneously
357 pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
358 (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
359 normally started at vt7, use Ctrl-Alt-F7. The vt where the command
360 <command>startx</command> was executed will display many messages,
361 including X starting messages, applications automatically started with
362 the session, and eventually, some warning and error messages. You may
363 prefer to redirect those messages to a log file, which not only will keep
364 the initial vt uncluttered, but can also be used for debugging purposes. This
365 can be done starting X with:
366 </para>
367
368 <screen><userinput>startx &amp;&gt; ~/x-session-errors</userinput></screen>
369
370 <note revision="sysv">
371 <para>
372 You may wish to drop consolekit and/or dbus-launch, e.g., just using
373 startkde in ~/.xinitrc. However some capabilities such as mounting or
374 umounting file systems from a file manager will not be possible, or the
375 reboot option may be absent or inoperative, among other problems.
376 </para>
377 </note>
378 <para>
379 When shutting down or rebooting, the shutdown messages appear on the vt
380 where X was running. If you wish to see those messages, simultaneously
381 press keys Alt-F7 (assuming that X was running on vt7).
382 </para>
383
384 </sect2>
385
386 <sect2 role="content">
387 <title>Contents</title>
388
389 <segmentedlist>
390 <segtitle>Installed Programs</segtitle>
391 <segtitle>Installed Libraries</segtitle>
392 <segtitle>Installed Directories</segtitle>
393
394 <seglistitem>
395 <seg>
396 There are too many plasma programs (50 in /opt/kf5/bin) to list
397 separately here.
398 </seg>
399 <seg>
400 There are too many plasma libraries (39 in /opt/kf5/lib) to list
401 separately here.
402 </seg>
403 <seg>
404 There are too many plasma directories (over 1000 in /opt/kf5) to
405 list separately here.
406 </seg>
407 </seglistitem>
408 </segmentedlist>
409
410 </sect2>
411
412</sect1>
413
Note: See TracBrowser for help on using the repository browser.