%general-entities; ]> $LastChangedBy: bdubbs $ $Date: 2015-09-24 16:44:04 -0500 (Thu, 24 Sep 2015) $ Building Plasma 5 KDE Plasma 5 KDE Plasma 5 is a collection of packages based on top of KDE Frameworks 5 and QML. It has been derived from the monolithic KDE 4 desktop. They implement the KDE Display Environment (Plasma 5). &lfs79_checked; The instructions below build all of the Plasma 5 packages in one step by using a bash script. Package Information Download (HTTP): Download (FTP): Download MD5 sum: &plasma5-md5sum; Download size: &plasma5-size; Estimated disk space required: &plasma5-buildsize; Estimated build time: &plasma5-time; Plasma 5 Dependencies Required , , , , , , built with , , , , (built with qt5), , and Recommended , , , , , , and Optional , , appstream-qt, ibus, KDevPlatform, libgps, libhybris, libraw1394, mockcpp, packagekit-qt, Qalculate, Qapt, SCIM, and socat (for pam_kwallet) User Notes: Downloading KDE Plasma5 The easiest way to get the KDE Plasma5 packages is to use a single wget to fetch them all at once: url=http://download.kde.org/stable/plasma/&plasma5-version;/ wget -r -nH --cut-dirs=3 -A '*.xz' -np $url The options used here are: -r recurse through child directories -nH disable generation of host-prefixed directories --cut-dirs=3 remove three levels of directories when saving -A '*.xz' just get the *.xz files -np don't get parent directories Setting Package Order The order of building files is important due to internal dependencies. Create the list of files in the proper order as follows: cat > plasma-&plasma5-version;.md5 << "EOF" 6660c910aabea2c065b35360fc73 kde-cli-tools-5.6.2.tar.xz 1b1480a0397aad5863a41d577c063212 kdecoration-5.6.2.tar.xz a8a0e4cd6215b1f180bec562c29c7841 kwayland-5.6.2.tar.xz 712230d0dc9a2af6eea575181aa883bb libkscreen-5.6.2.tar.xz 080e379a143cc8dc27f29ab30fc79969 libksysguard-5.6.2.tar.xz 59eb9906fb8120bc2d23550c376a4c90 breeze-5.6.2.tar.xz 56dbafad5b73b343e1509c448e310068 breeze-gtk-5.6.2.tar.xz 173888c9ce09eb9979c90735b0664d65 kscreenlocker-5.6.2.tar.xz b5a4831839e631ec3868047751b6c477 oxygen-5.6.2.tar.xz ac5b3a601d6815d3e679c4ef48b4a8e5 khelpcenter-5.6.2.tar.xz 113a36e617b3166ae52abf486cba3bba kinfocenter-5.6.2.tar.xz bdc2e791280455b1003a8e6125741490 ksysguard-5.6.2.tar.xz ed75b28b1bb150398f982a024ead1c5f kwin-5.6.2.tar.xz bb3a9f2bb7ccfc9e1fee31ce52e96d95 systemsettings-5.6.2.tar.xz 206c1478ac6b51971bd6ba382522da98 plasma-workspace-5.6.2.tar.xz f99ecfa88a1c39984ea45633935d6ab1 bluedevil-5.6.2.tar.xz dd37864292888e314588fd1820315e10 kde-gtk-config-5.6.2.tar.xz e38ba004c2ea5fdef1e6963c7e6f8163 khotkeys-5.6.2.tar.xz c5d4abb7ccf0eb295b8c2e89e9442ec2 kmenuedit-5.6.2.tar.xz 820e6d0ffbcae52e0c2f0ce80b3f5df1 kscreen-5.6.2.tar.xz efefdd799ec7d174c5b5dcba088044c3 kwallet-pam-5.6.2.tar.xz 1d1e3f232f008163446e21ef1afbd4c8 kwayland-integration-5.6.2.tar.xz 92ca420cda218419809928e12580a133 kwrited-5.6.2.tar.xz 09c132663749a634717ef723f4b50aa6 milou-5.6.2.tar.xz a5fb6d2fe038622fed3f2c24782d35ef plasma-nm-5.6.2.tar.xz 17c6544c8753c73401d3cc5cb5e22117 plasma-pa-5.6.2.tar.xz 8084aacbe6a67af034612c38340db372 plasma-workspace-wallpapers-5.6.2.tar.xz ac6206cd282b271c5da0cf51bf4f7780 polkit-kde-agent-1-5.6.2.tar.xz 13ea2c2b045bf9f094310a5a31c2509b powerdevil-5.6.2.tar.xz 1fb59e7d35f746366d954bb41d43fa90 plasma-desktop-5.6.2.tar.xz b9c62d27891e2040c3ea169ce878227a kdeplasma-addons-5.6.2.tar.xz 75de451386dd962dd5b772caadde46e8 kgamma5-5.6.2.tar.xz caabd4a2b74d4a264a834e379c20d5d4 ksshaskpass-5.6.2.tar.xz ef16424fa807fbc3a5912ff3e9c7f1c9 plasma-mediacenter-5.6.2.tar.xz #f0135635f04bd3a7005a0513d3f237c8 plasma-sdk-5.6.2.tar.xz f67819b2d6eadfa8e5b913815b664c5b sddm-kcm-5.6.2.tar.xz 3dc93bab65282450851142c16ddf3684 user-manager-5.6.2.tar.xz cef43f86ae5ab785afd9bf9ae7f84941 discover-5.6.2.tar.xz #ce518c27d41252fce8209cefff868610 breeze-grub-5.6.2.tar.xz #8cebf8ac0f6c2f9b5297af438728f0a7 breeze-plymouth-5.6.2.tar.xz 568b040fedf5010bbb50ec5dc9ae4595 kactivitymanagerd-5.6.2.tar.xz 79476c803509f64ac11301e3d37308e2 plasma-integration-5.6.2.tar.xz EOF The breeze-grub and breeze-plymouth packages above are both for customized support of Plymouth which is designed to be run within an initial ram disk during boot (see ). The plasma-sdk package is optional and used for software development. Installation of Plasma5 &as_root; First, start a subshell that will exit on error: bash -e Install all of the packages by running the following commands: while read -r line; do # Get the file name, ignoring comments and blank lines if $(echo $line | grep -E -q '^ *$|^#' ); then continue; fi file=$(echo $line | cut -d" " -f2) pkg=$(echo $file|sed 's|^.*/||') # Remove directory packagedir=$(echo $pkg|sed 's|\.tar.*||') # Package directory tar -xf $file pushd $packagedir mkdir build cd build OPTS="" case $packagedir in kwayland-&plasma5-version; ) OPTS="-DECM_MKSPECS_INSTALL_DIR=$KF5_PREFIX/share/mkspecs/modules" ;; esac cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \ -DCMAKE_BUILD_TYPE=Release \ -DLIB_INSTALL_DIR=lib \ -DBUILD_TESTING=OFF \ $OPTS \ -Wno-dev .. && make as_root make install popd as_root rm -rf $packagedir as_root /sbin/ldconfig done < plasma-&plasma5-version;.md5 exit cd $KF5_PREFIX/share/plasma/plasmoids for j in $(find -name \*.js); do as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/ done Command Explanations ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/: Create symbolic links so qml files can find needed javascript modules. Starting Plasma5 If you have KDE4 installed as well as Plasma 5, make sure the PATH environment setting has the Plasma 5 binaries before the KDE4 entry. You can ensure this by running: pathprepend /opt/kf5/bin before running startx. You can start Plasma5 from runlevel 3, using , or from runlevel 5, using a Display Manager, such as . To start Plasma 5 using , run the following commands: cat > ~/.xinitrc << "EOF" ck-launch-session dbus-launch --exit-with-session $KF5_PREFIX/bin/startkde EOF startx The X session starts on the first unused virtual terminal, normally vt7. You can switch to another vtn simultaneously pressing the keys Ctrl-Alt-Fn (n=1, 2, ...). To switch back to the X session, normally started at vt7, use Ctrl-Alt-F7. The vt where the command startx was executed will display many messages, including X starting messages, applications automatically started with the session, and eventually, some warning and error messages. You may prefer to redirect those messages to a log file, which not only will keep the initial vt uncluttered, but can also be used for debugging purposes. This can be done starting X with: startx &> ~/.x-session-errors You may wish to drop consolekit and/or dbus-launch, e.g., just using startkde in ~/.xinitrc. However some capabilities such as mounting or umounting file systems from a file manager will not be possible, or the reboot option may be absent or inoperative, among other problems. When shutting down or rebooting, the shutdown messages appear on the vt where X was running. If you wish to see those messages, simultaneously press keys Alt-F7 (assuming that X was running on vt7). Contents Installed Programs Installed Libraries Installed Directories There are too many plasma programs (50 in /opt/kf5/bin) to list separately here. There are too many plasma libraries (39 in /opt/kf5/lib) to list separately here. There are too many plasma directories (over 1000 in /opt/kf5) to list separately here.