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