[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[153a5795] | 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 |
|
---|
[6d8eeb9] | 7 | <!ENTITY plasma-download-http "https://download.kde.org/stable/plasma/&plasma-version;">
|
---|
| 8 | <!ENTITY plasma-download-ftp " ">
|
---|
| 9 | <!ENTITY plasma-md5sum "See Below">
|
---|
[2d3951f] | 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)">
|
---|
[153a5795] | 13 | ]>
|
---|
| 14 |
|
---|
[6d8eeb9] | 15 | <sect1 id="plasma-build" xreflabel="Plasma-&plasma-version;">
|
---|
[153a5795] | 16 | <?dbhtml filename="plasma-all.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
[6d8eeb9] | 19 | <title>Building Plasma</title>
|
---|
[153a5795] | 20 |
|
---|
[6d8eeb9] | 21 | <indexterm zone="plasma-build">
|
---|
| 22 | <primary sortas="a-kde-plasma">KDE Plasma</primary>
|
---|
[153a5795] | 23 | </indexterm>
|
---|
| 24 |
|
---|
[1c8c15c] | 25 | <para>
|
---|
[6d8eeb9] | 26 | KDE Plasma is a collection of packages based on top of KDE Frameworks
|
---|
| 27 | and QML. They implement the KDE Display Environment (Plasma).
|
---|
[1c8c15c] | 28 | </para>
|
---|
[366fbbb8] | 29 |
|
---|
[d0b42e9] | 30 | &lfs121_checked;
|
---|
[153a5795] | 31 |
|
---|
[1c8c15c] | 32 | <para>
|
---|
[6d8eeb9] | 33 | The instructions below build all of the Plasma packages in one
|
---|
[1c8c15c] | 34 | step by using a bash script.
|
---|
| 35 | </para>
|
---|
[153a5795] | 36 |
|
---|
| 37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 38 | <itemizedlist spacing="compact">
|
---|
| 39 | <listitem>
|
---|
[1c8c15c] | 40 | <para>
|
---|
[6d8eeb9] | 41 | Download (HTTP): <ulink url="&plasma-download-http;"/>
|
---|
[1c8c15c] | 42 | </para>
|
---|
[153a5795] | 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
[1c8c15c] | 45 | <para>
|
---|
[6d8eeb9] | 46 | Download (FTP): <ulink url="&plasma-download-ftp;"/>
|
---|
[1c8c15c] | 47 | </para>
|
---|
[153a5795] | 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
[1c8c15c] | 50 | <para>
|
---|
[6d8eeb9] | 51 | Download MD5 sum: &plasma-md5sum;
|
---|
[1c8c15c] | 52 | </para>
|
---|
[153a5795] | 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
[1c8c15c] | 55 | <para>
|
---|
[6d8eeb9] | 56 | Download size: &plasma-size;
|
---|
[1c8c15c] | 57 | </para>
|
---|
[153a5795] | 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
[1c8c15c] | 60 | <para>
|
---|
[6d8eeb9] | 61 | Estimated disk space required: &plasma-buildsize;
|
---|
[1c8c15c] | 62 | </para>
|
---|
[153a5795] | 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
[1c8c15c] | 65 | <para>
|
---|
[6d8eeb9] | 66 | Estimated build time: &plasma-time;
|
---|
[1c8c15c] | 67 | </para>
|
---|
[153a5795] | 68 | </listitem>
|
---|
| 69 | </itemizedlist>
|
---|
| 70 |
|
---|
[6d8eeb9] | 71 | <bridgehead renderas="sect3">Plasma Dependencies</bridgehead>
|
---|
[153a5795] | 72 |
|
---|
| 73 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 74 | <para role="required">
|
---|
[14e7e0b] | 75 | <!--<xref linkend="gtk2"/>, Does not seem to be needed any more -->
|
---|
[1ba03603] | 76 | <xref linkend="boost"/>,
|
---|
[f3429309] | 77 | <xref linkend="gtk3"/>,
|
---|
[5bfcd23e] | 78 | <xref linkend="kf6-frameworks"/>,
|
---|
[1ba03603] | 79 | <xref linkend="kirigami-addons"/>,
|
---|
| 80 | <xref linkend="libdisplay-info"/>,
|
---|
[366fbbb8] | 81 | <xref linkend="libpwquality"/>,
|
---|
[f36ab176] | 82 | <xref linkend="libqalculate"/>,
|
---|
[2d3951f] | 83 | <xref linkend="libnl"/>,
|
---|
[b785dce2] | 84 | <xref linkend="libxcvt"/>,
|
---|
[1c8d0ff] | 85 | <xref linkend="libxkbcommon"/>,
|
---|
[366fbbb8] | 86 | <xref linkend="mesa"/> built with <xref linkend="wayland"/>,
|
---|
[1f21b9c] | 87 | <xref linkend="pipewire"/>,
|
---|
[f3429309] | 88 | <xref linkend="pulseaudio"/>,
|
---|
[b7a66395] | 89 | <xref linkend="qca"/>,
|
---|
[1ba03603] | 90 | <xref linkend="qcoro"/>,
|
---|
[95965b6] | 91 | <xref linkend="sassc"/>,
|
---|
[2c54252b] | 92 | <xref linkend="taglib"/>,
|
---|
| 93 | <xref linkend="xdotool"/>, and
|
---|
| 94 | <xref linkend="xorg-evdev-driver"/>
|
---|
[153a5795] | 95 | </para>
|
---|
| 96 |
|
---|
| 97 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 98 | <para role="recommended">
|
---|
[72b8751] | 99 | <xref linkend="gsettings-desktop-schemas"/>,
|
---|
[f3429309] | 100 | <xref linkend="libcanberra"/>,
|
---|
| 101 | <xref linkend="libinput"/>,
|
---|
[64ae3fb] | 102 | <xref linkend="libpcap"/>,
|
---|
[0779b94] | 103 | <xref linkend="linux-pam"/>,
|
---|
[f3429309] | 104 | <xref linkend="lm_sensors"/>,
|
---|
[0ba3295] | 105 | <xref linkend="oxygen-icons"/>,
|
---|
[2563594f] | 106 | <xref linkend="pciutils"/>,
|
---|
[21a65a3] | 107 | <xref linkend="power-profiles-daemon"/>, and
|
---|
[2563594f] | 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)
|
---|
[153a5795] | 114 | </para>
|
---|
| 115 |
|
---|
[b359b3e0] | 116 | <bridgehead renderas="sect4">Recommended (runtime)</bridgehead>
|
---|
| 117 | <para role="recommended">
|
---|
[f3a27771] | 118 | <xref role="runtime" linkend="accountsservice"/>,
|
---|
[2c54252b] | 119 | <xref role="runtime" linkend="breeze-icons"/>,
|
---|
[d93c6b0] | 120 | <xref role="runtime" linkend="smartmontools"/>,
|
---|
| 121 | <xref role="runtime" linkend="xdg-desktop-portal"/>, and
|
---|
[f3a27771] | 122 | <xref role="runtime" linkend="xwayland"/>
|
---|
[b359b3e0] | 123 | </para>
|
---|
| 124 |
|
---|
[0779b94] | 125 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[153a5795] | 126 | <para role="optional">
|
---|
[fa559f1] | 127 | <xref linkend="appstream"/> (build with -qt=true),
|
---|
[0779b94] | 128 | <xref linkend="glu"/>,
|
---|
[7b1bc743] | 129 | <xref linkend='ibus'/>,
|
---|
[64ae3fb] | 130 | <xref linkend='qtwebengine'/>,
|
---|
[0779b94] | 131 | <xref linkend="xorg-synaptics-driver"/>,
|
---|
[ce228c2] | 132 | <ulink url="https://www.kdevelop.org/">KDevPlatform</ulink>,
|
---|
[3d9b01d] | 133 | <ulink url="https://gpsd.gitlab.io/gpsd/">libgps</ulink>,
|
---|
[0779b94] | 134 | <ulink url="https://github.com/libhybris/libhybris">libhybris</ulink>,
|
---|
[ce228c2] | 135 | <ulink url="https://www.freedesktop.org/software/PackageKit/releases/">packagekit-qt</ulink>,
|
---|
[8558044] | 136 | <ulink url="https://launchpad.net/qapt">Qapt</ulink>,
|
---|
[ce228c2] | 137 | <ulink url="https://github.com/osiam/osiam">SCIM</ulink>, and
|
---|
[4c3c7f43] | 138 | <ulink url="http://www.dest-unreach.org/socat/">socat</ulink> (for pam_kwallet)
|
---|
[153a5795] | 139 | </para>
|
---|
| 140 |
|
---|
| 141 | <sect2>
|
---|
[1ba03603] | 142 | <title>Downloading KDE Plasma</title>
|
---|
[153a5795] | 143 |
|
---|
| 144 | <para>
|
---|
[1ba03603] | 145 | The easiest way to get the KDE Plasma packages is to use a single
|
---|
[153a5795] | 146 | <command>wget</command> to fetch them all at once:
|
---|
| 147 | </para>
|
---|
[f3429309] | 148 |
|
---|
[6d8eeb9] | 149 | <screen><userinput>url=https://download.kde.org/stable/plasma/&plasma-version;/
|
---|
[a01d308] | 150 | wget -r -nH -nd -A '*.xz' -np $url</userinput>
|
---|
[153a5795] | 151 | <literal>
|
---|
[f3429309] | 152 | The options used here are:
|
---|
[153a5795] | 153 | -r recurse through child directories
|
---|
| 154 | -nH disable generation of host-prefixed directories
|
---|
[a01d308] | 155 | -nd do not create a hierarchy of directories
|
---|
[153a5795] | 156 | -A '*.xz' just get the *.xz files
|
---|
[10a9447] | 157 | -np don't get parent directories</literal></screen>
|
---|
[153a5795] | 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 |
|
---|
[6d8eeb9] | 169 | <screen><userinput>cat > plasma-&plasma-version;.md5 << "EOF"
|
---|
[2d3951f] | 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>
|
---|
[153a5795] | 235 | EOF</userinput></screen>
|
---|
| 236 |
|
---|
[1c8c15c] | 237 | <note>
|
---|
[1ba03603] | 238 | <title>About Commented Out Packages</title>
|
---|
[1c8c15c] | 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
|
---|
[e440af5] | 245 | <xref linkend="initramfs"/>).
|
---|
[d0b42e9] | 246 |
|
---|
[e440af5] | 247 | The plasma-sdk package is optional and used for software development.
|
---|
[d0b42e9] | 248 |
|
---|
| 249 | The plasma-nano package is used for embedded systems.
|
---|
| 250 |
|
---|
| 251 | The plasma-mobile package provides phone functionality for Plasma.
|
---|
| 252 |
|
---|
[fa559f1] | 253 | The discover package requires <xref linkend="appstream"/> to be built
|
---|
[1ba03603] | 254 | with the -Dqt=true switch.
|
---|
[2d3951f] | 255 |
|
---|
[7253d73f] | 256 | The flatpack-kcm package is for managing support of flatpack applications.
|
---|
[1ba03603] | 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.
|
---|
[2d3951f] | 262 |
|
---|
| 263 | Two packages, kwayland-integration-6.0.3 and kwin-6.0.3. have been
|
---|
| 264 | replaces by 6.0.3.1 versions.
|
---|
[1c8c15c] | 265 | </para>
|
---|
| 266 | </note>
|
---|
[ce228c2] | 267 |
|
---|
[153a5795] | 268 | </sect2>
|
---|
| 269 |
|
---|
| 270 | <sect2 role="installation">
|
---|
[6d8eeb9] | 271 | <title>Installation of Plasma</title>
|
---|
[153a5795] | 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)
|
---|
[f3429309] | 291 |
|
---|
[153a5795] | 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
|
---|
[b359b3e0] | 297 | <!--
|
---|
[4e0a40f] | 298 | # Fix some build issues when generating some configuration files
|
---|
[cfd5cb3] | 299 | case $name in
|
---|
| 300 | plasma-workspace)
|
---|
| 301 | sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 302 | ;;
|
---|
[8558044] | 303 |
|
---|
[cfd5cb3] | 304 | khotkeys)
|
---|
| 305 | sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 306 | ;;
|
---|
[8558044] | 307 |
|
---|
[cfd5cb3] | 308 | plasma-desktop)
|
---|
| 309 | sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 310 | ;;
|
---|
| 311 | esac
|
---|
[b359b3e0] | 312 | -->
|
---|
[69a9de5] | 313 | mkdir build
|
---|
| 314 | cd build
|
---|
[153a5795] | 315 |
|
---|
[b6f92d4] | 316 | cmake -D CMAKE_INSTALL_PREFIX=$KF6_PREFIX \
|
---|
[8c6c405d] | 317 | -D CMAKE_INSTALL_LIBEXECDIR=libexec \
|
---|
[b6f92d4] | 318 | -D CMAKE_BUILD_TYPE=Release \
|
---|
[792dbe76] | 319 | -D BUILD_QT5=OFF \
|
---|
[b6f92d4] | 320 | -D BUILD_TESTING=OFF \
|
---|
| 321 | -W no-dev .. &&
|
---|
[153a5795] | 322 |
|
---|
[69a9de5] | 323 | make
|
---|
| 324 | as_root make install
|
---|
| 325 | popd
|
---|
[153a5795] | 326 |
|
---|
[b44e7de2] | 327 | <!-- some packages end up with files owned by root in $packagedir,
|
---|
[8f445fdc] | 328 | so use as_root for removing -->
|
---|
| 329 | as_root rm -rf $packagedir
|
---|
[69a9de5] | 330 | as_root /sbin/ldconfig
|
---|
| 331 |
|
---|
[6d8eeb9] | 332 | done < plasma-&plasma-version;.md5
|
---|
[153a5795] | 333 |
|
---|
[527f3db] | 334 | exit</userinput></screen>
|
---|
[1c8d0ff] | 335 |
|
---|
[527f3db] | 336 | <para>
|
---|
[6d8eeb9] | 337 | If you did not set <envar>$KF6_PREFIX</envar> to
|
---|
[527f3db] | 338 | <filename>/usr</filename>, create symlinks to allow display managers to
|
---|
[27bda4fc] | 339 | find <application>Plasma</application>, and to allow the XDG Desktop
|
---|
[6d8eeb9] | 340 | Portal to be detected. As the &root; user:
|
---|
[527f3db] | 341 | </para>
|
---|
| 342 |
|
---|
[6d8eeb9] | 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 |
|
---|
[1e4c908f] | 364 | # Setup kde portal
|
---|
[6d8eeb9] | 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>
|
---|
[153a5795] | 370 |
|
---|
[2e29bba] | 371 | <para revision="sysv">
|
---|
| 372 | Useless systemd units have been installed in
|
---|
[6d8eeb9] | 373 | <filename class="directory">$KF6_PREFIX/lib</filename>. Remove
|
---|
[2e29bba] | 374 | them now (as <systemitem class="username">root</systemitem>):
|
---|
| 375 | </para>
|
---|
| 376 |
|
---|
| 377 | <screen role="root"
|
---|
[6d8eeb9] | 378 | revision="sysv"><userinput>rm -rf $KF6_PREFIX/lib/systemd</userinput></screen>
|
---|
[2e29bba] | 379 |
|
---|
[153a5795] | 380 | </sect2>
|
---|
[5ac58b54] | 381 | <!--
|
---|
[153a5795] | 382 | <sect2 role="commands">
|
---|
| 383 | <title>Command Explanations</title>
|
---|
| 384 |
|
---|
| 385 | <para>
|
---|
[1c8d0ff] | 386 | <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
|
---|
| 387 | Create symbolic links so qml files can find needed javascript modules.
|
---|
[153a5795] | 388 | </para>
|
---|
| 389 |
|
---|
| 390 | </sect2>
|
---|
[5ac58b54] | 391 | -->
|
---|
[3b0f105] | 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 |
|
---|
[8558044] | 405 | <screen role="root"><userinput>cat > /etc/pam.d/kde << "EOF"
|
---|
[51dfb3e] | 406 | <literal># Begin /etc/pam.d/kde
|
---|
[3b0f105] | 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 |
|
---|
[51dfb3e] | 418 | # End /etc/pam.d/kde</literal>
|
---|
[3b0f105] | 419 | EOF
|
---|
| 420 |
|
---|
[8558044] | 421 | cat > /etc/pam.d/kde-np << "EOF"
|
---|
[51dfb3e] | 422 | <literal># Begin /etc/pam.d/kde-np
|
---|
[3b0f105] | 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 |
|
---|
[51dfb3e] | 434 | # End /etc/pam.d/kde-np</literal>
|
---|
[3b0f105] | 435 | EOF
|
---|
| 436 |
|
---|
| 437 | cat > /etc/pam.d/kscreensaver << "EOF"
|
---|
[51dfb3e] | 438 | <literal># Begin /etc/pam.d/kscreensaver
|
---|
[3b0f105] | 439 |
|
---|
| 440 | auth include system-auth
|
---|
| 441 | account include system-account
|
---|
| 442 |
|
---|
[51dfb3e] | 443 | # End /etc/pam.d/kscreensaver</literal>
|
---|
[3b0f105] | 444 | EOF</userinput></screen>
|
---|
| 445 | </sect3>
|
---|
| 446 | </sect2>
|
---|
| 447 |
|
---|
[1c8d0ff] | 448 | <sect2 role="starting">
|
---|
[6d8eeb9] | 449 | <title>Starting Plasma</title>
|
---|
[1c8d0ff] | 450 |
|
---|
[3f460da0] | 451 | <para revision="sysv">
|
---|
[6d8eeb9] | 452 | You can start <application>Plasma</application> from runlevel 3, using
|
---|
[1c8d0ff] | 453 | <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
|
---|
[c225bfa] | 454 | such as <xref linkend="lightdm"/>.
|
---|
[1c8d0ff] | 455 | </para>
|
---|
| 456 |
|
---|
[3f460da0] | 457 | <para revision="systemd">
|
---|
[6d8eeb9] | 458 | You can start <application>Plasma</application> from a TTY, using
|
---|
[fd42347a] | 459 | <xref linkend="xinit"/><!--, or from a graphical display manager, such as
|
---|
| 460 | <xref linkend="sddm"/>-->.
|
---|
[3f460da0] | 461 | </para>
|
---|
| 462 |
|
---|
[1c8d0ff] | 463 | <para>
|
---|
[6d8eeb9] | 464 | To start <application>Plasma</application> using <xref linkend="xinit"/>,
|
---|
[1c8d0ff] | 465 | run the following commands:
|
---|
| 466 | </para>
|
---|
| 467 |
|
---|
[665150a] | 468 | <screen role="nodump"><userinput>cat > ~/.xinitrc << "EOF"
|
---|
[6d8eeb9] | 469 | <literal>dbus-launch --exit-with-x11 $KF6_PREFIX/bin/startplasma-x11</literal>
|
---|
[3f460da0] | 470 | EOF
|
---|
| 471 |
|
---|
[1c8d0ff] | 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 |
|
---|
[665150a] | 488 | <screen role="nodump"><userinput>startx &> ~/x-session-errors</userinput></screen>
|
---|
[1c8d0ff] | 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>
|
---|
[6d8eeb9] | 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
|
---|
[7a763b49] | 503 | not needed anymore:
|
---|
[1c8c15c] | 504 | <para>
|
---|
| 505 | If you intend to start <application>Plasma</application> using a
|
---|
[c225bfa] | 506 | display manager such as <xref linkend="lightdm"/>, there will be two entries
|
---|
[f29eb8a] | 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 |
|
---|
[33c8b427] | 514 | <screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
|
---|
[7a763b49] | 515 | -->
|
---|
[f29eb8a] | 516 |
|
---|
[1c8d0ff] | 517 | </sect2>
|
---|
| 518 |
|
---|
[153a5795] | 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>
|
---|
[6d8eeb9] | 529 | There are too many plasma programs (over 50 in /opt/kf6/bin) to list
|
---|
[83ef2a4] | 530 | separately here.
|
---|
[153a5795] | 531 | </seg>
|
---|
| 532 | <seg>
|
---|
[6d8eeb9] | 533 | There are too many plasma libraries (over 250 in /opt/kf6/lib) to list
|
---|
[83ef2a4] | 534 | separately here.
|
---|
[153a5795] | 535 | </seg>
|
---|
| 536 | <seg>
|
---|
[6d8eeb9] | 537 | There are too many plasma directories (over 2700 in /opt/kf6) to
|
---|
[83ef2a4] | 538 | list separately here.
|
---|
[153a5795] | 539 | </seg>
|
---|
| 540 | </seglistitem>
|
---|
| 541 | </segmentedlist>
|
---|
| 542 |
|
---|
| 543 | </sect2>
|
---|
| 544 |
|
---|
| 545 | </sect1>
|
---|