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 "103 MB">
|
---|
11 | <!ENTITY plasma5-buildsize "917 MB (290 MB installed)">
|
---|
12 | <!ENTITY plasma5-time "34 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 | &lfs80_checked;
|
---|
34 | &gcc7_checked;
|
---|
35 |
|
---|
36 | <para>The instructions below build all of the Plasma 5 packages in one
|
---|
37 | step by using a bash script.</para>
|
---|
38 |
|
---|
39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
40 | <itemizedlist spacing="compact">
|
---|
41 | <listitem>
|
---|
42 | <para>Download (HTTP): <ulink url="&plasma5-download-http;"/></para>
|
---|
43 | </listitem>
|
---|
44 | <listitem>
|
---|
45 | <para>Download (FTP): <ulink url="&plasma5-download-ftp;"/></para>
|
---|
46 | </listitem>
|
---|
47 | <listitem>
|
---|
48 | <para>Download MD5 sum: &plasma5-md5sum;</para>
|
---|
49 | </listitem>
|
---|
50 | <listitem>
|
---|
51 | <para>Download size: &plasma5-size;</para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>Estimated disk space required: &plasma5-buildsize;</para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>Estimated build time: &plasma5-time;</para>
|
---|
58 | </listitem>
|
---|
59 | </itemizedlist>
|
---|
60 |
|
---|
61 | <bridgehead renderas="sect3">Plasma 5 Dependencies</bridgehead>
|
---|
62 |
|
---|
63 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
64 | <para role="required">
|
---|
65 | <!--<xref linkend="fontforge"/>,-->
|
---|
66 | <xref linkend="gtk2"/>,
|
---|
67 | <xref linkend="gtk3"/>,
|
---|
68 | <xref linkend="kf5-frameworks"/>,
|
---|
69 | <xref linkend="libpwquality"/>,
|
---|
70 | <xref linkend="libxkbcommon"/>,
|
---|
71 | <xref linkend="mesa"/> built with <xref linkend="wayland"/>,
|
---|
72 | <xref linkend="NetworkManager"/>,
|
---|
73 | <xref linkend="pulseaudio"/>,
|
---|
74 | <xref linkend="python2"/>,
|
---|
75 | <xref linkend="qca"/> (built with qt5),
|
---|
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="libdbusmenu-qt"/>,
|
---|
83 | <xref linkend="libcanberra"/>,
|
---|
84 | <xref linkend="libinput"/>,
|
---|
85 | <xref linkend="linux-pam"/>,
|
---|
86 | <xref linkend="lm_sensors"/>,
|
---|
87 | <xref linkend="oxygen-icons5"/>, and
|
---|
88 | <xref linkend="pciutils"/>
|
---|
89 | </para>
|
---|
90 |
|
---|
91 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
92 | <para role="optional">
|
---|
93 | <xref linkend="glu"/>,
|
---|
94 | <xref linkend='ibus'/>,
|
---|
95 | <xref linkend="xorg-synaptics-driver"/>,
|
---|
96 | <ulink url="http://distributions.freedesktop.org/wiki/AppStream">appstream-qt</ulink>,
|
---|
97 | <ulink url="https://www.kdevelop.org/">KDevPlatform</ulink>,
|
---|
98 | <ulink url="http://gpsd.berlios.de">libgps</ulink>,
|
---|
99 | <ulink url="https://github.com/libhybris/libhybris">libhybris</ulink>,
|
---|
100 | <ulink url="http://sourceforge.net/projects/libraw1394/">libraw1394</ulink>,
|
---|
101 | <ulink url="https://bitbucket.org/godsme/mockcpp">mockcpp</ulink>,
|
---|
102 | <ulink url="https://www.freedesktop.org/software/PackageKit/releases/">packagekit-qt</ulink>,
|
---|
103 | <ulink url="http://qalculate.sourceforge.net">Qalculate</ulink>,
|
---|
104 | <ulink url="https://launchpad.net/qapt">Qapt</ulink>,
|
---|
105 | <ulink url="https://github.com/osiam/osiam">SCIM</ulink>, and
|
---|
106 | <ulink url="http://www.dest-unreach.org/socat/">socat (for pam_kwallet)</ulink>
|
---|
107 | </para>
|
---|
108 |
|
---|
109 | <para condition="html" role="usernotes">User Notes:
|
---|
110 | <ulink url="&blfs-wiki;/kf5"/></para>
|
---|
111 |
|
---|
112 | <sect2>
|
---|
113 | <title>Downloading KDE Plasma5</title>
|
---|
114 |
|
---|
115 | <para>
|
---|
116 | The easiest way to get the KDE Plasma5 packages is to use a single
|
---|
117 | <command>wget</command> to fetch them all at once:
|
---|
118 | </para>
|
---|
119 |
|
---|
120 | <screen><userinput>url=http://download.kde.org/stable/plasma/&plasma5-version;/
|
---|
121 | wget -r -nH -nd -A '*.xz' -np $url</userinput>
|
---|
122 | <literal>
|
---|
123 | The options used here are:
|
---|
124 | -r recurse through child directories
|
---|
125 | -nH disable generation of host-prefixed directories
|
---|
126 | -nd do not create a hierarchy of directories
|
---|
127 | -A '*.xz' just get the *.xz files
|
---|
128 | -np don't get parent directories</literal></screen>
|
---|
129 |
|
---|
130 | </sect2>
|
---|
131 |
|
---|
132 | <sect2>
|
---|
133 | <title>Setting Package Order</title>
|
---|
134 |
|
---|
135 | <para>
|
---|
136 | The order of building files is important due to internal dependencies.
|
---|
137 | Create the list of files in the proper order as follows:
|
---|
138 | </para>
|
---|
139 |
|
---|
140 | <screen><userinput>cat > plasma-&plasma5-version;.md5 << "EOF"
|
---|
141 | <literal>385dedd91c52692248582590afb1fada kde-cli-tools-5.10.0.tar.xz
|
---|
142 | 97251f0737fedeb8e718da52fb2e3c4f kdecoration-5.10.0.tar.xz
|
---|
143 | 93cf21d6485c2207b01a36493687021a libkscreen-5.10.0.tar.xz
|
---|
144 | 4dc7f5d5fd0fb1c78ba0d7442c643439 libksysguard-5.10.0.tar.xz
|
---|
145 | c3ee9712d1b5e76c60e520369d8d0203 breeze-5.10.0.tar.xz
|
---|
146 | e3abfe588d5d606c1bd9feb57296f2df breeze-gtk-5.10.0.tar.xz
|
---|
147 | 3234d0bbfbf2ca277e835c25b8c8e347 kscreenlocker-5.10.0.tar.xz
|
---|
148 | 76ac64277d4e0329baa4b119dbe1d872 oxygen-5.10.0.tar.xz
|
---|
149 | f4fdc03dded336fb79dcb1d41198f12b kinfocenter-5.10.0.tar.xz
|
---|
150 | eeb495ac4971114e4c378f749b307d5a ksysguard-5.10.0.tar.xz
|
---|
151 | ca95a965a3a165c1fdaa6db8b33efa8d kwin-5.10.0.tar.xz
|
---|
152 | 15a6eb395aae2b2c12eed4ebb0806853 systemsettings-5.10.0.tar.xz
|
---|
153 | b58e8037c09011abf1e868df1d5bc401 plasma-workspace-5.10.0.tar.xz
|
---|
154 | c0cd10543a62358d73060747e950c19b bluedevil-5.10.0.tar.xz
|
---|
155 | d65869affd1204d8056efca6a20fd37b kde-gtk-config-5.10.0.tar.xz
|
---|
156 | 53ff209275740023066ddcf3f930ddce khotkeys-5.10.0.tar.xz
|
---|
157 | cf6a4611f2c35a32e2571dc13ea0a348 kmenuedit-5.10.0.tar.xz
|
---|
158 | b34337a7849c39b5b9710ce4ec06ecd7 kscreen-5.10.0.tar.xz
|
---|
159 | 82847e071a55f526150f3b945d9cd13e kwallet-pam-5.10.0.tar.xz
|
---|
160 | 50a1816d7d70246a9c7bcc08cfe6a014 kwayland-integration-5.10.0.tar.xz
|
---|
161 | 83a93dbc26f874e8da5b5b5f61a53450 kwrited-5.10.0.tar.xz
|
---|
162 | 2a49140e706662d4543d2ab43ed833f0 milou-5.10.0.tar.xz
|
---|
163 | 976e21025c3a18331ba450f304c68720 plasma-nm-5.10.0.tar.xz
|
---|
164 | 7c6186fb1356fe457f4c8ab9e68ee343 plasma-pa-5.10.0.tar.xz
|
---|
165 | d7cc2d1c45442672bb528cbcfb3e7b0c plasma-workspace-wallpapers-5.10.0.tar.xz
|
---|
166 | 3a2ba731b5668c806ab40e2efe285ef2 polkit-kde-agent-1-5.10.0.tar.xz
|
---|
167 | 7acf9ead83f2ed6f676115351a41742a powerdevil-5.10.0.tar.xz
|
---|
168 | d1edc632e923a66c578b0b301221efb1 plasma-desktop-5.10.0.tar.xz
|
---|
169 | 93fd41d84118483582bf2d2cfe39d8d4 kdeplasma-addons-5.10.0.tar.xz
|
---|
170 | e6658da2bb79caedeba733c0c1fcfc95 kgamma5-5.10.0.tar.xz
|
---|
171 | f90500aaf1f2ee90cd2d248d646bf44f ksshaskpass-5.10.0.tar.xz
|
---|
172 | #bc5650a67220f5ec2c7556635a4e15b7 plasma-sdk-5.10.0.tar.xz
|
---|
173 | 00e5f4bec1a304d756e87e9c52269306 sddm-kcm-5.10.0.tar.xz
|
---|
174 | 814f9ecc0299de76d722de7020c19bd5 user-manager-5.10.0.tar.xz
|
---|
175 | 1070622fea6faa5952b724028c14bc7d discover-5.10.0.tar.xz
|
---|
176 | #330e2a7c084a432aed63d0a31c54df1e breeze-grub-5.10.0.tar.xz
|
---|
177 | #0059b846bb6236adad2e5b5d0df3c2d6 breeze-plymouth-5.10.0.tar.xz
|
---|
178 | a35ae2e6c7ef48234841b416769a17ac kactivitymanagerd-5.10.0.tar.xz
|
---|
179 | 24c9a41664ffa89768df14005335e7bc plasma-integration-5.10.0.tar.xz
|
---|
180 | 182f5a883551ab5a789cf8afd3212d64 plasma-tests-5.10.0.tar.xz
|
---|
181 | #480568df95a0d73829e9b3478c130917 plymouth-kcm-5.10.0.tar.xz
|
---|
182 | 6e3f734d83271fa7a28176faf9649688 xdg-desktop-portal-kde-5.10.0.tar.xz</literal>
|
---|
183 | EOF</userinput></screen>
|
---|
184 |
|
---|
185 | <note><para>The breeze-grub, breeze-plymouth, and plymouth-kcm packages
|
---|
186 | above are all for customized support of <ulink
|
---|
187 | url="https://www.freedesktop.org/wiki/Software/Plymouth/">Plymouth</ulink>
|
---|
188 | which is designed to be run within an initial ram disk during boot (see
|
---|
189 | <xref linkend="initramfs"/>). The plasma-sdk package is optional and used
|
---|
190 | for software development.</para></note>
|
---|
191 |
|
---|
192 | </sect2>
|
---|
193 |
|
---|
194 | <sect2 role="installation">
|
---|
195 | <title>Installation of Plasma5</title>
|
---|
196 |
|
---|
197 | &as_root;
|
---|
198 |
|
---|
199 | <para>
|
---|
200 | First, start a subshell that will exit on error:
|
---|
201 | </para>
|
---|
202 |
|
---|
203 | <screen><userinput>bash -e</userinput></screen>
|
---|
204 |
|
---|
205 | <para>
|
---|
206 | Install all of the packages by running the following
|
---|
207 | commands:
|
---|
208 | </para>
|
---|
209 |
|
---|
210 | <screen><userinput>while read -r line; do
|
---|
211 |
|
---|
212 | # Get the file name, ignoring comments and blank lines
|
---|
213 | if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
|
---|
214 | file=$(echo $line | cut -d" " -f2)
|
---|
215 |
|
---|
216 | pkg=$(echo $file|sed 's|^.*/||') # Remove directory
|
---|
217 | packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
|
---|
218 |
|
---|
219 | tar -xf $file
|
---|
220 | pushd $packagedir
|
---|
221 |
|
---|
222 | mkdir build
|
---|
223 | cd build
|
---|
224 |
|
---|
225 | cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
|
---|
226 | -DCMAKE_BUILD_TYPE=Release \
|
---|
227 | -DBUILD_TESTING=OFF \
|
---|
228 | -Wno-dev .. &&
|
---|
229 |
|
---|
230 | make
|
---|
231 | as_root make install
|
---|
232 | popd
|
---|
233 |
|
---|
234 | <!-- some packages end up with files owned by root in $packagedir,
|
---|
235 | so use as_root for removing -->
|
---|
236 | as_root rm -rf $packagedir
|
---|
237 | as_root /sbin/ldconfig
|
---|
238 |
|
---|
239 | done < plasma-&plasma5-version;.md5
|
---|
240 |
|
---|
241 | exit
|
---|
242 |
|
---|
243 | cd $KF5_PREFIX/share/plasma/plasmoids
|
---|
244 |
|
---|
245 | for j in $(find -name \*.js); do
|
---|
246 | as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
|
---|
247 | done</userinput></screen>
|
---|
248 |
|
---|
249 | </sect2>
|
---|
250 |
|
---|
251 | <sect2 role="commands">
|
---|
252 | <title>Command Explanations</title>
|
---|
253 |
|
---|
254 | <para>
|
---|
255 | <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
|
---|
256 | Create symbolic links so qml files can find needed javascript modules.
|
---|
257 | </para>
|
---|
258 |
|
---|
259 | </sect2>
|
---|
260 |
|
---|
261 | <sect2 role="configuration">
|
---|
262 | <title>Configuring Plasma</title>
|
---|
263 |
|
---|
264 | <sect3>
|
---|
265 | <title>Linux PAM Configuration</title>
|
---|
266 |
|
---|
267 | <para>
|
---|
268 | If you built Plasma with the recommended <application>Linux
|
---|
269 | PAM</application> support, create necessary configuration files by
|
---|
270 | running the following commands as the <systemitem
|
---|
271 | class="username">root</systemitem> user:
|
---|
272 | </para>
|
---|
273 |
|
---|
274 | <screen role="root"><userinput>cat >> /etc/pam.d/kde << "EOF"
|
---|
275 | # Begin /etc/pam.d/kde
|
---|
276 |
|
---|
277 | auth requisite pam_nologin.so
|
---|
278 | auth required pam_env.so
|
---|
279 |
|
---|
280 | auth required pam_succeed_if.so uid >= 1000 quiet
|
---|
281 | auth include system-auth
|
---|
282 |
|
---|
283 | account include system-account
|
---|
284 | password include system-password
|
---|
285 | session include system-session
|
---|
286 |
|
---|
287 | # End /etc/pam.d/kde
|
---|
288 | EOF
|
---|
289 |
|
---|
290 | cat > /etc/pam.d/kde-np << "EOF"
|
---|
291 | # Begin /etc/pam.d/kde-np
|
---|
292 |
|
---|
293 | auth requisite pam_nologin.so
|
---|
294 | auth required pam_env.so
|
---|
295 |
|
---|
296 | auth required pam_succeed_if.so uid >= 1000 quiet
|
---|
297 | auth required pam_permit.so
|
---|
298 |
|
---|
299 | account include system-account
|
---|
300 | password include system-password
|
---|
301 | session include system-session
|
---|
302 |
|
---|
303 | # End /etc/pam.d/kde-np
|
---|
304 | EOF
|
---|
305 |
|
---|
306 | cat > /etc/pam.d/kscreensaver << "EOF"
|
---|
307 | # Begin /etc/pam.d/kscreensaver
|
---|
308 |
|
---|
309 | auth include system-auth
|
---|
310 | account include system-account
|
---|
311 |
|
---|
312 | # End /etc/pam.d/kscreensaver
|
---|
313 | EOF</userinput></screen>
|
---|
314 | </sect3>
|
---|
315 | </sect2>
|
---|
316 |
|
---|
317 | <sect2 role="starting">
|
---|
318 | <title>Starting Plasma5</title>
|
---|
319 |
|
---|
320 | <para revision="sysv">
|
---|
321 | You can start <application>Plasma5</application> from runlevel 3, using
|
---|
322 | <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
|
---|
323 | such as <xref linkend="sddm"/>.
|
---|
324 | </para>
|
---|
325 |
|
---|
326 | <para revision="systemd">
|
---|
327 | You can start <application>Plasma5</application> from a TTY, using
|
---|
328 | <xref linkend="xinit"/><!--, or from a graphical display manager, such as
|
---|
329 | <xref linkend="sddm"/>-->.
|
---|
330 | </para>
|
---|
331 |
|
---|
332 | <para>
|
---|
333 | To start <application>Plasma 5</application> using <xref linkend="xinit"/>,
|
---|
334 | run the following commands:
|
---|
335 | </para>
|
---|
336 |
|
---|
337 | <screen revision="sysv"><userinput>cat > ~/.xinitrc << "EOF"
|
---|
338 | <literal>ck-launch-session dbus-launch --exit-with-session $KF5_PREFIX/bin/startkde</literal>
|
---|
339 | EOF
|
---|
340 |
|
---|
341 | startx</userinput></screen>
|
---|
342 |
|
---|
343 | <screen revision="systemd"><userinput>cat > ~/.xinitrc << "EOF"
|
---|
344 | <literal>dbus-launch --exit-with-session $KF5_PREFIX/bin/startkde</literal>
|
---|
345 | EOF
|
---|
346 |
|
---|
347 | startx</userinput></screen>
|
---|
348 |
|
---|
349 | <para>
|
---|
350 | The X session starts on the first unused virtual terminal, normally vt7.
|
---|
351 | You can switch to another vt<emphasis>n</emphasis> simultaneously
|
---|
352 | pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
|
---|
353 | (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
|
---|
354 | normally started at vt7, use Ctrl-Alt-F7. The vt where the command
|
---|
355 | <command>startx</command> was executed will display many messages,
|
---|
356 | including X starting messages, applications automatically started with
|
---|
357 | the session, and eventually, some warning and error messages. You may
|
---|
358 | prefer to redirect those messages to a log file, which not only will keep
|
---|
359 | the initial vt uncluttered, but can also be used for debugging purposes. This
|
---|
360 | can be done starting X with:
|
---|
361 | </para>
|
---|
362 |
|
---|
363 | <screen><userinput>startx &> ~/x-session-errors</userinput></screen>
|
---|
364 |
|
---|
365 | <note revision="sysv">
|
---|
366 | <para>
|
---|
367 | You may wish to drop consolekit and/or dbus-launch, e.g., just using
|
---|
368 | startkde in ~/.xinitrc. However some capabilities such as mounting or
|
---|
369 | umounting file systems from a file manager will not be possible, or the
|
---|
370 | reboot option may be absent or inoperative, among other problems.
|
---|
371 | </para>
|
---|
372 | </note>
|
---|
373 | <para>
|
---|
374 | When shutting down or rebooting, the shutdown messages appear on the vt
|
---|
375 | where X was running. If you wish to see those messages, simultaneously
|
---|
376 | press keys Alt-F7 (assuming that X was running on vt7).
|
---|
377 | </para>
|
---|
378 |
|
---|
379 | <para>If you intend to start <application>Plasma</application> using a
|
---|
380 | display manager such as <xref linkend="sddm"/>, there will be two entries
|
---|
381 | for <application>Plasma</application>, one for use with
|
---|
382 | <application>Xorg</application>, and another for
|
---|
383 | <application>Wayland</application>. Modify the
|
---|
384 | <application>Xorg</application> entry with the following command, as the
|
---|
385 | <systemitem class="username">root</systemitem> user, so that you can
|
---|
386 | differentiate between the two:</para>
|
---|
387 |
|
---|
388 | <screen><userinput role="root">sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
|
---|
389 |
|
---|
390 |
|
---|
391 | </sect2>
|
---|
392 |
|
---|
393 | <sect2 role="content">
|
---|
394 | <title>Contents</title>
|
---|
395 |
|
---|
396 | <segmentedlist>
|
---|
397 | <segtitle>Installed Programs</segtitle>
|
---|
398 | <segtitle>Installed Libraries</segtitle>
|
---|
399 | <segtitle>Installed Directories</segtitle>
|
---|
400 |
|
---|
401 | <seglistitem>
|
---|
402 | <seg>
|
---|
403 | There are too many plasma programs (50 in /opt/kf5/bin) to list
|
---|
404 | separately here.
|
---|
405 | </seg>
|
---|
406 | <seg>
|
---|
407 | There are too many plasma libraries (39 in /opt/kf5/lib) to list
|
---|
408 | separately here.
|
---|
409 | </seg>
|
---|
410 | <seg>
|
---|
411 | There are too many plasma directories (over 1000 in /opt/kf5) to
|
---|
412 | list separately here.
|
---|
413 | </seg>
|
---|
414 | </seglistitem>
|
---|
415 | </segmentedlist>
|
---|
416 |
|
---|
417 | </sect2>
|
---|
418 |
|
---|
419 | </sect1>
|
---|
420 |
|
---|