[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 |
|
---|
[c6a5c39] | 7 | <!ENTITY plasma5-download-http "http://download.kde.org/stable/plasma/&plasma5-version;">
|
---|
[153a5795] | 8 | <!ENTITY plasma5-download-ftp " ">
|
---|
| 9 | <!ENTITY plasma5-md5sum "See Below">
|
---|
[9d8bf2a] | 10 | <!ENTITY plasma5-size "121 MB">
|
---|
| 11 | <!ENTITY plasma5-buildsize "1.3 GB (327 MB installed)">
|
---|
| 12 | <!ENTITY plasma5-time "17 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>
|
---|
| 19 | <othername>$LastChangedBy: bdubbs $</othername>
|
---|
| 20 | <date>$Date: 2015-09-24 16:44:04 -0500 (Thu, 24 Sep 2015) $</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>Building Plasma 5</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="plasma5-build">
|
---|
[2630345] | 26 | <primary sortas="a-kde-plasma">KDE Plasma 5</primary>
|
---|
[153a5795] | 27 | </indexterm>
|
---|
| 28 |
|
---|
[1c8c15c] | 29 | <para>
|
---|
| 30 | KDE Plasma 5 is a collection of packages based on top of KDE Frameworks
|
---|
| 31 | 5 and QML. They implement the KDE Display Environment (Plasma 5).
|
---|
| 32 | </para>
|
---|
[366fbbb8] | 33 |
|
---|
[9d8bf2a] | 34 | &lfs10_checked;
|
---|
[153a5795] | 35 |
|
---|
[1c8c15c] | 36 | <para>
|
---|
| 37 | The instructions below build all of the Plasma 5 packages in one
|
---|
| 38 | step by using a bash script.
|
---|
| 39 | </para>
|
---|
[153a5795] | 40 |
|
---|
| 41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 42 | <itemizedlist spacing="compact">
|
---|
| 43 | <listitem>
|
---|
[1c8c15c] | 44 | <para>
|
---|
| 45 | Download (HTTP): <ulink url="&plasma5-download-http;"/>
|
---|
| 46 | </para>
|
---|
[153a5795] | 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
[1c8c15c] | 49 | <para>
|
---|
| 50 | Download (FTP): <ulink url="&plasma5-download-ftp;"/>
|
---|
| 51 | </para>
|
---|
[153a5795] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[1c8c15c] | 54 | <para>
|
---|
| 55 | Download MD5 sum: &plasma5-md5sum;
|
---|
| 56 | </para>
|
---|
[153a5795] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[1c8c15c] | 59 | <para>
|
---|
| 60 | Download size: &plasma5-size;
|
---|
| 61 | </para>
|
---|
[153a5795] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[1c8c15c] | 64 | <para>
|
---|
| 65 | Estimated disk space required: &plasma5-buildsize;
|
---|
| 66 | </para>
|
---|
[153a5795] | 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
[1c8c15c] | 69 | <para>
|
---|
| 70 | Estimated build time: &plasma5-time;
|
---|
| 71 | </para>
|
---|
[153a5795] | 72 | </listitem>
|
---|
| 73 | </itemizedlist>
|
---|
| 74 |
|
---|
| 75 | <bridgehead renderas="sect3">Plasma 5 Dependencies</bridgehead>
|
---|
| 76 |
|
---|
| 77 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 78 | <para role="required">
|
---|
[89f706b2] | 79 | <!--<xref linkend="fontforge"/>,-->
|
---|
[96f2797] | 80 | <xref linkend="GConf"/>,
|
---|
[f3429309] | 81 | <xref linkend="gtk2"/>,
|
---|
| 82 | <xref linkend="gtk3"/>,
|
---|
[f97d5f6] | 83 | <xref linkend="kf5-frameworks"/>,
|
---|
[366fbbb8] | 84 | <xref linkend="libpwquality"/>,
|
---|
[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"/>,
|
---|
[0779b94] | 103 | <xref linkend="linux-pam"/>,
|
---|
[f3429309] | 104 | <xref linkend="lm_sensors"/>,
|
---|
[88bb10f] | 105 | <xref linkend="oxygen-icons5"/>, and
|
---|
[0779b94] | 106 | <xref linkend="pciutils"/>
|
---|
[153a5795] | 107 | </para>
|
---|
| 108 |
|
---|
[0779b94] | 109 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[153a5795] | 110 | <para role="optional">
|
---|
[0779b94] | 111 | <xref linkend="glu"/>,
|
---|
[7b1bc743] | 112 | <xref linkend='ibus'/>,
|
---|
[0779b94] | 113 | <xref linkend="xorg-synaptics-driver"/>,
|
---|
[ce228c2] | 114 | <ulink url="http://distributions.freedesktop.org/wiki/AppStream">appstream-qt</ulink>,
|
---|
| 115 | <ulink url="https://www.kdevelop.org/">KDevPlatform</ulink>,
|
---|
[3d9b01d] | 116 | <ulink url="https://gpsd.gitlab.io/gpsd/">libgps</ulink>,
|
---|
[0779b94] | 117 | <ulink url="https://github.com/libhybris/libhybris">libhybris</ulink>,
|
---|
| 118 | <ulink url="http://sourceforge.net/projects/libraw1394/">libraw1394</ulink>,
|
---|
| 119 | <ulink url="https://bitbucket.org/godsme/mockcpp">mockcpp</ulink>,
|
---|
[ce228c2] | 120 | <ulink url="https://www.freedesktop.org/software/PackageKit/releases/">packagekit-qt</ulink>,
|
---|
[ea529d1] | 121 | <ulink url="http://qalculate.github.io/">Qalculate</ulink>,
|
---|
[ce228c2] | 122 | <ulink url="https://launchpad.net/qapt">Qapt</ulink>,
|
---|
| 123 | <ulink url="https://github.com/osiam/osiam">SCIM</ulink>, and
|
---|
[4c3c7f43] | 124 | <ulink url="http://www.dest-unreach.org/socat/">socat</ulink> (for pam_kwallet)
|
---|
[153a5795] | 125 | </para>
|
---|
| 126 |
|
---|
| 127 | <para condition="html" role="usernotes">User Notes:
|
---|
| 128 | <ulink url="&blfs-wiki;/kf5"/></para>
|
---|
| 129 |
|
---|
| 130 | <sect2>
|
---|
[773b316] | 131 | <title>Downloading KDE Plasma5</title>
|
---|
[153a5795] | 132 |
|
---|
| 133 | <para>
|
---|
| 134 | The easiest way to get the KDE Plasma5 packages is to use a single
|
---|
| 135 | <command>wget</command> to fetch them all at once:
|
---|
| 136 | </para>
|
---|
[f3429309] | 137 |
|
---|
[153a5795] | 138 | <screen><userinput>url=http://download.kde.org/stable/plasma/&plasma5-version;/
|
---|
[a01d308] | 139 | wget -r -nH -nd -A '*.xz' -np $url</userinput>
|
---|
[153a5795] | 140 | <literal>
|
---|
[f3429309] | 141 | The options used here are:
|
---|
[153a5795] | 142 | -r recurse through child directories
|
---|
| 143 | -nH disable generation of host-prefixed directories
|
---|
[a01d308] | 144 | -nd do not create a hierarchy of directories
|
---|
[153a5795] | 145 | -A '*.xz' just get the *.xz files
|
---|
[10a9447] | 146 | -np don't get parent directories</literal></screen>
|
---|
[153a5795] | 147 |
|
---|
| 148 | </sect2>
|
---|
| 149 |
|
---|
| 150 | <sect2>
|
---|
| 151 | <title>Setting Package Order</title>
|
---|
| 152 |
|
---|
| 153 | <para>
|
---|
| 154 | The order of building files is important due to internal dependencies.
|
---|
| 155 | Create the list of files in the proper order as follows:
|
---|
| 156 | </para>
|
---|
| 157 |
|
---|
[ed4a7a2] | 158 | <screen><userinput>cat > plasma-&plasma5-version;.md5 << "EOF"
|
---|
[9d8bf2a] | 159 | <literal>018aa45f5cf8e43e7a20618928affebe kdecoration-5.19.4.tar.xz
|
---|
| 160 | 3f371e5e60fb8e884af6c6ee247b0e8d libkscreen-5.19.4.tar.xz
|
---|
| 161 | 5cafda895bbfa0c06e93c53616b89700 libksysguard-5.19.4.tar.xz
|
---|
| 162 | 108b5e62a2abca19fcfa3b4ff8f131f3 breeze-5.19.4.tar.xz
|
---|
| 163 | 2cb9cf02aa9e3c2b8e676165b99f8774 breeze-gtk-5.19.4.tar.xz
|
---|
| 164 | 67ac644f6ef96bf5b83066022345b4e0 kscreenlocker-5.19.4.tar.xz
|
---|
| 165 | 0df5f8e9868151a2899ba81f5dec567b oxygen-5.19.4.tar.xz
|
---|
| 166 | d1ce45d4d530d1257416ad1c0ff0286f kinfocenter-5.19.4.tar.xz
|
---|
| 167 | 79a948dbf0bb8c83f1f2ee17efd61385 ksysguard-5.19.4.tar.xz
|
---|
| 168 | 4be1ba7337efe304d0b41a899edc5dc5 kwayland-server-5.19.4.tar.xz
|
---|
| 169 | 197cadd24436310957258d2b40244ae8 kwin-5.19.4.tar.xz
|
---|
| 170 | 15d58fbcfcf42d86629af7a77860e5a3 plasma-workspace-5.19.4.tar.xz
|
---|
| 171 | 6a6d4347ea08f7dbce275fec3931bf26 bluedevil-5.19.4.tar.xz
|
---|
| 172 | 972626bf6107585561f9f6335d3f8e16 kde-gtk-config-5.19.4.tar.xz
|
---|
| 173 | b73b47db04afcb39c6a5547fc4b715dc khotkeys-5.19.4.tar.xz
|
---|
| 174 | 0b8fa3d76cb2b6f87d3d76884773d5b5 kmenuedit-5.19.4.tar.xz
|
---|
| 175 | 60223cfe9581d0913a421877a1946dab kscreen-5.19.4.tar.xz
|
---|
| 176 | a89d3e90f4595b2acb7d911584f1883d kwallet-pam-5.19.4.tar.xz
|
---|
| 177 | b471f4de79180257d05baebb6b9b587e kwayland-integration-5.19.4.tar.xz
|
---|
| 178 | 96faee06be1d88890c421b4d6334b783 kwrited-5.19.4.tar.xz
|
---|
| 179 | edcdefa304ed8df4d89e2bb48cb1cdd2 milou-5.19.4.tar.xz
|
---|
| 180 | a5af79f15adec8b2dd19ce286e575691 plasma-nm-5.19.4.tar.xz
|
---|
| 181 | f6eff79bb6a683e66208228ff566c116 plasma-pa-5.19.4.tar.xz
|
---|
| 182 | 569c55902960eda4658634bac40dd22e plasma-workspace-wallpapers-5.19.4.tar.xz
|
---|
| 183 | 0a3f401968a27c3ae5caec07064c2343 polkit-kde-agent-1-5.19.4.tar.xz
|
---|
| 184 | 9a2c2cbd8df0d5ce5133b842fa5ed636 powerdevil-5.19.4.tar.xz
|
---|
| 185 | 1f1ea5c20ef9b90f106a2d25a7128a35 plasma-desktop-5.19.4.tar.xz
|
---|
| 186 | a8fefae0ae99a25f31c798b921d42564 kdeplasma-addons-5.19.4.tar.xz
|
---|
| 187 | 3344cda599e9a33c510c9113f9da3948 kgamma5-5.19.4.tar.xz
|
---|
| 188 | e490ae9cef3e092124047dbbbcf0a3e5 ksshaskpass-5.19.4.tar.xz
|
---|
| 189 | #e211c0b303736f2c913f7eee4b112792 plasma-sdk-5.19.4.tar.xz
|
---|
| 190 | da829188c6b8c5116cb156b388adf1b8 sddm-kcm-5.19.4.tar.xz
|
---|
| 191 | 0787296981e74adb829df253e6cd8a82 user-manager-5.19.4.tar.xz
|
---|
| 192 | 99e3c88039d905aeee25984807d04f22 discover-5.19.4.tar.xz
|
---|
| 193 | #70f67b313e08ff3735c5dabcc4d34d2f breeze-grub-5.19.4.tar.xz
|
---|
| 194 | #a38f1c99c6f43ce767a978319f87a011 breeze-plymouth-5.19.4.tar.xz
|
---|
| 195 | c2340132ae128347a83fa8748a46ed9d kactivitymanagerd-5.19.4.tar.xz
|
---|
| 196 | 10fea9aa0c4a74dce276bd006f56fdc0 plasma-integration-5.19.4.tar.xz
|
---|
| 197 | 7645d39b27be8f378b2fe66a9e7a4734 plasma-tests-5.19.4.tar.xz
|
---|
| 198 | #74b4d61d44f5181e06fb5ae467f84d2d plymouth-kcm-5.19.4.tar.xz
|
---|
| 199 | a4831d1a9f75b378e690daa07a543a88 xdg-desktop-portal-kde-5.19.4.tar.xz
|
---|
| 200 | 39c97b134ab62d432187b2fadccacc11 drkonqi-5.19.4.tar.xz
|
---|
| 201 | b74993d79c92e8e39cf4910b2401c8f2 plasma-vault-5.19.4.tar.xz
|
---|
| 202 | b43af2c7267fcfd591c9b3d1b94dfa80 plasma-browser-integration-5.19.4.tar.xz
|
---|
| 203 | d0aa151e8dfe37bc412bf4a9fdfa027d kde-cli-tools-5.19.4.tar.xz
|
---|
| 204 | 5d0d2934a79dcd46e10165812ea69cc9 systemsettings-5.19.4.tar.xz
|
---|
| 205 | 3e05594393cba476cf41c9001fe152f5 plasma-thunderbolt-5.19.4.tar.xz
|
---|
| 206 | #6fcb468827748d81a3d79a862e80ee52 plasma-nano-5.19.4.tar.xz
|
---|
| 207 | #13d0a1017e9a44fc91b27147866ff36b plasma-phone-components-5.19.4.tar.xz</literal>
|
---|
[153a5795] | 208 | EOF</userinput></screen>
|
---|
| 209 |
|
---|
[1c8c15c] | 210 | <note>
|
---|
| 211 | <para>
|
---|
| 212 | The breeze-grub, breeze-plymouth, and plymouth-kcm packages above are
|
---|
| 213 | all for customized support of <ulink
|
---|
| 214 | url="https://www.freedesktop.org/wiki/Software/Plymouth/"
|
---|
| 215 | >Plymouth</ulink>
|
---|
| 216 | which is designed to be run within an initial ram disk during boot (see
|
---|
| 217 | <xref linkend="initramfs"/>). The plasma-sdk package is optional and
|
---|
| 218 | used for software development. The plasma-nano package is used for
|
---|
| 219 | embedded systems and plasma-phone-components provides phone
|
---|
| 220 | functionality for Plasma.
|
---|
| 221 | </para>
|
---|
| 222 | </note>
|
---|
[ce228c2] | 223 |
|
---|
[153a5795] | 224 | </sect2>
|
---|
| 225 |
|
---|
| 226 | <sect2 role="installation">
|
---|
| 227 | <title>Installation of Plasma5</title>
|
---|
| 228 |
|
---|
| 229 | &as_root;
|
---|
| 230 |
|
---|
| 231 | <para>
|
---|
| 232 | First, start a subshell that will exit on error:
|
---|
| 233 | </para>
|
---|
| 234 |
|
---|
| 235 | <screen><userinput>bash -e</userinput></screen>
|
---|
| 236 |
|
---|
| 237 | <para>
|
---|
| 238 | Install all of the packages by running the following
|
---|
| 239 | commands:
|
---|
| 240 | </para>
|
---|
| 241 |
|
---|
| 242 | <screen><userinput>while read -r line; do
|
---|
| 243 |
|
---|
| 244 | # Get the file name, ignoring comments and blank lines
|
---|
| 245 | if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
|
---|
| 246 | file=$(echo $line | cut -d" " -f2)
|
---|
[f3429309] | 247 |
|
---|
[153a5795] | 248 | pkg=$(echo $file|sed 's|^.*/||') # Remove directory
|
---|
| 249 | packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
|
---|
| 250 |
|
---|
| 251 | tar -xf $file
|
---|
| 252 | pushd $packagedir
|
---|
| 253 |
|
---|
[4e0a40f] | 254 | # Fix some build issues when generating some configuration files
|
---|
[cfd5cb3] | 255 | case $name in
|
---|
| 256 | plasma-workspace)
|
---|
| 257 | sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 258 | ;;
|
---|
| 259 |
|
---|
| 260 | khotkeys)
|
---|
| 261 | sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 262 | ;;
|
---|
| 263 |
|
---|
| 264 | plasma-desktop)
|
---|
| 265 | sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 266 | ;;
|
---|
| 267 | esac
|
---|
| 268 |
|
---|
[69a9de5] | 269 | mkdir build
|
---|
| 270 | cd build
|
---|
[153a5795] | 271 |
|
---|
[1c8d0ff] | 272 | cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
|
---|
| 273 | -DCMAKE_BUILD_TYPE=Release \
|
---|
| 274 | -DBUILD_TESTING=OFF \
|
---|
[69a9de5] | 275 | -Wno-dev .. &&
|
---|
[153a5795] | 276 |
|
---|
[69a9de5] | 277 | make
|
---|
| 278 | as_root make install
|
---|
| 279 | popd
|
---|
[153a5795] | 280 |
|
---|
[b44e7de2] | 281 | <!-- some packages end up with files owned by root in $packagedir,
|
---|
[8f445fdc] | 282 | so use as_root for removing -->
|
---|
| 283 | as_root rm -rf $packagedir
|
---|
[69a9de5] | 284 | as_root /sbin/ldconfig
|
---|
| 285 |
|
---|
[ed4a7a2] | 286 | done < plasma-&plasma5-version;.md5
|
---|
[153a5795] | 287 |
|
---|
[527f3db] | 288 | exit</userinput></screen>
|
---|
[1c8d0ff] | 289 |
|
---|
[527f3db] | 290 | <para>
|
---|
| 291 | If you did not set <envar>$KF5_PREFIX</envar> to
|
---|
| 292 | <filename>/usr</filename>, create symlinks to allow display managers to
|
---|
| 293 | find <application>Plasma</application>:
|
---|
| 294 | </para>
|
---|
| 295 |
|
---|
| 296 | <screen><userinput>as_root install -dvm 755 /usr/share/xsessions &&
|
---|
| 297 | cd /usr/share/xsessions/ &&
|
---|
| 298 | [ -e plasma.desktop ] ||
|
---|
| 299 | as_root ln -sfv $KF5_PREFIX/share/xsessions/plasma.desktop &&
|
---|
| 300 | as_root install -dvm 755 /usr/share/wayland-sessions &&
|
---|
| 301 | cd /usr/share/wayland-sessions/ &&
|
---|
[4969ec3c] | 302 | [ -e plasmawayland.desktop ] ||
|
---|
| 303 | as_root ln -sfv $KF5_PREFIX/share/wayland-sessions/plasmawayland.desktop<!--
|
---|
[1c8d0ff] | 304 | cd $KF5_PREFIX/share/plasma/plasmoids
|
---|
[153a5795] | 305 |
|
---|
[1c8d0ff] | 306 | for j in $(find -name \*.js); do
|
---|
[3d656d7] | 307 | as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
|
---|
[5ac58b54] | 308 | done--></userinput></screen>
|
---|
[153a5795] | 309 |
|
---|
| 310 | </sect2>
|
---|
[5ac58b54] | 311 | <!--
|
---|
[153a5795] | 312 | <sect2 role="commands">
|
---|
| 313 | <title>Command Explanations</title>
|
---|
| 314 |
|
---|
| 315 | <para>
|
---|
[1c8d0ff] | 316 | <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
|
---|
| 317 | Create symbolic links so qml files can find needed javascript modules.
|
---|
[153a5795] | 318 | </para>
|
---|
| 319 |
|
---|
| 320 | </sect2>
|
---|
[5ac58b54] | 321 | -->
|
---|
[3b0f105] | 322 | <sect2 role="configuration">
|
---|
| 323 | <title>Configuring Plasma</title>
|
---|
| 324 |
|
---|
| 325 | <sect3>
|
---|
| 326 | <title>Linux PAM Configuration</title>
|
---|
| 327 |
|
---|
| 328 | <para>
|
---|
| 329 | If you built Plasma with the recommended <application>Linux
|
---|
| 330 | PAM</application> support, create necessary configuration files by
|
---|
| 331 | running the following commands as the <systemitem
|
---|
| 332 | class="username">root</systemitem> user:
|
---|
| 333 | </para>
|
---|
| 334 |
|
---|
[941658d] | 335 | <screen role="root"><userinput>cat > /etc/pam.d/kde << "EOF"
|
---|
[51dfb3e] | 336 | <literal># Begin /etc/pam.d/kde
|
---|
[3b0f105] | 337 |
|
---|
| 338 | auth requisite pam_nologin.so
|
---|
| 339 | auth required pam_env.so
|
---|
| 340 |
|
---|
| 341 | auth required pam_succeed_if.so uid >= 1000 quiet
|
---|
| 342 | auth include system-auth
|
---|
| 343 |
|
---|
| 344 | account include system-account
|
---|
| 345 | password include system-password
|
---|
| 346 | session include system-session
|
---|
| 347 |
|
---|
[51dfb3e] | 348 | # End /etc/pam.d/kde</literal>
|
---|
[3b0f105] | 349 | EOF
|
---|
| 350 |
|
---|
| 351 | cat > /etc/pam.d/kde-np << "EOF"
|
---|
[51dfb3e] | 352 | <literal># Begin /etc/pam.d/kde-np
|
---|
[3b0f105] | 353 |
|
---|
| 354 | auth requisite pam_nologin.so
|
---|
| 355 | auth required pam_env.so
|
---|
| 356 |
|
---|
| 357 | auth required pam_succeed_if.so uid >= 1000 quiet
|
---|
| 358 | auth required pam_permit.so
|
---|
| 359 |
|
---|
| 360 | account include system-account
|
---|
| 361 | password include system-password
|
---|
| 362 | session include system-session
|
---|
| 363 |
|
---|
[51dfb3e] | 364 | # End /etc/pam.d/kde-np</literal>
|
---|
[3b0f105] | 365 | EOF
|
---|
| 366 |
|
---|
| 367 | cat > /etc/pam.d/kscreensaver << "EOF"
|
---|
[51dfb3e] | 368 | <literal># Begin /etc/pam.d/kscreensaver
|
---|
[3b0f105] | 369 |
|
---|
| 370 | auth include system-auth
|
---|
| 371 | account include system-account
|
---|
| 372 |
|
---|
[51dfb3e] | 373 | # End /etc/pam.d/kscreensaver</literal>
|
---|
[3b0f105] | 374 | EOF</userinput></screen>
|
---|
| 375 | </sect3>
|
---|
| 376 | </sect2>
|
---|
| 377 |
|
---|
[1c8d0ff] | 378 | <sect2 role="starting">
|
---|
| 379 | <title>Starting Plasma5</title>
|
---|
| 380 |
|
---|
[3f460da0] | 381 | <para revision="sysv">
|
---|
[1c8d0ff] | 382 | You can start <application>Plasma5</application> from runlevel 3, using
|
---|
| 383 | <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
|
---|
[c225bfa] | 384 | such as <xref linkend="lightdm"/>.
|
---|
[1c8d0ff] | 385 | </para>
|
---|
| 386 |
|
---|
[3f460da0] | 387 | <para revision="systemd">
|
---|
| 388 | You can start <application>Plasma5</application> from a TTY, using
|
---|
[fd42347a] | 389 | <xref linkend="xinit"/><!--, or from a graphical display manager, such as
|
---|
| 390 | <xref linkend="sddm"/>-->.
|
---|
[3f460da0] | 391 | </para>
|
---|
| 392 |
|
---|
[1c8d0ff] | 393 | <para>
|
---|
[460cec4b] | 394 | To start <application>Plasma 5</application> using <xref linkend="xinit"/>,
|
---|
[1c8d0ff] | 395 | run the following commands:
|
---|
| 396 | </para>
|
---|
| 397 |
|
---|
[51dfb3e] | 398 | <screen><userinput>cat > ~/.xinitrc << "EOF"
|
---|
[718be191] | 399 | <literal>dbus-launch --exit-with-session $KF5_PREFIX/bin/startplasma-x11</literal>
|
---|
[3f460da0] | 400 | EOF
|
---|
| 401 |
|
---|
[1c8d0ff] | 402 | startx</userinput></screen>
|
---|
| 403 |
|
---|
| 404 | <para>
|
---|
| 405 | The X session starts on the first unused virtual terminal, normally vt7.
|
---|
| 406 | You can switch to another vt<emphasis>n</emphasis> simultaneously
|
---|
| 407 | pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
|
---|
| 408 | (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
|
---|
| 409 | normally started at vt7, use Ctrl-Alt-F7. The vt where the command
|
---|
| 410 | <command>startx</command> was executed will display many messages,
|
---|
| 411 | including X starting messages, applications automatically started with
|
---|
| 412 | the session, and eventually, some warning and error messages. You may
|
---|
| 413 | prefer to redirect those messages to a log file, which not only will keep
|
---|
| 414 | the initial vt uncluttered, but can also be used for debugging purposes. This
|
---|
| 415 | can be done starting X with:
|
---|
| 416 | </para>
|
---|
| 417 |
|
---|
[3011abe] | 418 | <screen><userinput>startx &> ~/x-session-errors</userinput></screen>
|
---|
[1c8d0ff] | 419 |
|
---|
| 420 | <para>
|
---|
| 421 | When shutting down or rebooting, the shutdown messages appear on the vt
|
---|
| 422 | where X was running. If you wish to see those messages, simultaneously
|
---|
| 423 | press keys Alt-F7 (assuming that X was running on vt7).
|
---|
| 424 | </para>
|
---|
| 425 |
|
---|
[1c8c15c] | 426 | <para>
|
---|
| 427 | If you intend to start <application>Plasma</application> using a
|
---|
[c225bfa] | 428 | display manager such as <xref linkend="lightdm"/>, there will be two entries
|
---|
[f29eb8a] | 429 | for <application>Plasma</application>, one for use with
|
---|
| 430 | <application>Xorg</application>, and another for
|
---|
| 431 | <application>Wayland</application>. Modify the
|
---|
| 432 | <application>Xorg</application> entry with the following command, as the
|
---|
| 433 | <systemitem class="username">root</systemitem> user, so that you can
|
---|
| 434 | differentiate between the two:</para>
|
---|
| 435 |
|
---|
[33c8b427] | 436 | <screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
|
---|
[f29eb8a] | 437 |
|
---|
| 438 |
|
---|
[1c8d0ff] | 439 | </sect2>
|
---|
| 440 |
|
---|
[153a5795] | 441 | <sect2 role="content">
|
---|
| 442 | <title>Contents</title>
|
---|
| 443 |
|
---|
| 444 | <segmentedlist>
|
---|
| 445 | <segtitle>Installed Programs</segtitle>
|
---|
| 446 | <segtitle>Installed Libraries</segtitle>
|
---|
| 447 | <segtitle>Installed Directories</segtitle>
|
---|
| 448 |
|
---|
| 449 | <seglistitem>
|
---|
| 450 | <seg>
|
---|
[83ef2a4] | 451 | There are too many plasma programs (50 in /opt/kf5/bin) to list
|
---|
| 452 | separately here.
|
---|
[153a5795] | 453 | </seg>
|
---|
| 454 | <seg>
|
---|
[83ef2a4] | 455 | There are too many plasma libraries (39 in /opt/kf5/lib) to list
|
---|
| 456 | separately here.
|
---|
[153a5795] | 457 | </seg>
|
---|
| 458 | <seg>
|
---|
[83ef2a4] | 459 | There are too many plasma directories (over 1000 in /opt/kf5) to
|
---|
| 460 | list separately here.
|
---|
[153a5795] | 461 | </seg>
|
---|
| 462 | </seglistitem>
|
---|
| 463 | </segmentedlist>
|
---|
| 464 |
|
---|
| 465 | </sect2>
|
---|
| 466 |
|
---|
| 467 | </sect1>
|
---|