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