[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">
|
---|
[f1b74bf] | 10 | <!ENTITY plasma5-size "209 MB">
|
---|
| 11 | <!ENTITY plasma5-buildsize "1.5 GB (416 MB installed)">
|
---|
| 12 | <!ENTITY plasma5-time "19 SBU (using parallelism=4)">
|
---|
[153a5795] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="plasma5-build" xreflabel="Plasma-&plasma5-version;">
|
---|
| 16 | <?dbhtml filename="plasma-all.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>Building Plasma 5</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="plasma5-build">
|
---|
[2630345] | 22 | <primary sortas="a-kde-plasma">KDE Plasma 5</primary>
|
---|
[153a5795] | 23 | </indexterm>
|
---|
| 24 |
|
---|
[1c8c15c] | 25 | <para>
|
---|
| 26 | KDE Plasma 5 is a collection of packages based on top of KDE Frameworks
|
---|
| 27 | 5 and QML. They implement the KDE Display Environment (Plasma 5).
|
---|
| 28 | </para>
|
---|
[366fbbb8] | 29 |
|
---|
[63105664] | 30 | &lfs112_checked;
|
---|
[153a5795] | 31 |
|
---|
[1c8c15c] | 32 | <para>
|
---|
| 33 | The instructions below build all of the Plasma 5 packages in one
|
---|
| 34 | step by using a bash script.
|
---|
| 35 | </para>
|
---|
[153a5795] | 36 |
|
---|
| 37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 38 | <itemizedlist spacing="compact">
|
---|
| 39 | <listitem>
|
---|
[1c8c15c] | 40 | <para>
|
---|
| 41 | Download (HTTP): <ulink url="&plasma5-download-http;"/>
|
---|
| 42 | </para>
|
---|
[153a5795] | 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
[1c8c15c] | 45 | <para>
|
---|
| 46 | Download (FTP): <ulink url="&plasma5-download-ftp;"/>
|
---|
| 47 | </para>
|
---|
[153a5795] | 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
[1c8c15c] | 50 | <para>
|
---|
| 51 | Download MD5 sum: &plasma5-md5sum;
|
---|
| 52 | </para>
|
---|
[153a5795] | 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
[1c8c15c] | 55 | <para>
|
---|
| 56 | Download size: &plasma5-size;
|
---|
| 57 | </para>
|
---|
[153a5795] | 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
[1c8c15c] | 60 | <para>
|
---|
| 61 | Estimated disk space required: &plasma5-buildsize;
|
---|
| 62 | </para>
|
---|
[153a5795] | 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
[1c8c15c] | 65 | <para>
|
---|
| 66 | Estimated build time: &plasma5-time;
|
---|
| 67 | </para>
|
---|
[153a5795] | 68 | </listitem>
|
---|
| 69 | </itemizedlist>
|
---|
| 70 |
|
---|
| 71 | <bridgehead renderas="sect3">Plasma 5 Dependencies</bridgehead>
|
---|
| 72 |
|
---|
| 73 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 74 | <para role="required">
|
---|
[89f706b2] | 75 | <!--<xref linkend="fontforge"/>,-->
|
---|
[41b0fe1] | 76 | <!-- does not seem to be needed as of 5.22.4 <xref linkend="GConf"/>, -->
|
---|
[f3429309] | 77 | <xref linkend="gtk2"/>,
|
---|
| 78 | <xref linkend="gtk3"/>,
|
---|
[f97d5f6] | 79 | <xref linkend="kf5-frameworks"/>,
|
---|
[f1b74bf] | 80 | <xref linkend="kuserfeedback"/>,
|
---|
[366fbbb8] | 81 | <xref linkend="libpwquality"/>,
|
---|
[f36ab176] | 82 | <xref linkend="libqalculate"/>,
|
---|
[1c8d0ff] | 83 | <xref linkend="libxkbcommon"/>,
|
---|
[366fbbb8] | 84 | <xref linkend="mesa"/> built with <xref linkend="wayland"/>,
|
---|
[f3429309] | 85 | <xref linkend="NetworkManager"/>,
|
---|
[1f21b9c] | 86 | <xref linkend="pipewire"/>,
|
---|
[f3429309] | 87 | <xref linkend="pulseaudio"/>,
|
---|
[b7a66395] | 88 | <xref linkend="qca"/>,
|
---|
[95965b6] | 89 | <xref linkend="sassc"/>,
|
---|
[f3429309] | 90 | <xref linkend="taglib"/>, and
|
---|
[1c8d0ff] | 91 | <xref linkend="xcb-util-cursor"/>
|
---|
[153a5795] | 92 | </para>
|
---|
| 93 |
|
---|
| 94 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 95 | <para role="recommended">
|
---|
[72b8751] | 96 | <xref linkend="fftw"/>,
|
---|
| 97 | <xref linkend="gsettings-desktop-schemas"/>,
|
---|
[f3429309] | 98 | <xref linkend="libdbusmenu-qt"/>,
|
---|
| 99 | <xref linkend="libcanberra"/>,
|
---|
| 100 | <xref linkend="libinput"/>,
|
---|
[64ae3fb] | 101 | <xref linkend="libpcap"/>,
|
---|
[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">
|
---|
[f3a27771] | 110 | <xref role="runtime" linkend="accountsservice"/>,
|
---|
| 111 | <xref role="runtime" linkend="smartmontools"/>, and
|
---|
| 112 | <xref role="runtime" linkend="xwayland"/>
|
---|
[b359b3e0] | 113 | </para>
|
---|
| 114 |
|
---|
[0779b94] | 115 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[153a5795] | 116 | <para role="optional">
|
---|
[0779b94] | 117 | <xref linkend="glu"/>,
|
---|
[7b1bc743] | 118 | <xref linkend='ibus'/>,
|
---|
[64ae3fb] | 119 | <xref linkend='qtwebengine'/>,
|
---|
[0779b94] | 120 | <xref linkend="xorg-synaptics-driver"/>,
|
---|
[8558044] | 121 | <ulink url="http://distributions.freedesktop.org/wiki/AppStream">appstream-qt</ulink>,
|
---|
[ce228c2] | 122 | <ulink url="https://www.kdevelop.org/">KDevPlatform</ulink>,
|
---|
[3d9b01d] | 123 | <ulink url="https://gpsd.gitlab.io/gpsd/">libgps</ulink>,
|
---|
[0779b94] | 124 | <ulink url="https://github.com/libhybris/libhybris">libhybris</ulink>,
|
---|
[c6b192c] | 125 | <ulink url="https://sourceforge.net/projects/libraw1394/">libraw1394</ulink>,
|
---|
[0779b94] | 126 | <ulink url="https://bitbucket.org/godsme/mockcpp">mockcpp</ulink>,
|
---|
[ce228c2] | 127 | <ulink url="https://www.freedesktop.org/software/PackageKit/releases/">packagekit-qt</ulink>,
|
---|
[ea529d1] | 128 | <ulink url="http://qalculate.github.io/">Qalculate</ulink>,
|
---|
[8558044] | 129 | <ulink url="https://launchpad.net/qapt">Qapt</ulink>,
|
---|
[ce228c2] | 130 | <ulink url="https://github.com/osiam/osiam">SCIM</ulink>, and
|
---|
[4c3c7f43] | 131 | <ulink url="http://www.dest-unreach.org/socat/">socat</ulink> (for pam_kwallet)
|
---|
[153a5795] | 132 | </para>
|
---|
| 133 |
|
---|
[64ae3fb] | 134 | <note>
|
---|
| 135 | <para>
|
---|
| 136 | Only two plasma packages optionally use <xref linkend="qtwebengine"/>:
|
---|
[8558044] | 137 | libksysguard and kdeplasma-addons. If QtWebEngine is installed later,
|
---|
[64ae3fb] | 138 | only those two packages have to be rebuilt. This allows to provide
|
---|
| 139 | a more complete display in the system monitor application.
|
---|
| 140 | </para>
|
---|
| 141 | </note>
|
---|
| 142 |
|
---|
[153a5795] | 143 | <para condition="html" role="usernotes">User Notes:
|
---|
| 144 | <ulink url="&blfs-wiki;/kf5"/></para>
|
---|
| 145 |
|
---|
| 146 | <sect2>
|
---|
[773b316] | 147 | <title>Downloading KDE Plasma5</title>
|
---|
[153a5795] | 148 |
|
---|
| 149 | <para>
|
---|
| 150 | The easiest way to get the KDE Plasma5 packages is to use a single
|
---|
| 151 | <command>wget</command> to fetch them all at once:
|
---|
| 152 | </para>
|
---|
[f3429309] | 153 |
|
---|
[c6b192c] | 154 | <screen><userinput>url=https://download.kde.org/stable/plasma/&plasma5-version;/
|
---|
[a01d308] | 155 | wget -r -nH -nd -A '*.xz' -np $url</userinput>
|
---|
[153a5795] | 156 | <literal>
|
---|
[f3429309] | 157 | The options used here are:
|
---|
[153a5795] | 158 | -r recurse through child directories
|
---|
| 159 | -nH disable generation of host-prefixed directories
|
---|
[a01d308] | 160 | -nd do not create a hierarchy of directories
|
---|
[153a5795] | 161 | -A '*.xz' just get the *.xz files
|
---|
[10a9447] | 162 | -np don't get parent directories</literal></screen>
|
---|
[153a5795] | 163 |
|
---|
| 164 | </sect2>
|
---|
| 165 |
|
---|
| 166 | <sect2>
|
---|
| 167 | <title>Setting Package Order</title>
|
---|
| 168 |
|
---|
| 169 | <para>
|
---|
| 170 | The order of building files is important due to internal dependencies.
|
---|
| 171 | Create the list of files in the proper order as follows:
|
---|
| 172 | </para>
|
---|
| 173 |
|
---|
[ed4a7a2] | 174 | <screen><userinput>cat > plasma-&plasma5-version;.md5 << "EOF"
|
---|
[f1b74bf] | 175 | <literal>a01dbbcce3ba3940153316d1c37d4744 kdecoration-5.26.4.tar.xz
|
---|
| 176 | d1e815e30f077922fbcad8a5ae4ae551 libkscreen-5.26.4.tar.xz
|
---|
| 177 | 7723718f4ae45ef8d7afb6f698754500 libksysguard-5.26.4.tar.xz
|
---|
| 178 | a9a1aa3091af394ea4f0da49cf71fa55 breeze-5.26.4.tar.xz
|
---|
| 179 | 6d3af0af59e7570c195e16326eb78a95 breeze-gtk-5.26.4.tar.xz
|
---|
| 180 | 625e99eab5af4ec21336f748e67b67b7 layer-shell-qt-5.26.4.tar.xz
|
---|
| 181 | a8162421975df33c2a28f679b03b03aa kscreenlocker-5.26.4.tar.xz
|
---|
| 182 | c7d87706957fdcad8967348a718cc1c9 oxygen-5.26.4.tar.xz
|
---|
| 183 | 3dbf318d057cd9a012d2a37a3d45c3d5 kinfocenter-5.26.4.tar.xz
|
---|
| 184 | a2f23971599845b291c12c2701d7aa4e kwin-5.26.4.tar.xz
|
---|
| 185 | 39302f811e359033e664a6461b6fdbe4 plasma-workspace-5.26.4.1.tar.xz
|
---|
| 186 | 3f1e7dfe3bfb45bab458c3867d92cd9f plasma-disks-5.26.4.tar.xz
|
---|
| 187 | d9fb627fc4272e7753af952b522d4416 bluedevil-5.26.4.tar.xz
|
---|
| 188 | 54e61050bbadae9d40321843834660e8 kde-gtk-config-5.26.4.tar.xz
|
---|
| 189 | 52d5f2ed12284c8f31c6e6c7c1a18271 khotkeys-5.26.4.tar.xz
|
---|
| 190 | 0d8060c1680c91a85129732a25f67623 kmenuedit-5.26.4.tar.xz
|
---|
| 191 | 68bea6c5219ed6b83eb588b4f09254f6 kscreen-5.26.4.tar.xz
|
---|
| 192 | 325ecd912133aec98d72cbb9371b5e9b kwallet-pam-5.26.4.tar.xz
|
---|
| 193 | 72255cb11155888a1f02dbc44346faf6 kwayland-integration-5.26.4.tar.xz
|
---|
| 194 | b6ba8694011f3f764ff3a4a2de27c446 kwrited-5.26.4.tar.xz
|
---|
| 195 | ba3f3b6cc47ae3092f4e70742300d181 milou-5.26.4.tar.xz
|
---|
| 196 | 9b0fa4a7b7285c0eaaecc8f2cf4991b5 plasma-nm-5.26.4.tar.xz
|
---|
| 197 | 9b83ac853e5851eb01918ae66e4bc238 plasma-pa-5.26.4.tar.xz
|
---|
| 198 | f4386c8910593425386b4d53f495a590 plasma-workspace-wallpapers-5.26.4.tar.xz
|
---|
| 199 | ca6f21554bc89320ad04d19fc56b749b polkit-kde-agent-1-5.26.4.tar.xz
|
---|
| 200 | cc2dbf3bd907d7a347b53420f51b73c6 powerdevil-5.26.4.tar.xz
|
---|
| 201 | a7480b2f3dcb241597f881b820cea82f plasma-desktop-5.26.4.tar.xz
|
---|
| 202 | c381c5cd5bbcfcf7f5b5012862e575c5 kgamma5-5.26.4.tar.xz
|
---|
| 203 | a0a20325af1c3a9690228f0da5d22efb ksshaskpass-5.26.4.tar.xz
|
---|
| 204 | #90a1d60dfcae3b683246e3b04ccf3b36 plasma-sdk-5.26.4.tar.xz
|
---|
| 205 | 1ab9b3119be9f170c82d28f83652d139 sddm-kcm-5.26.4.tar.xz
|
---|
| 206 | 42bdb4436c5e5f02f6a6893b43d57029 discover-5.26.4.tar.xz
|
---|
| 207 | #9bf877b70af210d2b40833d00c6baae8 breeze-grub-5.26.4.tar.xz
|
---|
| 208 | #7977cbb93436e0cb41ac7c043a79d14e breeze-plymouth-5.26.4.tar.xz
|
---|
| 209 | d102a43c139a928d6ccb83a0b4fb2f61 kactivitymanagerd-5.26.4.tar.xz
|
---|
| 210 | d7999e1f9ca9b7da32387227f890e7ed plasma-integration-5.26.4.tar.xz
|
---|
| 211 | 64277d588a7b2ab1bf9295268fac4fce plasma-tests-5.26.4.tar.xz
|
---|
| 212 | #8824f8fe6c6547ba053c77980db5fc19 plymouth-kcm-5.26.4.tar.xz
|
---|
| 213 | 2ca28e5e76a04ced2a151ada42df421f xdg-desktop-portal-kde-5.26.4.tar.xz
|
---|
| 214 | d7d81abab1f75c4f75286b7541e3c724 drkonqi-5.26.4.tar.xz
|
---|
| 215 | a5d6dcfbcacb34429e3125a4dc3d20fa plasma-vault-5.26.4.tar.xz
|
---|
| 216 | c554a96073816fdadd5ce27c8cc290da plasma-browser-integration-5.26.4.tar.xz
|
---|
| 217 | ef012068159708971289387b948bbb9f kde-cli-tools-5.26.4.tar.xz
|
---|
| 218 | 3abcf237a6ba20f1e2ec4f9462780932 systemsettings-5.26.4.tar.xz
|
---|
| 219 | d6406865e7e722f503d118d283a9cb13 plasma-thunderbolt-5.26.4.tar.xz
|
---|
| 220 | #e459caedeccd6bd7ce7ec01130b9ef96 plasma-nano-5.26.4.tar.xz
|
---|
| 221 | #710b5a5517a0856e991a45b0e33b5048 plasma-mobile-5.26.4.tar.xz
|
---|
| 222 | 46363a107539755e2d6707a199860dc5 plasma-firewall-5.26.4.tar.xz
|
---|
| 223 | a7614d882e4ea34682fbba713434ee94 plasma-systemmonitor-5.26.4.tar.xz
|
---|
| 224 | 3d3c6f2086318a9a5bc584161b1a09b7 qqc2-breeze-style-5.26.4.tar.xz
|
---|
| 225 | 9c5c6ced9cffaab52bdeed33fc5d053f ksystemstats-5.26.4.tar.xz
|
---|
| 226 | dc694109774211bc57efa9030838245f oxygen-sounds-5.26.4.tar.xz
|
---|
| 227 | b924e1a5efa106aafa87a25e1a3775b9 aura-browser-5.26.4.tar.xz
|
---|
| 228 | 5d6fd4a97a939df024509371daca9fa2 kdeplasma-addons-5.26.4.tar.xz
|
---|
| 229 | b3a40dc5c74a53889fd6b3204bf91124 kpipewire-5.26.4.tar.xz
|
---|
| 230 | 6d235cd46a3f9ecd313e0d0cc66f194c plank-player-5.26.4.tar.xz
|
---|
| 231 | 7dd0e56273b92752c7d0a2fc49144058 plasma-bigscreen-5.26.4.tar.xz</literal>
|
---|
[153a5795] | 232 | EOF</userinput></screen>
|
---|
| 233 |
|
---|
[1c8c15c] | 234 | <note>
|
---|
| 235 | <para>
|
---|
| 236 | The breeze-grub, breeze-plymouth, and plymouth-kcm packages above are
|
---|
| 237 | all for customized support of <ulink
|
---|
| 238 | url="https://www.freedesktop.org/wiki/Software/Plymouth/"
|
---|
| 239 | >Plymouth</ulink>
|
---|
| 240 | which is designed to be run within an initial ram disk during boot (see
|
---|
| 241 | <xref linkend="initramfs"/>). The plasma-sdk package is optional and
|
---|
| 242 | used for software development. The plasma-nano package is used for
|
---|
| 243 | embedded systems and plasma-phone-components provides phone
|
---|
| 244 | functionality for Plasma.
|
---|
| 245 | </para>
|
---|
| 246 | </note>
|
---|
[ce228c2] | 247 |
|
---|
[153a5795] | 248 | </sect2>
|
---|
| 249 |
|
---|
| 250 | <sect2 role="installation">
|
---|
| 251 | <title>Installation of Plasma5</title>
|
---|
| 252 |
|
---|
| 253 | &as_root;
|
---|
| 254 |
|
---|
| 255 | <para>
|
---|
| 256 | First, start a subshell that will exit on error:
|
---|
| 257 | </para>
|
---|
| 258 |
|
---|
| 259 | <screen><userinput>bash -e</userinput></screen>
|
---|
| 260 |
|
---|
| 261 | <para>
|
---|
| 262 | Install all of the packages by running the following
|
---|
| 263 | commands:
|
---|
| 264 | </para>
|
---|
| 265 |
|
---|
| 266 | <screen><userinput>while read -r line; do
|
---|
| 267 |
|
---|
| 268 | # Get the file name, ignoring comments and blank lines
|
---|
| 269 | if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
|
---|
| 270 | file=$(echo $line | cut -d" " -f2)
|
---|
[f3429309] | 271 |
|
---|
[153a5795] | 272 | pkg=$(echo $file|sed 's|^.*/||') # Remove directory
|
---|
| 273 | packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
|
---|
| 274 |
|
---|
| 275 | tar -xf $file
|
---|
| 276 | pushd $packagedir
|
---|
[b359b3e0] | 277 | <!--
|
---|
[4e0a40f] | 278 | # Fix some build issues when generating some configuration files
|
---|
[cfd5cb3] | 279 | case $name in
|
---|
| 280 | plasma-workspace)
|
---|
| 281 | sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 282 | ;;
|
---|
[8558044] | 283 |
|
---|
[cfd5cb3] | 284 | khotkeys)
|
---|
| 285 | sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 286 | ;;
|
---|
[8558044] | 287 |
|
---|
[cfd5cb3] | 288 | plasma-desktop)
|
---|
| 289 | sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
|
---|
| 290 | ;;
|
---|
| 291 | esac
|
---|
[b359b3e0] | 292 | -->
|
---|
[69a9de5] | 293 | mkdir build
|
---|
| 294 | cd build
|
---|
[153a5795] | 295 |
|
---|
[1c8d0ff] | 296 | cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
|
---|
| 297 | -DCMAKE_BUILD_TYPE=Release \
|
---|
| 298 | -DBUILD_TESTING=OFF \
|
---|
[69a9de5] | 299 | -Wno-dev .. &&
|
---|
[153a5795] | 300 |
|
---|
[69a9de5] | 301 | make
|
---|
| 302 | as_root make install
|
---|
| 303 | popd
|
---|
[153a5795] | 304 |
|
---|
[b44e7de2] | 305 | <!-- some packages end up with files owned by root in $packagedir,
|
---|
[8f445fdc] | 306 | so use as_root for removing -->
|
---|
| 307 | as_root rm -rf $packagedir
|
---|
[69a9de5] | 308 | as_root /sbin/ldconfig
|
---|
| 309 |
|
---|
[ed4a7a2] | 310 | done < plasma-&plasma5-version;.md5
|
---|
[153a5795] | 311 |
|
---|
[527f3db] | 312 | exit</userinput></screen>
|
---|
[1c8d0ff] | 313 |
|
---|
[527f3db] | 314 | <para>
|
---|
| 315 | If you did not set <envar>$KF5_PREFIX</envar> to
|
---|
| 316 | <filename>/usr</filename>, create symlinks to allow display managers to
|
---|
| 317 | find <application>Plasma</application>:
|
---|
| 318 | </para>
|
---|
| 319 |
|
---|
| 320 | <screen><userinput>as_root install -dvm 755 /usr/share/xsessions &&
|
---|
| 321 | cd /usr/share/xsessions/ &&
|
---|
| 322 | [ -e plasma.desktop ] ||
|
---|
| 323 | as_root ln -sfv $KF5_PREFIX/share/xsessions/plasma.desktop &&
|
---|
| 324 | as_root install -dvm 755 /usr/share/wayland-sessions &&
|
---|
| 325 | cd /usr/share/wayland-sessions/ &&
|
---|
[4969ec3c] | 326 | [ -e plasmawayland.desktop ] ||
|
---|
| 327 | as_root ln -sfv $KF5_PREFIX/share/wayland-sessions/plasmawayland.desktop<!--
|
---|
[1c8d0ff] | 328 | cd $KF5_PREFIX/share/plasma/plasmoids
|
---|
[153a5795] | 329 |
|
---|
[1c8d0ff] | 330 | for j in $(find -name \*.js); do
|
---|
[3d656d7] | 331 | as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
|
---|
[5ac58b54] | 332 | done--></userinput></screen>
|
---|
[153a5795] | 333 |
|
---|
[2e29bba] | 334 | <para revision="sysv">
|
---|
| 335 | Useless systemd units have been installed in
|
---|
| 336 | <filename class="directory">$KF5_PREFIX/lib</filename>. Remove
|
---|
| 337 | them now (as <systemitem class="username">root</systemitem>):
|
---|
| 338 | </para>
|
---|
| 339 |
|
---|
| 340 | <screen role="root"
|
---|
| 341 | revision="sysv"><userinput>rm -rf $KF5_PREFIX/lib/systemd</userinput></screen>
|
---|
| 342 |
|
---|
[153a5795] | 343 | </sect2>
|
---|
[5ac58b54] | 344 | <!--
|
---|
[153a5795] | 345 | <sect2 role="commands">
|
---|
| 346 | <title>Command Explanations</title>
|
---|
| 347 |
|
---|
| 348 | <para>
|
---|
[1c8d0ff] | 349 | <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
|
---|
| 350 | Create symbolic links so qml files can find needed javascript modules.
|
---|
[153a5795] | 351 | </para>
|
---|
| 352 |
|
---|
| 353 | </sect2>
|
---|
[5ac58b54] | 354 | -->
|
---|
[3b0f105] | 355 | <sect2 role="configuration">
|
---|
| 356 | <title>Configuring Plasma</title>
|
---|
| 357 |
|
---|
| 358 | <sect3>
|
---|
| 359 | <title>Linux PAM Configuration</title>
|
---|
| 360 |
|
---|
| 361 | <para>
|
---|
| 362 | If you built Plasma with the recommended <application>Linux
|
---|
| 363 | PAM</application> support, create necessary configuration files by
|
---|
| 364 | running the following commands as the <systemitem
|
---|
| 365 | class="username">root</systemitem> user:
|
---|
| 366 | </para>
|
---|
| 367 |
|
---|
[8558044] | 368 | <screen role="root"><userinput>cat > /etc/pam.d/kde << "EOF"
|
---|
[51dfb3e] | 369 | <literal># Begin /etc/pam.d/kde
|
---|
[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 include system-auth
|
---|
| 376 |
|
---|
| 377 | account include system-account
|
---|
| 378 | password include system-password
|
---|
| 379 | session include system-session
|
---|
| 380 |
|
---|
[51dfb3e] | 381 | # End /etc/pam.d/kde</literal>
|
---|
[3b0f105] | 382 | EOF
|
---|
| 383 |
|
---|
[8558044] | 384 | cat > /etc/pam.d/kde-np << "EOF"
|
---|
[51dfb3e] | 385 | <literal># Begin /etc/pam.d/kde-np
|
---|
[3b0f105] | 386 |
|
---|
| 387 | auth requisite pam_nologin.so
|
---|
| 388 | auth required pam_env.so
|
---|
| 389 |
|
---|
| 390 | auth required pam_succeed_if.so uid >= 1000 quiet
|
---|
| 391 | auth required pam_permit.so
|
---|
| 392 |
|
---|
| 393 | account include system-account
|
---|
| 394 | password include system-password
|
---|
| 395 | session include system-session
|
---|
| 396 |
|
---|
[51dfb3e] | 397 | # End /etc/pam.d/kde-np</literal>
|
---|
[3b0f105] | 398 | EOF
|
---|
| 399 |
|
---|
| 400 | cat > /etc/pam.d/kscreensaver << "EOF"
|
---|
[51dfb3e] | 401 | <literal># Begin /etc/pam.d/kscreensaver
|
---|
[3b0f105] | 402 |
|
---|
| 403 | auth include system-auth
|
---|
| 404 | account include system-account
|
---|
| 405 |
|
---|
[51dfb3e] | 406 | # End /etc/pam.d/kscreensaver</literal>
|
---|
[3b0f105] | 407 | EOF</userinput></screen>
|
---|
| 408 | </sect3>
|
---|
| 409 | </sect2>
|
---|
| 410 |
|
---|
[1c8d0ff] | 411 | <sect2 role="starting">
|
---|
| 412 | <title>Starting Plasma5</title>
|
---|
| 413 |
|
---|
[3f460da0] | 414 | <para revision="sysv">
|
---|
[1c8d0ff] | 415 | You can start <application>Plasma5</application> from runlevel 3, using
|
---|
| 416 | <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
|
---|
[c225bfa] | 417 | such as <xref linkend="lightdm"/>.
|
---|
[1c8d0ff] | 418 | </para>
|
---|
| 419 |
|
---|
[3f460da0] | 420 | <para revision="systemd">
|
---|
| 421 | You can start <application>Plasma5</application> from a TTY, using
|
---|
[fd42347a] | 422 | <xref linkend="xinit"/><!--, or from a graphical display manager, such as
|
---|
| 423 | <xref linkend="sddm"/>-->.
|
---|
[3f460da0] | 424 | </para>
|
---|
| 425 |
|
---|
[1c8d0ff] | 426 | <para>
|
---|
[460cec4b] | 427 | To start <application>Plasma 5</application> using <xref linkend="xinit"/>,
|
---|
[1c8d0ff] | 428 | run the following commands:
|
---|
| 429 | </para>
|
---|
| 430 |
|
---|
[51dfb3e] | 431 | <screen><userinput>cat > ~/.xinitrc << "EOF"
|
---|
[718be191] | 432 | <literal>dbus-launch --exit-with-session $KF5_PREFIX/bin/startplasma-x11</literal>
|
---|
[3f460da0] | 433 | EOF
|
---|
| 434 |
|
---|
[1c8d0ff] | 435 | startx</userinput></screen>
|
---|
| 436 |
|
---|
| 437 | <para>
|
---|
| 438 | The X session starts on the first unused virtual terminal, normally vt7.
|
---|
| 439 | You can switch to another vt<emphasis>n</emphasis> simultaneously
|
---|
| 440 | pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
|
---|
| 441 | (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
|
---|
| 442 | normally started at vt7, use Ctrl-Alt-F7. The vt where the command
|
---|
| 443 | <command>startx</command> was executed will display many messages,
|
---|
| 444 | including X starting messages, applications automatically started with
|
---|
| 445 | the session, and eventually, some warning and error messages. You may
|
---|
| 446 | prefer to redirect those messages to a log file, which not only will keep
|
---|
| 447 | the initial vt uncluttered, but can also be used for debugging purposes. This
|
---|
| 448 | can be done starting X with:
|
---|
| 449 | </para>
|
---|
| 450 |
|
---|
[3011abe] | 451 | <screen><userinput>startx &> ~/x-session-errors</userinput></screen>
|
---|
[1c8d0ff] | 452 |
|
---|
| 453 | <para>
|
---|
| 454 | When shutting down or rebooting, the shutdown messages appear on the vt
|
---|
| 455 | where X was running. If you wish to see those messages, simultaneously
|
---|
| 456 | press keys Alt-F7 (assuming that X was running on vt7).
|
---|
| 457 | </para>
|
---|
[7a763b49] | 458 | <!-- Now the entry is "plasma (X11)" for Xorg, so I guess this is
|
---|
| 459 | not needed anymore:
|
---|
[1c8c15c] | 460 | <para>
|
---|
| 461 | If you intend to start <application>Plasma</application> using a
|
---|
[c225bfa] | 462 | display manager such as <xref linkend="lightdm"/>, there will be two entries
|
---|
[f29eb8a] | 463 | for <application>Plasma</application>, one for use with
|
---|
| 464 | <application>Xorg</application>, and another for
|
---|
| 465 | <application>Wayland</application>. Modify the
|
---|
| 466 | <application>Xorg</application> entry with the following command, as the
|
---|
| 467 | <systemitem class="username">root</systemitem> user, so that you can
|
---|
| 468 | differentiate between the two:</para>
|
---|
| 469 |
|
---|
[33c8b427] | 470 | <screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
|
---|
[7a763b49] | 471 | -->
|
---|
[f29eb8a] | 472 |
|
---|
[1c8d0ff] | 473 | </sect2>
|
---|
| 474 |
|
---|
[153a5795] | 475 | <sect2 role="content">
|
---|
| 476 | <title>Contents</title>
|
---|
| 477 |
|
---|
| 478 | <segmentedlist>
|
---|
| 479 | <segtitle>Installed Programs</segtitle>
|
---|
| 480 | <segtitle>Installed Libraries</segtitle>
|
---|
| 481 | <segtitle>Installed Directories</segtitle>
|
---|
| 482 |
|
---|
| 483 | <seglistitem>
|
---|
| 484 | <seg>
|
---|
[2e29bba] | 485 | There are too many plasma programs (63 in /opt/kf5/bin) to list
|
---|
[83ef2a4] | 486 | separately here.
|
---|
[153a5795] | 487 | </seg>
|
---|
| 488 | <seg>
|
---|
[b359b3e0] | 489 | There are too many plasma libraries (40 in /opt/kf5/lib) to list
|
---|
[83ef2a4] | 490 | separately here.
|
---|
[153a5795] | 491 | </seg>
|
---|
| 492 | <seg>
|
---|
[83ef2a4] | 493 | There are too many plasma directories (over 1000 in /opt/kf5) to
|
---|
| 494 | list separately here.
|
---|
[153a5795] | 495 | </seg>
|
---|
| 496 | </seglistitem>
|
---|
| 497 | </segmentedlist>
|
---|
| 498 |
|
---|
| 499 | </sect2>
|
---|
| 500 |
|
---|
| 501 | </sect1>
|
---|