[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">
|
---|
[1374aae8] | 10 | <!ENTITY plasma5-size "140 MB">
|
---|
[8aea10f] | 11 | <!ENTITY plasma5-buildsize "1.6 GB (355 MB installed)">
|
---|
[1374aae8] | 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 | <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 |
|
---|
[da54a62] | 33 | &lfs110a_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"/>,
|
---|
[1c8d0ff] | 84 | <xref linkend="libxkbcommon"/>,
|
---|
[366fbbb8] | 85 | <xref linkend="mesa"/> built with <xref linkend="wayland"/>,
|
---|
[f3429309] | 86 | <xref linkend="NetworkManager"/>,
|
---|
[1f21b9c] | 87 | <xref linkend="pipewire"/>,
|
---|
[f3429309] | 88 | <xref linkend="pulseaudio"/>,
|
---|
[b7a66395] | 89 | <xref linkend="qca"/>,
|
---|
[95965b6] | 90 | <xref linkend="sassc"/>,
|
---|
[f3429309] | 91 | <xref linkend="taglib"/>, and
|
---|
[1c8d0ff] | 92 | <xref linkend="xcb-util-cursor"/>
|
---|
[153a5795] | 93 | </para>
|
---|
| 94 |
|
---|
| 95 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 96 | <para role="recommended">
|
---|
[72b8751] | 97 | <xref linkend="fftw"/>,
|
---|
| 98 | <xref linkend="gsettings-desktop-schemas"/>,
|
---|
[f3429309] | 99 | <xref linkend="libdbusmenu-qt"/>,
|
---|
| 100 | <xref linkend="libcanberra"/>,
|
---|
| 101 | <xref linkend="libinput"/>,
|
---|
[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">
|
---|
[56c69c1e] | 110 | <xref role="runtime" linkend="accountsservice"/> and
|
---|
[b359b3e0] | 111 | <xref role="runtime" linkend="smartmontools"/>
|
---|
| 112 | </para>
|
---|
| 113 |
|
---|
[0779b94] | 114 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[153a5795] | 115 | <para role="optional">
|
---|
[0779b94] | 116 | <xref linkend="glu"/>,
|
---|
[7b1bc743] | 117 | <xref linkend='ibus'/>,
|
---|
[0779b94] | 118 | <xref linkend="xorg-synaptics-driver"/>,
|
---|
[ce228c2] | 119 | <ulink url="http://distributions.freedesktop.org/wiki/AppStream">appstream-qt</ulink>,
|
---|
| 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>,
|
---|
[ea529d1] | 126 | <ulink url="http://qalculate.github.io/">Qalculate</ulink>,
|
---|
[ce228c2] | 127 | <ulink url="https://launchpad.net/qapt">Qapt</ulink>,
|
---|
| 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 |
|
---|
| 132 | <para condition="html" role="usernotes">User Notes:
|
---|
| 133 | <ulink url="&blfs-wiki;/kf5"/></para>
|
---|
| 134 |
|
---|
| 135 | <sect2>
|
---|
[773b316] | 136 | <title>Downloading KDE Plasma5</title>
|
---|
[153a5795] | 137 |
|
---|
| 138 | <para>
|
---|
| 139 | The easiest way to get the KDE Plasma5 packages is to use a single
|
---|
| 140 | <command>wget</command> to fetch them all at once:
|
---|
| 141 | </para>
|
---|
[f3429309] | 142 |
|
---|
[c6b192c] | 143 | <screen><userinput>url=https://download.kde.org/stable/plasma/&plasma5-version;/
|
---|
[a01d308] | 144 | wget -r -nH -nd -A '*.xz' -np $url</userinput>
|
---|
[153a5795] | 145 | <literal>
|
---|
[f3429309] | 146 | The options used here are:
|
---|
[153a5795] | 147 | -r recurse through child directories
|
---|
| 148 | -nH disable generation of host-prefixed directories
|
---|
[a01d308] | 149 | -nd do not create a hierarchy of directories
|
---|
[153a5795] | 150 | -A '*.xz' just get the *.xz files
|
---|
[10a9447] | 151 | -np don't get parent directories</literal></screen>
|
---|
[153a5795] | 152 |
|
---|
| 153 | </sect2>
|
---|
| 154 |
|
---|
| 155 | <sect2>
|
---|
| 156 | <title>Setting Package Order</title>
|
---|
| 157 |
|
---|
| 158 | <para>
|
---|
| 159 | The order of building files is important due to internal dependencies.
|
---|
| 160 | Create the list of files in the proper order as follows:
|
---|
| 161 | </para>
|
---|
| 162 |
|
---|
[ed4a7a2] | 163 | <screen><userinput>cat > plasma-&plasma5-version;.md5 << "EOF"
|
---|
[1374aae8] | 164 | <literal>7fab69fa5fc3211b35e3d03f1172831a kdecoration-5.22.4.tar.xz
|
---|
| 165 | a587fecf0473c225f39a7f8a7c611d3b libkscreen-5.22.4.tar.xz
|
---|
| 166 | 115f8e14d6ef58715183eb8036c431c1 libksysguard-5.22.4.tar.xz
|
---|
| 167 | 516a58571f6daeb60a2509057e67712b breeze-5.22.4.tar.xz
|
---|
| 168 | 3b06f3768fc345893625ef44d7e72a98 breeze-gtk-5.22.4.tar.xz
|
---|
| 169 | 049dabd694abed120b4f84d37f05de8c layer-shell-qt-5.22.4.tar.xz
|
---|
| 170 | 17af84caeb942de9a8e3d819f20645b0 kscreenlocker-5.22.4.tar.xz
|
---|
| 171 | ffe09b47f6cc20d13ec311edeb13a9b3 oxygen-5.22.4.tar.xz
|
---|
| 172 | 916bfa4ce6b40ca8ef80b75018d63ab1 kinfocenter-5.22.4.tar.xz
|
---|
| 173 | 365f7cd632d41447561ec1bdf7497bba kwayland-server-5.22.4.tar.xz
|
---|
| 174 | 09cf360780185b33fca9561684a0f41f kwin-5.22.4.tar.xz
|
---|
| 175 | 5cb1ab2a9d3ce0c05eba07ef4c8ac478 plasma-workspace-5.22.4.tar.xz
|
---|
| 176 | 75dd5e0fed93781f0ae031a091dcce4b plasma-disks-5.22.4.tar.xz
|
---|
| 177 | 3d7abfe0952b356cc12cbd75be14f5e0 bluedevil-5.22.4.tar.xz
|
---|
| 178 | 2515439a0daaf325b0fcf9ce1a537660 kde-gtk-config-5.22.4.tar.xz
|
---|
| 179 | 8f2f4b902c98d7890dc1ec3756c27871 khotkeys-5.22.4.tar.xz
|
---|
| 180 | aa03bf8d1c799a4410b567b44b47f6cd kmenuedit-5.22.4.tar.xz
|
---|
| 181 | 6fab0d760e9e6a33255441aab3874b2f kscreen-5.22.4.tar.xz
|
---|
| 182 | 3dae9ce525c52ac3bacaff464dc4264c kwallet-pam-5.22.4.tar.xz
|
---|
| 183 | fa9772ef7737037992aea52739aea95a kwayland-integration-5.22.4.tar.xz
|
---|
| 184 | 51502b6a48f2b7790364881a578cdd1b kwrited-5.22.4.tar.xz
|
---|
| 185 | 6d85652d5fa13953370bc4f37247e3b4 milou-5.22.4.tar.xz
|
---|
| 186 | 61c7fc4c00637715e8d0c4491298b5b7 plasma-nm-5.22.4.tar.xz
|
---|
| 187 | 31272515681adc5d0ca987a9dc182de5 plasma-pa-5.22.4.tar.xz
|
---|
| 188 | 95aefdbfd0a3cd6b871e50968ccf43d9 plasma-workspace-wallpapers-5.22.4.tar.xz
|
---|
| 189 | 9a36fb70a6d1f1f637d75a75e77eb9ba polkit-kde-agent-1-5.22.4.tar.xz
|
---|
| 190 | f7860ee18c994a8b87f39965b53f4f1f powerdevil-5.22.4.tar.xz
|
---|
| 191 | ba7687bdea331a62127f7cc69029c194 plasma-desktop-5.22.4.tar.xz
|
---|
| 192 | 9c393f6da042841ed8cf41f9ad126b5c kdeplasma-addons-5.22.4.tar.xz
|
---|
| 193 | bf508d7b503f1923fdb5fbd22f957981 kgamma5-5.22.4.tar.xz
|
---|
| 194 | 239d00ede4c0e941dc6407f8510f1678 ksshaskpass-5.22.4.tar.xz
|
---|
| 195 | #ba59a194b4812db25022c189e129151f plasma-sdk-5.22.4.tar.xz
|
---|
| 196 | 3ecfe0501ce2ec0f8c8bda3a01c78be7 sddm-kcm-5.22.4.tar.xz
|
---|
| 197 | a81e62bd36f3db28712274da80ed52a4 discover-5.22.4.tar.xz
|
---|
| 198 | #9abba589089c1088e1836cabe9e593f6 breeze-grub-5.22.4.tar.xz
|
---|
| 199 | #d038d1db0f1ed5e80b9d22a537dd1872 breeze-plymouth-5.22.4.tar.xz
|
---|
| 200 | 7aef306ec8c2131f0fa22d2b558f73fb kactivitymanagerd-5.22.4.tar.xz
|
---|
| 201 | 8c30da2b1dbcfbfaa715c050339b0e0a plasma-integration-5.22.4.tar.xz
|
---|
| 202 | 006171ce3edae4b67d27b1577cdc84a1 plasma-tests-5.22.4.tar.xz
|
---|
| 203 | #442fd33f46a982eeeb925fd6f7d919b1 plymouth-kcm-5.22.4.tar.xz
|
---|
| 204 | 900994c0628b8b3767c83db0b4f16e0c xdg-desktop-portal-kde-5.22.4.tar.xz
|
---|
| 205 | 61ebe5891cf9adcd62d32c5069573ff0 drkonqi-5.22.4.tar.xz
|
---|
| 206 | d464d91d37cf12da1721abc18ec94140 plasma-vault-5.22.4.tar.xz
|
---|
| 207 | 8c9a2286634cb89fb04d0278c6af8f8c plasma-browser-integration-5.22.4.tar.xz
|
---|
| 208 | 257e25f2388014932ecf786dd9e49bd5 kde-cli-tools-5.22.4.tar.xz
|
---|
| 209 | 9314599d78ed6683018ff5a7b69d2a08 systemsettings-5.22.4.tar.xz
|
---|
| 210 | 3ea20e78932f2a487d932acd1eff10f7 plasma-thunderbolt-5.22.4.tar.xz
|
---|
| 211 | #0ecfa8ed1962f4f842967ed7b66d14f8 plasma-nano-5.22.4.tar.xz
|
---|
| 212 | #157a441ad0519936dcb75856ae83010e plasma-phone-components-5.22.4.tar.xz
|
---|
| 213 | 71b0da480c6b91b6445b6bdbe452bdae plasma-firewall-5.22.4.tar.xz
|
---|
| 214 | 026a4d3cd063ba86e77c9ffa711aa769 plasma-systemmonitor-5.22.4.tar.xz
|
---|
| 215 | 0d72d2e9f5d6a3975068e1a472ce9982 qqc2-breeze-style-5.22.4.tar.xz
|
---|
| 216 | 171c556167b17fd2b16783015c3f8ae6 ksystemstats-5.22.4.tar.xz</literal>
|
---|
[153a5795] | 217 | EOF</userinput></screen>
|
---|
| 218 |
|
---|
[1c8c15c] | 219 | <note>
|
---|
| 220 | <para>
|
---|
| 221 | The breeze-grub, breeze-plymouth, and plymouth-kcm packages above are
|
---|
| 222 | all for customized support of <ulink
|
---|
| 223 | url="https://www.freedesktop.org/wiki/Software/Plymouth/"
|
---|
| 224 | >Plymouth</ulink>
|
---|
| 225 | which is designed to be run within an initial ram disk during boot (see
|
---|
| 226 | <xref linkend="initramfs"/>). The plasma-sdk package is optional and
|
---|
| 227 | used for software development. The plasma-nano package is used for
|
---|
| 228 | embedded systems and plasma-phone-components provides phone
|
---|
| 229 | functionality for Plasma.
|
---|
| 230 | </para>
|
---|
| 231 | </note>
|
---|
[ce228c2] | 232 |
|
---|
[153a5795] | 233 | </sect2>
|
---|
| 234 |
|
---|
| 235 | <sect2 role="installation">
|
---|
| 236 | <title>Installation of Plasma5</title>
|
---|
| 237 |
|
---|
| 238 | &as_root;
|
---|
| 239 |
|
---|
| 240 | <para>
|
---|
| 241 | First, start a subshell that will exit on error:
|
---|
| 242 | </para>
|
---|
| 243 |
|
---|
| 244 | <screen><userinput>bash -e</userinput></screen>
|
---|
| 245 |
|
---|
| 246 | <para>
|
---|
| 247 | Install all of the packages by running the following
|
---|
| 248 | commands:
|
---|
| 249 | </para>
|
---|
| 250 |
|
---|
| 251 | <screen><userinput>while read -r line; do
|
---|
| 252 |
|
---|
| 253 | # Get the file name, ignoring comments and blank lines
|
---|
| 254 | if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
|
---|
| 255 | file=$(echo $line | cut -d" " -f2)
|
---|
[f3429309] | 256 |
|
---|
[153a5795] | 257 | pkg=$(echo $file|sed 's|^.*/||') # Remove directory
|
---|
| 258 | packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
|
---|
| 259 |
|
---|
| 260 | tar -xf $file
|
---|
| 261 | pushd $packagedir
|
---|
[b359b3e0] | 262 | <!--
|
---|
[4e0a40f] | 263 | # Fix some build issues when generating some configuration files
|
---|
[cfd5cb3] | 264 | case $name in
|
---|
| 265 | plasma-workspace)
|
---|
| 266 | sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 267 | ;;
|
---|
| 268 |
|
---|
| 269 | khotkeys)
|
---|
| 270 | sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 271 | ;;
|
---|
| 272 |
|
---|
| 273 | plasma-desktop)
|
---|
| 274 | sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 275 | ;;
|
---|
| 276 | esac
|
---|
[b359b3e0] | 277 | -->
|
---|
[69a9de5] | 278 | mkdir build
|
---|
| 279 | cd build
|
---|
[153a5795] | 280 |
|
---|
[1c8d0ff] | 281 | cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
|
---|
| 282 | -DCMAKE_BUILD_TYPE=Release \
|
---|
| 283 | -DBUILD_TESTING=OFF \
|
---|
[69a9de5] | 284 | -Wno-dev .. &&
|
---|
[153a5795] | 285 |
|
---|
[69a9de5] | 286 | make
|
---|
| 287 | as_root make install
|
---|
| 288 | popd
|
---|
[153a5795] | 289 |
|
---|
[b44e7de2] | 290 | <!-- some packages end up with files owned by root in $packagedir,
|
---|
[8f445fdc] | 291 | so use as_root for removing -->
|
---|
| 292 | as_root rm -rf $packagedir
|
---|
[69a9de5] | 293 | as_root /sbin/ldconfig
|
---|
| 294 |
|
---|
[ed4a7a2] | 295 | done < plasma-&plasma5-version;.md5
|
---|
[153a5795] | 296 |
|
---|
[527f3db] | 297 | exit</userinput></screen>
|
---|
[1c8d0ff] | 298 |
|
---|
[527f3db] | 299 | <para>
|
---|
| 300 | If you did not set <envar>$KF5_PREFIX</envar> to
|
---|
| 301 | <filename>/usr</filename>, create symlinks to allow display managers to
|
---|
| 302 | find <application>Plasma</application>:
|
---|
| 303 | </para>
|
---|
| 304 |
|
---|
| 305 | <screen><userinput>as_root install -dvm 755 /usr/share/xsessions &&
|
---|
| 306 | cd /usr/share/xsessions/ &&
|
---|
| 307 | [ -e plasma.desktop ] ||
|
---|
| 308 | as_root ln -sfv $KF5_PREFIX/share/xsessions/plasma.desktop &&
|
---|
| 309 | as_root install -dvm 755 /usr/share/wayland-sessions &&
|
---|
| 310 | cd /usr/share/wayland-sessions/ &&
|
---|
[4969ec3c] | 311 | [ -e plasmawayland.desktop ] ||
|
---|
| 312 | as_root ln -sfv $KF5_PREFIX/share/wayland-sessions/plasmawayland.desktop<!--
|
---|
[1c8d0ff] | 313 | cd $KF5_PREFIX/share/plasma/plasmoids
|
---|
[153a5795] | 314 |
|
---|
[1c8d0ff] | 315 | for j in $(find -name \*.js); do
|
---|
[3d656d7] | 316 | as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
|
---|
[5ac58b54] | 317 | done--></userinput></screen>
|
---|
[153a5795] | 318 |
|
---|
[2e29bba] | 319 | <para revision="sysv">
|
---|
| 320 | Useless systemd units have been installed in
|
---|
| 321 | <filename class="directory">$KF5_PREFIX/lib</filename>. Remove
|
---|
| 322 | them now (as <systemitem class="username">root</systemitem>):
|
---|
| 323 | </para>
|
---|
| 324 |
|
---|
| 325 | <screen role="root"
|
---|
| 326 | revision="sysv"><userinput>rm -rf $KF5_PREFIX/lib/systemd</userinput></screen>
|
---|
| 327 |
|
---|
[153a5795] | 328 | </sect2>
|
---|
[5ac58b54] | 329 | <!--
|
---|
[153a5795] | 330 | <sect2 role="commands">
|
---|
| 331 | <title>Command Explanations</title>
|
---|
| 332 |
|
---|
| 333 | <para>
|
---|
[1c8d0ff] | 334 | <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
|
---|
| 335 | Create symbolic links so qml files can find needed javascript modules.
|
---|
[153a5795] | 336 | </para>
|
---|
| 337 |
|
---|
| 338 | </sect2>
|
---|
[5ac58b54] | 339 | -->
|
---|
[3b0f105] | 340 | <sect2 role="configuration">
|
---|
| 341 | <title>Configuring Plasma</title>
|
---|
| 342 |
|
---|
| 343 | <sect3>
|
---|
| 344 | <title>Linux PAM Configuration</title>
|
---|
| 345 |
|
---|
| 346 | <para>
|
---|
| 347 | If you built Plasma with the recommended <application>Linux
|
---|
| 348 | PAM</application> support, create necessary configuration files by
|
---|
| 349 | running the following commands as the <systemitem
|
---|
| 350 | class="username">root</systemitem> user:
|
---|
| 351 | </para>
|
---|
| 352 |
|
---|
[941658d] | 353 | <screen role="root"><userinput>cat > /etc/pam.d/kde << "EOF"
|
---|
[51dfb3e] | 354 | <literal># Begin /etc/pam.d/kde
|
---|
[3b0f105] | 355 |
|
---|
| 356 | auth requisite pam_nologin.so
|
---|
| 357 | auth required pam_env.so
|
---|
| 358 |
|
---|
| 359 | auth required pam_succeed_if.so uid >= 1000 quiet
|
---|
| 360 | auth include system-auth
|
---|
| 361 |
|
---|
| 362 | account include system-account
|
---|
| 363 | password include system-password
|
---|
| 364 | session include system-session
|
---|
| 365 |
|
---|
[51dfb3e] | 366 | # End /etc/pam.d/kde</literal>
|
---|
[3b0f105] | 367 | EOF
|
---|
| 368 |
|
---|
| 369 | cat > /etc/pam.d/kde-np << "EOF"
|
---|
[51dfb3e] | 370 | <literal># Begin /etc/pam.d/kde-np
|
---|
[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 required pam_permit.so
|
---|
| 377 |
|
---|
| 378 | account include system-account
|
---|
| 379 | password include system-password
|
---|
| 380 | session include system-session
|
---|
| 381 |
|
---|
[51dfb3e] | 382 | # End /etc/pam.d/kde-np</literal>
|
---|
[3b0f105] | 383 | EOF
|
---|
| 384 |
|
---|
| 385 | cat > /etc/pam.d/kscreensaver << "EOF"
|
---|
[51dfb3e] | 386 | <literal># Begin /etc/pam.d/kscreensaver
|
---|
[3b0f105] | 387 |
|
---|
| 388 | auth include system-auth
|
---|
| 389 | account include system-account
|
---|
| 390 |
|
---|
[51dfb3e] | 391 | # End /etc/pam.d/kscreensaver</literal>
|
---|
[3b0f105] | 392 | EOF</userinput></screen>
|
---|
| 393 | </sect3>
|
---|
| 394 | </sect2>
|
---|
| 395 |
|
---|
[1c8d0ff] | 396 | <sect2 role="starting">
|
---|
| 397 | <title>Starting Plasma5</title>
|
---|
| 398 |
|
---|
[3f460da0] | 399 | <para revision="sysv">
|
---|
[1c8d0ff] | 400 | You can start <application>Plasma5</application> from runlevel 3, using
|
---|
| 401 | <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
|
---|
[c225bfa] | 402 | such as <xref linkend="lightdm"/>.
|
---|
[1c8d0ff] | 403 | </para>
|
---|
| 404 |
|
---|
[3f460da0] | 405 | <para revision="systemd">
|
---|
| 406 | You can start <application>Plasma5</application> from a TTY, using
|
---|
[fd42347a] | 407 | <xref linkend="xinit"/><!--, or from a graphical display manager, such as
|
---|
| 408 | <xref linkend="sddm"/>-->.
|
---|
[3f460da0] | 409 | </para>
|
---|
| 410 |
|
---|
[1c8d0ff] | 411 | <para>
|
---|
[460cec4b] | 412 | To start <application>Plasma 5</application> using <xref linkend="xinit"/>,
|
---|
[1c8d0ff] | 413 | run the following commands:
|
---|
| 414 | </para>
|
---|
| 415 |
|
---|
[51dfb3e] | 416 | <screen><userinput>cat > ~/.xinitrc << "EOF"
|
---|
[718be191] | 417 | <literal>dbus-launch --exit-with-session $KF5_PREFIX/bin/startplasma-x11</literal>
|
---|
[3f460da0] | 418 | EOF
|
---|
| 419 |
|
---|
[1c8d0ff] | 420 | startx</userinput></screen>
|
---|
| 421 |
|
---|
| 422 | <para>
|
---|
| 423 | The X session starts on the first unused virtual terminal, normally vt7.
|
---|
| 424 | You can switch to another vt<emphasis>n</emphasis> simultaneously
|
---|
| 425 | pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
|
---|
| 426 | (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
|
---|
| 427 | normally started at vt7, use Ctrl-Alt-F7. The vt where the command
|
---|
| 428 | <command>startx</command> was executed will display many messages,
|
---|
| 429 | including X starting messages, applications automatically started with
|
---|
| 430 | the session, and eventually, some warning and error messages. You may
|
---|
| 431 | prefer to redirect those messages to a log file, which not only will keep
|
---|
| 432 | the initial vt uncluttered, but can also be used for debugging purposes. This
|
---|
| 433 | can be done starting X with:
|
---|
| 434 | </para>
|
---|
| 435 |
|
---|
[3011abe] | 436 | <screen><userinput>startx &> ~/x-session-errors</userinput></screen>
|
---|
[1c8d0ff] | 437 |
|
---|
| 438 | <para>
|
---|
| 439 | When shutting down or rebooting, the shutdown messages appear on the vt
|
---|
| 440 | where X was running. If you wish to see those messages, simultaneously
|
---|
| 441 | press keys Alt-F7 (assuming that X was running on vt7).
|
---|
| 442 | </para>
|
---|
[7a763b49] | 443 | <!-- Now the entry is "plasma (X11)" for Xorg, so I guess this is
|
---|
| 444 | not needed anymore:
|
---|
[1c8c15c] | 445 | <para>
|
---|
| 446 | If you intend to start <application>Plasma</application> using a
|
---|
[c225bfa] | 447 | display manager such as <xref linkend="lightdm"/>, there will be two entries
|
---|
[f29eb8a] | 448 | for <application>Plasma</application>, one for use with
|
---|
| 449 | <application>Xorg</application>, and another for
|
---|
| 450 | <application>Wayland</application>. Modify the
|
---|
| 451 | <application>Xorg</application> entry with the following command, as the
|
---|
| 452 | <systemitem class="username">root</systemitem> user, so that you can
|
---|
| 453 | differentiate between the two:</para>
|
---|
| 454 |
|
---|
[33c8b427] | 455 | <screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
|
---|
[7a763b49] | 456 | -->
|
---|
[f29eb8a] | 457 |
|
---|
[1c8d0ff] | 458 | </sect2>
|
---|
| 459 |
|
---|
[153a5795] | 460 | <sect2 role="content">
|
---|
| 461 | <title>Contents</title>
|
---|
| 462 |
|
---|
| 463 | <segmentedlist>
|
---|
| 464 | <segtitle>Installed Programs</segtitle>
|
---|
| 465 | <segtitle>Installed Libraries</segtitle>
|
---|
| 466 | <segtitle>Installed Directories</segtitle>
|
---|
| 467 |
|
---|
| 468 | <seglistitem>
|
---|
| 469 | <seg>
|
---|
[2e29bba] | 470 | There are too many plasma programs (63 in /opt/kf5/bin) to list
|
---|
[83ef2a4] | 471 | separately here.
|
---|
[153a5795] | 472 | </seg>
|
---|
| 473 | <seg>
|
---|
[b359b3e0] | 474 | There are too many plasma libraries (40 in /opt/kf5/lib) to list
|
---|
[83ef2a4] | 475 | separately here.
|
---|
[153a5795] | 476 | </seg>
|
---|
| 477 | <seg>
|
---|
[83ef2a4] | 478 | There are too many plasma directories (over 1000 in /opt/kf5) to
|
---|
| 479 | list separately here.
|
---|
[153a5795] | 480 | </seg>
|
---|
| 481 | </seglistitem>
|
---|
| 482 | </segmentedlist>
|
---|
| 483 |
|
---|
| 484 | </sect2>
|
---|
| 485 |
|
---|
| 486 | </sect1>
|
---|