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 "220 MB">
|
---|
11 | <!ENTITY plasma-buildsize "1.0 GB (444 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 | &lfs122_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="boost"/>,
|
---|
76 | <xref linkend="gtk3"/>,
|
---|
77 | <xref linkend="kf6-frameworks"/>,
|
---|
78 | <xref linkend="kirigami-addons"/>,
|
---|
79 | <xref linkend="libdisplay-info"/>,
|
---|
80 | <xref linkend="libpwquality"/>,
|
---|
81 | <xref linkend="libqalculate"/>,
|
---|
82 | <xref linkend="libnl"/>,
|
---|
83 | <xref linkend="libxcvt"/>,
|
---|
84 | <xref linkend="libxkbcommon"/>,
|
---|
85 | <xref linkend="mesa"/> built with <xref linkend="wayland"/>,
|
---|
86 | <xref linkend="pipewire"/>,
|
---|
87 | <xref linkend="pulseaudio-qt"/>,
|
---|
88 | <xref linkend="qca"/>,
|
---|
89 | <xref linkend="qcoro"/>,
|
---|
90 | <xref linkend="sassc"/>,
|
---|
91 | <xref linkend="taglib"/>,
|
---|
92 | <xref linkend="xdotool"/>, and
|
---|
93 | <xref linkend="xorg-evdev-driver"/>
|
---|
94 | </para>
|
---|
95 |
|
---|
96 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
97 | <para role="recommended">
|
---|
98 | <xref linkend="gsettings-desktop-schemas"/>,
|
---|
99 | <xref linkend="libcanberra"/>,
|
---|
100 | <xref linkend="libinput"/>,
|
---|
101 | <xref linkend="libpcap"/>,
|
---|
102 | <xref linkend="linux-pam"/>,
|
---|
103 | <xref linkend="lm_sensors"/>,
|
---|
104 | <xref linkend="oxygen-icons"/>,
|
---|
105 | <xref linkend="pciutils"/>,
|
---|
106 | <xref linkend="power-profiles-daemon"/>, and
|
---|
107 | the following Python modules:
|
---|
108 | <xref linkend="psutil"/>,
|
---|
109 | <xref linkend="pygdbmi"/>,
|
---|
110 | <xref linkend="sentry-sdk"/>,
|
---|
111 | <xref linkend="urllib3"/> (if they are not installed, they will be
|
---|
112 | downloaded and installed by the drkonqi build procedure)
|
---|
113 | </para>
|
---|
114 |
|
---|
115 | <bridgehead renderas="sect4">Recommended (runtime)</bridgehead>
|
---|
116 | <para role="recommended">
|
---|
117 | <xref role="runtime" linkend="accountsservice"/>,
|
---|
118 | <xref role="runtime" linkend="breeze-icons"/>,
|
---|
119 | <xref role="runtime" linkend="smartmontools"/>,
|
---|
120 | <xref role="runtime" linkend="xdg-desktop-portal"/>, and
|
---|
121 | <xref role="runtime" linkend="xwayland"/>
|
---|
122 | </para>
|
---|
123 |
|
---|
124 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
125 | <para role="optional">
|
---|
126 | <xref linkend="appstream"/> (build with -qt=true),
|
---|
127 | <xref linkend="glu"/>,
|
---|
128 | <xref linkend='ibus'/>,
|
---|
129 | <xref linkend='qtwebengine'/>,
|
---|
130 | <xref linkend="xorg-synaptics-driver"/>,
|
---|
131 | <ulink url="https://www.kdevelop.org/">KDevPlatform</ulink>,
|
---|
132 | <ulink url="https://gpsd.gitlab.io/gpsd/">libgps</ulink>,
|
---|
133 | <ulink url="https://github.com/libhybris/libhybris">libhybris</ulink>,
|
---|
134 | <ulink url="https://www.freedesktop.org/software/PackageKit/releases/">packagekit-qt</ulink>,
|
---|
135 | <ulink url="https://launchpad.net/qapt">Qapt</ulink>,
|
---|
136 | <ulink url="https://github.com/osiam/osiam">SCIM</ulink>, and
|
---|
137 | <ulink url="http://www.dest-unreach.org/socat/">socat</ulink> (for pam_kwallet)
|
---|
138 | </para>
|
---|
139 |
|
---|
140 | <sect2>
|
---|
141 | <title>Downloading KDE Plasma</title>
|
---|
142 |
|
---|
143 | <para>
|
---|
144 | The easiest way to get the KDE Plasma packages is to use a single
|
---|
145 | <command>wget</command> to fetch them all at once:
|
---|
146 | </para>
|
---|
147 |
|
---|
148 | <screen><userinput>url=https://download.kde.org/stable/plasma/&plasma-version;/
|
---|
149 | wget -r -nH -nd -A '*.xz' -np $url</userinput>
|
---|
150 | <literal>
|
---|
151 | The options used here are:
|
---|
152 | -r recurse through child directories
|
---|
153 | -nH disable generation of host-prefixed directories
|
---|
154 | -nd do not create a hierarchy of directories
|
---|
155 | -A '*.xz' just get the *.xz files
|
---|
156 | -np don't get parent directories</literal></screen>
|
---|
157 |
|
---|
158 | </sect2>
|
---|
159 |
|
---|
160 | <sect2>
|
---|
161 | <title>Setting Package Order</title>
|
---|
162 |
|
---|
163 | <para>
|
---|
164 | The order of building files is important due to internal dependencies.
|
---|
165 | Create the list of files in the proper order as follows:
|
---|
166 | </para>
|
---|
167 |
|
---|
168 | <screen><userinput>cat > plasma-&plasma-version;.md5 << "EOF"
|
---|
169 | <literal>be3516c192fcdbed07454de4b379f5db kdecoration-6.1.4.tar.xz
|
---|
170 | dfd2bd982b5ab4daa5a3545e54cf9cb3 libkscreen-6.1.4.tar.xz
|
---|
171 | c05c1623be161c149a61ac3db0ce5382 libksysguard-6.1.4.tar.xz
|
---|
172 | 7035691a6f63b28f389d76002afc3da8 breeze-6.1.4.tar.xz
|
---|
173 | 9d82aff77358f55069020a408987c111 breeze-gtk-6.1.4.tar.xz
|
---|
174 | 2e3a5220acf76e2c0edf9701978e802b layer-shell-qt-6.1.4.tar.xz
|
---|
175 | 250385889199481e81b979bd0dd51669 plasma-activities-6.1.4.tar.xz
|
---|
176 | d6686b711c1e52c0de7c75b66c9dc6e3 libplasma-6.1.4.tar.xz
|
---|
177 | 98101a610670cfae5779bc9940d8561f kscreenlocker-6.1.4.tar.xz
|
---|
178 | ca7bf1418903745c65dcbf7583299ceb kinfocenter-6.1.4.tar.xz
|
---|
179 | 4c4b58890f3bf7bf1b1d99e89f9271a8 kglobalacceld-6.1.4.tar.xz
|
---|
180 | d297f096ac9492262b8274a024618bd3 kwayland-6.1.4.tar.xz
|
---|
181 | 2d4516080f370a6cf40351266277b010 kwin-6.1.4.tar.xz
|
---|
182 | 131d3250d9124c8f21751f5e5255a7d6 plasma5support-6.1.4.tar.xz
|
---|
183 | fc8fe31088cad9f1a904554956df708b plasma-activities-stats-6.1.4.tar.xz
|
---|
184 | 85a3ff80ec16299dc8aa12190ce2bc24 kpipewire-6.1.4.tar.xz
|
---|
185 | 575c902a134bb24214f76c500460df39 plasma-workspace-6.1.4.tar.xz
|
---|
186 | d000e0ee0f0e530c9dc64ab9252bc17a plasma-disks-6.1.4.tar.xz
|
---|
187 | 180136a6b20736c359b999cbd3509afc bluedevil-6.1.4.tar.xz
|
---|
188 | 3f065b337807c2a37d27a90bbcf1d8d1 kde-gtk-config-6.1.4.tar.xz
|
---|
189 | bcfa7f92df7c2f1a6c7718a12f81734c kmenuedit-6.1.4.tar.xz
|
---|
190 | 08590284bc4613804563db94a68c7cd2 kscreen-6.1.4.tar.xz
|
---|
191 | 801318aea037e3d64f0aa7c9ca4fef8b kwallet-pam-6.1.4.tar.xz
|
---|
192 | aa6bc381778b4e10c9798c3abeeb5692 kwrited-6.1.4.tar.xz
|
---|
193 | 9c4f88ca9936252f62705f27687af764 milou-6.1.4.tar.xz
|
---|
194 | cbeb7b6b0094e9ec19af07ea458c8eb3 plasma-nm-6.1.4.tar.xz
|
---|
195 | aa32529c005706d2253333c93faa45de plasma-pa-6.1.4.tar.xz
|
---|
196 | 4c7484c0d5e4352372d32a340656abec plasma-workspace-wallpapers-6.1.4.tar.xz
|
---|
197 | f904e90a9db900551d228f20dac06a45 polkit-kde-agent-1-6.1.4.tar.xz
|
---|
198 | 312fe34839a8d0861cc676766a4317e4 powerdevil-6.1.4.tar.xz
|
---|
199 | adc8dad07c1157e79aed7476025b6925 plasma-desktop-6.1.4.tar.xz
|
---|
200 | cfbc61347436b9ff7ff43b7130d7955a kgamma-6.1.4.tar.xz
|
---|
201 | 41d6254b23061c4b4067b0d2db150cbf ksshaskpass-6.1.4.tar.xz
|
---|
202 | #7bf7fd0d3a4a381148885cd058872212 plasma-sdk-6.1.4.tar.xz
|
---|
203 | ce1bbaf7df576f6ddccd1adda545657a sddm-kcm-6.1.4.tar.xz
|
---|
204 | #5482b86089286d9b0153f09752d57574 discover-6.1.4.tar.xz
|
---|
205 | #d33ef85fb879f3073f1f26f1695e72f3 breeze-grub-6.1.4.tar.xz
|
---|
206 | #42bb6940246062b24ee80ac6e3b40e2d breeze-plymouth-6.1.4.tar.xz
|
---|
207 | e458fddb447b0c76e8e49bb772b423a9 kactivitymanagerd-6.1.4.tar.xz
|
---|
208 | e0b3c21962456a5f9f79a739c477c22c plasma-integration-6.1.4.tar.xz
|
---|
209 | #bebea20d8972e4052690877455aea645 plymouth-kcm-6.1.4.tar.xz
|
---|
210 | 6bf11a27e32cc81e689867ddf59080c6 xdg-desktop-portal-kde-6.1.4.tar.xz
|
---|
211 | 96d1d51407b85d22f01e6438e8e492cb drkonqi-6.1.4.tar.xz
|
---|
212 | 34627cfef9b00bc58bc853790e978dfd plasma-vault-6.1.4.tar.xz
|
---|
213 | #d7984e9a5d3c4ac7a6e36b656cc16f3a plasma-browser-integration-6.1.4.tar.xz
|
---|
214 | 626f7f2e373085f948d0809413b0d49f kde-cli-tools-6.1.4.tar.xz
|
---|
215 | 5ba8376be2db662750ef48f582f22352 systemsettings-6.1.4.tar.xz
|
---|
216 | db8923a9b87e95dd5ec82a20da4ae95b plasma-thunderbolt-6.1.4.tar.xz
|
---|
217 | #0106b72c6a46c966d31b7a4afdb456b3 plasma-mobile-6.1.4.tar.xz
|
---|
218 | #8a7de2aa288ae50190fcd86a7d72cbcb plasma-nano-6.1.4.tar.xz
|
---|
219 | 3bc5c58b1d06e4f4f1667799219ae887 plasma-firewall-6.1.4.tar.xz
|
---|
220 | bf76a58afb8def0a0d07ea65429154fc plasma-systemmonitor-6.1.4.tar.xz
|
---|
221 | e6e3a3bc681b7044b5219ed6417f0310 qqc2-breeze-style-6.1.4.tar.xz
|
---|
222 | d3096345a478a821fa16620dadf95fb4 ksystemstats-6.1.4.tar.xz
|
---|
223 | 03a717ac104f6f44ab9dffafdc37710b oxygen-sounds-6.1.4.tar.xz
|
---|
224 | a2f8684825ee231fefad28589f321ce7 kdeplasma-addons-6.1.4.tar.xz
|
---|
225 | #4691fcec4a83314e82c8d1b64bf23c8e flatpak-kcm-6.1.4.tar.xz
|
---|
226 | 8175024493047e4e98cd12f4d52bc24b plasma-welcome-6.1.4.tar.xz
|
---|
227 | 8431d1bf294e2ba3cacd9c455678d118 ocean-sound-theme-6.1.4.tar.xz
|
---|
228 | ed8102ad60b2c8ae9ce12dcaf1ff3cd5 print-manager-6.1.4.tar.xz
|
---|
229 | #523c82bcf113168b2113612d7b20e544 wacomtablet-6.1.4.tar.xz
|
---|
230 | #ebb06249b835ea73743c9cf6e91df4df kwayland-integration-6.1.4.tar.xz
|
---|
231 | #87332ae4b1c87a6921651ae9211a7e86 krdp-6.1.4.tar.xz
|
---|
232 | 7ca2419cbdb9e4e9b2822b930ac5ec18 oxygen-6.1.4.tar.xz</literal>
|
---|
233 | EOF</userinput></screen>
|
---|
234 |
|
---|
235 | <note>
|
---|
236 | <title>About Commented Out Packages</title>
|
---|
237 | <para>
|
---|
238 | In the above list, several files are commented out with a hash (#) character.
|
---|
239 |
|
---|
240 | <itemizedlist spacing="compact">
|
---|
241 | <listitem>
|
---|
242 | <para>
|
---|
243 | The plasma-sdk package is optional and used for software development.
|
---|
244 | </para>
|
---|
245 | </listitem>
|
---|
246 | <listitem>
|
---|
247 | <para>
|
---|
248 | The discover package requires <xref linkend="appstream"/> to be built
|
---|
249 | with the -D qt=true switch.
|
---|
250 | </para>
|
---|
251 | </listitem>
|
---|
252 | <listitem>
|
---|
253 | <para>
|
---|
254 | The breeze-grub, breeze-plymouth, and plymouth-kcm packages above
|
---|
255 | are all for customized support of
|
---|
256 | <ulink url="https://www.freedesktop.org/wiki/Software/Plymouth/">
|
---|
257 | Plymouth</ulink> which is designed to be run within an initial
|
---|
258 | ram disk during boot (see <xref linkend="initramfs"/>).
|
---|
259 | </para>
|
---|
260 | </listitem>
|
---|
261 | <listitem>
|
---|
262 | <para>
|
---|
263 | The plasma-browser-integration package is designed to implement
|
---|
264 | browser integration for Plasma into Mozilla Firefox and Google
|
---|
265 | Chrome. The package does build, but is only useful if you want
|
---|
266 | these browsers to be integrated into the shell in a way that lets
|
---|
267 | you see (and control) downloads from Plasma's notifications area,
|
---|
268 | as well as allowing you to search browser history in the KDE
|
---|
269 | Runner. Note that you must also install a browser extension for
|
---|
270 | this to work. For more details, see
|
---|
271 | <ulink url="https://community.kde.org/Plasma/Browser_Integration">
|
---|
272 | the KDE Plasma wiki page about browser integration.</ulink>
|
---|
273 | </para>
|
---|
274 | </listitem>
|
---|
275 | <listitem>
|
---|
276 | <para>
|
---|
277 | The krdp package is used to allow an RDP server to be run while
|
---|
278 | using Plasma. This feature requires the 2.x version of FreeRDP,
|
---|
279 | which is not in BLFS.
|
---|
280 | </para>
|
---|
281 | </listitem>
|
---|
282 | <listitem>
|
---|
283 | <para>
|
---|
284 | The plasma-nano package is used for embedded systems.
|
---|
285 | </para>
|
---|
286 | </listitem>
|
---|
287 | <listitem>
|
---|
288 | <para>
|
---|
289 | The plasma-mobile package provides phone functionality for Plasma.
|
---|
290 | </para>
|
---|
291 | </listitem>
|
---|
292 | <listitem>
|
---|
293 | <para>
|
---|
294 | The flatpak-kcm package is for managing support of flatpak applications.
|
---|
295 | </para>
|
---|
296 | </listitem>
|
---|
297 | <listitem>
|
---|
298 | <para>
|
---|
299 | The wacomtablet and kwayland-integration applications require
|
---|
300 | plasma5 support.
|
---|
301 | </para>
|
---|
302 | </listitem>
|
---|
303 | </itemizedlist>
|
---|
304 | </para>
|
---|
305 | </note>
|
---|
306 |
|
---|
307 | </sect2>
|
---|
308 |
|
---|
309 | <sect2 role="installation">
|
---|
310 | <title>Installation of Plasma</title>
|
---|
311 |
|
---|
312 | &as_root;
|
---|
313 |
|
---|
314 | <para>
|
---|
315 | First, start a subshell that will exit on error:
|
---|
316 | </para>
|
---|
317 |
|
---|
318 | <screen><userinput>bash -e</userinput></screen>
|
---|
319 |
|
---|
320 | <para>
|
---|
321 | Install all of the packages by running the following
|
---|
322 | commands:
|
---|
323 | </para>
|
---|
324 |
|
---|
325 | <screen><userinput>while read -r line; do
|
---|
326 |
|
---|
327 | # Get the file name, ignoring comments and blank lines
|
---|
328 | if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
|
---|
329 | file=$(echo $line | cut -d" " -f2)
|
---|
330 |
|
---|
331 | pkg=$(echo $file|sed 's|^.*/||') # Remove directory
|
---|
332 |
|
---|
333 | tar -xf $file
|
---|
334 | pushd $packagedir
|
---|
335 | <!--
|
---|
336 | # Fix some build issues when generating some configuration files
|
---|
337 | case $name in
|
---|
338 | plasma-workspace)
|
---|
339 | sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
|
---|
340 | ;;
|
---|
341 |
|
---|
342 | khotkeys)
|
---|
343 | sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
|
---|
344 | ;;
|
---|
345 |
|
---|
346 | plasma-desktop)
|
---|
347 | sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
|
---|
348 | ;;
|
---|
349 | esac
|
---|
350 | -->
|
---|
351 | mkdir build
|
---|
352 | cd build
|
---|
353 |
|
---|
354 | cmake -D CMAKE_INSTALL_PREFIX=$KF6_PREFIX \
|
---|
355 | -D CMAKE_INSTALL_LIBEXECDIR=libexec \
|
---|
356 | -D CMAKE_BUILD_TYPE=Release \
|
---|
357 | -D BUILD_QT5=OFF \
|
---|
358 | -D BUILD_TESTING=OFF \
|
---|
359 | -W no-dev .. &&
|
---|
360 |
|
---|
361 | make
|
---|
362 | as_root make install
|
---|
363 | popd
|
---|
364 |
|
---|
365 | <!-- some packages end up with files owned by root in $packagedir,
|
---|
366 | so use as_root for removing -->
|
---|
367 | as_root rm -rf $packagedir
|
---|
368 | as_root /sbin/ldconfig
|
---|
369 |
|
---|
370 | done < plasma-&plasma-version;.md5
|
---|
371 |
|
---|
372 | exit</userinput></screen>
|
---|
373 |
|
---|
374 | <para>
|
---|
375 | If you did not set <envar>$KF6_PREFIX</envar> to
|
---|
376 | <filename>/usr</filename>, create symlinks to allow display managers to
|
---|
377 | find <application>Plasma</application>, and to allow the XDG Desktop
|
---|
378 | Portal to be detected. As the &root; user:
|
---|
379 | </para>
|
---|
380 |
|
---|
381 | <screen><userinput># Setup xsessions (X11 sessions)
|
---|
382 | install -dvm 755 /usr/share/xsessions
|
---|
383 | cd /usr/share/xsessions
|
---|
384 |
|
---|
385 | [ -e plasma.desktop ] ||
|
---|
386 | ln -sfv $KF6_PREFIX/share/xsessions/plasmax11.desktop
|
---|
387 |
|
---|
388 | # Setup wayland-sessions
|
---|
389 | install -dvm 755 /usr/share/wayland-sessions
|
---|
390 | cd /usr/share/wayland-sessions
|
---|
391 |
|
---|
392 | [ -e plasmawayland.desktop ] ||
|
---|
393 | ln -sfv $KF6_PREFIX/share/wayland-sessions/plasma.desktop
|
---|
394 | <!-- work around a bug in xdg-desktop-portal-->
|
---|
395 | # Setup xdg-desktop-portal
|
---|
396 | install -dvm 755 /usr/share/xdg-desktop-portal
|
---|
397 | cd /usr/share/xdg-desktop-portal
|
---|
398 |
|
---|
399 | [ -e kde-portals.conf ] ||
|
---|
400 | ln -sfv $KF6_PREFIX/share/xdg-desktop-portal/kde-portals.conf
|
---|
401 |
|
---|
402 | # Setup kde portal
|
---|
403 | install -dvm 755 /usr/share/xdg-desktop-portal/portals
|
---|
404 | cd /usr/share/xdg-desktop-portal/portals
|
---|
405 |
|
---|
406 | [ -e kde.portal ] ||
|
---|
407 | ln -sfv $KF6_PREFIX/share/xdg-desktop-portal/portals/kde.portal</userinput></screen>
|
---|
408 |
|
---|
409 | <para revision="sysv">
|
---|
410 | Useless systemd units have been installed in
|
---|
411 | <filename class="directory">$KF6_PREFIX/lib</filename>. Remove
|
---|
412 | them now (as <systemitem class="username">root</systemitem>):
|
---|
413 | </para>
|
---|
414 |
|
---|
415 | <screen role="root"
|
---|
416 | revision="sysv"><userinput>rm -rf $KF6_PREFIX/lib/systemd</userinput></screen>
|
---|
417 |
|
---|
418 | </sect2>
|
---|
419 | <!--
|
---|
420 | <sect2 role="commands">
|
---|
421 | <title>Command Explanations</title>
|
---|
422 |
|
---|
423 | <para>
|
---|
424 | <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
|
---|
425 | Create symbolic links so qml files can find needed javascript modules.
|
---|
426 | </para>
|
---|
427 |
|
---|
428 | </sect2>
|
---|
429 | -->
|
---|
430 | <sect2 role="configuration">
|
---|
431 | <title>Configuring Plasma</title>
|
---|
432 |
|
---|
433 | <sect3>
|
---|
434 | <title>Linux PAM Configuration</title>
|
---|
435 |
|
---|
436 | <para>
|
---|
437 | If you built Plasma with the recommended <application>Linux
|
---|
438 | PAM</application> support, create necessary configuration files by
|
---|
439 | running the following commands as the <systemitem
|
---|
440 | class="username">root</systemitem> user:
|
---|
441 | </para>
|
---|
442 |
|
---|
443 | <screen role="root"><userinput>cat > /etc/pam.d/kde << "EOF"
|
---|
444 | <literal># Begin /etc/pam.d/kde
|
---|
445 |
|
---|
446 | auth requisite pam_nologin.so
|
---|
447 | auth required pam_env.so
|
---|
448 |
|
---|
449 | auth required pam_succeed_if.so uid >= 1000 quiet
|
---|
450 | auth include system-auth
|
---|
451 |
|
---|
452 | account include system-account
|
---|
453 | password include system-password
|
---|
454 | session include system-session
|
---|
455 |
|
---|
456 | # End /etc/pam.d/kde</literal>
|
---|
457 | EOF
|
---|
458 |
|
---|
459 | cat > /etc/pam.d/kde-np << "EOF"
|
---|
460 | <literal># Begin /etc/pam.d/kde-np
|
---|
461 |
|
---|
462 | auth requisite pam_nologin.so
|
---|
463 | auth required pam_env.so
|
---|
464 |
|
---|
465 | auth required pam_succeed_if.so uid >= 1000 quiet
|
---|
466 | auth required pam_permit.so
|
---|
467 |
|
---|
468 | account include system-account
|
---|
469 | password include system-password
|
---|
470 | session include system-session
|
---|
471 |
|
---|
472 | # End /etc/pam.d/kde-np</literal>
|
---|
473 | EOF
|
---|
474 |
|
---|
475 | cat > /etc/pam.d/kscreensaver << "EOF"
|
---|
476 | <literal># Begin /etc/pam.d/kscreensaver
|
---|
477 |
|
---|
478 | auth include system-auth
|
---|
479 | account include system-account
|
---|
480 |
|
---|
481 | # End /etc/pam.d/kscreensaver</literal>
|
---|
482 | EOF</userinput></screen>
|
---|
483 | </sect3>
|
---|
484 | </sect2>
|
---|
485 |
|
---|
486 | <sect2 role="starting">
|
---|
487 | <title>Starting Plasma</title>
|
---|
488 |
|
---|
489 | <para revision="sysv">
|
---|
490 | You can start <application>Plasma</application> from runlevel 3, using
|
---|
491 | <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
|
---|
492 | such as <xref linkend="lightdm"/>.
|
---|
493 | </para>
|
---|
494 |
|
---|
495 | <para revision="systemd">
|
---|
496 | You can start <application>Plasma</application> from a TTY, using
|
---|
497 | <xref linkend="xinit"/><!--, or from a graphical display manager, such as
|
---|
498 | <xref linkend="sddm"/>-->.
|
---|
499 | </para>
|
---|
500 |
|
---|
501 | <para>
|
---|
502 | To start <application>Plasma</application> using <xref linkend="xinit"/>,
|
---|
503 | run the following commands:
|
---|
504 | </para>
|
---|
505 |
|
---|
506 | <screen role="nodump"><userinput>cat > ~/.xinitrc << "EOF"
|
---|
507 | <literal>dbus-launch --exit-with-x11 $KF6_PREFIX/bin/startplasma-x11</literal>
|
---|
508 | EOF
|
---|
509 |
|
---|
510 | startx</userinput></screen>
|
---|
511 |
|
---|
512 | <para>
|
---|
513 | The X session starts on the first unused virtual terminal, normally vt7.
|
---|
514 | You can switch to another vt<emphasis>n</emphasis> simultaneously
|
---|
515 | pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
|
---|
516 | (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
|
---|
517 | normally started at vt7, use Ctrl-Alt-F7. The vt where the command
|
---|
518 | <command>startx</command> was executed will display many messages,
|
---|
519 | including X starting messages, applications automatically started with
|
---|
520 | the session, and eventually, some warning and error messages. You may
|
---|
521 | prefer to redirect those messages to a log file, which not only will keep
|
---|
522 | the initial vt uncluttered, but can also be used for debugging purposes. This
|
---|
523 | can be done starting X with:
|
---|
524 | </para>
|
---|
525 |
|
---|
526 | <screen role="nodump"><userinput>startx &> ~/x-session-errors</userinput></screen>
|
---|
527 |
|
---|
528 | <para>
|
---|
529 | When shutting down or rebooting, the shutdown messages appear on the vt
|
---|
530 | where X was running. If you wish to see those messages, simultaneously
|
---|
531 | press keys Alt-F7 (assuming that X was running on vt7).
|
---|
532 | </para>
|
---|
533 | <!-- Start plasma wayland with
|
---|
534 |
|
---|
535 | /opt/kf6/lib/libexec/plasma-dbus-run-session-if-needed /opt/kf6/bin/startplasma-wayland
|
---|
536 |
|
---|
537 | Investigate why it's in /opt/kf6/lib/libexec and not just in /opt/kf6/libexec
|
---|
538 |
|
---|
539 |
|
---|
540 | Now the entry is "plasma (X11)" for Xorg, so I guess this is
|
---|
541 | not needed anymore:
|
---|
542 | <para>
|
---|
543 | If you intend to start <application>Plasma</application> using a
|
---|
544 | display manager such as <xref linkend="lightdm"/>, there will be two entries
|
---|
545 | for <application>Plasma</application>, one for use with
|
---|
546 | <application>Xorg</application>, and another for
|
---|
547 | <application>Wayland</application>. Modify the
|
---|
548 | <application>Xorg</application> entry with the following command, as the
|
---|
549 | <systemitem class="username">root</systemitem> user, so that you can
|
---|
550 | differentiate between the two:</para>
|
---|
551 |
|
---|
552 | <screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
|
---|
553 | -->
|
---|
554 |
|
---|
555 | </sect2>
|
---|
556 |
|
---|
557 | <sect2 role="content">
|
---|
558 | <title>Contents</title>
|
---|
559 |
|
---|
560 | <segmentedlist>
|
---|
561 | <segtitle>Installed Programs</segtitle>
|
---|
562 | <segtitle>Installed Libraries</segtitle>
|
---|
563 | <segtitle>Installed Directories</segtitle>
|
---|
564 |
|
---|
565 | <seglistitem>
|
---|
566 | <seg>
|
---|
567 | There are too many plasma programs (over 50 in /opt/kf6/bin) to list
|
---|
568 | separately here.
|
---|
569 | </seg>
|
---|
570 | <seg>
|
---|
571 | There are too many plasma libraries (over 250 in /opt/kf6/lib) to list
|
---|
572 | separately here.
|
---|
573 | </seg>
|
---|
574 | <seg>
|
---|
575 | There are too many plasma directories (over 2700 in /opt/kf6) to
|
---|
576 | list separately here.
|
---|
577 | </seg>
|
---|
578 | </seglistitem>
|
---|
579 | </segmentedlist>
|
---|
580 |
|
---|
581 | </sect2>
|
---|
582 |
|
---|
583 | </sect1>
|
---|