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