[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">
|
---|
[3ccb3a5] | 10 | <!ENTITY plasma5-size "192 MB">
|
---|
| 11 | <!ENTITY plasma5-buildsize "1.7 GB (419 MB installed)">
|
---|
| 12 | <!ENTITY plasma5-time "18 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 |
|
---|
[3ccb3a5] | 30 | &lfs113_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">
|
---|
[89f706b2] | 75 | <!--<xref linkend="fontforge"/>,-->
|
---|
[41b0fe1] | 76 | <!-- does not seem to be needed as of 5.22.4 <xref linkend="GConf"/>, -->
|
---|
[f3429309] | 77 | <xref linkend="gtk2"/>,
|
---|
| 78 | <xref linkend="gtk3"/>,
|
---|
[f97d5f6] | 79 | <xref linkend="kf5-frameworks"/>,
|
---|
[f1b74bf] | 80 | <xref linkend="kuserfeedback"/>,
|
---|
[366fbbb8] | 81 | <xref linkend="libpwquality"/>,
|
---|
[f36ab176] | 82 | <xref linkend="libqalculate"/>,
|
---|
[1c8d0ff] | 83 | <xref linkend="libxkbcommon"/>,
|
---|
[366fbbb8] | 84 | <xref linkend="mesa"/> built with <xref linkend="wayland"/>,
|
---|
[f3429309] | 85 | <xref linkend="NetworkManager"/>,
|
---|
[1f21b9c] | 86 | <xref linkend="pipewire"/>,
|
---|
[f3429309] | 87 | <xref linkend="pulseaudio"/>,
|
---|
[b7a66395] | 88 | <xref linkend="qca"/>,
|
---|
[95965b6] | 89 | <xref linkend="sassc"/>,
|
---|
[f3429309] | 90 | <xref linkend="taglib"/>, and
|
---|
[1c8d0ff] | 91 | <xref linkend="xcb-util-cursor"/>
|
---|
[153a5795] | 92 | </para>
|
---|
| 93 |
|
---|
| 94 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 95 | <para role="recommended">
|
---|
[72b8751] | 96 | <xref linkend="fftw"/>,
|
---|
| 97 | <xref linkend="gsettings-desktop-schemas"/>,
|
---|
[f3429309] | 98 | <xref linkend="libdbusmenu-qt"/>,
|
---|
| 99 | <xref linkend="libcanberra"/>,
|
---|
| 100 | <xref linkend="libinput"/>,
|
---|
[64ae3fb] | 101 | <xref linkend="libpcap"/>,
|
---|
[0779b94] | 102 | <xref linkend="linux-pam"/>,
|
---|
[f3429309] | 103 | <xref linkend="lm_sensors"/>,
|
---|
[88bb10f] | 104 | <xref linkend="oxygen-icons5"/>, and
|
---|
[0779b94] | 105 | <xref linkend="pciutils"/>
|
---|
[153a5795] | 106 | </para>
|
---|
| 107 |
|
---|
[b359b3e0] | 108 | <bridgehead renderas="sect4">Recommended (runtime)</bridgehead>
|
---|
| 109 | <para role="recommended">
|
---|
[f3a27771] | 110 | <xref role="runtime" linkend="accountsservice"/>,
|
---|
| 111 | <xref role="runtime" linkend="smartmontools"/>, and
|
---|
| 112 | <xref role="runtime" linkend="xwayland"/>
|
---|
[b359b3e0] | 113 | </para>
|
---|
| 114 |
|
---|
[0779b94] | 115 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[153a5795] | 116 | <para role="optional">
|
---|
[0779b94] | 117 | <xref linkend="glu"/>,
|
---|
[7b1bc743] | 118 | <xref linkend='ibus'/>,
|
---|
[64ae3fb] | 119 | <xref linkend='qtwebengine'/>,
|
---|
[0779b94] | 120 | <xref linkend="xorg-synaptics-driver"/>,
|
---|
[75b1a338] | 121 | <ulink url="https://distributions.freedesktop.org/wiki/AppStream">appstream-qt</ulink>,
|
---|
[ce228c2] | 122 | <ulink url="https://www.kdevelop.org/">KDevPlatform</ulink>,
|
---|
[3d9b01d] | 123 | <ulink url="https://gpsd.gitlab.io/gpsd/">libgps</ulink>,
|
---|
[0779b94] | 124 | <ulink url="https://github.com/libhybris/libhybris">libhybris</ulink>,
|
---|
[c6b192c] | 125 | <ulink url="https://sourceforge.net/projects/libraw1394/">libraw1394</ulink>,
|
---|
[0779b94] | 126 | <ulink url="https://bitbucket.org/godsme/mockcpp">mockcpp</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>
|
---|
| 136 | Only two plasma packages optionally use <xref linkend="qtwebengine"/>:
|
---|
[8558044] | 137 | libksysguard and kdeplasma-addons. If QtWebEngine is installed later,
|
---|
[64ae3fb] | 138 | only those two packages have to be rebuilt. This allows to provide
|
---|
| 139 | a more complete display in the system monitor application.
|
---|
| 140 | </para>
|
---|
| 141 | </note>
|
---|
| 142 |
|
---|
[153a5795] | 143 | <para condition="html" role="usernotes">User Notes:
|
---|
| 144 | <ulink url="&blfs-wiki;/kf5"/></para>
|
---|
| 145 |
|
---|
| 146 | <sect2>
|
---|
[773b316] | 147 | <title>Downloading KDE Plasma5</title>
|
---|
[153a5795] | 148 |
|
---|
| 149 | <para>
|
---|
| 150 | The easiest way to get the KDE Plasma5 packages is to use a single
|
---|
| 151 | <command>wget</command> to fetch them all at once:
|
---|
| 152 | </para>
|
---|
[f3429309] | 153 |
|
---|
[c6b192c] | 154 | <screen><userinput>url=https://download.kde.org/stable/plasma/&plasma5-version;/
|
---|
[a01d308] | 155 | wget -r -nH -nd -A '*.xz' -np $url</userinput>
|
---|
[153a5795] | 156 | <literal>
|
---|
[f3429309] | 157 | The options used here are:
|
---|
[153a5795] | 158 | -r recurse through child directories
|
---|
| 159 | -nH disable generation of host-prefixed directories
|
---|
[a01d308] | 160 | -nd do not create a hierarchy of directories
|
---|
[153a5795] | 161 | -A '*.xz' just get the *.xz files
|
---|
[10a9447] | 162 | -np don't get parent directories</literal></screen>
|
---|
[153a5795] | 163 |
|
---|
| 164 | </sect2>
|
---|
| 165 |
|
---|
| 166 | <sect2>
|
---|
| 167 | <title>Setting Package Order</title>
|
---|
| 168 |
|
---|
| 169 | <para>
|
---|
| 170 | The order of building files is important due to internal dependencies.
|
---|
| 171 | Create the list of files in the proper order as follows:
|
---|
| 172 | </para>
|
---|
| 173 |
|
---|
[ed4a7a2] | 174 | <screen><userinput>cat > plasma-&plasma5-version;.md5 << "EOF"
|
---|
[3ccb3a5] | 175 | <literal>e436a039ec6b0016e5f52a71a5086ad8 kdecoration-5.26.5.tar.xz
|
---|
| 176 | ec10440342d3b227499b61bbf86c04ab libkscreen-5.26.5.tar.xz
|
---|
| 177 | a7a235a4d105eaa37c9c9923f34b7019 libksysguard-5.26.5.tar.xz
|
---|
| 178 | 65c2bc9680f8830b1fdfc231a2923fe7 breeze-5.26.5.tar.xz
|
---|
| 179 | b43a9abaa1dbf083fbac92febf06ee62 breeze-gtk-5.26.5.tar.xz
|
---|
| 180 | 2a5c3f9ddb0dd1394574c85237c6a99d layer-shell-qt-5.26.5.tar.xz
|
---|
| 181 | fbf3d2ff3dcfe2eb6770f18f0784b693 kscreenlocker-5.26.5.tar.xz
|
---|
| 182 | 44db61e1b0c27d951cfc0dd45fa19947 oxygen-5.26.5.tar.xz
|
---|
| 183 | 4a04fbf14eee03b81a5f95701758dadc kinfocenter-5.26.5.tar.xz
|
---|
| 184 | 6b2566e536949698fcb43ecb1cb331c8 kwin-5.26.5.tar.xz
|
---|
| 185 | 9b5ddbc03683da742ac0c03c821d9084 plasma-workspace-5.26.5.tar.xz
|
---|
| 186 | 4c118121937c0c92ab9630b28be83aab plasma-disks-5.26.5.tar.xz
|
---|
| 187 | 3440d7a273988cddb711ddd864ae85d7 bluedevil-5.26.5.tar.xz
|
---|
| 188 | 75f668ce669e853565c375937ca6db3b kde-gtk-config-5.26.5.tar.xz
|
---|
| 189 | 6e8673a19904011d79d9b8fd69890443 khotkeys-5.26.5.tar.xz
|
---|
| 190 | 7425d8cd9889bdb327b8a8b339274aa5 kmenuedit-5.26.5.tar.xz
|
---|
| 191 | 6f600d487eda8fd2cddf3e13c322ce78 kscreen-5.26.5.tar.xz
|
---|
| 192 | def2d41c607309fdb622b270833b6078 kwallet-pam-5.26.5.tar.xz
|
---|
| 193 | ce7b641d174973be3b944f9279609eaf kwayland-integration-5.26.5.tar.xz
|
---|
| 194 | eb2171403b7fbae6b257404f58fea865 kwrited-5.26.5.tar.xz
|
---|
| 195 | fc04856efefea7eba22064e7afdbddf7 milou-5.26.5.tar.xz
|
---|
| 196 | adb5371f4383332da2d7bdc643d1ba3d plasma-nm-5.26.5.tar.xz
|
---|
| 197 | 8a277824eec12d339b9b0cec40e141da plasma-pa-5.26.5.tar.xz
|
---|
| 198 | 5112039742fa249c6272196fd2ea9b8c plasma-workspace-wallpapers-5.26.5.tar.xz
|
---|
| 199 | 1319507df888d5d1d1584487c72bb41c polkit-kde-agent-1-5.26.5.tar.xz
|
---|
| 200 | 1636fa123a48123922c6bd9114601188 powerdevil-5.26.5.tar.xz
|
---|
| 201 | 9c85a12b5fc4593ee3c9c3602b7c1fd7 plasma-desktop-5.26.5.tar.xz
|
---|
| 202 | 297ae0e3b025e2d8a9a6b4301aed97b3 kgamma5-5.26.5.tar.xz
|
---|
| 203 | b34c0f8e8f00c881fa6636941a646cdf ksshaskpass-5.26.5.tar.xz
|
---|
| 204 | #5310bb325acaacddd75cfcc9beb720ae plasma-sdk-5.26.5.tar.xz
|
---|
| 205 | 579e478775361bbb3499e1ec5b5011a1 sddm-kcm-5.26.5.tar.xz
|
---|
| 206 | 4c5d0fd055f04e9104de1039fb3d19e4 discover-5.26.5.tar.xz
|
---|
| 207 | #4eddbae9f9e4add3637dd9fd99290047 breeze-grub-5.26.5.tar.xz
|
---|
| 208 | #ddbea7d8d6c6bc3953039075628de7ee breeze-plymouth-5.26.5.tar.xz
|
---|
| 209 | 7a85cf42b67ac38e490f0749cd25496e kactivitymanagerd-5.26.5.tar.xz
|
---|
| 210 | 235d1c02582787ff5dd825fae434e6f9 plasma-integration-5.26.5.tar.xz
|
---|
| 211 | a97a00137fcd4e446cbf849983bd1e64 plasma-tests-5.26.5.tar.xz
|
---|
| 212 | #d16a86f8aee8e7f0da084535cdccca7f plymouth-kcm-5.26.5.tar.xz
|
---|
| 213 | 49abaee061653e65afe9ba509c6aef41 xdg-desktop-portal-kde-5.26.5.tar.xz
|
---|
| 214 | 8ea7332f06db75e41357cfe49d893042 drkonqi-5.26.5.tar.xz
|
---|
| 215 | e147fcf2d2cfc030c3a5e12373e8dc29 plasma-vault-5.26.5.tar.xz
|
---|
| 216 | a17305d04e3f43cd2c63870e58aa1002 plasma-browser-integration-5.26.5.tar.xz
|
---|
| 217 | d7bf771ac16efb7b8c3c4e6a34193002 kde-cli-tools-5.26.5.tar.xz
|
---|
| 218 | 5c9d258caff107e2d668308fbdc1b88a systemsettings-5.26.5.tar.xz
|
---|
| 219 | fb368c5c4ac28061a706c3558e4c4b66 plasma-thunderbolt-5.26.5.tar.xz
|
---|
| 220 | #ebe05c7b3b95d0dca235830ab17b8d57 plasma-nano-5.26.5.tar.xz
|
---|
| 221 | #cb64c2c61676c499f1807184928083c7 plasma-mobile-5.26.5.tar.xz
|
---|
| 222 | 0ac0a579b57b76e664d172845ae06a07 plasma-firewall-5.26.5.tar.xz
|
---|
| 223 | d5c8bac2d756982328cd541649a7002b plasma-systemmonitor-5.26.5.tar.xz
|
---|
| 224 | 17608c1fb4b6503193a5769f35c7f9e5 qqc2-breeze-style-5.26.5.tar.xz
|
---|
| 225 | 146cef26a5a9b3c82d46cabd6842a07c ksystemstats-5.26.5.tar.xz
|
---|
| 226 | 6943aba014019057384b47339bb8ed0a oxygen-sounds-5.26.5.tar.xz
|
---|
| 227 | 7CF5ED434a6d21fd8458f89207986b9a aura-browser-5.26.5.tar.xz
|
---|
| 228 | fc695034a7236fb6eab8a324216bc710 kdeplasma-addons-5.26.5.tar.xz
|
---|
| 229 | 71fce4036d0f6a6fdc9bf5db3d47b9c9 kpipewire-5.26.5.tar.xz
|
---|
| 230 | 26e7ae5887a56e971d2510262f9e0b55 plank-player-5.26.5.tar.xz
|
---|
| 231 | 116e7d1a64ee17d5a31aed066709725a plasma-bigscreen-5.26.5.tar.xz
|
---|
| 232 | d55d570e84840440f89233c8915e5872 plasma-remotecontrollers-5.26.5.tar.xz</literal>
|
---|
[153a5795] | 233 | EOF</userinput></screen>
|
---|
| 234 |
|
---|
[1c8c15c] | 235 | <note>
|
---|
| 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
|
---|
| 242 | <xref linkend="initramfs"/>). The plasma-sdk package is optional and
|
---|
| 243 | used for software development. The plasma-nano package is used for
|
---|
| 244 | embedded systems and plasma-phone-components provides phone
|
---|
| 245 | functionality for Plasma.
|
---|
| 246 | </para>
|
---|
| 247 | </note>
|
---|
[ce228c2] | 248 |
|
---|
[153a5795] | 249 | </sect2>
|
---|
| 250 |
|
---|
| 251 | <sect2 role="installation">
|
---|
| 252 | <title>Installation of Plasma5</title>
|
---|
| 253 |
|
---|
| 254 | &as_root;
|
---|
| 255 |
|
---|
| 256 | <para>
|
---|
| 257 | First, start a subshell that will exit on error:
|
---|
| 258 | </para>
|
---|
| 259 |
|
---|
| 260 | <screen><userinput>bash -e</userinput></screen>
|
---|
| 261 |
|
---|
| 262 | <para>
|
---|
| 263 | Install all of the packages by running the following
|
---|
| 264 | commands:
|
---|
| 265 | </para>
|
---|
| 266 |
|
---|
| 267 | <screen><userinput>while read -r line; do
|
---|
| 268 |
|
---|
| 269 | # Get the file name, ignoring comments and blank lines
|
---|
| 270 | if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
|
---|
| 271 | file=$(echo $line | cut -d" " -f2)
|
---|
[f3429309] | 272 |
|
---|
[153a5795] | 273 | pkg=$(echo $file|sed 's|^.*/||') # Remove directory
|
---|
| 274 | packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
|
---|
| 275 |
|
---|
| 276 | tar -xf $file
|
---|
| 277 | pushd $packagedir
|
---|
[b359b3e0] | 278 | <!--
|
---|
[4e0a40f] | 279 | # Fix some build issues when generating some configuration files
|
---|
[cfd5cb3] | 280 | case $name in
|
---|
| 281 | plasma-workspace)
|
---|
| 282 | sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 283 | ;;
|
---|
[8558044] | 284 |
|
---|
[cfd5cb3] | 285 | khotkeys)
|
---|
| 286 | sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 287 | ;;
|
---|
[8558044] | 288 |
|
---|
[cfd5cb3] | 289 | plasma-desktop)
|
---|
| 290 | sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 291 | ;;
|
---|
| 292 | esac
|
---|
[b359b3e0] | 293 | -->
|
---|
[69a9de5] | 294 | mkdir build
|
---|
| 295 | cd build
|
---|
[153a5795] | 296 |
|
---|
[1c8d0ff] | 297 | cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
|
---|
| 298 | -DCMAKE_BUILD_TYPE=Release \
|
---|
| 299 | -DBUILD_TESTING=OFF \
|
---|
[69a9de5] | 300 | -Wno-dev .. &&
|
---|
[153a5795] | 301 |
|
---|
[69a9de5] | 302 | make
|
---|
| 303 | as_root make install
|
---|
| 304 | popd
|
---|
[153a5795] | 305 |
|
---|
[b44e7de2] | 306 | <!-- some packages end up with files owned by root in $packagedir,
|
---|
[8f445fdc] | 307 | so use as_root for removing -->
|
---|
| 308 | as_root rm -rf $packagedir
|
---|
[69a9de5] | 309 | as_root /sbin/ldconfig
|
---|
| 310 |
|
---|
[ed4a7a2] | 311 | done < plasma-&plasma5-version;.md5
|
---|
[153a5795] | 312 |
|
---|
[527f3db] | 313 | exit</userinput></screen>
|
---|
[1c8d0ff] | 314 |
|
---|
[527f3db] | 315 | <para>
|
---|
| 316 | If you did not set <envar>$KF5_PREFIX</envar> to
|
---|
| 317 | <filename>/usr</filename>, create symlinks to allow display managers to
|
---|
| 318 | find <application>Plasma</application>:
|
---|
| 319 | </para>
|
---|
| 320 |
|
---|
| 321 | <screen><userinput>as_root install -dvm 755 /usr/share/xsessions &&
|
---|
| 322 | cd /usr/share/xsessions/ &&
|
---|
| 323 | [ -e plasma.desktop ] ||
|
---|
| 324 | as_root ln -sfv $KF5_PREFIX/share/xsessions/plasma.desktop &&
|
---|
| 325 | as_root install -dvm 755 /usr/share/wayland-sessions &&
|
---|
| 326 | cd /usr/share/wayland-sessions/ &&
|
---|
[4969ec3c] | 327 | [ -e plasmawayland.desktop ] ||
|
---|
| 328 | as_root ln -sfv $KF5_PREFIX/share/wayland-sessions/plasmawayland.desktop<!--
|
---|
[1c8d0ff] | 329 | cd $KF5_PREFIX/share/plasma/plasmoids
|
---|
[153a5795] | 330 |
|
---|
[1c8d0ff] | 331 | for j in $(find -name \*.js); do
|
---|
[3d656d7] | 332 | as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
|
---|
[5ac58b54] | 333 | done--></userinput></screen>
|
---|
[153a5795] | 334 |
|
---|
[2e29bba] | 335 | <para revision="sysv">
|
---|
| 336 | Useless systemd units have been installed in
|
---|
| 337 | <filename class="directory">$KF5_PREFIX/lib</filename>. Remove
|
---|
| 338 | them now (as <systemitem class="username">root</systemitem>):
|
---|
| 339 | </para>
|
---|
| 340 |
|
---|
| 341 | <screen role="root"
|
---|
| 342 | revision="sysv"><userinput>rm -rf $KF5_PREFIX/lib/systemd</userinput></screen>
|
---|
| 343 |
|
---|
[153a5795] | 344 | </sect2>
|
---|
[5ac58b54] | 345 | <!--
|
---|
[153a5795] | 346 | <sect2 role="commands">
|
---|
| 347 | <title>Command Explanations</title>
|
---|
| 348 |
|
---|
| 349 | <para>
|
---|
[1c8d0ff] | 350 | <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
|
---|
| 351 | Create symbolic links so qml files can find needed javascript modules.
|
---|
[153a5795] | 352 | </para>
|
---|
| 353 |
|
---|
| 354 | </sect2>
|
---|
[5ac58b54] | 355 | -->
|
---|
[3b0f105] | 356 | <sect2 role="configuration">
|
---|
| 357 | <title>Configuring Plasma</title>
|
---|
| 358 |
|
---|
| 359 | <sect3>
|
---|
| 360 | <title>Linux PAM Configuration</title>
|
---|
| 361 |
|
---|
| 362 | <para>
|
---|
| 363 | If you built Plasma with the recommended <application>Linux
|
---|
| 364 | PAM</application> support, create necessary configuration files by
|
---|
| 365 | running the following commands as the <systemitem
|
---|
| 366 | class="username">root</systemitem> user:
|
---|
| 367 | </para>
|
---|
| 368 |
|
---|
[8558044] | 369 | <screen role="root"><userinput>cat > /etc/pam.d/kde << "EOF"
|
---|
[51dfb3e] | 370 | <literal># Begin /etc/pam.d/kde
|
---|
[3b0f105] | 371 |
|
---|
| 372 | auth requisite pam_nologin.so
|
---|
| 373 | auth required pam_env.so
|
---|
| 374 |
|
---|
| 375 | auth required pam_succeed_if.so uid >= 1000 quiet
|
---|
| 376 | auth include system-auth
|
---|
| 377 |
|
---|
| 378 | account include system-account
|
---|
| 379 | password include system-password
|
---|
| 380 | session include system-session
|
---|
| 381 |
|
---|
[51dfb3e] | 382 | # End /etc/pam.d/kde</literal>
|
---|
[3b0f105] | 383 | EOF
|
---|
| 384 |
|
---|
[8558044] | 385 | cat > /etc/pam.d/kde-np << "EOF"
|
---|
[51dfb3e] | 386 | <literal># Begin /etc/pam.d/kde-np
|
---|
[3b0f105] | 387 |
|
---|
| 388 | auth requisite pam_nologin.so
|
---|
| 389 | auth required pam_env.so
|
---|
| 390 |
|
---|
| 391 | auth required pam_succeed_if.so uid >= 1000 quiet
|
---|
| 392 | auth required pam_permit.so
|
---|
| 393 |
|
---|
| 394 | account include system-account
|
---|
| 395 | password include system-password
|
---|
| 396 | session include system-session
|
---|
| 397 |
|
---|
[51dfb3e] | 398 | # End /etc/pam.d/kde-np</literal>
|
---|
[3b0f105] | 399 | EOF
|
---|
| 400 |
|
---|
| 401 | cat > /etc/pam.d/kscreensaver << "EOF"
|
---|
[51dfb3e] | 402 | <literal># Begin /etc/pam.d/kscreensaver
|
---|
[3b0f105] | 403 |
|
---|
| 404 | auth include system-auth
|
---|
| 405 | account include system-account
|
---|
| 406 |
|
---|
[51dfb3e] | 407 | # End /etc/pam.d/kscreensaver</literal>
|
---|
[3b0f105] | 408 | EOF</userinput></screen>
|
---|
| 409 | </sect3>
|
---|
| 410 | </sect2>
|
---|
| 411 |
|
---|
[1c8d0ff] | 412 | <sect2 role="starting">
|
---|
| 413 | <title>Starting Plasma5</title>
|
---|
| 414 |
|
---|
[3f460da0] | 415 | <para revision="sysv">
|
---|
[1c8d0ff] | 416 | You can start <application>Plasma5</application> from runlevel 3, using
|
---|
| 417 | <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
|
---|
[c225bfa] | 418 | such as <xref linkend="lightdm"/>.
|
---|
[1c8d0ff] | 419 | </para>
|
---|
| 420 |
|
---|
[3f460da0] | 421 | <para revision="systemd">
|
---|
| 422 | You can start <application>Plasma5</application> from a TTY, using
|
---|
[fd42347a] | 423 | <xref linkend="xinit"/><!--, or from a graphical display manager, such as
|
---|
| 424 | <xref linkend="sddm"/>-->.
|
---|
[3f460da0] | 425 | </para>
|
---|
| 426 |
|
---|
[1c8d0ff] | 427 | <para>
|
---|
[460cec4b] | 428 | To start <application>Plasma 5</application> using <xref linkend="xinit"/>,
|
---|
[1c8d0ff] | 429 | run the following commands:
|
---|
| 430 | </para>
|
---|
| 431 |
|
---|
[51dfb3e] | 432 | <screen><userinput>cat > ~/.xinitrc << "EOF"
|
---|
[ae20e9a] | 433 | <literal>dbus-launch --exit-with-x11 $KF5_PREFIX/bin/startplasma-x11</literal>
|
---|
[3f460da0] | 434 | EOF
|
---|
| 435 |
|
---|
[1c8d0ff] | 436 | startx</userinput></screen>
|
---|
| 437 |
|
---|
| 438 | <para>
|
---|
| 439 | The X session starts on the first unused virtual terminal, normally vt7.
|
---|
| 440 | You can switch to another vt<emphasis>n</emphasis> simultaneously
|
---|
| 441 | pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
|
---|
| 442 | (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
|
---|
| 443 | normally started at vt7, use Ctrl-Alt-F7. The vt where the command
|
---|
| 444 | <command>startx</command> was executed will display many messages,
|
---|
| 445 | including X starting messages, applications automatically started with
|
---|
| 446 | the session, and eventually, some warning and error messages. You may
|
---|
| 447 | prefer to redirect those messages to a log file, which not only will keep
|
---|
| 448 | the initial vt uncluttered, but can also be used for debugging purposes. This
|
---|
| 449 | can be done starting X with:
|
---|
| 450 | </para>
|
---|
| 451 |
|
---|
[3011abe] | 452 | <screen><userinput>startx &> ~/x-session-errors</userinput></screen>
|
---|
[1c8d0ff] | 453 |
|
---|
| 454 | <para>
|
---|
| 455 | When shutting down or rebooting, the shutdown messages appear on the vt
|
---|
| 456 | where X was running. If you wish to see those messages, simultaneously
|
---|
| 457 | press keys Alt-F7 (assuming that X was running on vt7).
|
---|
| 458 | </para>
|
---|
[7a763b49] | 459 | <!-- Now the entry is "plasma (X11)" for Xorg, so I guess this is
|
---|
| 460 | not needed anymore:
|
---|
[1c8c15c] | 461 | <para>
|
---|
| 462 | If you intend to start <application>Plasma</application> using a
|
---|
[c225bfa] | 463 | display manager such as <xref linkend="lightdm"/>, there will be two entries
|
---|
[f29eb8a] | 464 | for <application>Plasma</application>, one for use with
|
---|
| 465 | <application>Xorg</application>, and another for
|
---|
| 466 | <application>Wayland</application>. Modify the
|
---|
| 467 | <application>Xorg</application> entry with the following command, as the
|
---|
| 468 | <systemitem class="username">root</systemitem> user, so that you can
|
---|
| 469 | differentiate between the two:</para>
|
---|
| 470 |
|
---|
[33c8b427] | 471 | <screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
|
---|
[7a763b49] | 472 | -->
|
---|
[f29eb8a] | 473 |
|
---|
[1c8d0ff] | 474 | </sect2>
|
---|
| 475 |
|
---|
[153a5795] | 476 | <sect2 role="content">
|
---|
| 477 | <title>Contents</title>
|
---|
| 478 |
|
---|
| 479 | <segmentedlist>
|
---|
| 480 | <segtitle>Installed Programs</segtitle>
|
---|
| 481 | <segtitle>Installed Libraries</segtitle>
|
---|
| 482 | <segtitle>Installed Directories</segtitle>
|
---|
| 483 |
|
---|
| 484 | <seglistitem>
|
---|
| 485 | <seg>
|
---|
[2e29bba] | 486 | There are too many plasma programs (63 in /opt/kf5/bin) to list
|
---|
[83ef2a4] | 487 | separately here.
|
---|
[153a5795] | 488 | </seg>
|
---|
| 489 | <seg>
|
---|
[b359b3e0] | 490 | There are too many plasma libraries (40 in /opt/kf5/lib) to list
|
---|
[83ef2a4] | 491 | separately here.
|
---|
[153a5795] | 492 | </seg>
|
---|
| 493 | <seg>
|
---|
[83ef2a4] | 494 | There are too many plasma directories (over 1000 in /opt/kf5) to
|
---|
| 495 | list separately here.
|
---|
[153a5795] | 496 | </seg>
|
---|
| 497 | </seglistitem>
|
---|
| 498 | </segmentedlist>
|
---|
| 499 |
|
---|
| 500 | </sect2>
|
---|
| 501 |
|
---|
| 502 | </sect1>
|
---|