[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">
|
---|
[dfdd97b] | 10 | <!ENTITY plasma5-size "183 MB">
|
---|
[f36ab176] | 11 | <!ENTITY plasma5-buildsize "1.5 GB (366 MB installed)">
|
---|
[dfdd97b] | 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 | <sect1info>
|
---|
[fda29e4] | 19 | <date>$Date$</date>
|
---|
[153a5795] | 20 | </sect1info>
|
---|
| 21 |
|
---|
| 22 | <title>Building Plasma 5</title>
|
---|
| 23 |
|
---|
| 24 | <indexterm zone="plasma5-build">
|
---|
[2630345] | 25 | <primary sortas="a-kde-plasma">KDE Plasma 5</primary>
|
---|
[153a5795] | 26 | </indexterm>
|
---|
| 27 |
|
---|
[1c8c15c] | 28 | <para>
|
---|
| 29 | KDE Plasma 5 is a collection of packages based on top of KDE Frameworks
|
---|
| 30 | 5 and QML. They implement the KDE Display Environment (Plasma 5).
|
---|
| 31 | </para>
|
---|
[366fbbb8] | 32 |
|
---|
[01de26c] | 33 | &lfs111_checked;
|
---|
[153a5795] | 34 |
|
---|
[1c8c15c] | 35 | <para>
|
---|
| 36 | The instructions below build all of the Plasma 5 packages in one
|
---|
| 37 | step by using a bash script.
|
---|
| 38 | </para>
|
---|
[153a5795] | 39 |
|
---|
| 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
[1c8c15c] | 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&plasma5-download-http;"/>
|
---|
| 45 | </para>
|
---|
[153a5795] | 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
[1c8c15c] | 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url="&plasma5-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
[153a5795] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[1c8c15c] | 53 | <para>
|
---|
| 54 | Download MD5 sum: &plasma5-md5sum;
|
---|
| 55 | </para>
|
---|
[153a5795] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[1c8c15c] | 58 | <para>
|
---|
| 59 | Download size: &plasma5-size;
|
---|
| 60 | </para>
|
---|
[153a5795] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[1c8c15c] | 63 | <para>
|
---|
| 64 | Estimated disk space required: &plasma5-buildsize;
|
---|
| 65 | </para>
|
---|
[153a5795] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[1c8c15c] | 68 | <para>
|
---|
| 69 | Estimated build time: &plasma5-time;
|
---|
| 70 | </para>
|
---|
[153a5795] | 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
| 73 |
|
---|
| 74 | <bridgehead renderas="sect3">Plasma 5 Dependencies</bridgehead>
|
---|
| 75 |
|
---|
| 76 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 77 | <para role="required">
|
---|
[89f706b2] | 78 | <!--<xref linkend="fontforge"/>,-->
|
---|
[41b0fe1] | 79 | <!-- does not seem to be needed as of 5.22.4 <xref linkend="GConf"/>, -->
|
---|
[f3429309] | 80 | <xref linkend="gtk2"/>,
|
---|
| 81 | <xref linkend="gtk3"/>,
|
---|
[f97d5f6] | 82 | <xref linkend="kf5-frameworks"/>,
|
---|
[366fbbb8] | 83 | <xref linkend="libpwquality"/>,
|
---|
[f36ab176] | 84 | <xref linkend="libqalculate"/>,
|
---|
[1c8d0ff] | 85 | <xref linkend="libxkbcommon"/>,
|
---|
[366fbbb8] | 86 | <xref linkend="mesa"/> built with <xref linkend="wayland"/>,
|
---|
[f3429309] | 87 | <xref linkend="NetworkManager"/>,
|
---|
[1f21b9c] | 88 | <xref linkend="pipewire"/>,
|
---|
[f3429309] | 89 | <xref linkend="pulseaudio"/>,
|
---|
[b7a66395] | 90 | <xref linkend="qca"/>,
|
---|
[95965b6] | 91 | <xref linkend="sassc"/>,
|
---|
[f3429309] | 92 | <xref linkend="taglib"/>, and
|
---|
[1c8d0ff] | 93 | <xref linkend="xcb-util-cursor"/>
|
---|
[153a5795] | 94 | </para>
|
---|
| 95 |
|
---|
| 96 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 97 | <para role="recommended">
|
---|
[72b8751] | 98 | <xref linkend="fftw"/>,
|
---|
| 99 | <xref linkend="gsettings-desktop-schemas"/>,
|
---|
[f3429309] | 100 | <xref linkend="libdbusmenu-qt"/>,
|
---|
| 101 | <xref linkend="libcanberra"/>,
|
---|
| 102 | <xref linkend="libinput"/>,
|
---|
[64ae3fb] | 103 | <xref linkend="libpcap"/>,
|
---|
[0779b94] | 104 | <xref linkend="linux-pam"/>,
|
---|
[f3429309] | 105 | <xref linkend="lm_sensors"/>,
|
---|
[88bb10f] | 106 | <xref linkend="oxygen-icons5"/>, and
|
---|
[0779b94] | 107 | <xref linkend="pciutils"/>
|
---|
[153a5795] | 108 | </para>
|
---|
| 109 |
|
---|
[b359b3e0] | 110 | <bridgehead renderas="sect4">Recommended (runtime)</bridgehead>
|
---|
| 111 | <para role="recommended">
|
---|
[56c69c1e] | 112 | <xref role="runtime" linkend="accountsservice"/> and
|
---|
[b359b3e0] | 113 | <xref role="runtime" linkend="smartmontools"/>
|
---|
| 114 | </para>
|
---|
| 115 |
|
---|
[0779b94] | 116 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[153a5795] | 117 | <para role="optional">
|
---|
[0779b94] | 118 | <xref linkend="glu"/>,
|
---|
[7b1bc743] | 119 | <xref linkend='ibus'/>,
|
---|
[64ae3fb] | 120 | <xref linkend='qtwebengine'/>,
|
---|
[0779b94] | 121 | <xref linkend="xorg-synaptics-driver"/>,
|
---|
[8558044] | 122 | <ulink url="http://distributions.freedesktop.org/wiki/AppStream">appstream-qt</ulink>,
|
---|
[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>,
|
---|
[0779b94] | 127 | <ulink url="https://bitbucket.org/godsme/mockcpp">mockcpp</ulink>,
|
---|
[ce228c2] | 128 | <ulink url="https://www.freedesktop.org/software/PackageKit/releases/">packagekit-qt</ulink>,
|
---|
[ea529d1] | 129 | <ulink url="http://qalculate.github.io/">Qalculate</ulink>,
|
---|
[8558044] | 130 | <ulink url="https://launchpad.net/qapt">Qapt</ulink>,
|
---|
[ce228c2] | 131 | <ulink url="https://github.com/osiam/osiam">SCIM</ulink>, and
|
---|
[4c3c7f43] | 132 | <ulink url="http://www.dest-unreach.org/socat/">socat</ulink> (for pam_kwallet)
|
---|
[153a5795] | 133 | </para>
|
---|
| 134 |
|
---|
[64ae3fb] | 135 | <note>
|
---|
| 136 | <para>
|
---|
| 137 | Only two plasma packages optionally use <xref linkend="qtwebengine"/>:
|
---|
[8558044] | 138 | libksysguard and kdeplasma-addons. If QtWebEngine is installed later,
|
---|
[64ae3fb] | 139 | only those two packages have to be rebuilt. This allows to provide
|
---|
| 140 | a more complete display in the system monitor application.
|
---|
| 141 | </para>
|
---|
| 142 | </note>
|
---|
| 143 |
|
---|
[153a5795] | 144 | <para condition="html" role="usernotes">User Notes:
|
---|
| 145 | <ulink url="&blfs-wiki;/kf5"/></para>
|
---|
| 146 |
|
---|
| 147 | <sect2>
|
---|
[773b316] | 148 | <title>Downloading KDE Plasma5</title>
|
---|
[153a5795] | 149 |
|
---|
| 150 | <para>
|
---|
| 151 | The easiest way to get the KDE Plasma5 packages is to use a single
|
---|
| 152 | <command>wget</command> to fetch them all at once:
|
---|
| 153 | </para>
|
---|
[f3429309] | 154 |
|
---|
[c6b192c] | 155 | <screen><userinput>url=https://download.kde.org/stable/plasma/&plasma5-version;/
|
---|
[a01d308] | 156 | wget -r -nH -nd -A '*.xz' -np $url</userinput>
|
---|
[153a5795] | 157 | <literal>
|
---|
[f3429309] | 158 | The options used here are:
|
---|
[153a5795] | 159 | -r recurse through child directories
|
---|
| 160 | -nH disable generation of host-prefixed directories
|
---|
[a01d308] | 161 | -nd do not create a hierarchy of directories
|
---|
[153a5795] | 162 | -A '*.xz' just get the *.xz files
|
---|
[10a9447] | 163 | -np don't get parent directories</literal></screen>
|
---|
[153a5795] | 164 |
|
---|
| 165 | </sect2>
|
---|
| 166 |
|
---|
| 167 | <sect2>
|
---|
| 168 | <title>Setting Package Order</title>
|
---|
| 169 |
|
---|
| 170 | <para>
|
---|
| 171 | The order of building files is important due to internal dependencies.
|
---|
| 172 | Create the list of files in the proper order as follows:
|
---|
| 173 | </para>
|
---|
| 174 |
|
---|
[ed4a7a2] | 175 | <screen><userinput>cat > plasma-&plasma5-version;.md5 << "EOF"
|
---|
[f36ab176] | 176 | <literal>d5a143b93d183e46d2d9eecb65ca32d6 kdecoration-5.24.0.tar.xz
|
---|
| 177 | 25328009546df7703a45a51c27befc76 libkscreen-5.24.0.tar.xz
|
---|
| 178 | 3869c4c0c3acc7fcb2a210aac6480249 libksysguard-5.24.0.tar.xz
|
---|
| 179 | 3065e58dd9832b419e68b38921a97c24 breeze-5.24.0.tar.xz
|
---|
| 180 | 6fad933f0ee6f852ae58d906444b9595 breeze-gtk-5.24.0.tar.xz
|
---|
| 181 | 7eae43606459dd0a288d5c081d9a6a2a layer-shell-qt-5.24.0.tar.xz
|
---|
| 182 | 127f90c5e77d404949446813baf7d61a kscreenlocker-5.24.0.tar.xz
|
---|
| 183 | 626ae567af6b34bb3f8a0ffc18093e95 oxygen-5.24.0.tar.xz
|
---|
| 184 | f9a542276e05b3b4cb9fbd32c541a552 kinfocenter-5.24.0.tar.xz
|
---|
| 185 | cad3dc7c0b9ca2faa9f8d25b4b2d857d kwayland-server-5.24.0.tar.xz
|
---|
| 186 | a401b80ab133740bb9c006cdf0eaedbf kwin-5.24.0.tar.xz
|
---|
| 187 | 56e20e9dd1767457613592c1edece60b plasma-workspace-5.24.0.tar.xz
|
---|
| 188 | c8aa0ccd5cf5b428e16a25410f8ac33f plasma-disks-5.24.0.tar.xz
|
---|
| 189 | 6b7e9f27503c829924048bf65a0c4763 bluedevil-5.24.0.tar.xz
|
---|
| 190 | 5dcd7cb3e9401942b1307ec65dcf7ea5 kde-gtk-config-5.24.0.tar.xz
|
---|
| 191 | 5a289a97f76a416a9ac6a62dc8fe733a khotkeys-5.24.0.tar.xz
|
---|
| 192 | a7485966e66b63f50eddbcbc4790832c kmenuedit-5.24.0.tar.xz
|
---|
| 193 | 507d12a9237fded95bbd1532e4a7b66b kscreen-5.24.0.tar.xz
|
---|
| 194 | 4c2f698253f260a955ed1867d1ec9007 kwallet-pam-5.24.0.tar.xz
|
---|
| 195 | 1e5ff352ea3b039b112efe37677eff45 kwayland-integration-5.24.0.tar.xz
|
---|
| 196 | 4f3d56f758541d046ad69e842fccac7b kwrited-5.24.0.tar.xz
|
---|
| 197 | 5e1d46d9bf8d0a03694903e83d070e3f milou-5.24.0.tar.xz
|
---|
| 198 | b6e7be0be859d21947284e233d6e2931 plasma-nm-5.24.0.tar.xz
|
---|
| 199 | d99ceab1dd9986122690a4b24d50b114 plasma-pa-5.24.0.tar.xz
|
---|
| 200 | bad6e9079ac8ad192b8375242e5b1121 plasma-workspace-wallpapers-5.24.0.tar.xz
|
---|
| 201 | eacdd3ef241f27d7ae68abce49d47a45 polkit-kde-agent-1-5.24.0.tar.xz
|
---|
| 202 | 8b1299077c31395e2f04b28d94d1ca06 powerdevil-5.24.0.tar.xz
|
---|
| 203 | 8c07b6d13e9ed8965abb38f0c3bdfdbf plasma-desktop-5.24.0.tar.xz
|
---|
| 204 | 0f52913bec0b9ae5fe7c39b7eb7c0822 kdeplasma-addons-5.24.0.tar.xz
|
---|
| 205 | 3dfd5a918fe12eaec8cf3fc291c69bfb kgamma5-5.24.0.tar.xz
|
---|
| 206 | 63bd9da2abdbffb38f7b89d4d1e6e52b ksshaskpass-5.24.0.tar.xz
|
---|
| 207 | #e4353dc4d36d9ed54d25df4e2538ef04 plasma-sdk-5.24.0.tar.xz
|
---|
| 208 | 9f4568cf9b1ace13f082bb38f45f0079 sddm-kcm-5.24.0.tar.xz
|
---|
| 209 | 1759fb71e190f0fd506e98f68d1df938 discover-5.24.0.tar.xz
|
---|
| 210 | #89000e84cca76de236e576c922979352 breeze-grub-5.24.0.tar.xz
|
---|
| 211 | #5f34ae758eab4fc8343e2fad5b7afbfb breeze-plymouth-5.24.0.tar.xz
|
---|
| 212 | f2485f5a857898ae47c256ae8d9b4893 kactivitymanagerd-5.24.0.tar.xz
|
---|
| 213 | 050d04b18ce5f00fb7dfef31000d88b6 plasma-integration-5.24.0.tar.xz
|
---|
| 214 | 1eab4ed3b88ef3a712223afc4c116a7d plasma-tests-5.24.0.tar.xz
|
---|
| 215 | #8b19cc2d7929cf988a44606a3eba7644 plymouth-kcm-5.24.0.tar.xz
|
---|
| 216 | 9aafa58faea1bd7f90776f6e63d3866a xdg-desktop-portal-kde-5.24.0.tar.xz
|
---|
| 217 | fe87c0f534cbefe3955faecfe5fcfc4d drkonqi-5.24.0.tar.xz
|
---|
| 218 | c6f224eb9eb6f87e0af1464d7a933d09 plasma-vault-5.24.0.tar.xz
|
---|
| 219 | d3c42b17d180af6ddf9821abd6f36d7e plasma-browser-integration-5.24.0.tar.xz
|
---|
| 220 | a7157d0f6a12d2da890643b30bb02967 kde-cli-tools-5.24.0.tar.xz
|
---|
| 221 | 3c7a50b0eb124cb6d1886cc89a0de5e8 systemsettings-5.24.0.tar.xz
|
---|
| 222 | e6346ea04baa5c25e706145777a193dc plasma-thunderbolt-5.24.0.tar.xz
|
---|
| 223 | #e4daa179a4bce0f03f4988186dfe3e31 plasma-nano-5.24.0.tar.xz
|
---|
| 224 | #3e0e67f2a798b51025cb97a750fc1dea plasma-phone-components-5.24.0.tar.xz
|
---|
| 225 | #3e0e67f2a798b51025cb97a750fc1dea plasma-mobile-5.24.0.tar.xz
|
---|
| 226 | 2c43882de9c657073aed4df2c01eeac4 plasma-firewall-5.24.0.tar.xz
|
---|
| 227 | 886d89f75a6ba9324586154816a9bcef plasma-systemmonitor-5.24.0.tar.xz
|
---|
| 228 | 61903525c0e1585cb00e1b7c7c690145 qqc2-breeze-style-5.24.0.tar.xz
|
---|
| 229 | f1e7a6af9a0862cc8812426e4d040be6 ksystemstats-5.24.0.tar.xz</literal>
|
---|
[153a5795] | 230 | EOF</userinput></screen>
|
---|
| 231 |
|
---|
[1c8c15c] | 232 | <note>
|
---|
| 233 | <para>
|
---|
| 234 | The breeze-grub, breeze-plymouth, and plymouth-kcm packages above are
|
---|
| 235 | all for customized support of <ulink
|
---|
| 236 | url="https://www.freedesktop.org/wiki/Software/Plymouth/"
|
---|
| 237 | >Plymouth</ulink>
|
---|
| 238 | which is designed to be run within an initial ram disk during boot (see
|
---|
| 239 | <xref linkend="initramfs"/>). The plasma-sdk package is optional and
|
---|
| 240 | used for software development. The plasma-nano package is used for
|
---|
| 241 | embedded systems and plasma-phone-components provides phone
|
---|
| 242 | functionality for Plasma.
|
---|
| 243 | </para>
|
---|
| 244 | </note>
|
---|
[ce228c2] | 245 |
|
---|
[153a5795] | 246 | </sect2>
|
---|
| 247 |
|
---|
| 248 | <sect2 role="installation">
|
---|
| 249 | <title>Installation of Plasma5</title>
|
---|
| 250 |
|
---|
| 251 | &as_root;
|
---|
| 252 |
|
---|
| 253 | <para>
|
---|
| 254 | First, start a subshell that will exit on error:
|
---|
| 255 | </para>
|
---|
| 256 |
|
---|
| 257 | <screen><userinput>bash -e</userinput></screen>
|
---|
| 258 |
|
---|
| 259 | <para>
|
---|
| 260 | Install all of the packages by running the following
|
---|
| 261 | commands:
|
---|
| 262 | </para>
|
---|
| 263 |
|
---|
| 264 | <screen><userinput>while read -r line; do
|
---|
| 265 |
|
---|
| 266 | # Get the file name, ignoring comments and blank lines
|
---|
| 267 | if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
|
---|
| 268 | file=$(echo $line | cut -d" " -f2)
|
---|
[f3429309] | 269 |
|
---|
[153a5795] | 270 | pkg=$(echo $file|sed 's|^.*/||') # Remove directory
|
---|
| 271 | packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
|
---|
| 272 |
|
---|
| 273 | tar -xf $file
|
---|
| 274 | pushd $packagedir
|
---|
[b359b3e0] | 275 | <!--
|
---|
[4e0a40f] | 276 | # Fix some build issues when generating some configuration files
|
---|
[cfd5cb3] | 277 | case $name in
|
---|
| 278 | plasma-workspace)
|
---|
| 279 | sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 280 | ;;
|
---|
[8558044] | 281 |
|
---|
[cfd5cb3] | 282 | khotkeys)
|
---|
| 283 | sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 284 | ;;
|
---|
[8558044] | 285 |
|
---|
[cfd5cb3] | 286 | plasma-desktop)
|
---|
| 287 | sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 288 | ;;
|
---|
| 289 | esac
|
---|
[b359b3e0] | 290 | -->
|
---|
[69a9de5] | 291 | mkdir build
|
---|
| 292 | cd build
|
---|
[153a5795] | 293 |
|
---|
[1c8d0ff] | 294 | cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
|
---|
| 295 | -DCMAKE_BUILD_TYPE=Release \
|
---|
| 296 | -DBUILD_TESTING=OFF \
|
---|
[69a9de5] | 297 | -Wno-dev .. &&
|
---|
[153a5795] | 298 |
|
---|
[69a9de5] | 299 | make
|
---|
| 300 | as_root make install
|
---|
| 301 | popd
|
---|
[153a5795] | 302 |
|
---|
[b44e7de2] | 303 | <!-- some packages end up with files owned by root in $packagedir,
|
---|
[8f445fdc] | 304 | so use as_root for removing -->
|
---|
| 305 | as_root rm -rf $packagedir
|
---|
[69a9de5] | 306 | as_root /sbin/ldconfig
|
---|
| 307 |
|
---|
[ed4a7a2] | 308 | done < plasma-&plasma5-version;.md5
|
---|
[153a5795] | 309 |
|
---|
[527f3db] | 310 | exit</userinput></screen>
|
---|
[1c8d0ff] | 311 |
|
---|
[527f3db] | 312 | <para>
|
---|
| 313 | If you did not set <envar>$KF5_PREFIX</envar> to
|
---|
| 314 | <filename>/usr</filename>, create symlinks to allow display managers to
|
---|
| 315 | find <application>Plasma</application>:
|
---|
| 316 | </para>
|
---|
| 317 |
|
---|
| 318 | <screen><userinput>as_root install -dvm 755 /usr/share/xsessions &&
|
---|
| 319 | cd /usr/share/xsessions/ &&
|
---|
| 320 | [ -e plasma.desktop ] ||
|
---|
| 321 | as_root ln -sfv $KF5_PREFIX/share/xsessions/plasma.desktop &&
|
---|
| 322 | as_root install -dvm 755 /usr/share/wayland-sessions &&
|
---|
| 323 | cd /usr/share/wayland-sessions/ &&
|
---|
[4969ec3c] | 324 | [ -e plasmawayland.desktop ] ||
|
---|
| 325 | as_root ln -sfv $KF5_PREFIX/share/wayland-sessions/plasmawayland.desktop<!--
|
---|
[1c8d0ff] | 326 | cd $KF5_PREFIX/share/plasma/plasmoids
|
---|
[153a5795] | 327 |
|
---|
[1c8d0ff] | 328 | for j in $(find -name \*.js); do
|
---|
[3d656d7] | 329 | as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
|
---|
[5ac58b54] | 330 | done--></userinput></screen>
|
---|
[153a5795] | 331 |
|
---|
[2e29bba] | 332 | <para revision="sysv">
|
---|
| 333 | Useless systemd units have been installed in
|
---|
| 334 | <filename class="directory">$KF5_PREFIX/lib</filename>. Remove
|
---|
| 335 | them now (as <systemitem class="username">root</systemitem>):
|
---|
| 336 | </para>
|
---|
| 337 |
|
---|
| 338 | <screen role="root"
|
---|
| 339 | revision="sysv"><userinput>rm -rf $KF5_PREFIX/lib/systemd</userinput></screen>
|
---|
| 340 |
|
---|
[153a5795] | 341 | </sect2>
|
---|
[5ac58b54] | 342 | <!--
|
---|
[153a5795] | 343 | <sect2 role="commands">
|
---|
| 344 | <title>Command Explanations</title>
|
---|
| 345 |
|
---|
| 346 | <para>
|
---|
[1c8d0ff] | 347 | <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
|
---|
| 348 | Create symbolic links so qml files can find needed javascript modules.
|
---|
[153a5795] | 349 | </para>
|
---|
| 350 |
|
---|
| 351 | </sect2>
|
---|
[5ac58b54] | 352 | -->
|
---|
[3b0f105] | 353 | <sect2 role="configuration">
|
---|
| 354 | <title>Configuring Plasma</title>
|
---|
| 355 |
|
---|
| 356 | <sect3>
|
---|
| 357 | <title>Linux PAM Configuration</title>
|
---|
| 358 |
|
---|
| 359 | <para>
|
---|
| 360 | If you built Plasma with the recommended <application>Linux
|
---|
| 361 | PAM</application> support, create necessary configuration files by
|
---|
| 362 | running the following commands as the <systemitem
|
---|
| 363 | class="username">root</systemitem> user:
|
---|
| 364 | </para>
|
---|
| 365 |
|
---|
[8558044] | 366 | <screen role="root"><userinput>cat > /etc/pam.d/kde << "EOF"
|
---|
[51dfb3e] | 367 | <literal># Begin /etc/pam.d/kde
|
---|
[3b0f105] | 368 |
|
---|
| 369 | auth requisite pam_nologin.so
|
---|
| 370 | auth required pam_env.so
|
---|
| 371 |
|
---|
| 372 | auth required pam_succeed_if.so uid >= 1000 quiet
|
---|
| 373 | auth include system-auth
|
---|
| 374 |
|
---|
| 375 | account include system-account
|
---|
| 376 | password include system-password
|
---|
| 377 | session include system-session
|
---|
| 378 |
|
---|
[51dfb3e] | 379 | # End /etc/pam.d/kde</literal>
|
---|
[3b0f105] | 380 | EOF
|
---|
| 381 |
|
---|
[8558044] | 382 | cat > /etc/pam.d/kde-np << "EOF"
|
---|
[51dfb3e] | 383 | <literal># Begin /etc/pam.d/kde-np
|
---|
[3b0f105] | 384 |
|
---|
| 385 | auth requisite pam_nologin.so
|
---|
| 386 | auth required pam_env.so
|
---|
| 387 |
|
---|
| 388 | auth required pam_succeed_if.so uid >= 1000 quiet
|
---|
| 389 | auth required pam_permit.so
|
---|
| 390 |
|
---|
| 391 | account include system-account
|
---|
| 392 | password include system-password
|
---|
| 393 | session include system-session
|
---|
| 394 |
|
---|
[51dfb3e] | 395 | # End /etc/pam.d/kde-np</literal>
|
---|
[3b0f105] | 396 | EOF
|
---|
| 397 |
|
---|
| 398 | cat > /etc/pam.d/kscreensaver << "EOF"
|
---|
[51dfb3e] | 399 | <literal># Begin /etc/pam.d/kscreensaver
|
---|
[3b0f105] | 400 |
|
---|
| 401 | auth include system-auth
|
---|
| 402 | account include system-account
|
---|
| 403 |
|
---|
[51dfb3e] | 404 | # End /etc/pam.d/kscreensaver</literal>
|
---|
[3b0f105] | 405 | EOF</userinput></screen>
|
---|
| 406 | </sect3>
|
---|
| 407 | </sect2>
|
---|
| 408 |
|
---|
[1c8d0ff] | 409 | <sect2 role="starting">
|
---|
| 410 | <title>Starting Plasma5</title>
|
---|
| 411 |
|
---|
[3f460da0] | 412 | <para revision="sysv">
|
---|
[1c8d0ff] | 413 | You can start <application>Plasma5</application> from runlevel 3, using
|
---|
| 414 | <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
|
---|
[c225bfa] | 415 | such as <xref linkend="lightdm"/>.
|
---|
[1c8d0ff] | 416 | </para>
|
---|
| 417 |
|
---|
[3f460da0] | 418 | <para revision="systemd">
|
---|
| 419 | You can start <application>Plasma5</application> from a TTY, using
|
---|
[fd42347a] | 420 | <xref linkend="xinit"/><!--, or from a graphical display manager, such as
|
---|
| 421 | <xref linkend="sddm"/>-->.
|
---|
[3f460da0] | 422 | </para>
|
---|
| 423 |
|
---|
[1c8d0ff] | 424 | <para>
|
---|
[460cec4b] | 425 | To start <application>Plasma 5</application> using <xref linkend="xinit"/>,
|
---|
[1c8d0ff] | 426 | run the following commands:
|
---|
| 427 | </para>
|
---|
| 428 |
|
---|
[51dfb3e] | 429 | <screen><userinput>cat > ~/.xinitrc << "EOF"
|
---|
[718be191] | 430 | <literal>dbus-launch --exit-with-session $KF5_PREFIX/bin/startplasma-x11</literal>
|
---|
[3f460da0] | 431 | EOF
|
---|
| 432 |
|
---|
[1c8d0ff] | 433 | startx</userinput></screen>
|
---|
| 434 |
|
---|
| 435 | <para>
|
---|
| 436 | The X session starts on the first unused virtual terminal, normally vt7.
|
---|
| 437 | You can switch to another vt<emphasis>n</emphasis> simultaneously
|
---|
| 438 | pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
|
---|
| 439 | (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
|
---|
| 440 | normally started at vt7, use Ctrl-Alt-F7. The vt where the command
|
---|
| 441 | <command>startx</command> was executed will display many messages,
|
---|
| 442 | including X starting messages, applications automatically started with
|
---|
| 443 | the session, and eventually, some warning and error messages. You may
|
---|
| 444 | prefer to redirect those messages to a log file, which not only will keep
|
---|
| 445 | the initial vt uncluttered, but can also be used for debugging purposes. This
|
---|
| 446 | can be done starting X with:
|
---|
| 447 | </para>
|
---|
| 448 |
|
---|
[3011abe] | 449 | <screen><userinput>startx &> ~/x-session-errors</userinput></screen>
|
---|
[1c8d0ff] | 450 |
|
---|
| 451 | <para>
|
---|
| 452 | When shutting down or rebooting, the shutdown messages appear on the vt
|
---|
| 453 | where X was running. If you wish to see those messages, simultaneously
|
---|
| 454 | press keys Alt-F7 (assuming that X was running on vt7).
|
---|
| 455 | </para>
|
---|
[7a763b49] | 456 | <!-- Now the entry is "plasma (X11)" for Xorg, so I guess this is
|
---|
| 457 | not needed anymore:
|
---|
[1c8c15c] | 458 | <para>
|
---|
| 459 | If you intend to start <application>Plasma</application> using a
|
---|
[c225bfa] | 460 | display manager such as <xref linkend="lightdm"/>, there will be two entries
|
---|
[f29eb8a] | 461 | for <application>Plasma</application>, one for use with
|
---|
| 462 | <application>Xorg</application>, and another for
|
---|
| 463 | <application>Wayland</application>. Modify the
|
---|
| 464 | <application>Xorg</application> entry with the following command, as the
|
---|
| 465 | <systemitem class="username">root</systemitem> user, so that you can
|
---|
| 466 | differentiate between the two:</para>
|
---|
| 467 |
|
---|
[33c8b427] | 468 | <screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
|
---|
[7a763b49] | 469 | -->
|
---|
[f29eb8a] | 470 |
|
---|
[1c8d0ff] | 471 | </sect2>
|
---|
| 472 |
|
---|
[153a5795] | 473 | <sect2 role="content">
|
---|
| 474 | <title>Contents</title>
|
---|
| 475 |
|
---|
| 476 | <segmentedlist>
|
---|
| 477 | <segtitle>Installed Programs</segtitle>
|
---|
| 478 | <segtitle>Installed Libraries</segtitle>
|
---|
| 479 | <segtitle>Installed Directories</segtitle>
|
---|
| 480 |
|
---|
| 481 | <seglistitem>
|
---|
| 482 | <seg>
|
---|
[2e29bba] | 483 | There are too many plasma programs (63 in /opt/kf5/bin) to list
|
---|
[83ef2a4] | 484 | separately here.
|
---|
[153a5795] | 485 | </seg>
|
---|
| 486 | <seg>
|
---|
[b359b3e0] | 487 | There are too many plasma libraries (40 in /opt/kf5/lib) to list
|
---|
[83ef2a4] | 488 | separately here.
|
---|
[153a5795] | 489 | </seg>
|
---|
| 490 | <seg>
|
---|
[83ef2a4] | 491 | There are too many plasma directories (over 1000 in /opt/kf5) to
|
---|
| 492 | list separately here.
|
---|
[153a5795] | 493 | </seg>
|
---|
| 494 | </seglistitem>
|
---|
| 495 | </segmentedlist>
|
---|
| 496 |
|
---|
| 497 | </sect2>
|
---|
| 498 |
|
---|
| 499 | </sect1>
|
---|