1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
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 plasma-download-http "https://download.kde.org/stable/plasma/&plasma-version;">
|
---|
8 | <!ENTITY plasma-download-ftp " ">
|
---|
9 | <!ENTITY plasma-md5sum "See Below">
|
---|
10 | <!ENTITY plasma-size "230 MB">
|
---|
11 | <!ENTITY plasma-buildsize "1.8 GB (480 MB installed)">
|
---|
12 | <!ENTITY plasma-time "14 SBU (using parallelism=8)">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="plasma-build" xreflabel="Plasma-&plasma-version;">
|
---|
16 | <?dbhtml filename="plasma-all.html"?>
|
---|
17 |
|
---|
18 |
|
---|
19 | <title>Building Plasma</title>
|
---|
20 |
|
---|
21 | <indexterm zone="plasma-build">
|
---|
22 | <primary sortas="a-kde-plasma">KDE Plasma</primary>
|
---|
23 | </indexterm>
|
---|
24 |
|
---|
25 | <para>
|
---|
26 | KDE Plasma is a collection of packages based on top of KDE Frameworks
|
---|
27 | and QML. They implement the KDE Display Environment (Plasma).
|
---|
28 | </para>
|
---|
29 |
|
---|
30 | &lfs121_checked;
|
---|
31 |
|
---|
32 | <para>
|
---|
33 | The instructions below build all of the Plasma packages in one
|
---|
34 | step by using a bash script.
|
---|
35 | </para>
|
---|
36 |
|
---|
37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
38 | <itemizedlist spacing="compact">
|
---|
39 | <listitem>
|
---|
40 | <para>
|
---|
41 | Download (HTTP): <ulink url="&plasma-download-http;"/>
|
---|
42 | </para>
|
---|
43 | </listitem>
|
---|
44 | <listitem>
|
---|
45 | <para>
|
---|
46 | Download (FTP): <ulink url="&plasma-download-ftp;"/>
|
---|
47 | </para>
|
---|
48 | </listitem>
|
---|
49 | <listitem>
|
---|
50 | <para>
|
---|
51 | Download MD5 sum: &plasma-md5sum;
|
---|
52 | </para>
|
---|
53 | </listitem>
|
---|
54 | <listitem>
|
---|
55 | <para>
|
---|
56 | Download size: &plasma-size;
|
---|
57 | </para>
|
---|
58 | </listitem>
|
---|
59 | <listitem>
|
---|
60 | <para>
|
---|
61 | Estimated disk space required: &plasma-buildsize;
|
---|
62 | </para>
|
---|
63 | </listitem>
|
---|
64 | <listitem>
|
---|
65 | <para>
|
---|
66 | Estimated build time: &plasma-time;
|
---|
67 | </para>
|
---|
68 | </listitem>
|
---|
69 | </itemizedlist>
|
---|
70 |
|
---|
71 | <bridgehead renderas="sect3">Plasma Dependencies</bridgehead>
|
---|
72 |
|
---|
73 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
74 | <para role="required">
|
---|
75 | <!--<xref linkend="gtk2"/>, Does not seem to be needed any more -->
|
---|
76 | <xref linkend="boost"/>,
|
---|
77 | <xref linkend="gtk3"/>,
|
---|
78 | <xref linkend="kf6-frameworks"/>,
|
---|
79 | <xref linkend="kirigami-addons"/>,
|
---|
80 | <xref linkend="libdisplay-info"/>,
|
---|
81 | <xref linkend="libpwquality"/>,
|
---|
82 | <xref linkend="libqalculate"/>,
|
---|
83 | <xref linkend="libnl"/>,
|
---|
84 | <xref linkend="libxcvt"/>,
|
---|
85 | <xref linkend="libxkbcommon"/>,
|
---|
86 | <xref linkend="mesa"/> built with <xref linkend="wayland"/>,
|
---|
87 | <xref linkend="pipewire"/>,
|
---|
88 | <xref linkend="pulseaudio"/>,
|
---|
89 | <xref linkend="qca"/>,
|
---|
90 | <xref linkend="qcoro"/>,
|
---|
91 | <xref linkend="sassc"/>,
|
---|
92 | <xref linkend="taglib"/>,
|
---|
93 | <xref linkend="xdotool"/>, and
|
---|
94 | <xref linkend="xorg-evdev-driver"/>
|
---|
95 | </para>
|
---|
96 |
|
---|
97 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
98 | <para role="recommended">
|
---|
99 | <xref linkend="gsettings-desktop-schemas"/>,
|
---|
100 | <xref linkend="libcanberra"/>,
|
---|
101 | <xref linkend="libinput"/>,
|
---|
102 | <xref linkend="libpcap"/>,
|
---|
103 | <xref linkend="linux-pam"/>,
|
---|
104 | <xref linkend="lm_sensors"/>,
|
---|
105 | <xref linkend="oxygen-icons"/>,
|
---|
106 | <xref linkend="pciutils"/>,
|
---|
107 | <xref linkend="power-profiles-daemon"/>, and
|
---|
108 | the following Python modules:
|
---|
109 | <xref linkend="psutil"/>,
|
---|
110 | <xref linkend="pygdbmi"/>,
|
---|
111 | <xref linkend="sentry-sdk"/>,
|
---|
112 | <xref linkend="urllib3"/> (if they are not installed, they will be
|
---|
113 | downloaded and installed by the drkonqi build procedure)
|
---|
114 | </para>
|
---|
115 |
|
---|
116 | <bridgehead renderas="sect4">Recommended (runtime)</bridgehead>
|
---|
117 | <para role="recommended">
|
---|
118 | <xref role="runtime" linkend="accountsservice"/>,
|
---|
119 | <xref role="runtime" linkend="breeze-icons"/>,
|
---|
120 | <xref role="runtime" linkend="smartmontools"/>,
|
---|
121 | <xref role="runtime" linkend="xdg-desktop-portal"/>, and
|
---|
122 | <xref role="runtime" linkend="xwayland"/>
|
---|
123 | </para>
|
---|
124 |
|
---|
125 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
126 | <para role="optional">
|
---|
127 | <xref linkend="appstream"/> (build with -qt=true),
|
---|
128 | <xref linkend="glu"/>,
|
---|
129 | <xref linkend='ibus'/>,
|
---|
130 | <xref linkend='qtwebengine'/>,
|
---|
131 | <xref linkend="xorg-synaptics-driver"/>,
|
---|
132 | <ulink url="https://www.kdevelop.org/">KDevPlatform</ulink>,
|
---|
133 | <ulink url="https://gpsd.gitlab.io/gpsd/">libgps</ulink>,
|
---|
134 | <ulink url="https://github.com/libhybris/libhybris">libhybris</ulink>,
|
---|
135 | <ulink url="https://www.freedesktop.org/software/PackageKit/releases/">packagekit-qt</ulink>,
|
---|
136 | <ulink url="https://launchpad.net/qapt">Qapt</ulink>,
|
---|
137 | <ulink url="https://github.com/osiam/osiam">SCIM</ulink>, and
|
---|
138 | <ulink url="http://www.dest-unreach.org/socat/">socat</ulink> (for pam_kwallet)
|
---|
139 | </para>
|
---|
140 |
|
---|
141 | <sect2>
|
---|
142 | <title>Downloading KDE Plasma</title>
|
---|
143 |
|
---|
144 | <para>
|
---|
145 | The easiest way to get the KDE Plasma packages is to use a single
|
---|
146 | <command>wget</command> to fetch them all at once:
|
---|
147 | </para>
|
---|
148 |
|
---|
149 | <screen><userinput>url=https://download.kde.org/stable/plasma/&plasma-version;/
|
---|
150 | wget -r -nH -nd -A '*.xz' -np $url</userinput>
|
---|
151 | <literal>
|
---|
152 | The options used here are:
|
---|
153 | -r recurse through child directories
|
---|
154 | -nH disable generation of host-prefixed directories
|
---|
155 | -nd do not create a hierarchy of directories
|
---|
156 | -A '*.xz' just get the *.xz files
|
---|
157 | -np don't get parent directories</literal></screen>
|
---|
158 |
|
---|
159 | </sect2>
|
---|
160 |
|
---|
161 | <sect2>
|
---|
162 | <title>Setting Package Order</title>
|
---|
163 |
|
---|
164 | <para>
|
---|
165 | The order of building files is important due to internal dependencies.
|
---|
166 | Create the list of files in the proper order as follows:
|
---|
167 | </para>
|
---|
168 |
|
---|
169 | <screen><userinput>cat > plasma-&plasma-version;.md5 << "EOF"
|
---|
170 | <literal>fb602565447d49747a7dda2aa40c4d4f kdecoration-6.0.5.tar.xz
|
---|
171 | 130f277cd002be34fad025dc78222db9 libkscreen-6.0.5.tar.xz
|
---|
172 | be08ef0ddb460588ab2ac89d9a537956 libksysguard-6.0.5.tar.xz
|
---|
173 | c819c48d6ad6ea4c0ef25cb8bf7f9a57 breeze-6.0.5.tar.xz
|
---|
174 | 851d8b1ed70a24b83d1ee34cabffbd6c breeze-gtk-6.0.5.tar.xz
|
---|
175 | 7e901330dfc754378f1f88fae0a9941a layer-shell-qt-6.0.5.tar.xz
|
---|
176 | 4bced972e9db7eac8a0fa8ce22dcac6b plasma-activities-6.0.5.tar.xz
|
---|
177 | 8c4ce38506ec355a77d3c2cef61d6b5b libplasma-6.0.5.tar.xz
|
---|
178 | ca79da353a27361afab76e6a6d09f364 kscreenlocker-6.0.5.tar.xz
|
---|
179 | f97e0e893d49df544614350db71adbd4 kinfocenter-6.0.5.tar.xz
|
---|
180 | 26fe1aacf9d4d415d1853e113618b66b kglobalacceld-6.0.5.tar.xz
|
---|
181 | 83985c22ca89897cf17b803a9b50f15e kwayland-6.0.5.tar.xz
|
---|
182 | 889a0c874a93a9892c70a6cd9969abb7 kwin-6.0.5.tar.xz
|
---|
183 | 453a34c77f28ad6d8422d79b88bf7b9f plasma5support-6.0.5.tar.xz
|
---|
184 | 3dcad1de3a6866f615597576b305ebce plasma-activities-stats-6.0.5.tar.xz
|
---|
185 | 84caae7612832d683c373f5415788747 kpipewire-6.0.5.tar.xz
|
---|
186 | #7697ef8eedbc90c06e160507775f9e3b plasma-workspace-6.0.5.tar.xz
|
---|
187 | 518d71251d583c3ad13803779f03c2ff plasma-workspace-6.0.5.1.tar.xz
|
---|
188 | 325d6807259349e4a4a9e9740c752e62 plasma-disks-6.0.5.tar.xz
|
---|
189 | 327b7df00c4a2bed328348a843cd10f6 bluedevil-6.0.5.1.tar.xz
|
---|
190 | #b7c69ea25e4e401b78aab4bd59488190 bluedevil-6.0.5.tar.xz
|
---|
191 | ea1982dd90db2730b0f2c590aead7fce kde-gtk-config-6.0.5.tar.xz
|
---|
192 | 5cdef6d17824b2a9bfde05e217497a7b kmenuedit-6.0.5.tar.xz
|
---|
193 | b5c9406a29aa68a3f6b1d4a48efa9f91 kscreen-6.0.5.tar.xz
|
---|
194 | b0a25bc01b7f65e0207d5ebfc307ed8b kwallet-pam-6.0.5.tar.xz
|
---|
195 | 42290d2c2cf87fc1b835332414b9d047 kwrited-6.0.5.tar.xz
|
---|
196 | cf120d99e7d14964fef5de4e1cfcb7a3 milou-6.0.5.tar.xz
|
---|
197 | 949b249d147e2b3213d7e4c1b5bb8590 plasma-nm-6.0.5.tar.xz
|
---|
198 | e4274d2a91d96e3f0774aa94a57eba58 plasma-pa-6.0.5.tar.xz
|
---|
199 | a6d4f30dbb3eaa9147cb5ccd788472d8 plasma-workspace-wallpapers-6.0.5.tar.xz
|
---|
200 | fb2f392f7370bd665b918f10ec1fbe38 polkit-kde-agent-1-6.0.5.tar.xz
|
---|
201 | deef232b4ceb90980818fa4358a37d52 powerdevil-6.0.5.tar.xz
|
---|
202 | 4ac4551e1afb524155a1c5fd1028158e plasma-desktop-6.0.5.tar.xz
|
---|
203 | 47460a8289c726a2a69c4511a3bdc007 kgamma-6.0.5.tar.xz
|
---|
204 | 2f52416fb211ab956d430759a864c382 ksshaskpass-6.0.5.tar.xz
|
---|
205 | #6edf6bb59da445ff7868670503714ec7 plasma-sdk-6.0.5.tar.xz
|
---|
206 | 8852a3f7ee9cf2c1b2cdce4da79e1709 sddm-kcm-6.0.5.tar.xz
|
---|
207 | #f84b8a4b729850cc05ef7e06f7526fec discover-6.0.5.tar.xz
|
---|
208 | #6e17a1954b2a58f220036e630fd40f64 breeze-grub-6.0.5.tar.xz
|
---|
209 | #387c3ff10618dcd37b5b4c1a42902c86 breeze-plymouth-6.0.5.tar.xz
|
---|
210 | 5456b489df70cd0729f105327f5f71ff kactivitymanagerd-6.0.5.tar.xz
|
---|
211 | 0af72c4d39d434137a5f36eb8a67efe3 plasma-integration-6.0.5.tar.xz
|
---|
212 | #5dbfe960bf77156fb55e1a0134448655 plymouth-kcm-6.0.5.tar.xz
|
---|
213 | 3225b3c5d71e0d24c13392137a472be1 xdg-desktop-portal-kde-6.0.5.tar.xz
|
---|
214 | f700792dae0709d39e0eff83127c2165 drkonqi-6.0.5.tar.xz
|
---|
215 | bb84a93d616e451b24ed0b8fe3baf24d plasma-vault-6.0.5.tar.xz
|
---|
216 | #0623a32f1d444dfa77c668e8f12fa329 plasma-browser-integration-6.0.5.tar.xz
|
---|
217 | ef739ab228cb266108ccdc43f7ecb153 kde-cli-tools-6.0.5.tar.xz
|
---|
218 | f56788b6b76f847df6463f4d5aaa4c49 systemsettings-6.0.5.tar.xz
|
---|
219 | 97f0fa5b27e91b5dc502e73fb96c616e plasma-thunderbolt-6.0.5.tar.xz
|
---|
220 | #6bc6da7089cf4c526d0ed9744a9629d5 plasma-nano-6.0.5.tar.xz
|
---|
221 | #a3588aad3c6c7baaa77f6343bfa9f734 plasma-mobile-6.0.5.tar.xz
|
---|
222 | 778a0e478764fa02fbadbc5a54087323 plasma-firewall-6.0.5.tar.xz
|
---|
223 | ba5c4c7cb7ab13d33ff3b5b5b8cb8b9b plasma-systemmonitor-6.0.5.tar.xz
|
---|
224 | f07d41d35c675e2c3a1fe1e51dbe7f75 qqc2-breeze-style-6.0.5.tar.xz
|
---|
225 | 771bd96d6818f05b5e22dc3a9c2f4871 ksystemstats-6.0.5.tar.xz
|
---|
226 | c0ee6a9eff0c53ba7db72a2f7ea18944 oxygen-sounds-6.0.5.tar.xz
|
---|
227 | f166678fa85a8d7fbdb04bac7e7efcb7 kdeplasma-addons-6.0.5.tar.xz
|
---|
228 | #5727a82e55ba8ce755b4b12a17f39efe flatpak-kcm-6.0.5.tar.xz
|
---|
229 | 102cfff8c5dd75ffe6a607f97a905e4d plasma-welcome-6.0.5.tar.xz
|
---|
230 | 058f66a6f172200eb73ae0fc93efec75 ocean-sound-theme-6.0.5.tar.xz
|
---|
231 | ddc3643fadbf754c2ef3181bfde93400 print-manager-6.0.5.tar.xz
|
---|
232 | #0fc72159968efc1798af78716b42c2f9 wacomtablet-6.0.5.tar.xz
|
---|
233 | #b5e7dc5cb908c0a8f8b95b4059152585 kwayland-integration-6.0.5.tar.xz</literal>
|
---|
234 | EOF</userinput></screen>
|
---|
235 |
|
---|
236 | <note>
|
---|
237 | <title>About Commented Out Packages</title>
|
---|
238 | <para>
|
---|
239 | In the above list, several files are commented out with a hash (#) character.
|
---|
240 |
|
---|
241 | <itemizedlist spacing="compact">
|
---|
242 | <listitem>
|
---|
243 | <para>
|
---|
244 | Two packages, bluedevil and plasma-workspace, have been replaced
|
---|
245 | by a 6.0.5.1 version.
|
---|
246 | </para>
|
---|
247 | </listitem>
|
---|
248 | <listitem>
|
---|
249 | <para>
|
---|
250 | The plasma-sdk package is optional and used for software development.
|
---|
251 | </para>
|
---|
252 | </listitem>
|
---|
253 | <listitem>
|
---|
254 | <para>
|
---|
255 | The discover package requires <xref linkend="appstream"/> to be built
|
---|
256 | with the -D qt=true switch.
|
---|
257 | </para>
|
---|
258 | </listitem>
|
---|
259 | <listitem>
|
---|
260 | <para>
|
---|
261 | The breeze-grub, breeze-plymouth, and plymouth-kcm packages above
|
---|
262 | are all for customized support of
|
---|
263 | <ulink url="https://www.freedesktop.org/wiki/Software/Plymouth/">
|
---|
264 | Plymouth</ulink> which is designed to be run within an initial
|
---|
265 | ram disk during boot (see <xref linkend="initramfs"/>).
|
---|
266 | </para>
|
---|
267 | </listitem>
|
---|
268 | <listitem>
|
---|
269 | <para>
|
---|
270 | The plasma-browser-integration package is only used by plasma-meta
|
---|
271 | which is not installed by BLFS.
|
---|
272 | </para>
|
---|
273 | </listitem>
|
---|
274 | <listitem>
|
---|
275 | <para>
|
---|
276 | The plasma-nano package is used for embedded systems.
|
---|
277 | </para>
|
---|
278 | </listitem>
|
---|
279 | <listitem>
|
---|
280 | <para>
|
---|
281 | The plasma-mobile package provides phone functionality for Plasma.
|
---|
282 | </para>
|
---|
283 | </listitem>
|
---|
284 | <listitem>
|
---|
285 | <para>
|
---|
286 | The flatpack-kcm package is for managing support of flatpack applications.
|
---|
287 | </para>
|
---|
288 | </listitem>
|
---|
289 | <listitem>
|
---|
290 | <para>
|
---|
291 | The wacomtablet and kwayland-integration applications require
|
---|
292 | plasma5 support.
|
---|
293 | </para>
|
---|
294 | </listitem>
|
---|
295 | </itemizedlist>
|
---|
296 | </para>
|
---|
297 | </note>
|
---|
298 |
|
---|
299 | </sect2>
|
---|
300 |
|
---|
301 | <sect2 role="installation">
|
---|
302 | <title>Installation of Plasma</title>
|
---|
303 |
|
---|
304 | &as_root;
|
---|
305 |
|
---|
306 | <para>
|
---|
307 | First, start a subshell that will exit on error:
|
---|
308 | </para>
|
---|
309 |
|
---|
310 | <screen><userinput>bash -e</userinput></screen>
|
---|
311 |
|
---|
312 | <para>
|
---|
313 | Install all of the packages by running the following
|
---|
314 | commands:
|
---|
315 | </para>
|
---|
316 |
|
---|
317 | <screen><userinput>while read -r line; do
|
---|
318 |
|
---|
319 | # Get the file name, ignoring comments and blank lines
|
---|
320 | if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
|
---|
321 | file=$(echo $line | cut -d" " -f2)
|
---|
322 |
|
---|
323 | pkg=$(echo $file|sed 's|^.*/||') # Remove directory
|
---|
324 | packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
|
---|
325 |
|
---|
326 | tar -xf $file
|
---|
327 | pushd $packagedir
|
---|
328 | <!--
|
---|
329 | # Fix some build issues when generating some configuration files
|
---|
330 | case $name in
|
---|
331 | plasma-workspace)
|
---|
332 | sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
|
---|
333 | ;;
|
---|
334 |
|
---|
335 | khotkeys)
|
---|
336 | sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
|
---|
337 | ;;
|
---|
338 |
|
---|
339 | plasma-desktop)
|
---|
340 | sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
|
---|
341 | ;;
|
---|
342 | esac
|
---|
343 | -->
|
---|
344 | mkdir build
|
---|
345 | cd build
|
---|
346 |
|
---|
347 | cmake -D CMAKE_INSTALL_PREFIX=$KF6_PREFIX \
|
---|
348 | -D CMAKE_INSTALL_LIBEXECDIR=libexec \
|
---|
349 | -D CMAKE_BUILD_TYPE=Release \
|
---|
350 | -D BUILD_QT5=OFF \
|
---|
351 | -D BUILD_TESTING=OFF \
|
---|
352 | -W no-dev .. &&
|
---|
353 |
|
---|
354 | make
|
---|
355 | as_root make install
|
---|
356 | popd
|
---|
357 |
|
---|
358 | <!-- some packages end up with files owned by root in $packagedir,
|
---|
359 | so use as_root for removing -->
|
---|
360 | as_root rm -rf $packagedir
|
---|
361 | as_root /sbin/ldconfig
|
---|
362 |
|
---|
363 | done < plasma-&plasma-version;.md5
|
---|
364 |
|
---|
365 | exit</userinput></screen>
|
---|
366 |
|
---|
367 | <para>
|
---|
368 | If you did not set <envar>$KF6_PREFIX</envar> to
|
---|
369 | <filename>/usr</filename>, create symlinks to allow display managers to
|
---|
370 | find <application>Plasma</application>, and to allow the XDG Desktop
|
---|
371 | Portal to be detected. As the &root; user:
|
---|
372 | </para>
|
---|
373 |
|
---|
374 | <screen><userinput># Setup xsessions (X11 sessions)
|
---|
375 | install -dvm 755 /usr/share/xsessions
|
---|
376 | cd /usr/share/xsessions
|
---|
377 |
|
---|
378 | [ -e plasma.desktop ] ||
|
---|
379 | ln -sfv $KF6_PREFIX/share/xsessions/plasmax11.desktop
|
---|
380 |
|
---|
381 | # Setup wayland-sessions
|
---|
382 | install -dvm 755 /usr/share/wayland-sessions
|
---|
383 | cd /usr/share/wayland-sessions
|
---|
384 |
|
---|
385 | [ -e plasmawayland.desktop ] ||
|
---|
386 | ln -sfv $KF6_PREFIX/share/wayland-sessions/plasma.desktop
|
---|
387 | <!-- work around a bug in xdg-desktop-portal-->
|
---|
388 | # Setup xdg-desktop-portal
|
---|
389 | install -dvm 755 /usr/share/xdg-desktop-portal
|
---|
390 | cd /usr/share/xdg-desktop-portal
|
---|
391 |
|
---|
392 | [ -e kde-portals.conf ] ||
|
---|
393 | ln -sfv $KF6_PREFIX/share/xdg-desktop-portal/kde-portals.conf
|
---|
394 |
|
---|
395 | # Setup kde portal
|
---|
396 | install -dvm 755 /usr/share/xdg-desktop-portal/portals
|
---|
397 | cd /usr/share/xdg-desktop-portal/portals
|
---|
398 |
|
---|
399 | [ -e kde.portal ] ||
|
---|
400 | ln -sfv $KF6_PREFIX/share/xdg-desktop-portal/portals/kde.portal</userinput></screen>
|
---|
401 |
|
---|
402 | <para revision="sysv">
|
---|
403 | Useless systemd units have been installed in
|
---|
404 | <filename class="directory">$KF6_PREFIX/lib</filename>. Remove
|
---|
405 | them now (as <systemitem class="username">root</systemitem>):
|
---|
406 | </para>
|
---|
407 |
|
---|
408 | <screen role="root"
|
---|
409 | revision="sysv"><userinput>rm -rf $KF6_PREFIX/lib/systemd</userinput></screen>
|
---|
410 |
|
---|
411 | </sect2>
|
---|
412 | <!--
|
---|
413 | <sect2 role="commands">
|
---|
414 | <title>Command Explanations</title>
|
---|
415 |
|
---|
416 | <para>
|
---|
417 | <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
|
---|
418 | Create symbolic links so qml files can find needed javascript modules.
|
---|
419 | </para>
|
---|
420 |
|
---|
421 | </sect2>
|
---|
422 | -->
|
---|
423 | <sect2 role="configuration">
|
---|
424 | <title>Configuring Plasma</title>
|
---|
425 |
|
---|
426 | <sect3>
|
---|
427 | <title>Linux PAM Configuration</title>
|
---|
428 |
|
---|
429 | <para>
|
---|
430 | If you built Plasma with the recommended <application>Linux
|
---|
431 | PAM</application> support, create necessary configuration files by
|
---|
432 | running the following commands as the <systemitem
|
---|
433 | class="username">root</systemitem> user:
|
---|
434 | </para>
|
---|
435 |
|
---|
436 | <screen role="root"><userinput>cat > /etc/pam.d/kde << "EOF"
|
---|
437 | <literal># Begin /etc/pam.d/kde
|
---|
438 |
|
---|
439 | auth requisite pam_nologin.so
|
---|
440 | auth required pam_env.so
|
---|
441 |
|
---|
442 | auth required pam_succeed_if.so uid >= 1000 quiet
|
---|
443 | auth include system-auth
|
---|
444 |
|
---|
445 | account include system-account
|
---|
446 | password include system-password
|
---|
447 | session include system-session
|
---|
448 |
|
---|
449 | # End /etc/pam.d/kde</literal>
|
---|
450 | EOF
|
---|
451 |
|
---|
452 | cat > /etc/pam.d/kde-np << "EOF"
|
---|
453 | <literal># Begin /etc/pam.d/kde-np
|
---|
454 |
|
---|
455 | auth requisite pam_nologin.so
|
---|
456 | auth required pam_env.so
|
---|
457 |
|
---|
458 | auth required pam_succeed_if.so uid >= 1000 quiet
|
---|
459 | auth required pam_permit.so
|
---|
460 |
|
---|
461 | account include system-account
|
---|
462 | password include system-password
|
---|
463 | session include system-session
|
---|
464 |
|
---|
465 | # End /etc/pam.d/kde-np</literal>
|
---|
466 | EOF
|
---|
467 |
|
---|
468 | cat > /etc/pam.d/kscreensaver << "EOF"
|
---|
469 | <literal># Begin /etc/pam.d/kscreensaver
|
---|
470 |
|
---|
471 | auth include system-auth
|
---|
472 | account include system-account
|
---|
473 |
|
---|
474 | # End /etc/pam.d/kscreensaver</literal>
|
---|
475 | EOF</userinput></screen>
|
---|
476 | </sect3>
|
---|
477 | </sect2>
|
---|
478 |
|
---|
479 | <sect2 role="starting">
|
---|
480 | <title>Starting Plasma</title>
|
---|
481 |
|
---|
482 | <para revision="sysv">
|
---|
483 | You can start <application>Plasma</application> from runlevel 3, using
|
---|
484 | <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
|
---|
485 | such as <xref linkend="lightdm"/>.
|
---|
486 | </para>
|
---|
487 |
|
---|
488 | <para revision="systemd">
|
---|
489 | You can start <application>Plasma</application> from a TTY, using
|
---|
490 | <xref linkend="xinit"/><!--, or from a graphical display manager, such as
|
---|
491 | <xref linkend="sddm"/>-->.
|
---|
492 | </para>
|
---|
493 |
|
---|
494 | <para>
|
---|
495 | To start <application>Plasma</application> using <xref linkend="xinit"/>,
|
---|
496 | run the following commands:
|
---|
497 | </para>
|
---|
498 |
|
---|
499 | <screen role="nodump"><userinput>cat > ~/.xinitrc << "EOF"
|
---|
500 | <literal>dbus-launch --exit-with-x11 $KF6_PREFIX/bin/startplasma-x11</literal>
|
---|
501 | EOF
|
---|
502 |
|
---|
503 | startx</userinput></screen>
|
---|
504 |
|
---|
505 | <para>
|
---|
506 | The X session starts on the first unused virtual terminal, normally vt7.
|
---|
507 | You can switch to another vt<emphasis>n</emphasis> simultaneously
|
---|
508 | pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
|
---|
509 | (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
|
---|
510 | normally started at vt7, use Ctrl-Alt-F7. The vt where the command
|
---|
511 | <command>startx</command> was executed will display many messages,
|
---|
512 | including X starting messages, applications automatically started with
|
---|
513 | the session, and eventually, some warning and error messages. You may
|
---|
514 | prefer to redirect those messages to a log file, which not only will keep
|
---|
515 | the initial vt uncluttered, but can also be used for debugging purposes. This
|
---|
516 | can be done starting X with:
|
---|
517 | </para>
|
---|
518 |
|
---|
519 | <screen role="nodump"><userinput>startx &> ~/x-session-errors</userinput></screen>
|
---|
520 |
|
---|
521 | <para>
|
---|
522 | When shutting down or rebooting, the shutdown messages appear on the vt
|
---|
523 | where X was running. If you wish to see those messages, simultaneously
|
---|
524 | press keys Alt-F7 (assuming that X was running on vt7).
|
---|
525 | </para>
|
---|
526 | <!-- Start plasma wayland with
|
---|
527 |
|
---|
528 | /opt/kf6/lib/libexec/plasma-dbus-run-session-if-needed /opt/kf6/bin/startplasma-wayland
|
---|
529 |
|
---|
530 | Investigate why it's in /opt/kf6/lib/libexec and not just in /opt/kf6/libexec
|
---|
531 |
|
---|
532 |
|
---|
533 | Now the entry is "plasma (X11)" for Xorg, so I guess this is
|
---|
534 | not needed anymore:
|
---|
535 | <para>
|
---|
536 | If you intend to start <application>Plasma</application> using a
|
---|
537 | display manager such as <xref linkend="lightdm"/>, there will be two entries
|
---|
538 | for <application>Plasma</application>, one for use with
|
---|
539 | <application>Xorg</application>, and another for
|
---|
540 | <application>Wayland</application>. Modify the
|
---|
541 | <application>Xorg</application> entry with the following command, as the
|
---|
542 | <systemitem class="username">root</systemitem> user, so that you can
|
---|
543 | differentiate between the two:</para>
|
---|
544 |
|
---|
545 | <screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
|
---|
546 | -->
|
---|
547 |
|
---|
548 | </sect2>
|
---|
549 |
|
---|
550 | <sect2 role="content">
|
---|
551 | <title>Contents</title>
|
---|
552 |
|
---|
553 | <segmentedlist>
|
---|
554 | <segtitle>Installed Programs</segtitle>
|
---|
555 | <segtitle>Installed Libraries</segtitle>
|
---|
556 | <segtitle>Installed Directories</segtitle>
|
---|
557 |
|
---|
558 | <seglistitem>
|
---|
559 | <seg>
|
---|
560 | There are too many plasma programs (over 50 in /opt/kf6/bin) to list
|
---|
561 | separately here.
|
---|
562 | </seg>
|
---|
563 | <seg>
|
---|
564 | There are too many plasma libraries (over 250 in /opt/kf6/lib) to list
|
---|
565 | separately here.
|
---|
566 | </seg>
|
---|
567 | <seg>
|
---|
568 | There are too many plasma directories (over 2700 in /opt/kf6) to
|
---|
569 | list separately here.
|
---|
570 | </seg>
|
---|
571 | </seglistitem>
|
---|
572 | </segmentedlist>
|
---|
573 |
|
---|
574 | </sect2>
|
---|
575 |
|
---|
576 | </sect1>
|
---|