[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 |
|
---|
[c6b192c] | 7 | <!ENTITY plasma5-download-http "https://download.kde.org/stable/plasma/&plasma5-version;">
|
---|
[153a5795] | 8 | <!ENTITY plasma5-download-ftp " ">
|
---|
| 9 | <!ENTITY plasma5-md5sum "See Below">
|
---|
[14e7e0b] | 10 | <!ENTITY plasma5-size "243 MB">
|
---|
[3ccb3a5] | 11 | <!ENTITY plasma5-buildsize "1.7 GB (419 MB installed)">
|
---|
[14e7e0b] | 12 | <!ENTITY plasma5-time "7.6 SBU (using parallelism=4)">
|
---|
[153a5795] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="plasma5-build" xreflabel="Plasma-&plasma5-version;">
|
---|
| 16 | <?dbhtml filename="plasma-all.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>Building Plasma 5</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="plasma5-build">
|
---|
[2630345] | 22 | <primary sortas="a-kde-plasma">KDE Plasma 5</primary>
|
---|
[153a5795] | 23 | </indexterm>
|
---|
| 24 |
|
---|
[1c8c15c] | 25 | <para>
|
---|
| 26 | KDE Plasma 5 is a collection of packages based on top of KDE Frameworks
|
---|
| 27 | 5 and QML. They implement the KDE Display Environment (Plasma 5).
|
---|
| 28 | </para>
|
---|
[366fbbb8] | 29 |
|
---|
[d59b03d2] | 30 | &lfs120_checked;
|
---|
[153a5795] | 31 |
|
---|
[1c8c15c] | 32 | <para>
|
---|
| 33 | The instructions below build all of the Plasma 5 packages in one
|
---|
| 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>
|
---|
| 41 | Download (HTTP): <ulink url="&plasma5-download-http;"/>
|
---|
| 42 | </para>
|
---|
[153a5795] | 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
[1c8c15c] | 45 | <para>
|
---|
| 46 | Download (FTP): <ulink url="&plasma5-download-ftp;"/>
|
---|
| 47 | </para>
|
---|
[153a5795] | 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
[1c8c15c] | 50 | <para>
|
---|
| 51 | Download MD5 sum: &plasma5-md5sum;
|
---|
| 52 | </para>
|
---|
[153a5795] | 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
[1c8c15c] | 55 | <para>
|
---|
| 56 | Download size: &plasma5-size;
|
---|
| 57 | </para>
|
---|
[153a5795] | 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
[1c8c15c] | 60 | <para>
|
---|
| 61 | Estimated disk space required: &plasma5-buildsize;
|
---|
| 62 | </para>
|
---|
[153a5795] | 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
[1c8c15c] | 65 | <para>
|
---|
| 66 | Estimated build time: &plasma5-time;
|
---|
| 67 | </para>
|
---|
[153a5795] | 68 | </listitem>
|
---|
| 69 | </itemizedlist>
|
---|
| 70 |
|
---|
| 71 | <bridgehead renderas="sect3">Plasma 5 Dependencies</bridgehead>
|
---|
| 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"/>,
|
---|
[f97d5f6] | 77 | <xref linkend="kf5-frameworks"/>,
|
---|
[f1b74bf] | 78 | <xref linkend="kuserfeedback"/>,
|
---|
[366fbbb8] | 79 | <xref linkend="libpwquality"/>,
|
---|
[f36ab176] | 80 | <xref linkend="libqalculate"/>,
|
---|
[b785dce2] | 81 | <xref linkend="libxcvt"/>,
|
---|
[1c8d0ff] | 82 | <xref linkend="libxkbcommon"/>,
|
---|
[366fbbb8] | 83 | <xref linkend="mesa"/> built with <xref linkend="wayland"/>,
|
---|
[f3429309] | 84 | <xref linkend="NetworkManager"/>,
|
---|
[1f21b9c] | 85 | <xref linkend="pipewire"/>,
|
---|
[f3429309] | 86 | <xref linkend="pulseaudio"/>,
|
---|
[b7a66395] | 87 | <xref linkend="qca"/>,
|
---|
[95965b6] | 88 | <xref linkend="sassc"/>,
|
---|
[f3429309] | 89 | <xref linkend="taglib"/>, and
|
---|
[1c8d0ff] | 90 | <xref linkend="xcb-util-cursor"/>
|
---|
[153a5795] | 91 | </para>
|
---|
| 92 |
|
---|
| 93 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 94 | <para role="recommended">
|
---|
[72b8751] | 95 | <xref linkend="fftw"/>,
|
---|
| 96 | <xref linkend="gsettings-desktop-schemas"/>,
|
---|
[f3429309] | 97 | <xref linkend="libdbusmenu-qt"/>,
|
---|
| 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>,
|
---|
[c6b192c] | 126 | <ulink url="https://sourceforge.net/projects/libraw1394/">libraw1394</ulink>,
|
---|
[ce228c2] | 127 | <ulink url="https://www.freedesktop.org/software/PackageKit/releases/">packagekit-qt</ulink>,
|
---|
[75b1a338] | 128 | <ulink url="https://qalculate.github.io/">Qalculate</ulink>,
|
---|
[8558044] | 129 | <ulink url="https://launchpad.net/qapt">Qapt</ulink>,
|
---|
[ce228c2] | 130 | <ulink url="https://github.com/osiam/osiam">SCIM</ulink>, and
|
---|
[4c3c7f43] | 131 | <ulink url="http://www.dest-unreach.org/socat/">socat</ulink> (for pam_kwallet)
|
---|
[153a5795] | 132 | </para>
|
---|
| 133 |
|
---|
[64ae3fb] | 134 | <note>
|
---|
| 135 | <para>
|
---|
[7253d73f] | 136 | <xref linkend="qtwebengine"/> is required for aura-browser.
|
---|
| 137 | It is also optional for two other packages:
|
---|
[8558044] | 138 | libksysguard and kdeplasma-addons. If QtWebEngine is installed later,
|
---|
[e440af5] | 139 | only these two packages need to be rebuilt. This allows
|
---|
[64ae3fb] | 140 | a more complete display in the system monitor application.
|
---|
| 141 | </para>
|
---|
| 142 | </note>
|
---|
| 143 |
|
---|
[153a5795] | 144 | <sect2>
|
---|
[773b316] | 145 | <title>Downloading KDE Plasma5</title>
|
---|
[153a5795] | 146 |
|
---|
| 147 | <para>
|
---|
| 148 | The easiest way to get the KDE Plasma5 packages is to use a single
|
---|
| 149 | <command>wget</command> to fetch them all at once:
|
---|
| 150 | </para>
|
---|
[f3429309] | 151 |
|
---|
[c6b192c] | 152 | <screen><userinput>url=https://download.kde.org/stable/plasma/&plasma5-version;/
|
---|
[a01d308] | 153 | wget -r -nH -nd -A '*.xz' -np $url</userinput>
|
---|
[153a5795] | 154 | <literal>
|
---|
[f3429309] | 155 | The options used here are:
|
---|
[153a5795] | 156 | -r recurse through child directories
|
---|
| 157 | -nH disable generation of host-prefixed directories
|
---|
[a01d308] | 158 | -nd do not create a hierarchy of directories
|
---|
[153a5795] | 159 | -A '*.xz' just get the *.xz files
|
---|
[10a9447] | 160 | -np don't get parent directories</literal></screen>
|
---|
[153a5795] | 161 |
|
---|
| 162 | </sect2>
|
---|
| 163 |
|
---|
| 164 | <sect2>
|
---|
| 165 | <title>Setting Package Order</title>
|
---|
| 166 |
|
---|
| 167 | <para>
|
---|
| 168 | The order of building files is important due to internal dependencies.
|
---|
| 169 | Create the list of files in the proper order as follows:
|
---|
| 170 | </para>
|
---|
| 171 |
|
---|
[ed4a7a2] | 172 | <screen><userinput>cat > plasma-&plasma5-version;.md5 << "EOF"
|
---|
[14e7e0b] | 173 | <literal>a1361a811dc93389d0ce771d1ff82c3a kdecoration-5.27.10.tar.xz
|
---|
| 174 | 1f491e823bc83df650d04d5d9948da45 libkscreen-5.27.10.tar.xz
|
---|
| 175 | 571aa0c18a14ee74f3081f96f73a7f9d libksysguard-5.27.10.tar.xz
|
---|
| 176 | 541d1b06db3b707a7a73df1526f37b44 breeze-5.27.10.tar.xz
|
---|
| 177 | 9acdc232ea675b761e7386837f25f420 breeze-gtk-5.27.10.tar.xz
|
---|
| 178 | 54562594af547614648cded522c3e747 layer-shell-qt-5.27.10.tar.xz
|
---|
| 179 | c44cfe3ba7fb03fc30b2ae305f16ed79 kscreenlocker-5.27.10.tar.xz
|
---|
| 180 | 171949dd2dfc3b2325c959389694860a oxygen-5.27.10.tar.xz
|
---|
| 181 | 0ef8d9f18707712fc4bcccf59138f2c7 kinfocenter-5.27.10.tar.xz
|
---|
| 182 | e4e4409af71c4f5a67aa35c04f6b2bc7 kwin-5.27.10.tar.xz
|
---|
| 183 | 5c2ff5158503e983207e700ce513e929 plasma-workspace-5.27.10.tar.xz
|
---|
| 184 | 46001c7671f7ff2f08ca0dd9c3cdbf3f plasma-disks-5.27.10.tar.xz
|
---|
| 185 | 820566ae6effedbdd208a78e0031bf67 bluedevil-5.27.10.tar.xz
|
---|
| 186 | 490bd81c915f332b65631b87b6eaa49d kde-gtk-config-5.27.10.tar.xz
|
---|
| 187 | 7cade9cfce3ef14f14f55cd7a50fd7cf khotkeys-5.27.10.tar.xz
|
---|
| 188 | e98c999e6ee7f9bbe775d4e512368420 kmenuedit-5.27.10.tar.xz
|
---|
| 189 | 24bc4ed3ad5587bd05591aafd758df2c kscreen-5.27.10.tar.xz
|
---|
| 190 | 3ab1c88cf91f0fb46ae3395d57709e12 kwallet-pam-5.27.10.tar.xz
|
---|
| 191 | 53d59d76b3dfac5f755d607798b08f85 kwayland-integration-5.27.10.tar.xz
|
---|
| 192 | d7a9f2999352e91d504d52ad65336d9b kwrited-5.27.10.tar.xz
|
---|
| 193 | 8a51e19d58acebb89a919b7377d8bc83 milou-5.27.10.tar.xz
|
---|
| 194 | 0e11c62c2a23d161b5b8cbe6e87517bc plasma-nm-5.27.10.tar.xz
|
---|
| 195 | 02657d8fd46384f75ffe9c504f7c97b4 plasma-pa-5.27.10.tar.xz
|
---|
| 196 | 5c1cbd459e786deb16d5615748114bfa plasma-workspace-wallpapers-5.27.10.tar.xz
|
---|
| 197 | 17302ca60f68e13e85bc24a4ec873622 polkit-kde-agent-1-5.27.10.tar.xz
|
---|
| 198 | cc39dc5777614bd89ae96d38008dc7c9 powerdevil-5.27.10.tar.xz
|
---|
| 199 | 2417bb974152d4f2274ebe3b7b524ca8 plasma-desktop-5.27.10.tar.xz
|
---|
| 200 | f51521902f0665349c0fa012590a1eec kgamma-5.27.10.tar.xz
|
---|
| 201 | e95d6813c180b078be4bf40550791e26 ksshaskpass-5.27.10.tar.xz
|
---|
| 202 | #8c52fad441ffe43969458ae71b6a2f26 plasma-sdk-5.27.10.tar.xz
|
---|
| 203 | 1af573d08dd99879f27c5a2b55b02bc9 sddm-kcm-5.27.10.tar.xz
|
---|
| 204 | #560ac5c60112e18bb44c46eec3563d7d discover-5.27.10.tar.xz
|
---|
| 205 | #2cd0a4e1e3e89197e18f48d893c0f2d6 breeze-grub-5.27.10.tar.xz
|
---|
| 206 | #fe7bb4efec17206a9faceb9cfe35fbf5 breeze-plymouth-5.27.10.tar.xz
|
---|
| 207 | 5bbb5c7a2985f8d7b8816a35d517d333 kactivitymanagerd-5.27.10.tar.xz
|
---|
| 208 | c1810c7d54842028fb5968097add5538 plasma-integration-5.27.10.tar.xz
|
---|
| 209 | #75bedf5da4b7497a18238011d12bec26 plymouth-kcm-5.27.10.tar.xz
|
---|
| 210 | 440dd7cb1f43d7d86862a1165b48c4f2 xdg-desktop-portal-kde-5.27.10.tar.xz
|
---|
| 211 | 657984f8356578253e1911c8d35041f6 drkonqi-5.27.10.tar.xz
|
---|
| 212 | 912db896afe71a8283e36037b4bba79e plasma-vault-5.27.10.tar.xz
|
---|
| 213 | e03d33ca8a9905df3c2901cef5512a14 plasma-browser-integration-5.27.10.tar.xz
|
---|
| 214 | 30797f3809675e61542518f9b15be2c3 kde-cli-tools-5.27.10.tar.xz
|
---|
| 215 | 1319f82a4043456a4cb99cfcc2ba90fe systemsettings-5.27.10.tar.xz
|
---|
| 216 | 2861104cf1e31393d9cd87701042d3aa plasma-thunderbolt-5.27.10.tar.xz
|
---|
| 217 | #79ffc86387c7024bd834b349fba9b79f plasma-nano-5.27.10.tar.xz
|
---|
| 218 | #802d5a3cd34f5ec3825c21905f0ed9db plasma-mobile-5.27.10.tar.xz
|
---|
| 219 | 1f4875f2cf9c0d949961aa9ad6635e6f plasma-firewall-5.27.10.tar.xz
|
---|
| 220 | b6648b45d9824b565dda1f100e7d83a6 plasma-systemmonitor-5.27.10.tar.xz
|
---|
| 221 | 8e46e5afde739a6361b1838f71eb182d qqc2-breeze-style-5.27.10.tar.xz
|
---|
| 222 | fd93592f9895c5c09f4c0db771c1710a ksystemstats-5.27.10.tar.xz
|
---|
| 223 | 4f55bb4490751abb23046165d68e8ca7 oxygen-sounds-5.27.10.tar.xz
|
---|
| 224 | #6300c88c07debeb60760dede52a791ee aura-browser-5.27.10.tar.xz
|
---|
| 225 | 00afc45528267a5e2ec11b47b8a7779b kdeplasma-addons-5.27.10.tar.xz
|
---|
| 226 | 7f432fbb0d205d6e30714e731f91a459 kpipewire-5.27.10.tar.xz
|
---|
| 227 | 5f37a2e3acf00a0616e13d86ed225d7f plank-player-5.27.10.tar.xz
|
---|
| 228 | f3a08cefe61643273a9e06cfd6b2746a plasma-bigscreen-5.27.10.tar.xz
|
---|
| 229 | a69142a27ab62c583fa5d4d4577427ff plasma-remotecontrollers-5.27.10.tar.xz
|
---|
| 230 | #16e67ca215d44ec59130214ca6e13e80 flatpak-kcm-5.27.10.tar.xz
|
---|
| 231 | #4ef3e1d988e5edfa8ee20f9373a82680 plasma-welcome-5.27.10.tar.xz</literal>
|
---|
[153a5795] | 232 | EOF</userinput></screen>
|
---|
| 233 |
|
---|
[1c8c15c] | 234 | <note>
|
---|
[667ce94b] | 235 | <title>About Commented out Packages</title>
|
---|
[1c8c15c] | 236 | <para>
|
---|
| 237 | The breeze-grub, breeze-plymouth, and plymouth-kcm packages above are
|
---|
| 238 | all for customized support of <ulink
|
---|
| 239 | url="https://www.freedesktop.org/wiki/Software/Plymouth/"
|
---|
| 240 | >Plymouth</ulink>
|
---|
| 241 | which is designed to be run within an initial ram disk during boot (see
|
---|
[e440af5] | 242 | <xref linkend="initramfs"/>).
|
---|
| 243 | The plasma-sdk package is optional and used for software development.
|
---|
| 244 | The plasma-nano package is used for embedded systems and
|
---|
| 245 | plasma-mobile provides phone functionality for Plasma.
|
---|
[7253d73f] | 246 | The aura-browser package requires <xref linkend="qtwebengine"/>.
|
---|
[fa559f1] | 247 | The discover package requires <xref linkend="appstream"/> to be built
|
---|
| 248 | with the -Dqt=true switch.
|
---|
[7253d73f] | 249 | The plasma-welcome package requires the external package
|
---|
| 250 | <ulink url="https://download.kde.org/stable/release-service/&kf5apps-version;/src/">
|
---|
| 251 | kaccounts-integration</ulink>.
|
---|
| 252 | The flatpack-kcm package is for managing support of flatpack applications.
|
---|
[1c8c15c] | 253 | </para>
|
---|
| 254 | </note>
|
---|
[ce228c2] | 255 |
|
---|
[153a5795] | 256 | </sect2>
|
---|
| 257 |
|
---|
| 258 | <sect2 role="installation">
|
---|
| 259 | <title>Installation of Plasma5</title>
|
---|
| 260 |
|
---|
| 261 | &as_root;
|
---|
| 262 |
|
---|
| 263 | <para>
|
---|
| 264 | First, start a subshell that will exit on error:
|
---|
| 265 | </para>
|
---|
| 266 |
|
---|
| 267 | <screen><userinput>bash -e</userinput></screen>
|
---|
| 268 |
|
---|
| 269 | <para>
|
---|
| 270 | Install all of the packages by running the following
|
---|
| 271 | commands:
|
---|
| 272 | </para>
|
---|
| 273 |
|
---|
| 274 | <screen><userinput>while read -r line; do
|
---|
| 275 |
|
---|
| 276 | # Get the file name, ignoring comments and blank lines
|
---|
| 277 | if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
|
---|
| 278 | file=$(echo $line | cut -d" " -f2)
|
---|
[f3429309] | 279 |
|
---|
[153a5795] | 280 | pkg=$(echo $file|sed 's|^.*/||') # Remove directory
|
---|
| 281 | packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
|
---|
| 282 |
|
---|
| 283 | tar -xf $file
|
---|
| 284 | pushd $packagedir
|
---|
[b359b3e0] | 285 | <!--
|
---|
[4e0a40f] | 286 | # Fix some build issues when generating some configuration files
|
---|
[cfd5cb3] | 287 | case $name in
|
---|
| 288 | plasma-workspace)
|
---|
| 289 | sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 290 | ;;
|
---|
[8558044] | 291 |
|
---|
[cfd5cb3] | 292 | khotkeys)
|
---|
| 293 | sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 294 | ;;
|
---|
[8558044] | 295 |
|
---|
[cfd5cb3] | 296 | plasma-desktop)
|
---|
| 297 | sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 298 | ;;
|
---|
| 299 | esac
|
---|
[b359b3e0] | 300 | -->
|
---|
[69a9de5] | 301 | mkdir build
|
---|
| 302 | cd build
|
---|
[153a5795] | 303 |
|
---|
[1c8d0ff] | 304 | cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
|
---|
| 305 | -DCMAKE_BUILD_TYPE=Release \
|
---|
| 306 | -DBUILD_TESTING=OFF \
|
---|
[69a9de5] | 307 | -Wno-dev .. &&
|
---|
[153a5795] | 308 |
|
---|
[69a9de5] | 309 | make
|
---|
| 310 | as_root make install
|
---|
| 311 | popd
|
---|
[153a5795] | 312 |
|
---|
[b44e7de2] | 313 | <!-- some packages end up with files owned by root in $packagedir,
|
---|
[8f445fdc] | 314 | so use as_root for removing -->
|
---|
| 315 | as_root rm -rf $packagedir
|
---|
[69a9de5] | 316 | as_root /sbin/ldconfig
|
---|
| 317 |
|
---|
[ed4a7a2] | 318 | done < plasma-&plasma5-version;.md5
|
---|
[153a5795] | 319 |
|
---|
[527f3db] | 320 | exit</userinput></screen>
|
---|
[1c8d0ff] | 321 |
|
---|
[527f3db] | 322 | <para>
|
---|
| 323 | If you did not set <envar>$KF5_PREFIX</envar> to
|
---|
| 324 | <filename>/usr</filename>, create symlinks to allow display managers to
|
---|
| 325 | find <application>Plasma</application>:
|
---|
| 326 | </para>
|
---|
| 327 |
|
---|
| 328 | <screen><userinput>as_root install -dvm 755 /usr/share/xsessions &&
|
---|
| 329 | cd /usr/share/xsessions/ &&
|
---|
| 330 | [ -e plasma.desktop ] ||
|
---|
| 331 | as_root ln -sfv $KF5_PREFIX/share/xsessions/plasma.desktop &&
|
---|
| 332 | as_root install -dvm 755 /usr/share/wayland-sessions &&
|
---|
| 333 | cd /usr/share/wayland-sessions/ &&
|
---|
[4969ec3c] | 334 | [ -e plasmawayland.desktop ] ||
|
---|
[21a55df0] | 335 | as_root ln -sfv $KF5_PREFIX/share/wayland-sessions/plasmawayland.desktop
|
---|
| 336 | <!-- work around a bug in xdg-desktop-portal
|
---|
| 337 | -->as_root install -dvm 755 /usr/share/xdg-desktop-portal &&
|
---|
| 338 | cd /usr/share/xdg-desktop-portal/ &&
|
---|
| 339 | [ -e kde-portals.conf ] ||
|
---|
| 340 | as_root ln -sfv $KF5_PREFIX/share/xdg-desktop-portal/kde-portals.conf
|
---|
| 341 | as_root install -dvm 755 /usr/share/xdg-desktop-portal/portals &&
|
---|
| 342 | cd /usr/share/xdg-desktop-portal/portals &&
|
---|
| 343 | [ -e kde.portal ] ||
|
---|
| 344 | as_root ln -sfv $KF5_PREFIX/share/xdg-desktop-portal/portals/kde.portal
|
---|
| 345 | </userinput></screen>
|
---|
[153a5795] | 346 |
|
---|
[2e29bba] | 347 | <para revision="sysv">
|
---|
| 348 | Useless systemd units have been installed in
|
---|
| 349 | <filename class="directory">$KF5_PREFIX/lib</filename>. Remove
|
---|
| 350 | them now (as <systemitem class="username">root</systemitem>):
|
---|
| 351 | </para>
|
---|
| 352 |
|
---|
| 353 | <screen role="root"
|
---|
| 354 | revision="sysv"><userinput>rm -rf $KF5_PREFIX/lib/systemd</userinput></screen>
|
---|
| 355 |
|
---|
[153a5795] | 356 | </sect2>
|
---|
[5ac58b54] | 357 | <!--
|
---|
[153a5795] | 358 | <sect2 role="commands">
|
---|
| 359 | <title>Command Explanations</title>
|
---|
| 360 |
|
---|
| 361 | <para>
|
---|
[1c8d0ff] | 362 | <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
|
---|
| 363 | Create symbolic links so qml files can find needed javascript modules.
|
---|
[153a5795] | 364 | </para>
|
---|
| 365 |
|
---|
| 366 | </sect2>
|
---|
[5ac58b54] | 367 | -->
|
---|
[3b0f105] | 368 | <sect2 role="configuration">
|
---|
| 369 | <title>Configuring Plasma</title>
|
---|
| 370 |
|
---|
| 371 | <sect3>
|
---|
| 372 | <title>Linux PAM Configuration</title>
|
---|
| 373 |
|
---|
| 374 | <para>
|
---|
| 375 | If you built Plasma with the recommended <application>Linux
|
---|
| 376 | PAM</application> support, create necessary configuration files by
|
---|
| 377 | running the following commands as the <systemitem
|
---|
| 378 | class="username">root</systemitem> user:
|
---|
| 379 | </para>
|
---|
| 380 |
|
---|
[8558044] | 381 | <screen role="root"><userinput>cat > /etc/pam.d/kde << "EOF"
|
---|
[51dfb3e] | 382 | <literal># Begin /etc/pam.d/kde
|
---|
[3b0f105] | 383 |
|
---|
| 384 | auth requisite pam_nologin.so
|
---|
| 385 | auth required pam_env.so
|
---|
| 386 |
|
---|
| 387 | auth required pam_succeed_if.so uid >= 1000 quiet
|
---|
| 388 | auth include system-auth
|
---|
| 389 |
|
---|
| 390 | account include system-account
|
---|
| 391 | password include system-password
|
---|
| 392 | session include system-session
|
---|
| 393 |
|
---|
[51dfb3e] | 394 | # End /etc/pam.d/kde</literal>
|
---|
[3b0f105] | 395 | EOF
|
---|
| 396 |
|
---|
[8558044] | 397 | cat > /etc/pam.d/kde-np << "EOF"
|
---|
[51dfb3e] | 398 | <literal># Begin /etc/pam.d/kde-np
|
---|
[3b0f105] | 399 |
|
---|
| 400 | auth requisite pam_nologin.so
|
---|
| 401 | auth required pam_env.so
|
---|
| 402 |
|
---|
| 403 | auth required pam_succeed_if.so uid >= 1000 quiet
|
---|
| 404 | auth required pam_permit.so
|
---|
| 405 |
|
---|
| 406 | account include system-account
|
---|
| 407 | password include system-password
|
---|
| 408 | session include system-session
|
---|
| 409 |
|
---|
[51dfb3e] | 410 | # End /etc/pam.d/kde-np</literal>
|
---|
[3b0f105] | 411 | EOF
|
---|
| 412 |
|
---|
| 413 | cat > /etc/pam.d/kscreensaver << "EOF"
|
---|
[51dfb3e] | 414 | <literal># Begin /etc/pam.d/kscreensaver
|
---|
[3b0f105] | 415 |
|
---|
| 416 | auth include system-auth
|
---|
| 417 | account include system-account
|
---|
| 418 |
|
---|
[51dfb3e] | 419 | # End /etc/pam.d/kscreensaver</literal>
|
---|
[3b0f105] | 420 | EOF</userinput></screen>
|
---|
| 421 | </sect3>
|
---|
| 422 | </sect2>
|
---|
| 423 |
|
---|
[1c8d0ff] | 424 | <sect2 role="starting">
|
---|
| 425 | <title>Starting Plasma5</title>
|
---|
| 426 |
|
---|
[3f460da0] | 427 | <para revision="sysv">
|
---|
[1c8d0ff] | 428 | You can start <application>Plasma5</application> from runlevel 3, using
|
---|
| 429 | <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
|
---|
[c225bfa] | 430 | such as <xref linkend="lightdm"/>.
|
---|
[1c8d0ff] | 431 | </para>
|
---|
| 432 |
|
---|
[3f460da0] | 433 | <para revision="systemd">
|
---|
| 434 | You can start <application>Plasma5</application> from a TTY, using
|
---|
[fd42347a] | 435 | <xref linkend="xinit"/><!--, or from a graphical display manager, such as
|
---|
| 436 | <xref linkend="sddm"/>-->.
|
---|
[3f460da0] | 437 | </para>
|
---|
| 438 |
|
---|
[1c8d0ff] | 439 | <para>
|
---|
[460cec4b] | 440 | To start <application>Plasma 5</application> using <xref linkend="xinit"/>,
|
---|
[1c8d0ff] | 441 | run the following commands:
|
---|
| 442 | </para>
|
---|
| 443 |
|
---|
[665150a] | 444 | <screen role="nodump"><userinput>cat > ~/.xinitrc << "EOF"
|
---|
[ae20e9a] | 445 | <literal>dbus-launch --exit-with-x11 $KF5_PREFIX/bin/startplasma-x11</literal>
|
---|
[3f460da0] | 446 | EOF
|
---|
| 447 |
|
---|
[1c8d0ff] | 448 | startx</userinput></screen>
|
---|
| 449 |
|
---|
| 450 | <para>
|
---|
| 451 | The X session starts on the first unused virtual terminal, normally vt7.
|
---|
| 452 | You can switch to another vt<emphasis>n</emphasis> simultaneously
|
---|
| 453 | pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
|
---|
| 454 | (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
|
---|
| 455 | normally started at vt7, use Ctrl-Alt-F7. The vt where the command
|
---|
| 456 | <command>startx</command> was executed will display many messages,
|
---|
| 457 | including X starting messages, applications automatically started with
|
---|
| 458 | the session, and eventually, some warning and error messages. You may
|
---|
| 459 | prefer to redirect those messages to a log file, which not only will keep
|
---|
| 460 | the initial vt uncluttered, but can also be used for debugging purposes. This
|
---|
| 461 | can be done starting X with:
|
---|
| 462 | </para>
|
---|
| 463 |
|
---|
[665150a] | 464 | <screen role="nodump"><userinput>startx &> ~/x-session-errors</userinput></screen>
|
---|
[1c8d0ff] | 465 |
|
---|
| 466 | <para>
|
---|
| 467 | When shutting down or rebooting, the shutdown messages appear on the vt
|
---|
| 468 | where X was running. If you wish to see those messages, simultaneously
|
---|
| 469 | press keys Alt-F7 (assuming that X was running on vt7).
|
---|
| 470 | </para>
|
---|
[7a763b49] | 471 | <!-- Now the entry is "plasma (X11)" for Xorg, so I guess this is
|
---|
| 472 | not needed anymore:
|
---|
[1c8c15c] | 473 | <para>
|
---|
| 474 | If you intend to start <application>Plasma</application> using a
|
---|
[c225bfa] | 475 | display manager such as <xref linkend="lightdm"/>, there will be two entries
|
---|
[f29eb8a] | 476 | for <application>Plasma</application>, one for use with
|
---|
| 477 | <application>Xorg</application>, and another for
|
---|
| 478 | <application>Wayland</application>. Modify the
|
---|
| 479 | <application>Xorg</application> entry with the following command, as the
|
---|
| 480 | <systemitem class="username">root</systemitem> user, so that you can
|
---|
| 481 | differentiate between the two:</para>
|
---|
| 482 |
|
---|
[33c8b427] | 483 | <screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
|
---|
[7a763b49] | 484 | -->
|
---|
[f29eb8a] | 485 |
|
---|
[1c8d0ff] | 486 | </sect2>
|
---|
| 487 |
|
---|
[153a5795] | 488 | <sect2 role="content">
|
---|
| 489 | <title>Contents</title>
|
---|
| 490 |
|
---|
| 491 | <segmentedlist>
|
---|
| 492 | <segtitle>Installed Programs</segtitle>
|
---|
| 493 | <segtitle>Installed Libraries</segtitle>
|
---|
| 494 | <segtitle>Installed Directories</segtitle>
|
---|
| 495 |
|
---|
| 496 | <seglistitem>
|
---|
| 497 | <seg>
|
---|
[2e29bba] | 498 | There are too many plasma programs (63 in /opt/kf5/bin) to list
|
---|
[83ef2a4] | 499 | separately here.
|
---|
[153a5795] | 500 | </seg>
|
---|
| 501 | <seg>
|
---|
[b359b3e0] | 502 | There are too many plasma libraries (40 in /opt/kf5/lib) to list
|
---|
[83ef2a4] | 503 | separately here.
|
---|
[153a5795] | 504 | </seg>
|
---|
| 505 | <seg>
|
---|
[83ef2a4] | 506 | There are too many plasma directories (over 1000 in /opt/kf5) to
|
---|
| 507 | list separately here.
|
---|
[153a5795] | 508 | </seg>
|
---|
| 509 | </seglistitem>
|
---|
| 510 | </segmentedlist>
|
---|
| 511 |
|
---|
| 512 | </sect2>
|
---|
| 513 |
|
---|
| 514 | </sect1>
|
---|