[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">
|
---|
[4e810c0] | 10 | <!ENTITY plasma-size "220 MB">
|
---|
| 11 | <!ENTITY plasma-buildsize "1.0 GB (444 MB installed)">
|
---|
[91dfeba] | 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">
|
---|
[1ba03603] | 75 | <xref linkend="boost"/>,
|
---|
[f3429309] | 76 | <xref linkend="gtk3"/>,
|
---|
[5bfcd23e] | 77 | <xref linkend="kf6-frameworks"/>,
|
---|
[1ba03603] | 78 | <xref linkend="kirigami-addons"/>,
|
---|
| 79 | <xref linkend="libdisplay-info"/>,
|
---|
[366fbbb8] | 80 | <xref linkend="libpwquality"/>,
|
---|
[f36ab176] | 81 | <xref linkend="libqalculate"/>,
|
---|
[2d3951f] | 82 | <xref linkend="libnl"/>,
|
---|
[b785dce2] | 83 | <xref linkend="libxcvt"/>,
|
---|
[1c8d0ff] | 84 | <xref linkend="libxkbcommon"/>,
|
---|
[366fbbb8] | 85 | <xref linkend="mesa"/> built with <xref linkend="wayland"/>,
|
---|
[1f21b9c] | 86 | <xref linkend="pipewire"/>,
|
---|
[4e810c0] | 87 | <xref linkend="pulseaudio-qt"/>,
|
---|
[b7a66395] | 88 | <xref linkend="qca"/>,
|
---|
[1ba03603] | 89 | <xref linkend="qcoro"/>,
|
---|
[95965b6] | 90 | <xref linkend="sassc"/>,
|
---|
[2c54252b] | 91 | <xref linkend="taglib"/>,
|
---|
| 92 | <xref linkend="xdotool"/>, and
|
---|
| 93 | <xref linkend="xorg-evdev-driver"/>
|
---|
[153a5795] | 94 | </para>
|
---|
| 95 |
|
---|
| 96 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 97 | <para role="recommended">
|
---|
[72b8751] | 98 | <xref linkend="gsettings-desktop-schemas"/>,
|
---|
[f3429309] | 99 | <xref linkend="libcanberra"/>,
|
---|
| 100 | <xref linkend="libinput"/>,
|
---|
[64ae3fb] | 101 | <xref linkend="libpcap"/>,
|
---|
[0779b94] | 102 | <xref linkend="linux-pam"/>,
|
---|
[f3429309] | 103 | <xref linkend="lm_sensors"/>,
|
---|
[0ba3295] | 104 | <xref linkend="oxygen-icons"/>,
|
---|
[2563594f] | 105 | <xref linkend="pciutils"/>,
|
---|
[21a65a3] | 106 | <xref linkend="power-profiles-daemon"/>, and
|
---|
[2563594f] | 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)
|
---|
[153a5795] | 113 | </para>
|
---|
| 114 |
|
---|
[b359b3e0] | 115 | <bridgehead renderas="sect4">Recommended (runtime)</bridgehead>
|
---|
| 116 | <para role="recommended">
|
---|
[f3a27771] | 117 | <xref role="runtime" linkend="accountsservice"/>,
|
---|
[2c54252b] | 118 | <xref role="runtime" linkend="breeze-icons"/>,
|
---|
[d93c6b0] | 119 | <xref role="runtime" linkend="smartmontools"/>,
|
---|
| 120 | <xref role="runtime" linkend="xdg-desktop-portal"/>, and
|
---|
[f3a27771] | 121 | <xref role="runtime" linkend="xwayland"/>
|
---|
[b359b3e0] | 122 | </para>
|
---|
| 123 |
|
---|
[0779b94] | 124 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[153a5795] | 125 | <para role="optional">
|
---|
[fa559f1] | 126 | <xref linkend="appstream"/> (build with -qt=true),
|
---|
[0779b94] | 127 | <xref linkend="glu"/>,
|
---|
[7b1bc743] | 128 | <xref linkend='ibus'/>,
|
---|
[64ae3fb] | 129 | <xref linkend='qtwebengine'/>,
|
---|
[0779b94] | 130 | <xref linkend="xorg-synaptics-driver"/>,
|
---|
[ce228c2] | 131 | <ulink url="https://www.kdevelop.org/">KDevPlatform</ulink>,
|
---|
[3d9b01d] | 132 | <ulink url="https://gpsd.gitlab.io/gpsd/">libgps</ulink>,
|
---|
[0779b94] | 133 | <ulink url="https://github.com/libhybris/libhybris">libhybris</ulink>,
|
---|
[ce228c2] | 134 | <ulink url="https://www.freedesktop.org/software/PackageKit/releases/">packagekit-qt</ulink>,
|
---|
[8558044] | 135 | <ulink url="https://launchpad.net/qapt">Qapt</ulink>,
|
---|
[ce228c2] | 136 | <ulink url="https://github.com/osiam/osiam">SCIM</ulink>, and
|
---|
[4c3c7f43] | 137 | <ulink url="http://www.dest-unreach.org/socat/">socat</ulink> (for pam_kwallet)
|
---|
[153a5795] | 138 | </para>
|
---|
| 139 |
|
---|
| 140 | <sect2>
|
---|
[1ba03603] | 141 | <title>Downloading KDE Plasma</title>
|
---|
[153a5795] | 142 |
|
---|
| 143 | <para>
|
---|
[1ba03603] | 144 | The easiest way to get the KDE Plasma packages is to use a single
|
---|
[153a5795] | 145 | <command>wget</command> to fetch them all at once:
|
---|
| 146 | </para>
|
---|
[f3429309] | 147 |
|
---|
[6d8eeb9] | 148 | <screen><userinput>url=https://download.kde.org/stable/plasma/&plasma-version;/
|
---|
[a01d308] | 149 | wget -r -nH -nd -A '*.xz' -np $url</userinput>
|
---|
[153a5795] | 150 | <literal>
|
---|
[f3429309] | 151 | The options used here are:
|
---|
[153a5795] | 152 | -r recurse through child directories
|
---|
| 153 | -nH disable generation of host-prefixed directories
|
---|
[a01d308] | 154 | -nd do not create a hierarchy of directories
|
---|
[153a5795] | 155 | -A '*.xz' just get the *.xz files
|
---|
[10a9447] | 156 | -np don't get parent directories</literal></screen>
|
---|
[153a5795] | 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 |
|
---|
[6d8eeb9] | 168 | <screen><userinput>cat > plasma-&plasma-version;.md5 << "EOF"
|
---|
[4e810c0] | 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>
|
---|
[153a5795] | 233 | EOF</userinput></screen>
|
---|
| 234 |
|
---|
[1c8c15c] | 235 | <note>
|
---|
[1ba03603] | 236 | <title>About Commented Out Packages</title>
|
---|
[1c8c15c] | 237 | <para>
|
---|
[91dfeba] | 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>
|
---|
[4e810c0] | 263 | The plasma-browser-integration and krdp-6.1.4.tar.xz packages are
|
---|
| 264 | only used by plasma-meta which is not installed by BLFS.
|
---|
[91dfeba] | 265 | </para>
|
---|
| 266 | </listitem>
|
---|
| 267 | <listitem>
|
---|
| 268 | <para>
|
---|
| 269 | The plasma-nano package is used for embedded systems.
|
---|
| 270 | </para>
|
---|
| 271 | </listitem>
|
---|
| 272 | <listitem>
|
---|
[4e810c0] | 273 | <para>:
|
---|
[91dfeba] | 274 | The plasma-mobile package provides phone functionality for Plasma.
|
---|
| 275 | </para>
|
---|
| 276 | </listitem>
|
---|
| 277 | <listitem>
|
---|
| 278 | <para>
|
---|
[3d516cf] | 279 | The flatpak-kcm package is for managing support of flatpak applications.
|
---|
[91dfeba] | 280 | </para>
|
---|
| 281 | </listitem>
|
---|
| 282 | <listitem>
|
---|
| 283 | <para>
|
---|
| 284 | The wacomtablet and kwayland-integration applications require
|
---|
| 285 | plasma5 support.
|
---|
| 286 | </para>
|
---|
| 287 | </listitem>
|
---|
| 288 | </itemizedlist>
|
---|
[1c8c15c] | 289 | </para>
|
---|
| 290 | </note>
|
---|
[ce228c2] | 291 |
|
---|
[153a5795] | 292 | </sect2>
|
---|
| 293 |
|
---|
| 294 | <sect2 role="installation">
|
---|
[6d8eeb9] | 295 | <title>Installation of Plasma</title>
|
---|
[153a5795] | 296 |
|
---|
| 297 | &as_root;
|
---|
| 298 |
|
---|
| 299 | <para>
|
---|
| 300 | First, start a subshell that will exit on error:
|
---|
| 301 | </para>
|
---|
| 302 |
|
---|
| 303 | <screen><userinput>bash -e</userinput></screen>
|
---|
| 304 |
|
---|
| 305 | <para>
|
---|
| 306 | Install all of the packages by running the following
|
---|
| 307 | commands:
|
---|
| 308 | </para>
|
---|
| 309 |
|
---|
| 310 | <screen><userinput>while read -r line; do
|
---|
| 311 |
|
---|
| 312 | # Get the file name, ignoring comments and blank lines
|
---|
| 313 | if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
|
---|
| 314 | file=$(echo $line | cut -d" " -f2)
|
---|
[f3429309] | 315 |
|
---|
[153a5795] | 316 | pkg=$(echo $file|sed 's|^.*/||') # Remove directory
|
---|
| 317 | packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
|
---|
| 318 |
|
---|
| 319 | tar -xf $file
|
---|
| 320 | pushd $packagedir
|
---|
[b359b3e0] | 321 | <!--
|
---|
[4e0a40f] | 322 | # Fix some build issues when generating some configuration files
|
---|
[cfd5cb3] | 323 | case $name in
|
---|
| 324 | plasma-workspace)
|
---|
| 325 | sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 326 | ;;
|
---|
[8558044] | 327 |
|
---|
[cfd5cb3] | 328 | khotkeys)
|
---|
| 329 | sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 330 | ;;
|
---|
[8558044] | 331 |
|
---|
[cfd5cb3] | 332 | plasma-desktop)
|
---|
| 333 | sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 334 | ;;
|
---|
| 335 | esac
|
---|
[b359b3e0] | 336 | -->
|
---|
[69a9de5] | 337 | mkdir build
|
---|
| 338 | cd build
|
---|
[153a5795] | 339 |
|
---|
[b6f92d4] | 340 | cmake -D CMAKE_INSTALL_PREFIX=$KF6_PREFIX \
|
---|
[8c6c405d] | 341 | -D CMAKE_INSTALL_LIBEXECDIR=libexec \
|
---|
[b6f92d4] | 342 | -D CMAKE_BUILD_TYPE=Release \
|
---|
[792dbe76] | 343 | -D BUILD_QT5=OFF \
|
---|
[b6f92d4] | 344 | -D BUILD_TESTING=OFF \
|
---|
| 345 | -W no-dev .. &&
|
---|
[153a5795] | 346 |
|
---|
[69a9de5] | 347 | make
|
---|
| 348 | as_root make install
|
---|
| 349 | popd
|
---|
[153a5795] | 350 |
|
---|
[b44e7de2] | 351 | <!-- some packages end up with files owned by root in $packagedir,
|
---|
[8f445fdc] | 352 | so use as_root for removing -->
|
---|
| 353 | as_root rm -rf $packagedir
|
---|
[69a9de5] | 354 | as_root /sbin/ldconfig
|
---|
| 355 |
|
---|
[6d8eeb9] | 356 | done < plasma-&plasma-version;.md5
|
---|
[153a5795] | 357 |
|
---|
[527f3db] | 358 | exit</userinput></screen>
|
---|
[1c8d0ff] | 359 |
|
---|
[527f3db] | 360 | <para>
|
---|
[6d8eeb9] | 361 | If you did not set <envar>$KF6_PREFIX</envar> to
|
---|
[527f3db] | 362 | <filename>/usr</filename>, create symlinks to allow display managers to
|
---|
[27bda4fc] | 363 | find <application>Plasma</application>, and to allow the XDG Desktop
|
---|
[6d8eeb9] | 364 | Portal to be detected. As the &root; user:
|
---|
[527f3db] | 365 | </para>
|
---|
| 366 |
|
---|
[6d8eeb9] | 367 | <screen><userinput># Setup xsessions (X11 sessions)
|
---|
| 368 | install -dvm 755 /usr/share/xsessions
|
---|
| 369 | cd /usr/share/xsessions
|
---|
| 370 |
|
---|
| 371 | [ -e plasma.desktop ] ||
|
---|
| 372 | ln -sfv $KF6_PREFIX/share/xsessions/plasmax11.desktop
|
---|
| 373 |
|
---|
| 374 | # Setup wayland-sessions
|
---|
| 375 | install -dvm 755 /usr/share/wayland-sessions
|
---|
| 376 | cd /usr/share/wayland-sessions
|
---|
| 377 |
|
---|
| 378 | [ -e plasmawayland.desktop ] ||
|
---|
| 379 | ln -sfv $KF6_PREFIX/share/wayland-sessions/plasma.desktop
|
---|
| 380 | <!-- work around a bug in xdg-desktop-portal-->
|
---|
| 381 | # Setup xdg-desktop-portal
|
---|
| 382 | install -dvm 755 /usr/share/xdg-desktop-portal
|
---|
| 383 | cd /usr/share/xdg-desktop-portal
|
---|
| 384 |
|
---|
| 385 | [ -e kde-portals.conf ] ||
|
---|
| 386 | ln -sfv $KF6_PREFIX/share/xdg-desktop-portal/kde-portals.conf
|
---|
| 387 |
|
---|
[1e4c908f] | 388 | # Setup kde portal
|
---|
[6d8eeb9] | 389 | install -dvm 755 /usr/share/xdg-desktop-portal/portals
|
---|
| 390 | cd /usr/share/xdg-desktop-portal/portals
|
---|
| 391 |
|
---|
| 392 | [ -e kde.portal ] ||
|
---|
| 393 | ln -sfv $KF6_PREFIX/share/xdg-desktop-portal/portals/kde.portal</userinput></screen>
|
---|
[153a5795] | 394 |
|
---|
[2e29bba] | 395 | <para revision="sysv">
|
---|
| 396 | Useless systemd units have been installed in
|
---|
[6d8eeb9] | 397 | <filename class="directory">$KF6_PREFIX/lib</filename>. Remove
|
---|
[2e29bba] | 398 | them now (as <systemitem class="username">root</systemitem>):
|
---|
| 399 | </para>
|
---|
| 400 |
|
---|
| 401 | <screen role="root"
|
---|
[6d8eeb9] | 402 | revision="sysv"><userinput>rm -rf $KF6_PREFIX/lib/systemd</userinput></screen>
|
---|
[2e29bba] | 403 |
|
---|
[153a5795] | 404 | </sect2>
|
---|
[5ac58b54] | 405 | <!--
|
---|
[153a5795] | 406 | <sect2 role="commands">
|
---|
| 407 | <title>Command Explanations</title>
|
---|
| 408 |
|
---|
| 409 | <para>
|
---|
[1c8d0ff] | 410 | <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
|
---|
| 411 | Create symbolic links so qml files can find needed javascript modules.
|
---|
[153a5795] | 412 | </para>
|
---|
| 413 |
|
---|
| 414 | </sect2>
|
---|
[5ac58b54] | 415 | -->
|
---|
[3b0f105] | 416 | <sect2 role="configuration">
|
---|
| 417 | <title>Configuring Plasma</title>
|
---|
| 418 |
|
---|
| 419 | <sect3>
|
---|
| 420 | <title>Linux PAM Configuration</title>
|
---|
| 421 |
|
---|
| 422 | <para>
|
---|
| 423 | If you built Plasma with the recommended <application>Linux
|
---|
| 424 | PAM</application> support, create necessary configuration files by
|
---|
| 425 | running the following commands as the <systemitem
|
---|
| 426 | class="username">root</systemitem> user:
|
---|
| 427 | </para>
|
---|
| 428 |
|
---|
[8558044] | 429 | <screen role="root"><userinput>cat > /etc/pam.d/kde << "EOF"
|
---|
[51dfb3e] | 430 | <literal># Begin /etc/pam.d/kde
|
---|
[3b0f105] | 431 |
|
---|
| 432 | auth requisite pam_nologin.so
|
---|
| 433 | auth required pam_env.so
|
---|
| 434 |
|
---|
| 435 | auth required pam_succeed_if.so uid >= 1000 quiet
|
---|
| 436 | auth include system-auth
|
---|
| 437 |
|
---|
| 438 | account include system-account
|
---|
| 439 | password include system-password
|
---|
| 440 | session include system-session
|
---|
| 441 |
|
---|
[51dfb3e] | 442 | # End /etc/pam.d/kde</literal>
|
---|
[3b0f105] | 443 | EOF
|
---|
| 444 |
|
---|
[8558044] | 445 | cat > /etc/pam.d/kde-np << "EOF"
|
---|
[51dfb3e] | 446 | <literal># Begin /etc/pam.d/kde-np
|
---|
[3b0f105] | 447 |
|
---|
| 448 | auth requisite pam_nologin.so
|
---|
| 449 | auth required pam_env.so
|
---|
| 450 |
|
---|
| 451 | auth required pam_succeed_if.so uid >= 1000 quiet
|
---|
| 452 | auth required pam_permit.so
|
---|
| 453 |
|
---|
| 454 | account include system-account
|
---|
| 455 | password include system-password
|
---|
| 456 | session include system-session
|
---|
| 457 |
|
---|
[51dfb3e] | 458 | # End /etc/pam.d/kde-np</literal>
|
---|
[3b0f105] | 459 | EOF
|
---|
| 460 |
|
---|
| 461 | cat > /etc/pam.d/kscreensaver << "EOF"
|
---|
[51dfb3e] | 462 | <literal># Begin /etc/pam.d/kscreensaver
|
---|
[3b0f105] | 463 |
|
---|
| 464 | auth include system-auth
|
---|
| 465 | account include system-account
|
---|
| 466 |
|
---|
[51dfb3e] | 467 | # End /etc/pam.d/kscreensaver</literal>
|
---|
[3b0f105] | 468 | EOF</userinput></screen>
|
---|
| 469 | </sect3>
|
---|
| 470 | </sect2>
|
---|
| 471 |
|
---|
[1c8d0ff] | 472 | <sect2 role="starting">
|
---|
[6d8eeb9] | 473 | <title>Starting Plasma</title>
|
---|
[1c8d0ff] | 474 |
|
---|
[3f460da0] | 475 | <para revision="sysv">
|
---|
[6d8eeb9] | 476 | You can start <application>Plasma</application> from runlevel 3, using
|
---|
[1c8d0ff] | 477 | <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
|
---|
[c225bfa] | 478 | such as <xref linkend="lightdm"/>.
|
---|
[1c8d0ff] | 479 | </para>
|
---|
| 480 |
|
---|
[3f460da0] | 481 | <para revision="systemd">
|
---|
[6d8eeb9] | 482 | You can start <application>Plasma</application> from a TTY, using
|
---|
[fd42347a] | 483 | <xref linkend="xinit"/><!--, or from a graphical display manager, such as
|
---|
| 484 | <xref linkend="sddm"/>-->.
|
---|
[3f460da0] | 485 | </para>
|
---|
| 486 |
|
---|
[1c8d0ff] | 487 | <para>
|
---|
[6d8eeb9] | 488 | To start <application>Plasma</application> using <xref linkend="xinit"/>,
|
---|
[1c8d0ff] | 489 | run the following commands:
|
---|
| 490 | </para>
|
---|
| 491 |
|
---|
[665150a] | 492 | <screen role="nodump"><userinput>cat > ~/.xinitrc << "EOF"
|
---|
[6d8eeb9] | 493 | <literal>dbus-launch --exit-with-x11 $KF6_PREFIX/bin/startplasma-x11</literal>
|
---|
[3f460da0] | 494 | EOF
|
---|
| 495 |
|
---|
[1c8d0ff] | 496 | startx</userinput></screen>
|
---|
| 497 |
|
---|
| 498 | <para>
|
---|
| 499 | The X session starts on the first unused virtual terminal, normally vt7.
|
---|
| 500 | You can switch to another vt<emphasis>n</emphasis> simultaneously
|
---|
| 501 | pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
|
---|
| 502 | (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
|
---|
| 503 | normally started at vt7, use Ctrl-Alt-F7. The vt where the command
|
---|
| 504 | <command>startx</command> was executed will display many messages,
|
---|
| 505 | including X starting messages, applications automatically started with
|
---|
| 506 | the session, and eventually, some warning and error messages. You may
|
---|
| 507 | prefer to redirect those messages to a log file, which not only will keep
|
---|
| 508 | the initial vt uncluttered, but can also be used for debugging purposes. This
|
---|
| 509 | can be done starting X with:
|
---|
| 510 | </para>
|
---|
| 511 |
|
---|
[665150a] | 512 | <screen role="nodump"><userinput>startx &> ~/x-session-errors</userinput></screen>
|
---|
[1c8d0ff] | 513 |
|
---|
| 514 | <para>
|
---|
| 515 | When shutting down or rebooting, the shutdown messages appear on the vt
|
---|
| 516 | where X was running. If you wish to see those messages, simultaneously
|
---|
| 517 | press keys Alt-F7 (assuming that X was running on vt7).
|
---|
| 518 | </para>
|
---|
[6d8eeb9] | 519 | <!-- Start plasma wayland with
|
---|
| 520 |
|
---|
| 521 | /opt/kf6/lib/libexec/plasma-dbus-run-session-if-needed /opt/kf6/bin/startplasma-wayland
|
---|
| 522 |
|
---|
| 523 | Investigate why it's in /opt/kf6/lib/libexec and not just in /opt/kf6/libexec
|
---|
| 524 |
|
---|
| 525 |
|
---|
| 526 | Now the entry is "plasma (X11)" for Xorg, so I guess this is
|
---|
[7a763b49] | 527 | not needed anymore:
|
---|
[1c8c15c] | 528 | <para>
|
---|
| 529 | If you intend to start <application>Plasma</application> using a
|
---|
[c225bfa] | 530 | display manager such as <xref linkend="lightdm"/>, there will be two entries
|
---|
[f29eb8a] | 531 | for <application>Plasma</application>, one for use with
|
---|
| 532 | <application>Xorg</application>, and another for
|
---|
| 533 | <application>Wayland</application>. Modify the
|
---|
| 534 | <application>Xorg</application> entry with the following command, as the
|
---|
| 535 | <systemitem class="username">root</systemitem> user, so that you can
|
---|
| 536 | differentiate between the two:</para>
|
---|
| 537 |
|
---|
[33c8b427] | 538 | <screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
|
---|
[7a763b49] | 539 | -->
|
---|
[f29eb8a] | 540 |
|
---|
[1c8d0ff] | 541 | </sect2>
|
---|
| 542 |
|
---|
[153a5795] | 543 | <sect2 role="content">
|
---|
| 544 | <title>Contents</title>
|
---|
| 545 |
|
---|
| 546 | <segmentedlist>
|
---|
| 547 | <segtitle>Installed Programs</segtitle>
|
---|
| 548 | <segtitle>Installed Libraries</segtitle>
|
---|
| 549 | <segtitle>Installed Directories</segtitle>
|
---|
| 550 |
|
---|
| 551 | <seglistitem>
|
---|
| 552 | <seg>
|
---|
[6d8eeb9] | 553 | There are too many plasma programs (over 50 in /opt/kf6/bin) to list
|
---|
[83ef2a4] | 554 | separately here.
|
---|
[153a5795] | 555 | </seg>
|
---|
| 556 | <seg>
|
---|
[6d8eeb9] | 557 | There are too many plasma libraries (over 250 in /opt/kf6/lib) to list
|
---|
[83ef2a4] | 558 | separately here.
|
---|
[153a5795] | 559 | </seg>
|
---|
| 560 | <seg>
|
---|
[6d8eeb9] | 561 | There are too many plasma directories (over 2700 in /opt/kf6) to
|
---|
[83ef2a4] | 562 | list separately here.
|
---|
[153a5795] | 563 | </seg>
|
---|
| 564 | </seglistitem>
|
---|
| 565 | </segmentedlist>
|
---|
| 566 |
|
---|
| 567 | </sect2>
|
---|
| 568 |
|
---|
| 569 | </sect1>
|
---|