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