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