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 "242 MB">
|
---|
11 | <!ENTITY plasma-buildsize "1.9 GB (501 MB installed)">
|
---|
12 | <!ENTITY plasma-time "17 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>186e3608e5a9b4695db6f215b042b262 kdecoration-6.0.3.tar.xz
|
---|
171 | 1f1d12d08bcf9309ab1c49641bb8eaf3 libkscreen-6.0.3.tar.xz
|
---|
172 | 48b300ca4490da873f652596ef7f1444 libksysguard-6.0.3.tar.xz
|
---|
173 | 68307af2cbd738f8222d4899c44e95f3 breeze-6.0.3.tar.xz
|
---|
174 | ceab9d1b168592840f12ab7b301cee85 breeze-gtk-6.0.3.tar.xz
|
---|
175 | c1206b4c182b3a01614d0a6ade96e76c layer-shell-qt-6.0.3.tar.xz
|
---|
176 | eac6aebafbb8c2cbef5a121d5c0afb10 plasma-activities-6.0.3.tar.xz
|
---|
177 | 2e71b9fb2f41bf2d63dcef0dc5da8fcd libplasma-6.0.3.tar.xz
|
---|
178 | 209a5df56d6adf25edc58737e7c77ea7 kscreenlocker-6.0.3.tar.xz
|
---|
179 | 109d6dcb1b0fab015bda4c3d508baf1f oxygen-6.0.3.tar.xz
|
---|
180 | 637e400d06550a3ef3b872f8011470cd kinfocenter-6.0.3.tar.xz
|
---|
181 | 021e8ab1bca725301425f946db4b74c6 kglobalacceld-6.0.3.tar.xz
|
---|
182 | 7c2273b104ff7f83930d3e6d92b6c458 kwayland-6.0.3.tar.xz
|
---|
183 | d04c8ab91d6befe8d51bf1f4b90eb733 kwin-6.0.3.1.tar.xz
|
---|
184 | #5e6e0275809aabbd05bf703f0e1dfd91 kwin-6.0.3.tar.xz
|
---|
185 | 28cb89b0a2c79e65b49a7396d2e156e7 plasma5support-6.0.3.tar.xz
|
---|
186 | 329a0134a743d45a9f85c0f09763fa3f plasma-activities-stats-6.0.3.tar.xz
|
---|
187 | c64d5a3b3a2a38e1efaaa18ec0ed0f15 kpipewire-6.0.3.tar.xz
|
---|
188 | 635c8a687f95b77da538dfa67b64cf11 plasma-workspace-6.0.3.tar.xz
|
---|
189 | fc1f1dbff3071fb70fde8f2b402f2cad plasma-disks-6.0.3.tar.xz
|
---|
190 | be2620c0ce9947023c6fda97f9336a2b bluedevil-6.0.3.tar.xz
|
---|
191 | e3fffb113826cddf572f1a63a4803285 kde-gtk-config-6.0.3.tar.xz
|
---|
192 | d3b5bab22961eb000ffca29ed31e853b kmenuedit-6.0.3.tar.xz
|
---|
193 | 8e1c31ac47e3f5751fa0415c77ffdb93 kscreen-6.0.3.tar.xz
|
---|
194 | 0918f152f0049c8d2f3f96252d40b5d4 kwallet-pam-6.0.3.tar.xz
|
---|
195 | 96a0755c99e66a0f5cc53d6f4c384493 kwrited-6.0.3.tar.xz
|
---|
196 | 9ba1923b7fec42694d930e973894542f milou-6.0.3.tar.xz
|
---|
197 | ed40c562d6b4a1b97271bb7d0cfc9710 plasma-nm-6.0.3.tar.xz
|
---|
198 | 7ebe34a38f77fe3547b1f2614803f8ce plasma-pa-6.0.3.tar.xz
|
---|
199 | ce37763cc6b1763cdf6c24cd5decd0d9 plasma-workspace-wallpapers-6.0.3.tar.xz
|
---|
200 | 63b3ff934d9eb5fcccca27166dec78af polkit-kde-agent-1-6.0.3.tar.xz
|
---|
201 | 9ea75163cc91e7e952285fc212745f4f powerdevil-6.0.3.tar.xz
|
---|
202 | 12923d808bf6f6d9b3a807e72e1941ba plasma-desktop-6.0.3.tar.xz
|
---|
203 | 41e74069e7487d72feb91b33de0a0c13 kgamma-6.0.3.tar.xz
|
---|
204 | 38b6bf5620962febb86dd526aa1c4788 ksshaskpass-6.0.3.tar.xz
|
---|
205 | #6c4ceff65c64495bbefdac1f163a2ca9 plasma-sdk-6.0.3.tar.xz
|
---|
206 | d8ff0a33561736bd81d2f0cf26b80eb9 sddm-kcm-6.0.3.tar.xz
|
---|
207 | #2f8485cee3dc80bb07fead85571ba8ad discover-6.0.3.tar.xz
|
---|
208 | #68daa2b8dbb2e9f3ace51bcbaa2632c1 breeze-grub-6.0.3.tar.xz
|
---|
209 | #83885a3eba356552f094874192c31c28 breeze-plymouth-6.0.3.tar.xz
|
---|
210 | 52d84e5435c807851e91b31e724b0c2a kactivitymanagerd-6.0.3.tar.xz
|
---|
211 | 4698864e111f4ca549364fe4fdf09ad3 plasma-integration-6.0.3.tar.xz
|
---|
212 | #f8a08001b7a6f5865bceda7a28515308 plymouth-kcm-6.0.3.tar.xz
|
---|
213 | 699405b00fd157de30a3a0cbd93703a0 xdg-desktop-portal-kde-6.0.3.tar.xz
|
---|
214 | 497e9cd3c74e79c1401fbacdb5b71513 drkonqi-6.0.3.tar.xz
|
---|
215 | 9b8d1a55ea8bbddb952bd9736155fbaa plasma-vault-6.0.3.tar.xz
|
---|
216 | #069994af9dfd7b42c9408a8cd0fc49b3 plasma-browser-integration-6.0.3.tar.xz
|
---|
217 | c2f06a0b32bc4e17441876c2c6bfa6ad kde-cli-tools-6.0.3.tar.xz
|
---|
218 | 4af7e9b64eaf7e6055a94988bfe0b0e7 systemsettings-6.0.3.tar.xz
|
---|
219 | ed18f319cd1e8abc7b6a220983e89dfd plasma-thunderbolt-6.0.3.tar.xz
|
---|
220 | #6653173b1b429bd95b9a23a5d9821d5a plasma-nano-6.0.3.tar.xz
|
---|
221 | #3e9ad4e8cd7f17c9ec9c27343be81669 plasma-mobile-6.0.3.tar.xz
|
---|
222 | #1138655f05d7ad84edf55683c5b6359b plasma-mobile-6.0.3.1.tar.xz
|
---|
223 | 13f3bd14874ddccbf19a454be09df781 plasma-firewall-6.0.3.tar.xz
|
---|
224 | 8ae9665bb844ab84a6cbaa3059c64f50 plasma-systemmonitor-6.0.3.tar.xz
|
---|
225 | ae65db4bac3bac3cf58ad4198c0b522a qqc2-breeze-style-6.0.3.tar.xz
|
---|
226 | 3449bff47dd931b1da6e182512034fbc ksystemstats-6.0.3.tar.xz
|
---|
227 | 787f7051bcc2e1f66dca37bd2326d75e oxygen-sounds-6.0.3.tar.xz
|
---|
228 | 761ce4d784b8800bb8a51f0b3f8b042d kdeplasma-addons-6.0.3.tar.xz
|
---|
229 | #d1513338480b042380a58aed49c1fac9 flatpak-kcm-6.0.3.tar.xz
|
---|
230 | 512b5cc6ef9cbf22784d97b97dd45632 plasma-welcome-6.0.3.tar.xz
|
---|
231 | 62c2fa68a55dc36ac182837a8accc892 ocean-sound-theme-6.0.3.tar.xz
|
---|
232 | d407dff0646743d613d862d92c118005 print-manager-6.0.3.tar.xz
|
---|
233 | #2766783e2a2f2e966bab54eddaf1ce59 wacomtablet-6.0.3.tar.xz
|
---|
234 | #d3c59bcf64a487b17e89fbc9ec34a150 kwayland-integration-6.0.3.tar.xz</literal>
|
---|
235 | EOF</userinput></screen>
|
---|
236 |
|
---|
237 | <note>
|
---|
238 | <title>About Commented Out Packages</title>
|
---|
239 | <para>
|
---|
240 | The breeze-grub, breeze-plymouth, and plymouth-kcm packages above are
|
---|
241 | all for customized support of <ulink
|
---|
242 | url="https://www.freedesktop.org/wiki/Software/Plymouth/"
|
---|
243 | >Plymouth</ulink>
|
---|
244 | which is designed to be run within an initial ram disk during boot (see
|
---|
245 | <xref linkend="initramfs"/>).
|
---|
246 |
|
---|
247 | The plasma-sdk package is optional and used for software development.
|
---|
248 |
|
---|
249 | The plasma-nano package is used for embedded systems.
|
---|
250 |
|
---|
251 | The plasma-mobile package provides phone functionality for Plasma.
|
---|
252 |
|
---|
253 | The discover package requires <xref linkend="appstream"/> to be built
|
---|
254 | with the -Dqt=true switch.
|
---|
255 |
|
---|
256 | The flatpack-kcm package is for managing support of flatpack applications.
|
---|
257 |
|
---|
258 | The plasma-browser-integration package is only used by plasma-meta which is
|
---|
259 | not installed by BLFS.
|
---|
260 |
|
---|
261 | The wacomtablet application requires plasma5 support.
|
---|
262 |
|
---|
263 | Two packages, kwayland-integration-6.0.3 and kwin-6.0.3. have been
|
---|
264 | replaces by 6.0.3.1 versions.
|
---|
265 | </para>
|
---|
266 | </note>
|
---|
267 |
|
---|
268 | </sect2>
|
---|
269 |
|
---|
270 | <sect2 role="installation">
|
---|
271 | <title>Installation of Plasma</title>
|
---|
272 |
|
---|
273 | &as_root;
|
---|
274 |
|
---|
275 | <para>
|
---|
276 | First, start a subshell that will exit on error:
|
---|
277 | </para>
|
---|
278 |
|
---|
279 | <screen><userinput>bash -e</userinput></screen>
|
---|
280 |
|
---|
281 | <para>
|
---|
282 | Install all of the packages by running the following
|
---|
283 | commands:
|
---|
284 | </para>
|
---|
285 |
|
---|
286 | <screen><userinput>while read -r line; do
|
---|
287 |
|
---|
288 | # Get the file name, ignoring comments and blank lines
|
---|
289 | if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
|
---|
290 | file=$(echo $line | cut -d" " -f2)
|
---|
291 |
|
---|
292 | pkg=$(echo $file|sed 's|^.*/||') # Remove directory
|
---|
293 | packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
|
---|
294 |
|
---|
295 | tar -xf $file
|
---|
296 | pushd $packagedir
|
---|
297 | <!--
|
---|
298 | # Fix some build issues when generating some configuration files
|
---|
299 | case $name in
|
---|
300 | plasma-workspace)
|
---|
301 | sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
|
---|
302 | ;;
|
---|
303 |
|
---|
304 | khotkeys)
|
---|
305 | sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
|
---|
306 | ;;
|
---|
307 |
|
---|
308 | plasma-desktop)
|
---|
309 | sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
|
---|
310 | ;;
|
---|
311 | esac
|
---|
312 | -->
|
---|
313 | mkdir build
|
---|
314 | cd build
|
---|
315 |
|
---|
316 | cmake -D CMAKE_INSTALL_PREFIX=$KF6_PREFIX \
|
---|
317 | -D CMAKE_INSTALL_LIBEXECDIR=libexec \
|
---|
318 | -D CMAKE_BUILD_TYPE=Release \
|
---|
319 | -D BUILD_QT5=OFF \
|
---|
320 | -D BUILD_TESTING=OFF \
|
---|
321 | -W no-dev .. &&
|
---|
322 |
|
---|
323 | make
|
---|
324 | as_root make install
|
---|
325 | popd
|
---|
326 |
|
---|
327 | <!-- some packages end up with files owned by root in $packagedir,
|
---|
328 | so use as_root for removing -->
|
---|
329 | as_root rm -rf $packagedir
|
---|
330 | as_root /sbin/ldconfig
|
---|
331 |
|
---|
332 | done < plasma-&plasma-version;.md5
|
---|
333 |
|
---|
334 | exit</userinput></screen>
|
---|
335 |
|
---|
336 | <para>
|
---|
337 | If you did not set <envar>$KF6_PREFIX</envar> to
|
---|
338 | <filename>/usr</filename>, create symlinks to allow display managers to
|
---|
339 | find <application>Plasma</application>, and to allow the XDG Desktop
|
---|
340 | Portal to be detected. As the &root; user:
|
---|
341 | </para>
|
---|
342 |
|
---|
343 | <screen><userinput># Setup xsessions (X11 sessions)
|
---|
344 | install -dvm 755 /usr/share/xsessions
|
---|
345 | cd /usr/share/xsessions
|
---|
346 |
|
---|
347 | [ -e plasma.desktop ] ||
|
---|
348 | ln -sfv $KF6_PREFIX/share/xsessions/plasmax11.desktop
|
---|
349 |
|
---|
350 | # Setup wayland-sessions
|
---|
351 | install -dvm 755 /usr/share/wayland-sessions
|
---|
352 | cd /usr/share/wayland-sessions
|
---|
353 |
|
---|
354 | [ -e plasmawayland.desktop ] ||
|
---|
355 | ln -sfv $KF6_PREFIX/share/wayland-sessions/plasma.desktop
|
---|
356 | <!-- work around a bug in xdg-desktop-portal-->
|
---|
357 | # Setup xdg-desktop-portal
|
---|
358 | install -dvm 755 /usr/share/xdg-desktop-portal
|
---|
359 | cd /usr/share/xdg-desktop-portal
|
---|
360 |
|
---|
361 | [ -e kde-portals.conf ] ||
|
---|
362 | ln -sfv $KF6_PREFIX/share/xdg-desktop-portal/kde-portals.conf
|
---|
363 |
|
---|
364 | # Setup kde portal
|
---|
365 | install -dvm 755 /usr/share/xdg-desktop-portal/portals
|
---|
366 | cd /usr/share/xdg-desktop-portal/portals
|
---|
367 |
|
---|
368 | [ -e kde.portal ] ||
|
---|
369 | ln -sfv $KF6_PREFIX/share/xdg-desktop-portal/portals/kde.portal</userinput></screen>
|
---|
370 |
|
---|
371 | <para revision="sysv">
|
---|
372 | Useless systemd units have been installed in
|
---|
373 | <filename class="directory">$KF6_PREFIX/lib</filename>. Remove
|
---|
374 | them now (as <systemitem class="username">root</systemitem>):
|
---|
375 | </para>
|
---|
376 |
|
---|
377 | <screen role="root"
|
---|
378 | revision="sysv"><userinput>rm -rf $KF6_PREFIX/lib/systemd</userinput></screen>
|
---|
379 |
|
---|
380 | </sect2>
|
---|
381 | <!--
|
---|
382 | <sect2 role="commands">
|
---|
383 | <title>Command Explanations</title>
|
---|
384 |
|
---|
385 | <para>
|
---|
386 | <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
|
---|
387 | Create symbolic links so qml files can find needed javascript modules.
|
---|
388 | </para>
|
---|
389 |
|
---|
390 | </sect2>
|
---|
391 | -->
|
---|
392 | <sect2 role="configuration">
|
---|
393 | <title>Configuring Plasma</title>
|
---|
394 |
|
---|
395 | <sect3>
|
---|
396 | <title>Linux PAM Configuration</title>
|
---|
397 |
|
---|
398 | <para>
|
---|
399 | If you built Plasma with the recommended <application>Linux
|
---|
400 | PAM</application> support, create necessary configuration files by
|
---|
401 | running the following commands as the <systemitem
|
---|
402 | class="username">root</systemitem> user:
|
---|
403 | </para>
|
---|
404 |
|
---|
405 | <screen role="root"><userinput>cat > /etc/pam.d/kde << "EOF"
|
---|
406 | <literal># Begin /etc/pam.d/kde
|
---|
407 |
|
---|
408 | auth requisite pam_nologin.so
|
---|
409 | auth required pam_env.so
|
---|
410 |
|
---|
411 | auth required pam_succeed_if.so uid >= 1000 quiet
|
---|
412 | auth include system-auth
|
---|
413 |
|
---|
414 | account include system-account
|
---|
415 | password include system-password
|
---|
416 | session include system-session
|
---|
417 |
|
---|
418 | # End /etc/pam.d/kde</literal>
|
---|
419 | EOF
|
---|
420 |
|
---|
421 | cat > /etc/pam.d/kde-np << "EOF"
|
---|
422 | <literal># Begin /etc/pam.d/kde-np
|
---|
423 |
|
---|
424 | auth requisite pam_nologin.so
|
---|
425 | auth required pam_env.so
|
---|
426 |
|
---|
427 | auth required pam_succeed_if.so uid >= 1000 quiet
|
---|
428 | auth required pam_permit.so
|
---|
429 |
|
---|
430 | account include system-account
|
---|
431 | password include system-password
|
---|
432 | session include system-session
|
---|
433 |
|
---|
434 | # End /etc/pam.d/kde-np</literal>
|
---|
435 | EOF
|
---|
436 |
|
---|
437 | cat > /etc/pam.d/kscreensaver << "EOF"
|
---|
438 | <literal># Begin /etc/pam.d/kscreensaver
|
---|
439 |
|
---|
440 | auth include system-auth
|
---|
441 | account include system-account
|
---|
442 |
|
---|
443 | # End /etc/pam.d/kscreensaver</literal>
|
---|
444 | EOF</userinput></screen>
|
---|
445 | </sect3>
|
---|
446 | </sect2>
|
---|
447 |
|
---|
448 | <sect2 role="starting">
|
---|
449 | <title>Starting Plasma</title>
|
---|
450 |
|
---|
451 | <para revision="sysv">
|
---|
452 | You can start <application>Plasma</application> from runlevel 3, using
|
---|
453 | <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
|
---|
454 | such as <xref linkend="lightdm"/>.
|
---|
455 | </para>
|
---|
456 |
|
---|
457 | <para revision="systemd">
|
---|
458 | You can start <application>Plasma</application> from a TTY, using
|
---|
459 | <xref linkend="xinit"/><!--, or from a graphical display manager, such as
|
---|
460 | <xref linkend="sddm"/>-->.
|
---|
461 | </para>
|
---|
462 |
|
---|
463 | <para>
|
---|
464 | To start <application>Plasma</application> using <xref linkend="xinit"/>,
|
---|
465 | run the following commands:
|
---|
466 | </para>
|
---|
467 |
|
---|
468 | <screen role="nodump"><userinput>cat > ~/.xinitrc << "EOF"
|
---|
469 | <literal>dbus-launch --exit-with-x11 $KF6_PREFIX/bin/startplasma-x11</literal>
|
---|
470 | EOF
|
---|
471 |
|
---|
472 | startx</userinput></screen>
|
---|
473 |
|
---|
474 | <para>
|
---|
475 | The X session starts on the first unused virtual terminal, normally vt7.
|
---|
476 | You can switch to another vt<emphasis>n</emphasis> simultaneously
|
---|
477 | pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
|
---|
478 | (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
|
---|
479 | normally started at vt7, use Ctrl-Alt-F7. The vt where the command
|
---|
480 | <command>startx</command> was executed will display many messages,
|
---|
481 | including X starting messages, applications automatically started with
|
---|
482 | the session, and eventually, some warning and error messages. You may
|
---|
483 | prefer to redirect those messages to a log file, which not only will keep
|
---|
484 | the initial vt uncluttered, but can also be used for debugging purposes. This
|
---|
485 | can be done starting X with:
|
---|
486 | </para>
|
---|
487 |
|
---|
488 | <screen role="nodump"><userinput>startx &> ~/x-session-errors</userinput></screen>
|
---|
489 |
|
---|
490 | <para>
|
---|
491 | When shutting down or rebooting, the shutdown messages appear on the vt
|
---|
492 | where X was running. If you wish to see those messages, simultaneously
|
---|
493 | press keys Alt-F7 (assuming that X was running on vt7).
|
---|
494 | </para>
|
---|
495 | <!-- Start plasma wayland with
|
---|
496 |
|
---|
497 | /opt/kf6/lib/libexec/plasma-dbus-run-session-if-needed /opt/kf6/bin/startplasma-wayland
|
---|
498 |
|
---|
499 | Investigate why it's in /opt/kf6/lib/libexec and not just in /opt/kf6/libexec
|
---|
500 |
|
---|
501 |
|
---|
502 | Now the entry is "plasma (X11)" for Xorg, so I guess this is
|
---|
503 | not needed anymore:
|
---|
504 | <para>
|
---|
505 | If you intend to start <application>Plasma</application> using a
|
---|
506 | display manager such as <xref linkend="lightdm"/>, there will be two entries
|
---|
507 | for <application>Plasma</application>, one for use with
|
---|
508 | <application>Xorg</application>, and another for
|
---|
509 | <application>Wayland</application>. Modify the
|
---|
510 | <application>Xorg</application> entry with the following command, as the
|
---|
511 | <systemitem class="username">root</systemitem> user, so that you can
|
---|
512 | differentiate between the two:</para>
|
---|
513 |
|
---|
514 | <screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
|
---|
515 | -->
|
---|
516 |
|
---|
517 | </sect2>
|
---|
518 |
|
---|
519 | <sect2 role="content">
|
---|
520 | <title>Contents</title>
|
---|
521 |
|
---|
522 | <segmentedlist>
|
---|
523 | <segtitle>Installed Programs</segtitle>
|
---|
524 | <segtitle>Installed Libraries</segtitle>
|
---|
525 | <segtitle>Installed Directories</segtitle>
|
---|
526 |
|
---|
527 | <seglistitem>
|
---|
528 | <seg>
|
---|
529 | There are too many plasma programs (over 50 in /opt/kf6/bin) to list
|
---|
530 | separately here.
|
---|
531 | </seg>
|
---|
532 | <seg>
|
---|
533 | There are too many plasma libraries (over 250 in /opt/kf6/lib) to list
|
---|
534 | separately here.
|
---|
535 | </seg>
|
---|
536 | <seg>
|
---|
537 | There are too many plasma directories (over 2700 in /opt/kf6) to
|
---|
538 | list separately here.
|
---|
539 | </seg>
|
---|
540 | </seglistitem>
|
---|
541 | </segmentedlist>
|
---|
542 |
|
---|
543 | </sect2>
|
---|
544 |
|
---|
545 | </sect1>
|
---|