[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">
|
---|
[460cec4b] | 10 | <!ENTITY plasma5-size "105 MB">
|
---|
[ed4a7a2] | 11 | <!ENTITY plasma5-buildsize "1.2 GB">
|
---|
| 12 | <!ENTITY plasma5-time "43 SBU">
|
---|
[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">
|
---|
| 26 | <primary sortas="a-kf5">KDE Plasma 5</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <para>KDE Plasma 5 is a collection of packages based on top of KDE Frameworks
|
---|
[6c91a92a] | 30 | 5 and QML. It has been derived from the monolithic KDE 4 desktop.
|
---|
[1c8d0ff] | 31 | They implement the KDE Display Environment (Plasma 5).</para>
|
---|
[366fbbb8] | 32 |
|
---|
[2b2671b] | 33 | &lfs79_checked;
|
---|
[153a5795] | 34 |
|
---|
| 35 | <para>The instructions below build all of the Plasma 5 packages in one
|
---|
[f97d5f6] | 36 | step by using a bash script.</para>
|
---|
[153a5795] | 37 |
|
---|
| 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>Download (HTTP): <ulink url="&plasma5-download-http;"/></para>
|
---|
| 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>Download (FTP): <ulink url="&plasma5-download-ftp;"/></para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download MD5 sum: &plasma5-md5sum;</para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download size: &plasma5-size;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Estimated disk space required: &plasma5-buildsize;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Estimated build time: &plasma5-time;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | </itemizedlist>
|
---|
| 59 |
|
---|
| 60 | <bridgehead renderas="sect3">Plasma 5 Dependencies</bridgehead>
|
---|
| 61 |
|
---|
| 62 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 63 | <para role="required">
|
---|
[f3429309] | 64 | <xref linkend="fontforge"/>,
|
---|
| 65 | <xref linkend="gtk2"/>,
|
---|
| 66 | <xref linkend="gtk3"/>,
|
---|
[f97d5f6] | 67 | <xref linkend="kf5-frameworks"/>,
|
---|
[366fbbb8] | 68 | <xref linkend="libpwquality"/>,
|
---|
[1c8d0ff] | 69 | <xref linkend="libxkbcommon"/>,
|
---|
[366fbbb8] | 70 | <xref linkend="mesa"/> built with <xref linkend="wayland"/>,
|
---|
[f3429309] | 71 | <xref linkend="NetworkManager"/>,
|
---|
| 72 | <xref linkend="pulseaudio"/>,
|
---|
| 73 | <xref linkend="python2"/>,
|
---|
[460cec4b] | 74 | <xref linkend="qca"/> (built with qt5),
|
---|
[f3429309] | 75 | <xref linkend="taglib"/>, and
|
---|
[1c8d0ff] | 76 | <xref linkend="xcb-util-cursor"/>
|
---|
[153a5795] | 77 | </para>
|
---|
| 78 |
|
---|
| 79 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 80 | <para role="recommended">
|
---|
[f3429309] | 81 | <xref linkend="libdbusmenu-qt"/>,
|
---|
| 82 | <xref linkend="libcanberra"/>,
|
---|
| 83 | <xref linkend="libinput"/>,
|
---|
[0779b94] | 84 | <xref linkend="linux-pam"/>,
|
---|
[f3429309] | 85 | <xref linkend="lm_sensors"/>,
|
---|
[0779b94] | 86 | <xref linkend="oxygen-icons"/>, and
|
---|
| 87 | <xref linkend="pciutils"/>
|
---|
[153a5795] | 88 | </para>
|
---|
| 89 |
|
---|
[0779b94] | 90 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[153a5795] | 91 | <para role="optional">
|
---|
[0779b94] | 92 | <xref linkend="glu"/>,
|
---|
| 93 | <xref linkend="xorg-synaptics-driver"/>,
|
---|
[63c5b080] | 94 | <ulink url="https://github.com/ibus/ibus/wiki">ibus</ulink>,
|
---|
[0779b94] | 95 | <ulink url="http://gpsd.berlios.de">libgps</ulink>,
|
---|
| 96 | <ulink url="https://github.com/libhybris/libhybris">libhybris</ulink>,
|
---|
| 97 | <ulink url="http://sourceforge.net/projects/libraw1394/">libraw1394</ulink>,
|
---|
| 98 | <ulink url="https://bitbucket.org/godsme/mockcpp">mockcpp</ulink>,
|
---|
| 99 | <ulink url="http://qalculate.sourceforge.net">Qalculate</ulink>,
|
---|
| 100 | <ulink url="https://launchpad.net/qapt">Qapt</ulink>, and
|
---|
| 101 | <ulink url="https://github.com/osiam/osiam">SCIM</ulink>
|
---|
[153a5795] | 102 | </para>
|
---|
| 103 |
|
---|
| 104 | <para condition="html" role="usernotes">User Notes:
|
---|
| 105 | <ulink url="&blfs-wiki;/kf5"/></para>
|
---|
| 106 |
|
---|
| 107 | <sect2>
|
---|
[773b316] | 108 | <title>Downloading KDE Plasma5</title>
|
---|
[153a5795] | 109 |
|
---|
| 110 | <para>
|
---|
| 111 | The easiest way to get the KDE Plasma5 packages is to use a single
|
---|
| 112 | <command>wget</command> to fetch them all at once:
|
---|
| 113 | </para>
|
---|
[f3429309] | 114 |
|
---|
[153a5795] | 115 | <screen><userinput>url=http://download.kde.org/stable/plasma/&plasma5-version;/
|
---|
[10a9447] | 116 | wget -r -nH --cut-dirs=3 -A '*.xz' -np $url</userinput>
|
---|
[153a5795] | 117 | <literal>
|
---|
[f3429309] | 118 | The options used here are:
|
---|
[153a5795] | 119 | -r recurse through child directories
|
---|
| 120 | -nH disable generation of host-prefixed directories
|
---|
| 121 | --cut-dirs=3 remove three levels of directories when saving
|
---|
| 122 | -A '*.xz' just get the *.xz files
|
---|
[10a9447] | 123 | -np don't get parent directories</literal></screen>
|
---|
[153a5795] | 124 |
|
---|
| 125 | </sect2>
|
---|
| 126 |
|
---|
| 127 | <sect2>
|
---|
| 128 | <title>Setting Package Order</title>
|
---|
| 129 |
|
---|
| 130 | <para>
|
---|
| 131 | The order of building files is important due to internal dependencies.
|
---|
| 132 | Create the list of files in the proper order as follows:
|
---|
| 133 | </para>
|
---|
| 134 |
|
---|
[ed4a7a2] | 135 | <screen><userinput>cat > plasma-&plasma5-version;.md5 << "EOF"
|
---|
[24ffecc8] | 136 | <literal>3a56e727477dc28d51c10d5d2eb91dc2 kde-cli-tools-5.5.4.tar.xz
|
---|
| 137 | f30791e38e7eccd5b6a8643d606d4e3b kdecoration-5.5.4.tar.xz
|
---|
| 138 | c0e92aa7fd9f868bb565b5d39a382d81 kwayland-5.5.4.tar.xz
|
---|
| 139 | bc23b108f5e5dccdc03183e4b72c354d libkscreen-5.5.4.tar.xz
|
---|
| 140 | af74ab9d18f156c16c542892c9148731 libksysguard-5.5.4.tar.xz
|
---|
| 141 | e284a850879f33ccbfea22fae5d93a6e breeze-5.5.4.tar.xz
|
---|
| 142 | d7bcd2d966533519ca7bd7c8d83f2490 breeze-gtk-5.5.4.tar.xz
|
---|
| 143 | 5073ee898dac459f53200daba96d73ba kscreenlocker-5.5.4.tar.xz
|
---|
| 144 | d79eaaf8d24918a7a3dd0e95bf4f7b95 oxygen-5.5.4.tar.xz
|
---|
| 145 | e47e2afb0bdef8733408467d24199694 khelpcenter-5.5.4.tar.xz
|
---|
| 146 | 4eddff6767cf1a2d47b6ddf711a4655e kinfocenter-5.5.4.tar.xz
|
---|
| 147 | 36158a670305ecd8ef29415448917d5a ksysguard-5.5.4.tar.xz
|
---|
| 148 | d719b7258a5fa9bf2dae770a20fa4e2d kwin-5.5.4.tar.xz
|
---|
| 149 | d745f6cd41f9d248fda24db9d491d973 systemsettings-5.5.4.tar.xz
|
---|
| 150 | e6450622646f5361a71830912320fd64 plasma-workspace-5.5.4.tar.xz
|
---|
| 151 | 725f2046c787929d71162dada5fd1bf3 bluedevil-5.5.4.tar.xz
|
---|
| 152 | 6a3a8e2dc4c19205802d3cee52f21abc kde-gtk-config-5.5.4.tar.xz
|
---|
| 153 | 7dae9526e136fd1a842f83c33a703acb khotkeys-5.5.4.tar.xz
|
---|
| 154 | 6b4f74c63e78f019d9a7e219ebf2b57e kmenuedit-5.5.4.tar.xz
|
---|
| 155 | 6a353bae593f9519773be8f9529adb1f kscreen-5.5.4.tar.xz
|
---|
| 156 | b744d8f115ef2d2764d83a9fe9071957 kwallet-pam-5.5.4.tar.xz
|
---|
| 157 | 5a2b6d89e9ae11abe0d4b04c372fbaa8 kwayland-integration-5.5.4.tar.xz
|
---|
| 158 | d2eb5b40976639f3571bc5cee74854c9 kwrited-5.5.4.tar.xz
|
---|
| 159 | 4719f8c76bc8b7bdca544fdaf5e836a9 milou-5.5.4.tar.xz
|
---|
| 160 | 70287df57f1869801d4cab8179c20f2e plasma-nm-5.5.4.tar.xz
|
---|
| 161 | bfc8507bf610b8738047bf59c4e32327 plasma-pa-5.5.4.tar.xz
|
---|
| 162 | 996d8eb8b7a0a4ed26d13d09a0038709 plasma-workspace-wallpapers-5.5.4.tar.xz
|
---|
| 163 | 3236cf46b260b7c3bcbc22fecfda0aca polkit-kde-agent-1-5.5.4.tar.xz
|
---|
| 164 | 4822113c9a2366e8ec406d6e709ed2c5 powerdevil-5.5.4.tar.xz
|
---|
| 165 | 2ec4ddd309582c91c39f1921415cc059 plasma-desktop-5.5.4.tar.xz
|
---|
| 166 | 1265fb2c9e28437dda3c5af00102e041 kdeplasma-addons-5.5.4.tar.xz
|
---|
| 167 | a6d759ea14f106701202b8c536dfb62c kgamma5-5.5.4.tar.xz
|
---|
| 168 | 90793d76613ed4f3a2f46c2c417527ed ksshaskpass-5.5.4.tar.xz
|
---|
| 169 | 4a1a4a6b6196d3f115de53a6d220f9cd plasma-mediacenter-5.5.4.tar.xz
|
---|
| 170 | 03ab7ffd49c9c6cd266f43b6b1b31571 plasma-sdk-5.5.4.tar.xz
|
---|
| 171 | 0cc50236023b0baf02ccbcd4e373337a sddm-kcm-5.5.4.tar.xz
|
---|
| 172 | f545a6e63b0953b777a1709f6f6f9248 user-manager-5.5.4.tar.xz
|
---|
| 173 | 277ad0f67e0b101d109e93a03902bf49 discover-5.5.4.tar.xz</literal>
|
---|
[153a5795] | 174 | EOF</userinput></screen>
|
---|
| 175 |
|
---|
| 176 | </sect2>
|
---|
| 177 |
|
---|
| 178 | <sect2 role="installation">
|
---|
| 179 | <title>Installation of Plasma5</title>
|
---|
| 180 |
|
---|
| 181 | &as_root;
|
---|
| 182 |
|
---|
| 183 | <para>
|
---|
| 184 | First, start a subshell that will exit on error:
|
---|
| 185 | </para>
|
---|
| 186 |
|
---|
| 187 |
|
---|
| 188 | <screen><userinput>bash -e</userinput></screen>
|
---|
| 189 |
|
---|
| 190 | <para>
|
---|
| 191 | Install all of the packages by running the following
|
---|
| 192 | commands:
|
---|
| 193 | </para>
|
---|
| 194 |
|
---|
| 195 | <screen><userinput>while read -r line; do
|
---|
| 196 |
|
---|
| 197 | # Get the file name, ignoring comments and blank lines
|
---|
| 198 | if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi
|
---|
| 199 | file=$(echo $line | cut -d" " -f2)
|
---|
[f3429309] | 200 |
|
---|
[153a5795] | 201 | pkg=$(echo $file|sed 's|^.*/||') # Remove directory
|
---|
| 202 | packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory
|
---|
| 203 |
|
---|
| 204 | tar -xf $file
|
---|
| 205 | pushd $packagedir
|
---|
| 206 |
|
---|
[69a9de5] | 207 | mkdir build
|
---|
| 208 | cd build
|
---|
[153a5795] | 209 |
|
---|
[1c8d0ff] | 210 | OPTS=""
|
---|
| 211 |
|
---|
| 212 | case $srcdir in
|
---|
| 213 | kwayland-&plasma5-version; )
|
---|
| 214 | OPTS="-DECM_MKSPECS_INSTALL_DIR=$KF5_PREFIX/share/mkspecs/modules"
|
---|
| 215 | ;;
|
---|
[2b2671b] | 216 |
|
---|
| 217 | libksysguard-$VER )
|
---|
| 218 | sed -i "1 i using namespace std;" ../signalplotter/ksignalplotter.cpp
|
---|
| 219 | ;;
|
---|
[1c8d0ff] | 220 | esac
|
---|
| 221 |
|
---|
| 222 | cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
|
---|
| 223 | -DCMAKE_BUILD_TYPE=Release \
|
---|
| 224 | -DLIB_INSTALL_DIR=lib \
|
---|
| 225 | -DBUILD_TESTING=OFF \
|
---|
| 226 | $OPTS \
|
---|
[69a9de5] | 227 | -Wno-dev .. &&
|
---|
[153a5795] | 228 |
|
---|
[69a9de5] | 229 | make
|
---|
| 230 | as_root make install
|
---|
| 231 | popd
|
---|
[153a5795] | 232 |
|
---|
[69a9de5] | 233 | rm -rf $packagedir
|
---|
| 234 | as_root /sbin/ldconfig
|
---|
| 235 |
|
---|
[ed4a7a2] | 236 | done < plasma-&plasma5-version;.md5
|
---|
[153a5795] | 237 |
|
---|
[1c8d0ff] | 238 | exit
|
---|
| 239 |
|
---|
| 240 | cd $KF5_PREFIX/share/plasma/plasmoids
|
---|
[153a5795] | 241 |
|
---|
[1c8d0ff] | 242 | for j in $(find -name \*.js); do
|
---|
[3d656d7] | 243 | as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
|
---|
[1c8d0ff] | 244 | done</userinput></screen>
|
---|
[153a5795] | 245 |
|
---|
| 246 | </sect2>
|
---|
| 247 |
|
---|
| 248 | <sect2 role="commands">
|
---|
| 249 | <title>Command Explanations</title>
|
---|
| 250 |
|
---|
| 251 | <para>
|
---|
[1c8d0ff] | 252 | <command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
|
---|
| 253 | Create symbolic links so qml files can find needed javascript modules.
|
---|
[153a5795] | 254 | </para>
|
---|
| 255 |
|
---|
| 256 | </sect2>
|
---|
[1c8d0ff] | 257 | <sect2 role="starting">
|
---|
| 258 | <title>Starting Plasma5</title>
|
---|
| 259 |
|
---|
[460cec4b] | 260 | <caution>
|
---|
| 261 | <para>If you have KDE4 installed as well as Plasma 5, make sure the
|
---|
| 262 | PATH environment setting has the Plasma 5 binaries before the KDE4 entry.
|
---|
| 263 | You can ensure this by running:</para>
|
---|
| 264 |
|
---|
| 265 | <screen><userinput>pathprepend /opt/kf5/bin</userinput></screen>
|
---|
| 266 |
|
---|
| 267 | <para>before running startx.</para>
|
---|
| 268 | </caution>
|
---|
| 269 |
|
---|
[1c8d0ff] | 270 | <para>
|
---|
| 271 | You can start <application>Plasma5</application> from runlevel 3, using
|
---|
| 272 | <xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
|
---|
| 273 | such as <xref linkend="sddm"/>.
|
---|
| 274 | </para>
|
---|
| 275 |
|
---|
| 276 | <para>
|
---|
[460cec4b] | 277 | To start <application>Plasma 5</application> using <xref linkend="xinit"/>,
|
---|
[1c8d0ff] | 278 | run the following commands:
|
---|
| 279 | </para>
|
---|
| 280 |
|
---|
| 281 | <screen><userinput>cat > ~/.xinitrc << "EOF"
|
---|
| 282 | <literal>ck-launch-session dbus-launch --exit-with-session $KF5_PREFIX/bin/startkde</literal>
|
---|
| 283 | EOF
|
---|
| 284 |
|
---|
| 285 | startx</userinput></screen>
|
---|
| 286 |
|
---|
| 287 | <para>
|
---|
| 288 | The X session starts on the first unused virtual terminal, normally vt7.
|
---|
| 289 | You can switch to another vt<emphasis>n</emphasis> simultaneously
|
---|
| 290 | pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
|
---|
| 291 | (<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
|
---|
| 292 | normally started at vt7, use Ctrl-Alt-F7. The vt where the command
|
---|
| 293 | <command>startx</command> was executed will display many messages,
|
---|
| 294 | including X starting messages, applications automatically started with
|
---|
| 295 | the session, and eventually, some warning and error messages. You may
|
---|
| 296 | prefer to redirect those messages to a log file, which not only will keep
|
---|
| 297 | the initial vt uncluttered, but can also be used for debugging purposes. This
|
---|
| 298 | can be done starting X with:
|
---|
| 299 | </para>
|
---|
| 300 |
|
---|
| 301 | <screen><userinput>startx &> ~/.x-session-errors</userinput></screen>
|
---|
| 302 |
|
---|
| 303 | <note>
|
---|
| 304 | <para>
|
---|
| 305 | You may wish to drop consolekit and/or dbus-launch, e.g., just using
|
---|
| 306 | startkde in ~/.xinitrc. However some capabilities such as mounting or
|
---|
| 307 | umounting file systems from a file manager will not be possible, or the
|
---|
| 308 | reboot option may be absent or inoperative, among other problems.
|
---|
| 309 | </para>
|
---|
| 310 | </note>
|
---|
| 311 | <para>
|
---|
| 312 | When shutting down or rebooting, the shutdown messages appear on the vt
|
---|
| 313 | where X was running. If you wish to see those messages, simultaneously
|
---|
| 314 | press keys Alt-F7 (assuming that X was running on vt7).
|
---|
| 315 | </para>
|
---|
| 316 |
|
---|
| 317 | </sect2>
|
---|
| 318 |
|
---|
[153a5795] | 319 | <sect2 role="content">
|
---|
| 320 | <title>Contents</title>
|
---|
| 321 |
|
---|
| 322 | <segmentedlist>
|
---|
| 323 | <segtitle>Installed Programs</segtitle>
|
---|
| 324 | <segtitle>Installed Libraries</segtitle>
|
---|
| 325 | <segtitle>Installed Directories</segtitle>
|
---|
| 326 |
|
---|
| 327 | <seglistitem>
|
---|
| 328 | <seg>
|
---|
[83ef2a4] | 329 | There are too many plasma programs (50 in /opt/kf5/bin) to list
|
---|
| 330 | separately here.
|
---|
[153a5795] | 331 | </seg>
|
---|
| 332 | <seg>
|
---|
[83ef2a4] | 333 | There are too many plasma libraries (39 in /opt/kf5/lib) to list
|
---|
| 334 | separately here.
|
---|
[153a5795] | 335 | </seg>
|
---|
| 336 | <seg>
|
---|
[83ef2a4] | 337 | There are too many plasma directories (over 1000 in /opt/kf5) to
|
---|
| 338 | list separately here.
|
---|
[153a5795] | 339 | </seg>
|
---|
| 340 | </seglistitem>
|
---|
| 341 | </segmentedlist>
|
---|
| 342 |
|
---|
| 343 | </sect2>
|
---|
| 344 |
|
---|
| 345 | </sect1>
|
---|
| 346 |
|
---|