[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">
|
---|
[d9907c9] | 10 | <!ENTITY plasma5-size "108 MB">
|
---|
[ce0c344] | 11 | <!ENTITY plasma5-buildsize "1.2 GB (311 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 | <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 |
|
---|
[d9907c9] | 34 | &lfs91_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"
|
---|
[ce0c344] | 159 | <literal>d81cb7833db2169952c46a468b36b630 kdecoration-5.18.5.tar.xz
|
---|
| 160 | 940627dd8c2792676dd6f74b8c1130ab libkscreen-5.18.5.tar.xz
|
---|
| 161 | 47d8b84f73fe6e91a5f7b53fec479a06 libksysguard-5.18.5.tar.xz
|
---|
| 162 | 8632854a3528f18d8175613cd3457086 breeze-5.18.5.tar.xz
|
---|
| 163 | ccdb725c872bf797e4ce305a03de3eab breeze-gtk-5.18.5.tar.xz
|
---|
| 164 | 3bc3534b73ee3542aaab0f2d534763b2 kscreenlocker-5.18.5.tar.xz
|
---|
| 165 | 07fd865eca86217d879e7470e4afe8b9 oxygen-5.18.5.tar.xz
|
---|
| 166 | 40441c19d0b72071803dce462fca0ee1 kinfocenter-5.18.5.tar.xz
|
---|
| 167 | 27f1ef3c7d6b9fb6d9b70d676afc88b7 ksysguard-5.18.5.tar.xz
|
---|
| 168 | 2881bc40c660bb3a3290f0c08cc189e6 kwin-5.18.5.tar.xz
|
---|
| 169 | 148072db8bc16ff483ffa444ea7efe9a plasma-workspace-5.18.5.tar.xz
|
---|
| 170 | 88d833f3b31c79ade207a908eeacf4be bluedevil-5.18.5.tar.xz
|
---|
| 171 | 3b7d4749556d01fe8eae098b68239366 kde-gtk-config-5.18.5.tar.xz
|
---|
| 172 | 89f2de2be8fdfa784af9c79d0dadbd32 khotkeys-5.18.5.tar.xz
|
---|
| 173 | 3c834f0e56d082a00afc4072c00f4139 kmenuedit-5.18.5.tar.xz
|
---|
| 174 | 4cdf26bbf63abcd146ea88e0aa1911b5 kscreen-5.18.5.tar.xz
|
---|
| 175 | a16c7c1841e03b1573448157ae3a9347 kwallet-pam-5.18.5.tar.xz
|
---|
| 176 | 86f5f66830405ed2a386401b246e71b2 kwayland-integration-5.18.5.tar.xz
|
---|
| 177 | 6cf0af3a35c5dfe0a024d66a76482b26 kwrited-5.18.5.tar.xz
|
---|
| 178 | d28362417e3ab1ca14edb84e73df2b33 milou-5.18.5.tar.xz
|
---|
| 179 | 07cd8272fc4694f16495ea20ab72b3c0 plasma-nm-5.18.5.tar.xz
|
---|
| 180 | 78dd988bcbf45586a159a81a1153b22f plasma-pa-5.18.5.tar.xz
|
---|
| 181 | e1e1e30bf1b6ccbe245189e19f212777 plasma-workspace-wallpapers-5.18.5.tar.xz
|
---|
| 182 | 0c99475e2fc152f57fa25c61026e53bf polkit-kde-agent-1-5.18.5.tar.xz
|
---|
| 183 | c20dd0685bc94392bc15c1514f324c2b powerdevil-5.18.5.tar.xz
|
---|
| 184 | 17bfd342f132fac634ffedfe2779a675 plasma-desktop-5.18.5.tar.xz
|
---|
| 185 | 48726cf667fac5c2f38fa045dde636c4 kdeplasma-addons-5.18.5.tar.xz
|
---|
| 186 | 58a43b57acc4ff8de899d7c57a8ce90a kgamma5-5.18.5.tar.xz
|
---|
| 187 | 197400f3c766b560dded88bd05266dfc ksshaskpass-5.18.5.tar.xz
|
---|
| 188 | #65136393474814073877cdb17f953149 plasma-sdk-5.18.5.tar.xz
|
---|
| 189 | 98c4bd10c1176e2d526b6e4dc55a1835 sddm-kcm-5.18.5.tar.xz
|
---|
| 190 | 2b16115046eb7fef09fa4f438be64591 user-manager-5.18.5.tar.xz
|
---|
| 191 | 34bad73daf95652b298bb990578e6bb0 discover-5.18.5.tar.xz
|
---|
| 192 | #28df67486f98d567f01db35dccba5714 breeze-grub-5.18.5.tar.xz
|
---|
| 193 | #9dd90fa2b868a8557dc67b0e86af8722 breeze-plymouth-5.18.5.tar.xz
|
---|
| 194 | d7aa47027645ed446177daac5743dd1b kactivitymanagerd-5.18.5.tar.xz
|
---|
| 195 | 69312d186b9c7380eeda1032ef327dce plasma-integration-5.18.5.tar.xz
|
---|
| 196 | 67277d2623d1fd86fcd073000b84b2f3 plasma-tests-5.18.5.tar.xz
|
---|
| 197 | #39b3b50f740b0122dd0db7391a049731 plymouth-kcm-5.18.5.tar.xz
|
---|
| 198 | 2a6b5f111a111000e83a039ed1d5685e xdg-desktop-portal-kde-5.18.5.tar.xz
|
---|
| 199 | 51a6331304780d4f370135f8aeb96848 drkonqi-5.18.5.tar.xz
|
---|
| 200 | d7084769f2aee6f41d723d85645b9832 plasma-vault-5.18.5.tar.xz
|
---|
| 201 | 7fb0482503c46c3852f5fd050ce6f449 plasma-browser-integration-5.18.5.tar.xz
|
---|
| 202 | 4f5147c3932d1548550e633f0aa4a237 kde-cli-tools-5.18.5.tar.xz
|
---|
| 203 | 8d46069f6129eea764e3e17469b53bd1 systemsettings-5.18.5.tar.xz
|
---|
| 204 | 08adc73eacabecc6a4f787bfd0c64dc8 plasma-thunderbolt-5.18.5.tar.xz
|
---|
| 205 | #e43f19f06ad0ec687de9ce5362534d88 plasma-nano-5.18.5.tar.xz
|
---|
| 206 | #af6d01e56794acc9ca9e721064878133 plasma-phone-components-5.18.5.tar.xz</literal>
|
---|
[153a5795] | 207 | EOF</userinput></screen>
|
---|
| 208 |
|
---|
[1c8c15c] | 209 | <note>
|
---|
| 210 | <para>
|
---|
| 211 | The breeze-grub, breeze-plymouth, and plymouth-kcm packages above are
|
---|
| 212 | all for customized support of <ulink
|
---|
| 213 | url="https://www.freedesktop.org/wiki/Software/Plymouth/"
|
---|
| 214 | >Plymouth</ulink>
|
---|
| 215 | which is designed to be run within an initial ram disk during boot (see
|
---|
| 216 | <xref linkend="initramfs"/>). The plasma-sdk package is optional and
|
---|
| 217 | used for software development. The plasma-nano package is used for
|
---|
| 218 | embedded systems and plasma-phone-components provides phone
|
---|
| 219 | functionality for Plasma.
|
---|
| 220 | </para>
|
---|
| 221 | </note>
|
---|
[ce228c2] | 222 |
|
---|
[153a5795] | 223 | </sect2>
|
---|
| 224 |
|
---|
| 225 | <sect2 role="installation">
|
---|
| 226 | <title>Installation of Plasma5</title>
|
---|
| 227 |
|
---|
| 228 | &as_root;
|
---|
| 229 |
|
---|
| 230 | <para>
|
---|
| 231 | First, start a subshell that will exit on error:
|
---|
| 232 | </para>
|
---|
| 233 |
|
---|
| 234 | <screen><userinput>bash -e</userinput></screen>
|
---|
| 235 |
|
---|
| 236 | <para>
|
---|
| 237 | Install all of the packages by running the following
|
---|
| 238 | commands:
|
---|
| 239 | </para>
|
---|
| 240 |
|
---|
| 241 | <screen><userinput>while read -r line; do
|
---|
| 242 |
|
---|
| 243 | # Get the file name, ignoring comments and blank lines
|
---|
| 244 | if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
|
---|
| 245 | file=$(echo $line | cut -d" " -f2)
|
---|
[f3429309] | 246 |
|
---|
[153a5795] | 247 | pkg=$(echo $file|sed 's|^.*/||') # Remove directory
|
---|
| 248 | packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
|
---|
| 249 |
|
---|
| 250 | tar -xf $file
|
---|
| 251 | pushd $packagedir
|
---|
| 252 |
|
---|
[4e0a40f] | 253 | # Fix some build issues when generating some configuration files
|
---|
[cfd5cb3] | 254 | case $name in
|
---|
| 255 | plasma-workspace)
|
---|
| 256 | sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 257 | ;;
|
---|
| 258 |
|
---|
| 259 | khotkeys)
|
---|
| 260 | sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 261 | ;;
|
---|
| 262 |
|
---|
| 263 | plasma-desktop)
|
---|
| 264 | sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 265 | ;;
|
---|
| 266 | esac
|
---|
| 267 |
|
---|
[69a9de5] | 268 | mkdir build
|
---|
| 269 | cd build
|
---|
[153a5795] | 270 |
|
---|
[1c8d0ff] | 271 | cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
|
---|
| 272 | -DCMAKE_BUILD_TYPE=Release \
|
---|
| 273 | -DBUILD_TESTING=OFF \
|
---|
[69a9de5] | 274 | -Wno-dev .. &&
|
---|
[153a5795] | 275 |
|
---|
[69a9de5] | 276 | make
|
---|
| 277 | as_root make install
|
---|
| 278 | popd
|
---|
[153a5795] | 279 |
|
---|
[b44e7de2] | 280 | <!-- some packages end up with files owned by root in $packagedir,
|
---|
[8f445fdc] | 281 | so use as_root for removing -->
|
---|
| 282 | as_root rm -rf $packagedir
|
---|
[69a9de5] | 283 | as_root /sbin/ldconfig
|
---|
| 284 |
|
---|
[ed4a7a2] | 285 | done < plasma-&plasma5-version;.md5
|
---|
[153a5795] | 286 |
|
---|
[527f3db] | 287 | exit</userinput></screen>
|
---|
[1c8d0ff] | 288 |
|
---|
[527f3db] | 289 | <para>
|
---|
| 290 | If you did not set <envar>$KF5_PREFIX</envar> to
|
---|
| 291 | <filename>/usr</filename>, create symlinks to allow display managers to
|
---|
| 292 | find <application>Plasma</application>:
|
---|
| 293 | </para>
|
---|
| 294 |
|
---|
| 295 | <screen><userinput>as_root install -dvm 755 /usr/share/xsessions &&
|
---|
| 296 | cd /usr/share/xsessions/ &&
|
---|
| 297 | [ -e plasma.desktop ] ||
|
---|
| 298 | as_root ln -sfv $KF5_PREFIX/share/xsessions/plasma.desktop &&
|
---|
| 299 | as_root install -dvm 755 /usr/share/wayland-sessions &&
|
---|
| 300 | cd /usr/share/wayland-sessions/ &&
|
---|
[4969ec3c] | 301 | [ -e plasmawayland.desktop ] ||
|
---|
| 302 | as_root ln -sfv $KF5_PREFIX/share/wayland-sessions/plasmawayland.desktop<!--
|
---|
[1c8d0ff] | 303 | cd $KF5_PREFIX/share/plasma/plasmoids
|
---|
[153a5795] | 304 |
|
---|
[1c8d0ff] | 305 | for j in $(find -name \*.js); do
|
---|
[3d656d7] | 306 | as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
|
---|
[5ac58b54] | 307 | done--></userinput></screen>
|
---|
[153a5795] | 308 |
|
---|
| 309 | </sect2>
|
---|
[5ac58b54] | 310 | <!--
|
---|
[153a5795] | 311 | <sect2 role="commands">
|
---|
| 312 | <title>Command Explanations</title>
|
---|
| 313 |
|
---|
| 314 | <para>
|
---|
[1c8d0ff] | 315 | <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
|
---|
| 316 | Create symbolic links so qml files can find needed javascript modules.
|
---|
[153a5795] | 317 | </para>
|
---|
| 318 |
|
---|
| 319 | </sect2>
|
---|
[5ac58b54] | 320 | -->
|
---|
[3b0f105] | 321 | <sect2 role="configuration">
|
---|
| 322 | <title>Configuring Plasma</title>
|
---|
| 323 |
|
---|
| 324 | <sect3>
|
---|
| 325 | <title>Linux PAM Configuration</title>
|
---|
| 326 |
|
---|
| 327 | <para>
|
---|
| 328 | If you built Plasma with the recommended <application>Linux
|
---|
| 329 | PAM</application> support, create necessary configuration files by
|
---|
| 330 | running the following commands as the <systemitem
|
---|
| 331 | class="username">root</systemitem> user:
|
---|
| 332 | </para>
|
---|
| 333 |
|
---|
[941658d] | 334 | <screen role="root"><userinput>cat > /etc/pam.d/kde << "EOF"
|
---|
[51dfb3e] | 335 | <literal># Begin /etc/pam.d/kde
|
---|
[3b0f105] | 336 |
|
---|
| 337 | auth requisite pam_nologin.so
|
---|
| 338 | auth required pam_env.so
|
---|
| 339 |
|
---|
| 340 | auth required pam_succeed_if.so uid >= 1000 quiet
|
---|
| 341 | auth include system-auth
|
---|
| 342 |
|
---|
| 343 | account include system-account
|
---|
| 344 | password include system-password
|
---|
| 345 | session include system-session
|
---|
| 346 |
|
---|
[51dfb3e] | 347 | # End /etc/pam.d/kde</literal>
|
---|
[3b0f105] | 348 | EOF
|
---|
| 349 |
|
---|
| 350 | cat > /etc/pam.d/kde-np << "EOF"
|
---|
[51dfb3e] | 351 | <literal># Begin /etc/pam.d/kde-np
|
---|
[3b0f105] | 352 |
|
---|
| 353 | auth requisite pam_nologin.so
|
---|
| 354 | auth required pam_env.so
|
---|
| 355 |
|
---|
| 356 | auth required pam_succeed_if.so uid >= 1000 quiet
|
---|
| 357 | auth required pam_permit.so
|
---|
| 358 |
|
---|
| 359 | account include system-account
|
---|
| 360 | password include system-password
|
---|
| 361 | session include system-session
|
---|
| 362 |
|
---|
[51dfb3e] | 363 | # End /etc/pam.d/kde-np</literal>
|
---|
[3b0f105] | 364 | EOF
|
---|
| 365 |
|
---|
| 366 | cat > /etc/pam.d/kscreensaver << "EOF"
|
---|
[51dfb3e] | 367 | <literal># Begin /etc/pam.d/kscreensaver
|
---|
[3b0f105] | 368 |
|
---|
| 369 | auth include system-auth
|
---|
| 370 | account include system-account
|
---|
| 371 |
|
---|
[51dfb3e] | 372 | # End /etc/pam.d/kscreensaver</literal>
|
---|
[3b0f105] | 373 | EOF</userinput></screen>
|
---|
| 374 | </sect3>
|
---|
| 375 | </sect2>
|
---|
| 376 |
|
---|
[1c8d0ff] | 377 | <sect2 role="starting">
|
---|
| 378 | <title>Starting Plasma5</title>
|
---|
| 379 |
|
---|
[3f460da0] | 380 | <para revision="sysv">
|
---|
[1c8d0ff] | 381 | You can start <application>Plasma5</application> from runlevel 3, using
|
---|
| 382 | <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
|
---|
[c225bfa] | 383 | such as <xref linkend="lightdm"/>.
|
---|
[1c8d0ff] | 384 | </para>
|
---|
| 385 |
|
---|
[3f460da0] | 386 | <para revision="systemd">
|
---|
| 387 | You can start <application>Plasma5</application> from a TTY, using
|
---|
[fd42347a] | 388 | <xref linkend="xinit"/><!--, or from a graphical display manager, such as
|
---|
| 389 | <xref linkend="sddm"/>-->.
|
---|
[3f460da0] | 390 | </para>
|
---|
| 391 |
|
---|
[1c8d0ff] | 392 | <para>
|
---|
[460cec4b] | 393 | To start <application>Plasma 5</application> using <xref linkend="xinit"/>,
|
---|
[1c8d0ff] | 394 | run the following commands:
|
---|
| 395 | </para>
|
---|
| 396 |
|
---|
[51dfb3e] | 397 | <screen><userinput>cat > ~/.xinitrc << "EOF"
|
---|
[718be191] | 398 | <literal>dbus-launch --exit-with-session $KF5_PREFIX/bin/startplasma-x11</literal>
|
---|
[3f460da0] | 399 | EOF
|
---|
| 400 |
|
---|
[1c8d0ff] | 401 | startx</userinput></screen>
|
---|
| 402 |
|
---|
| 403 | <para>
|
---|
| 404 | The X session starts on the first unused virtual terminal, normally vt7.
|
---|
| 405 | You can switch to another vt<emphasis>n</emphasis> simultaneously
|
---|
| 406 | pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
|
---|
| 407 | (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
|
---|
| 408 | normally started at vt7, use Ctrl-Alt-F7. The vt where the command
|
---|
| 409 | <command>startx</command> was executed will display many messages,
|
---|
| 410 | including X starting messages, applications automatically started with
|
---|
| 411 | the session, and eventually, some warning and error messages. You may
|
---|
| 412 | prefer to redirect those messages to a log file, which not only will keep
|
---|
| 413 | the initial vt uncluttered, but can also be used for debugging purposes. This
|
---|
| 414 | can be done starting X with:
|
---|
| 415 | </para>
|
---|
| 416 |
|
---|
[3011abe] | 417 | <screen><userinput>startx &> ~/x-session-errors</userinput></screen>
|
---|
[1c8d0ff] | 418 |
|
---|
| 419 | <para>
|
---|
| 420 | When shutting down or rebooting, the shutdown messages appear on the vt
|
---|
| 421 | where X was running. If you wish to see those messages, simultaneously
|
---|
| 422 | press keys Alt-F7 (assuming that X was running on vt7).
|
---|
| 423 | </para>
|
---|
| 424 |
|
---|
[1c8c15c] | 425 | <para>
|
---|
| 426 | If you intend to start <application>Plasma</application> using a
|
---|
[c225bfa] | 427 | display manager such as <xref linkend="lightdm"/>, there will be two entries
|
---|
[f29eb8a] | 428 | for <application>Plasma</application>, one for use with
|
---|
| 429 | <application>Xorg</application>, and another for
|
---|
| 430 | <application>Wayland</application>. Modify the
|
---|
| 431 | <application>Xorg</application> entry with the following command, as the
|
---|
| 432 | <systemitem class="username">root</systemitem> user, so that you can
|
---|
| 433 | differentiate between the two:</para>
|
---|
| 434 |
|
---|
[33c8b427] | 435 | <screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
|
---|
[f29eb8a] | 436 |
|
---|
| 437 |
|
---|
[1c8d0ff] | 438 | </sect2>
|
---|
| 439 |
|
---|
[153a5795] | 440 | <sect2 role="content">
|
---|
| 441 | <title>Contents</title>
|
---|
| 442 |
|
---|
| 443 | <segmentedlist>
|
---|
| 444 | <segtitle>Installed Programs</segtitle>
|
---|
| 445 | <segtitle>Installed Libraries</segtitle>
|
---|
| 446 | <segtitle>Installed Directories</segtitle>
|
---|
| 447 |
|
---|
| 448 | <seglistitem>
|
---|
| 449 | <seg>
|
---|
[83ef2a4] | 450 | There are too many plasma programs (50 in /opt/kf5/bin) to list
|
---|
| 451 | separately here.
|
---|
[153a5795] | 452 | </seg>
|
---|
| 453 | <seg>
|
---|
[83ef2a4] | 454 | There are too many plasma libraries (39 in /opt/kf5/lib) to list
|
---|
| 455 | separately here.
|
---|
[153a5795] | 456 | </seg>
|
---|
| 457 | <seg>
|
---|
[83ef2a4] | 458 | There are too many plasma directories (over 1000 in /opt/kf5) to
|
---|
| 459 | list separately here.
|
---|
[153a5795] | 460 | </seg>
|
---|
| 461 | </seglistitem>
|
---|
| 462 | </segmentedlist>
|
---|
| 463 |
|
---|
| 464 | </sect2>
|
---|
| 465 |
|
---|
| 466 | </sect1>
|
---|