[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">
|
---|
[1ba03603] | 10 | <!ENTITY plasma-size "230 MB">
|
---|
| 11 | <!ENTITY plasma-buildsize "1.7 GB (614 MB installed)">
|
---|
[6d8eeb9] | 12 | <!ENTITY plasma-time "7.6 SBU (using parallelism=4)">
|
---|
[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"/>,
|
---|
[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"/>,
|
---|
[f3429309] | 87 | <xref linkend="pulseaudio"/>,
|
---|
[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"/>,
|
---|
| 106 | <xref linkend="power-profiles-daemon"/> (for laptops), 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)
|
---|
[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"
|
---|
| 169 | <literal>599e79f2908879ed7f7ffda3637c54a6 kdecoration-6.0.0.tar.xz
|
---|
| 170 | 96f956b40d929ddecb208101564aa269 libkscreen-6.0.0.tar.xz
|
---|
| 171 | e09b5326dea0c32c64745a0ab3bb17fd libksysguard-6.0.0.tar.xz
|
---|
| 172 | 6546c71b2707637fb0c8ffd90abfc981 breeze-6.0.0.tar.xz
|
---|
| 173 | 6ec29676f896546f9fab485142fff113 breeze-gtk-6.0.0.tar.xz
|
---|
| 174 | 5d02ead00aa69e96d71fb892aa941fa3 layer-shell-qt-6.0.0.tar.xz
|
---|
| 175 | c91f8689b5386ce42d8a270ba669dfc3 plasma-activities-6.0.0.tar.xz
|
---|
| 176 | 125c3e7cf3bb32d3103bb769c584660f libplasma-6.0.0.tar.xz
|
---|
| 177 | 9dbfb8774a5acead43b3a0afb90a893f kscreenlocker-6.0.0.tar.xz
|
---|
| 178 | b37312379616a7c2309c834005ada178 oxygen-6.0.0.tar.xz
|
---|
| 179 | 643d13b69ffddf133f4067bd25e33034 kinfocenter-6.0.0.tar.xz
|
---|
| 180 | 4bc12254229c9762e29f2f75d2f44e1a kglobalacceld-6.0.0.tar.xz
|
---|
| 181 | 97c448777e08ea7fe53aaef2cb35d17a kwayland-6.0.0.tar.xz
|
---|
| 182 | b5b1a531a62ba3b778c793c63b262509 kwin-6.0.0.tar.xz
|
---|
| 183 | 5ac7afff15ac496b580526cf5c017db7 plasma5support-6.0.0.tar.xz
|
---|
| 184 | d931aa7909d574c0a5b26a4d5af1f4eb plasma-activities-stats-6.0.0.tar.xz
|
---|
| 185 | 1ce2e4da8cf65347f6fc5099b418ecc6 kpipewire-6.0.0.tar.xz
|
---|
| 186 | 4a155013537b80009cc1e7d1582fda33 plasma-workspace-6.0.0.tar.xz
|
---|
| 187 | e32c8a5eac1ac01a763bbcc70b3f6945 plasma-disks-6.0.0.tar.xz
|
---|
| 188 | 4d18ce97c23bbf35d87b73efec71420c bluedevil-6.0.0.tar.xz
|
---|
| 189 | bfc8028a6f0888965a3a555663ba893b kde-gtk-config-6.0.0.tar.xz
|
---|
| 190 | 83dffdc80445bbc617f0c0dcef04ca4a kmenuedit-6.0.0.tar.xz
|
---|
| 191 | 57acadb3a31ff06cad411269de2ea700 kscreen-6.0.0.tar.xz
|
---|
| 192 | 7fad253ac68778bf4046b72a892ade92 kwallet-pam-6.0.0.tar.xz
|
---|
| 193 | 115cb1253c7a903070ff76630370d97d kwrited-6.0.0.tar.xz
|
---|
| 194 | 90eb8b277e475f1447472ba467336547 milou-6.0.0.tar.xz
|
---|
| 195 | 7dcf751acdb6fc66b50734948831731a plasma-nm-6.0.0.tar.xz
|
---|
| 196 | ca57d6c816ae40b595bf3e3e1a2617ff plasma-pa-6.0.0.tar.xz
|
---|
| 197 | f4445ecabf52a5777fa405f36c791d72 plasma-workspace-wallpapers-6.0.0.tar.xz
|
---|
| 198 | ae7b1d18a20699124d924b126335aaed polkit-kde-agent-1-6.0.0.tar.xz
|
---|
| 199 | 93aacc0af152b6d2e28a694bd211f29d powerdevil-6.0.0.tar.xz
|
---|
| 200 | 46d9dee5d8abfc12bd8c3ca8811327e7 plasma-desktop-6.0.0.tar.xz
|
---|
| 201 | 2b522f3fd18ed563c9fab882b83193eb kgamma-6.0.0.tar.xz
|
---|
| 202 | a832617c17070ec2dce5cf019ab7ab1c ksshaskpass-6.0.0.tar.xz
|
---|
| 203 | #65ceae0e87f6b11ec924d57d764913f4 plasma-sdk-6.0.0.tar.xz
|
---|
| 204 | 973e99f506a6fdad96a8b43d04a0b510 sddm-kcm-6.0.0.tar.xz
|
---|
| 205 | #a7ab65d4a36e402df4b42c91cd2a16da discover-6.0.0.tar.xz
|
---|
| 206 | #bc42922097f6964252a5f56e759c3844 breeze-grub-6.0.0.tar.xz
|
---|
| 207 | #f399364375591938bdfb2d235f13923b breeze-plymouth-6.0.0.tar.xz
|
---|
| 208 | c0248379f3df970fa19fe6d341dd00a4 kactivitymanagerd-6.0.0.tar.xz
|
---|
| 209 | ad6dee45c10e415a92d76745e5901842 plasma-integration-6.0.0.tar.xz
|
---|
| 210 | #e377ca58ca8089ce4e4c26c03e85b4f1 plymouth-kcm-6.0.0.tar.xz
|
---|
| 211 | b0a1e9952e09e35f90d8131faed98882 xdg-desktop-portal-kde-6.0.0.tar.xz
|
---|
| 212 | 53864beb8ca2de75a8e4c1f52b0f4ea5 drkonqi-6.0.0.tar.xz
|
---|
| 213 | e6c9b78fd0022d37dc4913e3dbe5205e plasma-vault-6.0.0.tar.xz
|
---|
| 214 | #a5b70716031e98843e8fa1088f2eb0bc plasma-browser-integration-6.0.0.tar.xz
|
---|
| 215 | 91f1b7dbde5fcd508f3eab9cdf5f0681 kde-cli-tools-6.0.0.tar.xz
|
---|
| 216 | 876c57804ef1daadfcce81bb0d7e82a4 systemsettings-6.0.0.tar.xz
|
---|
| 217 | 29588e3f9d64d092060890a5a438cdb6 plasma-thunderbolt-6.0.0.tar.xz
|
---|
| 218 | #cc307526ac2f02e7547cacea0eeccda6 plasma-nano-6.0.0.tar.xz
|
---|
| 219 | #5e2effe947e2edf89cce35ef5c2527f6 plasma-mobile-6.0.0.tar.xz
|
---|
| 220 | f791645b191b9f2e6cc9e6cf0037af00 plasma-firewall-6.0.0.tar.xz
|
---|
| 221 | a4d558a30b2ae93dc680010867e10abc plasma-systemmonitor-6.0.0.tar.xz
|
---|
| 222 | f250350b7fa2ff6f28f88233955c5638 qqc2-breeze-style-6.0.0.tar.xz
|
---|
| 223 | 28f4d1841cecffaf76462ba20e45c45b ksystemstats-6.0.0.tar.xz
|
---|
| 224 | 8aad48fd0f58f08ea197aa6d8e4dfab3 oxygen-sounds-6.0.0.tar.xz
|
---|
| 225 | 4d7c36f9ada95960ec0619547c716f81 kdeplasma-addons-6.0.0.tar.xz
|
---|
| 226 | #df582e99c5288d1c0b8dcd1b34a31d08 flatpak-kcm-6.0.0.tar.xz
|
---|
[2c54252b] | 227 | eebf65971b0066c707eef50742a9c49e plasma-welcome-6.0.0.tar.xz
|
---|
[6d8eeb9] | 228 | 8f0c51c160819c170dcc77722b6153e3 ocean-sound-theme-6.0.0.tar.xz
|
---|
| 229 | b8963fb1790449d4a905cf85f017d1e9 print-manager-6.0.0.tar.xz
|
---|
| 230 | #a05c7d650e44cd046fbc090fcbb69ae4 wacomtablet-6.0.0.tar.xz</literal>
|
---|
[153a5795] | 231 | EOF</userinput></screen>
|
---|
| 232 |
|
---|
[1c8c15c] | 233 | <note>
|
---|
[1ba03603] | 234 | <title>About Commented Out Packages</title>
|
---|
[1c8c15c] | 235 | <para>
|
---|
| 236 | The breeze-grub, breeze-plymouth, and plymouth-kcm packages above are
|
---|
| 237 | all for customized support of <ulink
|
---|
| 238 | url="https://www.freedesktop.org/wiki/Software/Plymouth/"
|
---|
| 239 | >Plymouth</ulink>
|
---|
| 240 | which is designed to be run within an initial ram disk during boot (see
|
---|
[e440af5] | 241 | <xref linkend="initramfs"/>).
|
---|
[d0b42e9] | 242 |
|
---|
[e440af5] | 243 | The plasma-sdk package is optional and used for software development.
|
---|
[d0b42e9] | 244 |
|
---|
| 245 | The plasma-nano package is used for embedded systems.
|
---|
| 246 |
|
---|
| 247 | The plasma-mobile package provides phone functionality for Plasma.
|
---|
| 248 |
|
---|
[fa559f1] | 249 | The discover package requires <xref linkend="appstream"/> to be built
|
---|
[1ba03603] | 250 | with the -Dqt=true switch.
|
---|
[2c54252b] | 251 | <!--
|
---|
[7253d73f] | 252 | The plasma-welcome package requires the external package
|
---|
| 253 | <ulink url="https://download.kde.org/stable/release-service/&kf5apps-version;/src/">
|
---|
| 254 | kaccounts-integration</ulink>.
|
---|
[2c54252b] | 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.
|
---|
[1c8c15c] | 262 | </para>
|
---|
| 263 | </note>
|
---|
[ce228c2] | 264 |
|
---|
[153a5795] | 265 | </sect2>
|
---|
| 266 |
|
---|
| 267 | <sect2 role="installation">
|
---|
[6d8eeb9] | 268 | <title>Installation of Plasma</title>
|
---|
[153a5795] | 269 |
|
---|
| 270 | &as_root;
|
---|
| 271 |
|
---|
| 272 | <para>
|
---|
| 273 | First, start a subshell that will exit on error:
|
---|
| 274 | </para>
|
---|
| 275 |
|
---|
| 276 | <screen><userinput>bash -e</userinput></screen>
|
---|
| 277 |
|
---|
| 278 | <para>
|
---|
| 279 | Install all of the packages by running the following
|
---|
| 280 | commands:
|
---|
| 281 | </para>
|
---|
| 282 |
|
---|
| 283 | <screen><userinput>while read -r line; do
|
---|
| 284 |
|
---|
| 285 | # Get the file name, ignoring comments and blank lines
|
---|
| 286 | if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
|
---|
| 287 | file=$(echo $line | cut -d" " -f2)
|
---|
[f3429309] | 288 |
|
---|
[153a5795] | 289 | pkg=$(echo $file|sed 's|^.*/||') # Remove directory
|
---|
| 290 | packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
|
---|
| 291 |
|
---|
| 292 | tar -xf $file
|
---|
| 293 | pushd $packagedir
|
---|
[b359b3e0] | 294 | <!--
|
---|
[4e0a40f] | 295 | # Fix some build issues when generating some configuration files
|
---|
[cfd5cb3] | 296 | case $name in
|
---|
| 297 | plasma-workspace)
|
---|
| 298 | sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 299 | ;;
|
---|
[8558044] | 300 |
|
---|
[cfd5cb3] | 301 | khotkeys)
|
---|
| 302 | sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 303 | ;;
|
---|
[8558044] | 304 |
|
---|
[cfd5cb3] | 305 | plasma-desktop)
|
---|
| 306 | sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 307 | ;;
|
---|
| 308 | esac
|
---|
[b359b3e0] | 309 | -->
|
---|
[69a9de5] | 310 | mkdir build
|
---|
| 311 | cd build
|
---|
[153a5795] | 312 |
|
---|
[b6f92d4] | 313 | cmake -D CMAKE_INSTALL_PREFIX=$KF6_PREFIX \
|
---|
[8c6c405d] | 314 | -D CMAKE_INSTALL_LIBEXECDIR=libexec \
|
---|
[b6f92d4] | 315 | -D CMAKE_BUILD_TYPE=Release \
|
---|
[792dbe76] | 316 | -D BUILD_QT5=OFF \
|
---|
[b6f92d4] | 317 | -D BUILD_TESTING=OFF \
|
---|
| 318 | -W no-dev .. &&
|
---|
[153a5795] | 319 |
|
---|
[69a9de5] | 320 | make
|
---|
| 321 | as_root make install
|
---|
| 322 | popd
|
---|
[153a5795] | 323 |
|
---|
[b44e7de2] | 324 | <!-- some packages end up with files owned by root in $packagedir,
|
---|
[8f445fdc] | 325 | so use as_root for removing -->
|
---|
| 326 | as_root rm -rf $packagedir
|
---|
[69a9de5] | 327 | as_root /sbin/ldconfig
|
---|
| 328 |
|
---|
[6d8eeb9] | 329 | done < plasma-&plasma-version;.md5
|
---|
[153a5795] | 330 |
|
---|
[527f3db] | 331 | exit</userinput></screen>
|
---|
[1c8d0ff] | 332 |
|
---|
[527f3db] | 333 | <para>
|
---|
[6d8eeb9] | 334 | If you did not set <envar>$KF6_PREFIX</envar> to
|
---|
[527f3db] | 335 | <filename>/usr</filename>, create symlinks to allow display managers to
|
---|
[27bda4fc] | 336 | find <application>Plasma</application>, and to allow the XDG Desktop
|
---|
[6d8eeb9] | 337 | Portal to be detected. As the &root; user:
|
---|
[527f3db] | 338 | </para>
|
---|
| 339 |
|
---|
[6d8eeb9] | 340 | <screen><userinput># Setup xsessions (X11 sessions)
|
---|
| 341 | install -dvm 755 /usr/share/xsessions
|
---|
| 342 | cd /usr/share/xsessions
|
---|
| 343 |
|
---|
| 344 | [ -e plasma.desktop ] ||
|
---|
| 345 | ln -sfv $KF6_PREFIX/share/xsessions/plasmax11.desktop
|
---|
| 346 |
|
---|
| 347 | # Setup wayland-sessions
|
---|
| 348 | install -dvm 755 /usr/share/wayland-sessions
|
---|
| 349 | cd /usr/share/wayland-sessions
|
---|
| 350 |
|
---|
| 351 | [ -e plasmawayland.desktop ] ||
|
---|
| 352 | ln -sfv $KF6_PREFIX/share/wayland-sessions/plasma.desktop
|
---|
| 353 | <!-- work around a bug in xdg-desktop-portal-->
|
---|
| 354 | # Setup xdg-desktop-portal
|
---|
| 355 | install -dvm 755 /usr/share/xdg-desktop-portal
|
---|
| 356 | cd /usr/share/xdg-desktop-portal
|
---|
| 357 |
|
---|
| 358 | [ -e kde-portals.conf ] ||
|
---|
| 359 | ln -sfv $KF6_PREFIX/share/xdg-desktop-portal/kde-portals.conf
|
---|
| 360 |
|
---|
[1e4c908f] | 361 | # Setup kde portal
|
---|
[6d8eeb9] | 362 | install -dvm 755 /usr/share/xdg-desktop-portal/portals
|
---|
| 363 | cd /usr/share/xdg-desktop-portal/portals
|
---|
| 364 |
|
---|
| 365 | [ -e kde.portal ] ||
|
---|
| 366 | ln -sfv $KF6_PREFIX/share/xdg-desktop-portal/portals/kde.portal</userinput></screen>
|
---|
[153a5795] | 367 |
|
---|
[2e29bba] | 368 | <para revision="sysv">
|
---|
| 369 | Useless systemd units have been installed in
|
---|
[6d8eeb9] | 370 | <filename class="directory">$KF6_PREFIX/lib</filename>. Remove
|
---|
[2e29bba] | 371 | them now (as <systemitem class="username">root</systemitem>):
|
---|
| 372 | </para>
|
---|
| 373 |
|
---|
| 374 | <screen role="root"
|
---|
[6d8eeb9] | 375 | revision="sysv"><userinput>rm -rf $KF6_PREFIX/lib/systemd</userinput></screen>
|
---|
[2e29bba] | 376 |
|
---|
[153a5795] | 377 | </sect2>
|
---|
[5ac58b54] | 378 | <!--
|
---|
[153a5795] | 379 | <sect2 role="commands">
|
---|
| 380 | <title>Command Explanations</title>
|
---|
| 381 |
|
---|
| 382 | <para>
|
---|
[1c8d0ff] | 383 | <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
|
---|
| 384 | Create symbolic links so qml files can find needed javascript modules.
|
---|
[153a5795] | 385 | </para>
|
---|
| 386 |
|
---|
| 387 | </sect2>
|
---|
[5ac58b54] | 388 | -->
|
---|
[3b0f105] | 389 | <sect2 role="configuration">
|
---|
| 390 | <title>Configuring Plasma</title>
|
---|
| 391 |
|
---|
| 392 | <sect3>
|
---|
| 393 | <title>Linux PAM Configuration</title>
|
---|
| 394 |
|
---|
| 395 | <para>
|
---|
| 396 | If you built Plasma with the recommended <application>Linux
|
---|
| 397 | PAM</application> support, create necessary configuration files by
|
---|
| 398 | running the following commands as the <systemitem
|
---|
| 399 | class="username">root</systemitem> user:
|
---|
| 400 | </para>
|
---|
| 401 |
|
---|
[8558044] | 402 | <screen role="root"><userinput>cat > /etc/pam.d/kde << "EOF"
|
---|
[51dfb3e] | 403 | <literal># Begin /etc/pam.d/kde
|
---|
[3b0f105] | 404 |
|
---|
| 405 | auth requisite pam_nologin.so
|
---|
| 406 | auth required pam_env.so
|
---|
| 407 |
|
---|
| 408 | auth required pam_succeed_if.so uid >= 1000 quiet
|
---|
| 409 | auth include system-auth
|
---|
| 410 |
|
---|
| 411 | account include system-account
|
---|
| 412 | password include system-password
|
---|
| 413 | session include system-session
|
---|
| 414 |
|
---|
[51dfb3e] | 415 | # End /etc/pam.d/kde</literal>
|
---|
[3b0f105] | 416 | EOF
|
---|
| 417 |
|
---|
[8558044] | 418 | cat > /etc/pam.d/kde-np << "EOF"
|
---|
[51dfb3e] | 419 | <literal># Begin /etc/pam.d/kde-np
|
---|
[3b0f105] | 420 |
|
---|
| 421 | auth requisite pam_nologin.so
|
---|
| 422 | auth required pam_env.so
|
---|
| 423 |
|
---|
| 424 | auth required pam_succeed_if.so uid >= 1000 quiet
|
---|
| 425 | auth required pam_permit.so
|
---|
| 426 |
|
---|
| 427 | account include system-account
|
---|
| 428 | password include system-password
|
---|
| 429 | session include system-session
|
---|
| 430 |
|
---|
[51dfb3e] | 431 | # End /etc/pam.d/kde-np</literal>
|
---|
[3b0f105] | 432 | EOF
|
---|
| 433 |
|
---|
| 434 | cat > /etc/pam.d/kscreensaver << "EOF"
|
---|
[51dfb3e] | 435 | <literal># Begin /etc/pam.d/kscreensaver
|
---|
[3b0f105] | 436 |
|
---|
| 437 | auth include system-auth
|
---|
| 438 | account include system-account
|
---|
| 439 |
|
---|
[51dfb3e] | 440 | # End /etc/pam.d/kscreensaver</literal>
|
---|
[3b0f105] | 441 | EOF</userinput></screen>
|
---|
| 442 | </sect3>
|
---|
| 443 | </sect2>
|
---|
| 444 |
|
---|
[1c8d0ff] | 445 | <sect2 role="starting">
|
---|
[6d8eeb9] | 446 | <title>Starting Plasma</title>
|
---|
[1c8d0ff] | 447 |
|
---|
[3f460da0] | 448 | <para revision="sysv">
|
---|
[6d8eeb9] | 449 | You can start <application>Plasma</application> from runlevel 3, using
|
---|
[1c8d0ff] | 450 | <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
|
---|
[c225bfa] | 451 | such as <xref linkend="lightdm"/>.
|
---|
[1c8d0ff] | 452 | </para>
|
---|
| 453 |
|
---|
[3f460da0] | 454 | <para revision="systemd">
|
---|
[6d8eeb9] | 455 | You can start <application>Plasma</application> from a TTY, using
|
---|
[fd42347a] | 456 | <xref linkend="xinit"/><!--, or from a graphical display manager, such as
|
---|
| 457 | <xref linkend="sddm"/>-->.
|
---|
[3f460da0] | 458 | </para>
|
---|
| 459 |
|
---|
[1c8d0ff] | 460 | <para>
|
---|
[6d8eeb9] | 461 | To start <application>Plasma</application> using <xref linkend="xinit"/>,
|
---|
[1c8d0ff] | 462 | run the following commands:
|
---|
| 463 | </para>
|
---|
| 464 |
|
---|
[665150a] | 465 | <screen role="nodump"><userinput>cat > ~/.xinitrc << "EOF"
|
---|
[6d8eeb9] | 466 | <literal>dbus-launch --exit-with-x11 $KF6_PREFIX/bin/startplasma-x11</literal>
|
---|
[3f460da0] | 467 | EOF
|
---|
| 468 |
|
---|
[1c8d0ff] | 469 | startx</userinput></screen>
|
---|
| 470 |
|
---|
| 471 | <para>
|
---|
| 472 | The X session starts on the first unused virtual terminal, normally vt7.
|
---|
| 473 | You can switch to another vt<emphasis>n</emphasis> simultaneously
|
---|
| 474 | pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
|
---|
| 475 | (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
|
---|
| 476 | normally started at vt7, use Ctrl-Alt-F7. The vt where the command
|
---|
| 477 | <command>startx</command> was executed will display many messages,
|
---|
| 478 | including X starting messages, applications automatically started with
|
---|
| 479 | the session, and eventually, some warning and error messages. You may
|
---|
| 480 | prefer to redirect those messages to a log file, which not only will keep
|
---|
| 481 | the initial vt uncluttered, but can also be used for debugging purposes. This
|
---|
| 482 | can be done starting X with:
|
---|
| 483 | </para>
|
---|
| 484 |
|
---|
[665150a] | 485 | <screen role="nodump"><userinput>startx &> ~/x-session-errors</userinput></screen>
|
---|
[1c8d0ff] | 486 |
|
---|
| 487 | <para>
|
---|
| 488 | When shutting down or rebooting, the shutdown messages appear on the vt
|
---|
| 489 | where X was running. If you wish to see those messages, simultaneously
|
---|
| 490 | press keys Alt-F7 (assuming that X was running on vt7).
|
---|
| 491 | </para>
|
---|
[6d8eeb9] | 492 | <!-- Start plasma wayland with
|
---|
| 493 |
|
---|
| 494 | /opt/kf6/lib/libexec/plasma-dbus-run-session-if-needed /opt/kf6/bin/startplasma-wayland
|
---|
| 495 |
|
---|
| 496 | Investigate why it's in /opt/kf6/lib/libexec and not just in /opt/kf6/libexec
|
---|
| 497 |
|
---|
| 498 |
|
---|
| 499 | Now the entry is "plasma (X11)" for Xorg, so I guess this is
|
---|
[7a763b49] | 500 | not needed anymore:
|
---|
[1c8c15c] | 501 | <para>
|
---|
| 502 | If you intend to start <application>Plasma</application> using a
|
---|
[c225bfa] | 503 | display manager such as <xref linkend="lightdm"/>, there will be two entries
|
---|
[f29eb8a] | 504 | for <application>Plasma</application>, one for use with
|
---|
| 505 | <application>Xorg</application>, and another for
|
---|
| 506 | <application>Wayland</application>. Modify the
|
---|
| 507 | <application>Xorg</application> entry with the following command, as the
|
---|
| 508 | <systemitem class="username">root</systemitem> user, so that you can
|
---|
| 509 | differentiate between the two:</para>
|
---|
| 510 |
|
---|
[33c8b427] | 511 | <screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
|
---|
[7a763b49] | 512 | -->
|
---|
[f29eb8a] | 513 |
|
---|
[1c8d0ff] | 514 | </sect2>
|
---|
| 515 |
|
---|
[153a5795] | 516 | <sect2 role="content">
|
---|
| 517 | <title>Contents</title>
|
---|
| 518 |
|
---|
| 519 | <segmentedlist>
|
---|
| 520 | <segtitle>Installed Programs</segtitle>
|
---|
| 521 | <segtitle>Installed Libraries</segtitle>
|
---|
| 522 | <segtitle>Installed Directories</segtitle>
|
---|
| 523 |
|
---|
| 524 | <seglistitem>
|
---|
| 525 | <seg>
|
---|
[6d8eeb9] | 526 | There are too many plasma programs (over 50 in /opt/kf6/bin) to list
|
---|
[83ef2a4] | 527 | separately here.
|
---|
[153a5795] | 528 | </seg>
|
---|
| 529 | <seg>
|
---|
[6d8eeb9] | 530 | There are too many plasma libraries (over 250 in /opt/kf6/lib) to list
|
---|
[83ef2a4] | 531 | separately here.
|
---|
[153a5795] | 532 | </seg>
|
---|
| 533 | <seg>
|
---|
[6d8eeb9] | 534 | There are too many plasma directories (over 2700 in /opt/kf6) to
|
---|
[83ef2a4] | 535 | list separately here.
|
---|
[153a5795] | 536 | </seg>
|
---|
| 537 | </seglistitem>
|
---|
| 538 | </segmentedlist>
|
---|
| 539 |
|
---|
| 540 | </sect2>
|
---|
| 541 |
|
---|
| 542 | </sect1>
|
---|