%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). &lfs78_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 , , , , , and Recommended , , , , , , and Optional , , ibus, libgps, libhybris, libraw1394, mockcpp, Qalculate, Qapt, and SCIM 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-&kf5-version;.md5 << "EOF" bb94a0d6f06583456b8f0a2eae07edd6 kde-cli-tools-5.4.2.tar.xz 67683fc1ae1fdf014f567780502b574a kdecoration-5.4.2.tar.xz c0c0eef0f2bfb93a81e4e701d7557eb9 kwayland-5.4.2.tar.xz 5b3c52fbf0172dfcf749cde12ebb48f3 libkscreen-5.4.2.tar.xz c770bd91e3947373c00938e2d85628d9 libksysguard-5.4.2.tar.xz 0e1d48eba3d0261023954b46fe7af36e breeze-5.4.2.tar.xz c60184edbd89bfcf1ee1c03aefd741f8 kwin-5.4.2.tar.xz 55eeb736365e902e957509a43884efd9 oxygen-5.4.2.tar.xz 25bc526b21e9a0472e94a73b5f2d7d83 oxygen-fonts-5.4.2.tar.xz 770b8c69df2c550ab66f0c316c3bf850 khelpcenter-5.4.2.tar.xz 6714e90d548f37ec32d2cc166c68149c kinfocenter-5.4.2.tar.xz 7551c199c5caffda59363757bbc57243 ksysguard-5.4.2.tar.xz 9d7cfdee2d138983f4267ba1e6a69be6 systemsettings-5.4.2.tar.xz a4fe835089c213c52f1407715163bf80 plasma-workspace-5.4.2.tar.xz bc10f321f5ea2a605be29d8cba6b9bc5 bluedevil-5.4.2.tar.xz 530e74504d38cfd6783421c017c56f55 khotkeys-5.4.2.tar.xz bfaf172def24ea772dfc58c798b68938 kmenuedit-5.4.2.tar.xz 9b0b4e2268d87cc7699e1e74e6faa8c3 kscreen-5.4.2.tar.xz 171c439473a4ab9cdbbed6732a70801b kwrited-5.4.2.tar.xz 2298a15ef7957322b84829166824628c milou-5.4.2.tar.xz 35c599c728739cded5596d4821b5a53f plasma-nm-5.4.2.tar.xz d48aab54cfe78cfc74d0c8ba099a905b plasma-workspace-wallpapers-5.4.2.tar.xz 64ed6fe8c59c2812b9c34cd8a3827735 polkit-kde-agent-1-5.4.2.tar.xz 44dec41f77080fd83f2122fc2762f09a powerdevil-5.4.2.tar.xz 457b1b6d69fd52416485e08ed7744fe3 plasma-desktop-5.4.2.tar.xz b7049d459eccd6a5efbf55ff1c2121fb kdeplasma-addons-5.4.2.tar.xz f8415a6a0e25a609d30c3d3ee2c9c696 kwayland-integration-5.4.2.tar.xz 8adf666f98baf8f4f381d5515db4100b kde-gtk-config-5.4.2.tar.xz e72368f28238ba7bacac81d5ff5e26f3 kgamma5-5.4.2.tar.xz f6fac3219aa8ba5056e06ad0c92773c9 ksshaskpass-5.4.2.tar.xz 888836db6c8fb4f1cc381ed56a690204 kwallet-pam-5.4.2.tar.xz 05b79b89c9708c046775448ec846c513 muon-5.4.2.tar.xz 78e2931ed08b8fffae67d7aa0cd90f9f plasma-mediacenter-5.4.2.tar.xz b399b81c4d773355e5d5ef7b4d1a73a5 plasma-pa-5.4.2.tar.xz c9bbe9a824400cbe7982aac0d8bdf6a3 plasma-sdk-5.4.2.tar.xz 61585733e7a5585ea9ed203ad9b2a1a0 sddm-kcm-5.4.2.tar.xz 5b0cb53813fc5f9a1406260d2a1109c7 user-manager-5.4.2.tar.xz EOF 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 $srcdir in kwayland-&plasma5-version; ) OPTS="-DECM_MKSPECS_INSTALL_DIR=$KF5_PREFIX/share/mkspecs/modules" ;; oxygen-fonts-&plasma5-version; ) OPTS="-DOXYGEN_FONT_INSTALL_DIR=/usr/share/fonts/truetype/oxygen" ;; 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 rm -rf $packagedir as_root /sbin/ldconfig done < plasma-&kf5-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 You can start Plasma5 from runlevel 3, using , or from runlevel 5, using a Display Manager, such as . To start Plasma5 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.