[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">
|
---|
[91dfeba] | 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)">
|
---|
[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"
|
---|
[91dfeba] | 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
|
---|
[fd059de] | 186 | #7697ef8eedbc90c06e160507775f9e3b plasma-workspace-6.0.5.tar.xz
|
---|
| 187 | 518d71251d583c3ad13803779f03c2ff plasma-workspace-6.0.5.1.tar.xz
|
---|
[91dfeba] | 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>
|
---|
[153a5795] | 234 | EOF</userinput></screen>
|
---|
| 235 |
|
---|
[1c8c15c] | 236 | <note>
|
---|
[1ba03603] | 237 | <title>About Commented Out Packages</title>
|
---|
[1c8c15c] | 238 | <para>
|
---|
[91dfeba] | 239 | In the above list, several files are commented out with a hash (#) character.
|
---|
| 240 |
|
---|
| 241 | <itemizedlist spacing="compact">
|
---|
| 242 | <listitem>
|
---|
| 243 | <para>
|
---|
[c77c90b] | 244 | Two packages, bluedevil and plasma-workspace, have been replaced
|
---|
| 245 | by a 6.0.5.1 version.
|
---|
[91dfeba] | 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>
|
---|
[1c8c15c] | 296 | </para>
|
---|
| 297 | </note>
|
---|
[ce228c2] | 298 |
|
---|
[153a5795] | 299 | </sect2>
|
---|
| 300 |
|
---|
| 301 | <sect2 role="installation">
|
---|
[6d8eeb9] | 302 | <title>Installation of Plasma</title>
|
---|
[153a5795] | 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)
|
---|
[f3429309] | 322 |
|
---|
[153a5795] | 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
|
---|
[b359b3e0] | 328 | <!--
|
---|
[4e0a40f] | 329 | # Fix some build issues when generating some configuration files
|
---|
[cfd5cb3] | 330 | case $name in
|
---|
| 331 | plasma-workspace)
|
---|
| 332 | sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 333 | ;;
|
---|
[8558044] | 334 |
|
---|
[cfd5cb3] | 335 | khotkeys)
|
---|
| 336 | sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 337 | ;;
|
---|
[8558044] | 338 |
|
---|
[cfd5cb3] | 339 | plasma-desktop)
|
---|
| 340 | sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 341 | ;;
|
---|
| 342 | esac
|
---|
[b359b3e0] | 343 | -->
|
---|
[69a9de5] | 344 | mkdir build
|
---|
| 345 | cd build
|
---|
[153a5795] | 346 |
|
---|
[b6f92d4] | 347 | cmake -D CMAKE_INSTALL_PREFIX=$KF6_PREFIX \
|
---|
[8c6c405d] | 348 | -D CMAKE_INSTALL_LIBEXECDIR=libexec \
|
---|
[b6f92d4] | 349 | -D CMAKE_BUILD_TYPE=Release \
|
---|
[792dbe76] | 350 | -D BUILD_QT5=OFF \
|
---|
[b6f92d4] | 351 | -D BUILD_TESTING=OFF \
|
---|
| 352 | -W no-dev .. &&
|
---|
[153a5795] | 353 |
|
---|
[69a9de5] | 354 | make
|
---|
| 355 | as_root make install
|
---|
| 356 | popd
|
---|
[153a5795] | 357 |
|
---|
[b44e7de2] | 358 | <!-- some packages end up with files owned by root in $packagedir,
|
---|
[8f445fdc] | 359 | so use as_root for removing -->
|
---|
| 360 | as_root rm -rf $packagedir
|
---|
[69a9de5] | 361 | as_root /sbin/ldconfig
|
---|
| 362 |
|
---|
[6d8eeb9] | 363 | done < plasma-&plasma-version;.md5
|
---|
[153a5795] | 364 |
|
---|
[527f3db] | 365 | exit</userinput></screen>
|
---|
[1c8d0ff] | 366 |
|
---|
[527f3db] | 367 | <para>
|
---|
[6d8eeb9] | 368 | If you did not set <envar>$KF6_PREFIX</envar> to
|
---|
[527f3db] | 369 | <filename>/usr</filename>, create symlinks to allow display managers to
|
---|
[27bda4fc] | 370 | find <application>Plasma</application>, and to allow the XDG Desktop
|
---|
[6d8eeb9] | 371 | Portal to be detected. As the &root; user:
|
---|
[527f3db] | 372 | </para>
|
---|
| 373 |
|
---|
[6d8eeb9] | 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 |
|
---|
[1e4c908f] | 395 | # Setup kde portal
|
---|
[6d8eeb9] | 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>
|
---|
[153a5795] | 401 |
|
---|
[2e29bba] | 402 | <para revision="sysv">
|
---|
| 403 | Useless systemd units have been installed in
|
---|
[6d8eeb9] | 404 | <filename class="directory">$KF6_PREFIX/lib</filename>. Remove
|
---|
[2e29bba] | 405 | them now (as <systemitem class="username">root</systemitem>):
|
---|
| 406 | </para>
|
---|
| 407 |
|
---|
| 408 | <screen role="root"
|
---|
[6d8eeb9] | 409 | revision="sysv"><userinput>rm -rf $KF6_PREFIX/lib/systemd</userinput></screen>
|
---|
[2e29bba] | 410 |
|
---|
[153a5795] | 411 | </sect2>
|
---|
[5ac58b54] | 412 | <!--
|
---|
[153a5795] | 413 | <sect2 role="commands">
|
---|
| 414 | <title>Command Explanations</title>
|
---|
| 415 |
|
---|
| 416 | <para>
|
---|
[1c8d0ff] | 417 | <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
|
---|
| 418 | Create symbolic links so qml files can find needed javascript modules.
|
---|
[153a5795] | 419 | </para>
|
---|
| 420 |
|
---|
| 421 | </sect2>
|
---|
[5ac58b54] | 422 | -->
|
---|
[3b0f105] | 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 |
|
---|
[8558044] | 436 | <screen role="root"><userinput>cat > /etc/pam.d/kde << "EOF"
|
---|
[51dfb3e] | 437 | <literal># Begin /etc/pam.d/kde
|
---|
[3b0f105] | 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 |
|
---|
[51dfb3e] | 449 | # End /etc/pam.d/kde</literal>
|
---|
[3b0f105] | 450 | EOF
|
---|
| 451 |
|
---|
[8558044] | 452 | cat > /etc/pam.d/kde-np << "EOF"
|
---|
[51dfb3e] | 453 | <literal># Begin /etc/pam.d/kde-np
|
---|
[3b0f105] | 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 |
|
---|
[51dfb3e] | 465 | # End /etc/pam.d/kde-np</literal>
|
---|
[3b0f105] | 466 | EOF
|
---|
| 467 |
|
---|
| 468 | cat > /etc/pam.d/kscreensaver << "EOF"
|
---|
[51dfb3e] | 469 | <literal># Begin /etc/pam.d/kscreensaver
|
---|
[3b0f105] | 470 |
|
---|
| 471 | auth include system-auth
|
---|
| 472 | account include system-account
|
---|
| 473 |
|
---|
[51dfb3e] | 474 | # End /etc/pam.d/kscreensaver</literal>
|
---|
[3b0f105] | 475 | EOF</userinput></screen>
|
---|
| 476 | </sect3>
|
---|
| 477 | </sect2>
|
---|
| 478 |
|
---|
[1c8d0ff] | 479 | <sect2 role="starting">
|
---|
[6d8eeb9] | 480 | <title>Starting Plasma</title>
|
---|
[1c8d0ff] | 481 |
|
---|
[3f460da0] | 482 | <para revision="sysv">
|
---|
[6d8eeb9] | 483 | You can start <application>Plasma</application> from runlevel 3, using
|
---|
[1c8d0ff] | 484 | <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
|
---|
[c225bfa] | 485 | such as <xref linkend="lightdm"/>.
|
---|
[1c8d0ff] | 486 | </para>
|
---|
| 487 |
|
---|
[3f460da0] | 488 | <para revision="systemd">
|
---|
[6d8eeb9] | 489 | You can start <application>Plasma</application> from a TTY, using
|
---|
[fd42347a] | 490 | <xref linkend="xinit"/><!--, or from a graphical display manager, such as
|
---|
| 491 | <xref linkend="sddm"/>-->.
|
---|
[3f460da0] | 492 | </para>
|
---|
| 493 |
|
---|
[1c8d0ff] | 494 | <para>
|
---|
[6d8eeb9] | 495 | To start <application>Plasma</application> using <xref linkend="xinit"/>,
|
---|
[1c8d0ff] | 496 | run the following commands:
|
---|
| 497 | </para>
|
---|
| 498 |
|
---|
[665150a] | 499 | <screen role="nodump"><userinput>cat > ~/.xinitrc << "EOF"
|
---|
[6d8eeb9] | 500 | <literal>dbus-launch --exit-with-x11 $KF6_PREFIX/bin/startplasma-x11</literal>
|
---|
[3f460da0] | 501 | EOF
|
---|
| 502 |
|
---|
[1c8d0ff] | 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 |
|
---|
[665150a] | 519 | <screen role="nodump"><userinput>startx &> ~/x-session-errors</userinput></screen>
|
---|
[1c8d0ff] | 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>
|
---|
[6d8eeb9] | 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
|
---|
[7a763b49] | 534 | not needed anymore:
|
---|
[1c8c15c] | 535 | <para>
|
---|
| 536 | If you intend to start <application>Plasma</application> using a
|
---|
[c225bfa] | 537 | display manager such as <xref linkend="lightdm"/>, there will be two entries
|
---|
[f29eb8a] | 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 |
|
---|
[33c8b427] | 545 | <screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
|
---|
[7a763b49] | 546 | -->
|
---|
[f29eb8a] | 547 |
|
---|
[1c8d0ff] | 548 | </sect2>
|
---|
| 549 |
|
---|
[153a5795] | 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>
|
---|
[6d8eeb9] | 560 | There are too many plasma programs (over 50 in /opt/kf6/bin) to list
|
---|
[83ef2a4] | 561 | separately here.
|
---|
[153a5795] | 562 | </seg>
|
---|
| 563 | <seg>
|
---|
[6d8eeb9] | 564 | There are too many plasma libraries (over 250 in /opt/kf6/lib) to list
|
---|
[83ef2a4] | 565 | separately here.
|
---|
[153a5795] | 566 | </seg>
|
---|
| 567 | <seg>
|
---|
[6d8eeb9] | 568 | There are too many plasma directories (over 2700 in /opt/kf6) to
|
---|
[83ef2a4] | 569 | list separately here.
|
---|
[153a5795] | 570 | </seg>
|
---|
| 571 | </seglistitem>
|
---|
| 572 | </segmentedlist>
|
---|
| 573 |
|
---|
| 574 | </sect2>
|
---|
| 575 |
|
---|
| 576 | </sect1>
|
---|