[153a5795] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 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">
|
---|
[efa7f6a] | 10 | <!ENTITY plasma5-size "258 MB">
|
---|
[3ccb3a5] | 11 | <!ENTITY plasma5-buildsize "1.7 GB (419 MB installed)">
|
---|
[9a22621] | 12 | <!ENTITY plasma5-time "19 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">
|
---|
[f3429309] | 75 | <xref linkend="gtk2"/>,
|
---|
| 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"/>,
|
---|
[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="libdbusmenu-qt"/>,
|
---|
| 97 | <xref linkend="libcanberra"/>,
|
---|
| 98 | <xref linkend="libinput"/>,
|
---|
[64ae3fb] | 99 | <xref linkend="libpcap"/>,
|
---|
[0779b94] | 100 | <xref linkend="linux-pam"/>,
|
---|
[f3429309] | 101 | <xref linkend="lm_sensors"/>,
|
---|
[88bb10f] | 102 | <xref linkend="oxygen-icons5"/>, and
|
---|
[0779b94] | 103 | <xref linkend="pciutils"/>
|
---|
[153a5795] | 104 | </para>
|
---|
| 105 |
|
---|
[b359b3e0] | 106 | <bridgehead renderas="sect4">Recommended (runtime)</bridgehead>
|
---|
| 107 | <para role="recommended">
|
---|
[f3a27771] | 108 | <xref role="runtime" linkend="accountsservice"/>,
|
---|
| 109 | <xref role="runtime" linkend="smartmontools"/>, and
|
---|
| 110 | <xref role="runtime" linkend="xwayland"/>
|
---|
[b359b3e0] | 111 | </para>
|
---|
| 112 |
|
---|
[0779b94] | 113 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[153a5795] | 114 | <para role="optional">
|
---|
[0779b94] | 115 | <xref linkend="glu"/>,
|
---|
[7b1bc743] | 116 | <xref linkend='ibus'/>,
|
---|
[64ae3fb] | 117 | <xref linkend='qtwebengine'/>,
|
---|
[0779b94] | 118 | <xref linkend="xorg-synaptics-driver"/>,
|
---|
[75b1a338] | 119 | <ulink url="https://distributions.freedesktop.org/wiki/AppStream">appstream-qt</ulink>,
|
---|
[ce228c2] | 120 | <ulink url="https://www.kdevelop.org/">KDevPlatform</ulink>,
|
---|
[3d9b01d] | 121 | <ulink url="https://gpsd.gitlab.io/gpsd/">libgps</ulink>,
|
---|
[0779b94] | 122 | <ulink url="https://github.com/libhybris/libhybris">libhybris</ulink>,
|
---|
[c6b192c] | 123 | <ulink url="https://sourceforge.net/projects/libraw1394/">libraw1394</ulink>,
|
---|
[0779b94] | 124 | <ulink url="https://bitbucket.org/godsme/mockcpp">mockcpp</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,
|
---|
[ab39028] | 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 |
|
---|
[42ddc30] | 142 | <para condition="html" role="usernotes">Editor Notes:
|
---|
[153a5795] | 143 | <ulink url="&blfs-wiki;/kf5"/></para>
|
---|
| 144 |
|
---|
| 145 | <sect2>
|
---|
[773b316] | 146 | <title>Downloading KDE Plasma5</title>
|
---|
[153a5795] | 147 |
|
---|
| 148 | <para>
|
---|
| 149 | The easiest way to get the KDE Plasma5 packages is to use a single
|
---|
| 150 | <command>wget</command> to fetch them all at once:
|
---|
| 151 | </para>
|
---|
[f3429309] | 152 |
|
---|
[c6b192c] | 153 | <screen><userinput>url=https://download.kde.org/stable/plasma/&plasma5-version;/
|
---|
[a01d308] | 154 | wget -r -nH -nd -A '*.xz' -np $url</userinput>
|
---|
[153a5795] | 155 | <literal>
|
---|
[f3429309] | 156 | The options used here are:
|
---|
[153a5795] | 157 | -r recurse through child directories
|
---|
| 158 | -nH disable generation of host-prefixed directories
|
---|
[a01d308] | 159 | -nd do not create a hierarchy of directories
|
---|
[153a5795] | 160 | -A '*.xz' just get the *.xz files
|
---|
[10a9447] | 161 | -np don't get parent directories</literal></screen>
|
---|
[153a5795] | 162 |
|
---|
| 163 | </sect2>
|
---|
| 164 |
|
---|
| 165 | <sect2>
|
---|
| 166 | <title>Setting Package Order</title>
|
---|
| 167 |
|
---|
| 168 | <para>
|
---|
| 169 | The order of building files is important due to internal dependencies.
|
---|
| 170 | Create the list of files in the proper order as follows:
|
---|
| 171 | </para>
|
---|
| 172 |
|
---|
[ed4a7a2] | 173 | <screen><userinput>cat > plasma-&plasma5-version;.md5 << "EOF"
|
---|
[efa7f6a] | 174 | <literal>f8e36636128efc0172b0664df372f350 kdecoration-5.27.7.tar.xz
|
---|
| 175 | 0f40e7e4ef0675cf06afc828c6056821 libkscreen-5.27.7.tar.xz
|
---|
| 176 | fdbbd274867d8013631eb66f889da983 libksysguard-5.27.7.tar.xz
|
---|
| 177 | 6d0358ed7bbb27557c073cfce675120f breeze-5.27.7.tar.xz
|
---|
| 178 | 7dac534103b595e861fb923e0a46af8a breeze-gtk-5.27.7.tar.xz
|
---|
| 179 | 27839d93e7bf42bd8e6e9d822572a3d3 layer-shell-qt-5.27.7.tar.xz
|
---|
| 180 | 56e13a523dc2b27dd2fe7d17cf87c427 kscreenlocker-5.27.7.tar.xz
|
---|
| 181 | 1806b24c107c30a0144be0c58361c391 oxygen-5.27.7.tar.xz
|
---|
| 182 | b3b25a757de32befe4c282ebc9b928c3 kinfocenter-5.27.7.tar.xz
|
---|
| 183 | f992f11ed7704e94809f4a609b444074 kwin-5.27.7.tar.xz
|
---|
| 184 | 5aa3a8e2e8c97b182cb15090f9149831 plasma-workspace-5.27.7.tar.xz
|
---|
| 185 | 2b3c139e30eaaf4cf42706c9e6212ca5 plasma-disks-5.27.7.tar.xz
|
---|
| 186 | a347a0848863114e96ca25868b1d2483 bluedevil-5.27.7.tar.xz
|
---|
| 187 | 77731f7530552c096785e938554c5c0e kde-gtk-config-5.27.7.tar.xz
|
---|
| 188 | 19a17f02655872c827380bd1fc485b50 khotkeys-5.27.7.tar.xz
|
---|
| 189 | 4777cae88cb32e1dc77d6765f3cf17e3 kmenuedit-5.27.7.tar.xz
|
---|
| 190 | a9618c0aa86cf8d0186e146aef644cd7 kscreen-5.27.7.tar.xz
|
---|
| 191 | d75c043ef114b2b590f8ede12bb86a24 kwallet-pam-5.27.7.tar.xz
|
---|
| 192 | 9c4ebb3d608c08c83b87a880b731ef11 kwayland-integration-5.27.7.tar.xz
|
---|
| 193 | 2d04936cfcdb3da0ecab6b9c7f83339e kwrited-5.27.7.tar.xz
|
---|
| 194 | ea10ad5ac86ad2a1f1c0dfdb28918ad8 milou-5.27.7.tar.xz
|
---|
| 195 | 1640a01420f5885d87e55a3fc3ca8410 plasma-nm-5.27.7.tar.xz
|
---|
| 196 | 24cdd5610e2b02c774486cdeaf0074f5 plasma-pa-5.27.7.tar.xz
|
---|
| 197 | 4d941372e2a0ba9fe4a42a668dfd6aeb plasma-workspace-wallpapers-5.27.7.tar.xz
|
---|
| 198 | 003d40545b13d58a2fa024236c92c18f polkit-kde-agent-1-5.27.7.tar.xz
|
---|
| 199 | 2708af1b47a164321111220f3e3fb5f8 powerdevil-5.27.7.tar.xz
|
---|
| 200 | 7f7d2bea26b4d825c9a6e8d57e400a4a plasma-desktop-5.27.7.1.tar.xz
|
---|
| 201 | #b8f2c72d4d0ffd37573c1f949e8604aa plasma-desktop-5.27.7.tar.xz
|
---|
| 202 | f66aefab6b7b3115ead7cf3966d6e2c6 kgamma5-5.27.7.tar.xz
|
---|
| 203 | 614a24e70dfdcbf225047951d1bb35af ksshaskpass-5.27.7.tar.xz
|
---|
| 204 | #8e9460adae337baab8d80da3422f9e34 plasma-sdk-5.27.7.1.tar.xz
|
---|
| 205 | #69bcb008dc0c22bb9dad2f990778b46e plasma-sdk-5.27.7.5.27.7.1.tar.xz
|
---|
| 206 | #cba2b18c587dff393bd232d61a35046d plasma-sdk-5.27.7.tar.xz
|
---|
| 207 | 293fa8cd57834e07c719a055e2b47fbe sddm-kcm-5.27.7.tar.xz
|
---|
| 208 | #7857d8972a9cc45cc3b672a6d5ff2b12 discover-5.27.7.tar.xz
|
---|
| 209 | #9727481d29a7468420cb1a37a0b36e9e breeze-grub-5.27.7.tar.xz
|
---|
| 210 | #157416774eb4bfc57a4e2caf4512f069 breeze-plymouth-5.27.7.tar.xz
|
---|
| 211 | cdda9f9d374615768d8a324dae92ad1d kactivitymanagerd-5.27.7.tar.xz
|
---|
| 212 | 3e8fd694b222d4d6c3d4e2b952099fb0 plasma-integration-5.27.7.tar.xz
|
---|
| 213 | #7bd722f2799f4b1c562be46c5b2d0da1 plymouth-kcm-5.27.7.tar.xz
|
---|
| 214 | 26e40eaf358dc02d71ab5cb511a5b3a8 xdg-desktop-portal-kde-5.27.7.tar.xz
|
---|
| 215 | ce2a9be64095829d124d4f83c14a464c drkonqi-5.27.7.tar.xz
|
---|
| 216 | 410818deea59fc12aa3ed155e350e931 plasma-vault-5.27.7.tar.xz
|
---|
| 217 | 4636852897f802e64501fbae5e3dfb24 plasma-browser-integration-5.27.7.tar.xz
|
---|
| 218 | 3febab89d2fca2e67271d5e35723d7be kde-cli-tools-5.27.7.tar.xz
|
---|
| 219 | 799ec2ab0012e47d2b1660affe5f333e systemsettings-5.27.7.tar.xz
|
---|
| 220 | fa9f2208c27d8a3e99c0cbb113087338 plasma-thunderbolt-5.27.7.tar.xz
|
---|
| 221 | #c4dbf6737cc9d8d3396214d4bed14abf plasma-nano-5.27.7.tar.xz
|
---|
| 222 | #74a1ec9c76b979fb8a3906204c93add4 plasma-mobile-5.27.7.tar.xz
|
---|
| 223 | ca0a794b2d65c9c763d0f932b2bd9c1e plasma-firewall-5.27.7.tar.xz
|
---|
| 224 | 4f3a9803e3741521b1867303b179670a plasma-systemmonitor-5.27.7.tar.xz
|
---|
| 225 | 29fb63dc5c266b3fe0a2e849f1a1db28 qqc2-breeze-style-5.27.7.tar.xz
|
---|
| 226 | 2e3689a958a72aa1a09aa6edf471ce11 ksystemstats-5.27.7.tar.xz
|
---|
| 227 | 08434c4829aefd689c877fe84baa5ad6 oxygen-sounds-5.27.7.tar.xz
|
---|
| 228 | #2b1b01328d062d6d9c3d92daaa26d13c aura-browser-5.27.7.tar.xz
|
---|
| 229 | a32fedd93e3ecef504ea28ec27cbfd55 kdeplasma-addons-5.27.7.tar.xz
|
---|
| 230 | 1d759ab0bb02f630385e4dc267aaef6e kpipewire-5.27.7.tar.xz
|
---|
| 231 | 553afd4e952b601147ca868b7129303d plank-player-5.27.7.tar.xz
|
---|
| 232 | 51ad32e45ad4a0f5291d1a9ce4efa0f2 plasma-bigscreen-5.27.7.tar.xz
|
---|
| 233 | fb25df16ef388f7dbfc163911e7828be plasma-remotecontrollers-5.27.7.tar.xz
|
---|
| 234 | #507a8d13920b160b4683b093e90f6088 flatpak-kcm-5.27.7.tar.xz
|
---|
| 235 | #9eadbc5ec19e2122f81742e0f38941f7 plasma-welcome-5.27.7.tar.xz</literal>
|
---|
[153a5795] | 236 | EOF</userinput></screen>
|
---|
| 237 |
|
---|
[1c8c15c] | 238 | <note>
|
---|
[667ce94b] | 239 | <title>About Commented out Packages</title>
|
---|
[1c8c15c] | 240 | <para>
|
---|
| 241 | The breeze-grub, breeze-plymouth, and plymouth-kcm packages above are
|
---|
| 242 | all for customized support of <ulink
|
---|
| 243 | url="https://www.freedesktop.org/wiki/Software/Plymouth/"
|
---|
| 244 | >Plymouth</ulink>
|
---|
| 245 | which is designed to be run within an initial ram disk during boot (see
|
---|
[7253d73f] | 246 | <xref linkend="initramfs"/>).
|
---|
| 247 | The plasma-sdk package is optional and used for software development.
|
---|
| 248 | The plasma-nano package is used for embedded systems and
|
---|
| 249 | plasma-mobile provides phone functionality for Plasma.
|
---|
| 250 | The aura-browser package requires <xref linkend="qtwebengine"/>.
|
---|
| 251 | The discover package requires the external package
|
---|
| 252 | <ulink url="https://distributions.freedesktop.org/wiki/AppStream">
|
---|
| 253 | appstream-qt</ulink>.
|
---|
| 254 | The plasma-welcome package requires the external package
|
---|
| 255 | <ulink url="https://download.kde.org/stable/release-service/&kf5apps-version;/src/">
|
---|
| 256 | kaccounts-integration</ulink>.
|
---|
| 257 | The flatpack-kcm package is for managing support of flatpack applications.
|
---|
[1c8c15c] | 258 | </para>
|
---|
| 259 | </note>
|
---|
[ce228c2] | 260 |
|
---|
[153a5795] | 261 | </sect2>
|
---|
| 262 |
|
---|
| 263 | <sect2 role="installation">
|
---|
| 264 | <title>Installation of Plasma5</title>
|
---|
| 265 |
|
---|
| 266 | &as_root;
|
---|
| 267 |
|
---|
| 268 | <para>
|
---|
| 269 | First, start a subshell that will exit on error:
|
---|
| 270 | </para>
|
---|
| 271 |
|
---|
| 272 | <screen><userinput>bash -e</userinput></screen>
|
---|
| 273 |
|
---|
| 274 | <para>
|
---|
| 275 | Install all of the packages by running the following
|
---|
| 276 | commands:
|
---|
| 277 | </para>
|
---|
| 278 |
|
---|
| 279 | <screen><userinput>while read -r line; do
|
---|
| 280 |
|
---|
| 281 | # Get the file name, ignoring comments and blank lines
|
---|
| 282 | if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
|
---|
| 283 | file=$(echo $line | cut -d" " -f2)
|
---|
[f3429309] | 284 |
|
---|
[153a5795] | 285 | pkg=$(echo $file|sed 's|^.*/||') # Remove directory
|
---|
| 286 | packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
|
---|
| 287 |
|
---|
| 288 | tar -xf $file
|
---|
| 289 | pushd $packagedir
|
---|
[b359b3e0] | 290 | <!--
|
---|
[4e0a40f] | 291 | # Fix some build issues when generating some configuration files
|
---|
[cfd5cb3] | 292 | case $name in
|
---|
| 293 | plasma-workspace)
|
---|
| 294 | sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 295 | ;;
|
---|
[8558044] | 296 |
|
---|
[cfd5cb3] | 297 | khotkeys)
|
---|
| 298 | sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 299 | ;;
|
---|
[8558044] | 300 |
|
---|
[cfd5cb3] | 301 | plasma-desktop)
|
---|
| 302 | sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 303 | ;;
|
---|
| 304 | esac
|
---|
[b359b3e0] | 305 | -->
|
---|
[69a9de5] | 306 | mkdir build
|
---|
| 307 | cd build
|
---|
[153a5795] | 308 |
|
---|
[1c8d0ff] | 309 | cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
|
---|
| 310 | -DCMAKE_BUILD_TYPE=Release \
|
---|
| 311 | -DBUILD_TESTING=OFF \
|
---|
[69a9de5] | 312 | -Wno-dev .. &&
|
---|
[153a5795] | 313 |
|
---|
[69a9de5] | 314 | make
|
---|
| 315 | as_root make install
|
---|
| 316 | popd
|
---|
[153a5795] | 317 |
|
---|
[b44e7de2] | 318 | <!-- some packages end up with files owned by root in $packagedir,
|
---|
[8f445fdc] | 319 | so use as_root for removing -->
|
---|
| 320 | as_root rm -rf $packagedir
|
---|
[69a9de5] | 321 | as_root /sbin/ldconfig
|
---|
| 322 |
|
---|
[ed4a7a2] | 323 | done < plasma-&plasma5-version;.md5
|
---|
[153a5795] | 324 |
|
---|
[527f3db] | 325 | exit</userinput></screen>
|
---|
[1c8d0ff] | 326 |
|
---|
[527f3db] | 327 | <para>
|
---|
| 328 | If you did not set <envar>$KF5_PREFIX</envar> to
|
---|
| 329 | <filename>/usr</filename>, create symlinks to allow display managers to
|
---|
| 330 | find <application>Plasma</application>:
|
---|
| 331 | </para>
|
---|
| 332 |
|
---|
| 333 | <screen><userinput>as_root install -dvm 755 /usr/share/xsessions &&
|
---|
| 334 | cd /usr/share/xsessions/ &&
|
---|
| 335 | [ -e plasma.desktop ] ||
|
---|
| 336 | as_root ln -sfv $KF5_PREFIX/share/xsessions/plasma.desktop &&
|
---|
| 337 | as_root install -dvm 755 /usr/share/wayland-sessions &&
|
---|
| 338 | cd /usr/share/wayland-sessions/ &&
|
---|
[4969ec3c] | 339 | [ -e plasmawayland.desktop ] ||
|
---|
| 340 | as_root ln -sfv $KF5_PREFIX/share/wayland-sessions/plasmawayland.desktop<!--
|
---|
[1c8d0ff] | 341 | cd $KF5_PREFIX/share/plasma/plasmoids
|
---|
[153a5795] | 342 |
|
---|
[1c8d0ff] | 343 | for j in $(find -name \*.js); do
|
---|
[3d656d7] | 344 | as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
|
---|
[5ac58b54] | 345 | done--></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 |
|
---|
[51dfb3e] | 444 | <screen><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 |
|
---|
[3011abe] | 464 | <screen><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>
|
---|