KDE Plasma is a collection of packages based on top of KDE Frameworks and QML. They implement the KDE Display Environment (Plasma).
Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.
The instructions below build all of the Plasma packages in one step by using a bash script.
Download (HTTP): https://download.kde.org/stable/plasma/6.8.4
Download MD5 sum: See Below
Download size: 448 MB
Estimated disk space required: 3.5 GB (914 MB installed)
Estimated build time: 18 SBU (using parallelism=8)
Boost-1.92.0, corrosion-0.6.1, cxx-rust-cssparser-1.1.0, FFmpeg-9.1, GTK-3.24.52, KDE Frameworks-6.32.0, kirigami-addons-1.16.2, kquickimageeditor-0.7.0.1, libdisplay-info-0.4.0, libpwquality-1.4.5, libqalculate-5.13.1, libnl-3.12.0, libxcvt-0.1.3, libxkbcommon-1.13.2, Mesa-26.2.7 built with Wayland-1.26.0, opencv-4.13.0, phonon-4.12.0, pipewire-1.6.12, pulseaudio-qt-1.9.0, qca-2.3.12, qcoro-0.13.0, qtkeychain-0.16.0, sassc-3.6.2, taglib-2.3.2, tesseract-5.5.3, xdotool-4.20260303.1, and Xorg Evdev Driver-2.11.0
bolt-0.9.11, gsettings-desktop-schemas-51.0, libcanberra-0.30, libinput-1.32.0, libpcap-1.11.1, libwacom-2.20.1 and Xorg Wacom Driver-1.2.4 (for wacomtablet), Linux-PAM-1.7.4, lm-sensors-3-6-2, oxygen-icons-6.32.0, pciutils-3.15.0, power-profiles-daemon-0.30, and the following Python modules: psutil-7.2.2, pygdbmi-0.11.0.0, sentry-sdk-3.0.2, urllib3-2.7.0 (if they are not installed, they will be downloaded and installed by the drkonqi build procedure)
AccountsService-26.27.3, breeze-icons-6.32.0, kio-extras-26.08.3, smartmontools-7.5, xdg-desktop-portal-1.22.1, and Xwayland-24.1.15
AppStream-1.2.3 (build with -qt=true), GLU-9.0.3, ibus-1.5.35, qtwebengine-6.140.0, KDevPlatform, libgps, libhybris, packagekit-qt, Qapt, SCIM, and socat (for pam_kwallet)
The easiest way to get the KDE Plasma packages is to use a single wget to fetch them all at once:
url=https://download.kde.org/stable/plasma/6.8.4/
wget -r -nH -nd -A '*.xz' -np $url
The options used here are:
-r recurse through child directories
-nH disable generation of host-prefixed directories
-nd do not create a hierarchy of directories
-A '*.xz' just get the *.xz files
-np don't get parent directories
The order of building files is important due to internal dependencies. Create the list of files in the proper order as follows:
cat > plasma-6.8.4.md5 << "EOF"
7bfeacb53ee1cf4782320464f6efcf19 kdecoration-6.8.4.tar.xz
549d8b312913516a5c74acb4f8fd8daf libkscreen-6.8.4.tar.xz
e987a8c2a9a18cfb486909fd0005f97f libksysguard-6.8.4.tar.xz
99c41d95d45eaf3a702e40efdee6c015 breeze-6.8.4.tar.xz
da9457359203829b44ac119a74356fe8 breeze-gtk-6.8.4.tar.xz
b31ea145c0442cb0638edb3e26aed541 layer-shell-qt-6.8.4.tar.xz
0774614738399514b417009cee95363e plasma-activities-6.8.4.tar.xz
0db2a7b204f651fb64c0146c658d2928 libplasma-6.8.4.tar.xz
70753c12639d4a88f3c89538b6de08c7 kscreenlocker-6.8.4.tar.xz
4877bdd1fce57dced2ada060e327d70a kglobalacceld-6.8.4.tar.xz
0263efde18fdcec31352dc68f134df2a kwayland-6.8.4.tar.xz
985be254684eaddd39ea06159376b13a aurorae-6.8.4.tar.xz
200fe710889e9062e02ede3debebed48 knighttime-6.8.4.tar.xz
dc2d0a17251fcca1d7bb376e5a40168a plasma-keyboard-6.8.4.tar.xz
5ccc29f826c89721626da7895d0f6e54 kwin-6.8.4.tar.xz
c965988479fbeca55e9cd08c06a9f86f plasma5support-6.8.4.tar.xz
2d155de83acf536fe05e20a63a5046b4 plasma-activities-stats-6.8.4.tar.xz
5991fdcaea870dd4fd9e63a94da03bf7 kpipewire-6.8.4.tar.xz
b8fb02e654995790e321fbf776d987e6 union-6.8.4.tar.xz
caf6d737d286d7dd77106bb0a268b4dd plasma-workspace-6.8.4.tar.xz
6e19eda87bea752116bad168f89291b7 plasma-disks-6.8.4.tar.xz
eac69794b23874b030ff2b286ac4e7db bluedevil-6.8.4.tar.xz
0ddaf775fc1efbbfa4795b416b7cbc94 kde-gtk-config-6.8.4.tar.xz
5ab935481563f40eb5822dc3f01b4428 kmenuedit-6.8.4.tar.xz
2e4e9628dffe95e3b1b945d0c3d923a6 kscreen-6.8.4.tar.xz
37588963dc281be5afdf220d0e1ca73f kwallet-pam-6.8.4.tar.xz
da8b3e234e6d550757b981d90a6e474f kwrited-6.8.4.tar.xz
6d388da1cc5f4efc64a7179f65b9e18b milou-6.8.4.tar.xz
960f95bbba57431d238a055d15d6a31d plasma-nm-6.8.4.tar.xz
8f83189a96ced253fbed9ea1cdb4a2e5 plasma-pa-6.8.4.tar.xz
9796b0861647a86e783c43bc28566322 plasma-workspace-wallpapers-6.8.4.tar.xz
dc70c1d378713b20a39fb3f37c01f975 polkit-kde-agent-1-6.8.4.tar.xz
fdab95e0c0adc595ec7511c163cd5bc2 powerdevil-6.8.4.tar.xz
65d425dcdb833bd534c1893150435020 plasma-desktop-6.8.4.tar.xz
fd86ad0c1bcb37844b911b8b2bd04a7c ksshaskpass-6.8.4.tar.xz
#1a9659a6df3ce2d454ba9b6d5fdd3686 plasma-sdk-6.8.4.tar.xz
e27f3712e52c8fd7f6d6f91bf2a4f955 sddm-kcm-6.8.4.tar.xz
#b5ebe018ceb52d74bd92c79f23b23cca discover-6.8.4.tar.xz
#48e291f2bf8e27bf171be5774c233a55 breeze-grub-6.8.4.tar.xz
#1cdf73c4827aa9f4f7a3f25d21caade5 breeze-plymouth-6.8.4.tar.xz
659653b9182185c676acb51102152b2e kactivitymanagerd-6.8.4.tar.xz
e8e27b1dcda8ccbe17b506b0ec2448c7 plasma-integration-6.8.4.tar.xz
#cc1cc34ed705c932073fcec068d11e5d plymouth-kcm-6.8.4.tar.xz
59878ca53f03e03a09027dcde5754288 xdg-desktop-portal-kde-6.8.4.tar.xz
c18e42029e034ed44f5a8e19b35374d6 drkonqi-6.8.4.tar.xz
3708b79a318cf52a37777c9a64b3e476 plasma-vault-6.8.4.tar.xz
#992c2b6cd31ca5e04af013e7d035afef plasma-browser-integration-6.8.4.tar.xz
d9dbb7a897c0829e7b0afee5539adcdc kde-cli-tools-6.8.4.tar.xz
ca4acaa3d6bf2ddec7aaf98f18bfc5c2 systemsettings-6.8.4.tar.xz
#03ca006497a0d4ceca376cf5e13434f9 plasma-mobile-6.8.4.tar.xz
#dd06ca1dc36cf955ce896191390cb92e plasma-nano-6.8.4.tar.xz
718c56a9ca488352fcb8dda37e301c0b plasma-firewall-6.8.4.tar.xz
6b6009f7c367a898652b54164ed8a25c plasma-systemmonitor-6.8.4.tar.xz
a3d9a191ac99247c1b274f926ccd6f64 qqc2-breeze-style-6.8.4.tar.xz
63b993ca94bffbf8b4280ce38545b5bc ksystemstats-6.8.4.tar.xz
dcf59b576dab348011a9b26066245ad6 oxygen-sounds-6.8.4.tar.xz
ea322e9e258f02e236cf99a575137d31 kdeplasma-addons-6.8.4.tar.xz
#e95510d29c775181bd38b26ef848d5bc flatpak-kcm-6.8.4.tar.xz
68e9ef1f722d631698d22b2b534433c7 plasma-welcome-6.8.4.tar.xz
158801050413bc975b9fe46aa94a0b14 ocean-sound-theme-6.8.4.tar.xz
134cec9d0e7d033d0eb2bf53832ba0fa print-manager-6.8.4.tar.xz
#bec5fda7db79b212feccd66997a3d04f kwayland-integration-6.8.4.tar.xz
#8680e2259347ee0d35150a02311133f5 krdp-6.8.4.tar.xz
5d6404c6cfb5c5a860f8c70a9da5e3af oxygen-6.8.4.tar.xz
#d91a74085a82e040c9586f499c758a7b plasma-dialer-6.8.4.tar.xz
#261ab182a08868d5b2263c9247af2426 spacebar-6.8.4.tar.xz
a80797f3b6bf171190b5d6162c4ef34b spectacle-6.8.4.tar.xz
#839bea7cf2658f53fddd299497299f7d plasma-login-manager-6.8.4.tar.xz
da8e4e4e61261c0f6c8645db2ef46170 plasma-setup-6.8.4.tar.xz
1df77f8d4c6cc0e38fa1f1d50cb2181a kinfocenter-6.8.4.tar.xz
4de8b0b590830fd6bcbd6138ab32b954 plasma-thunderbolt-6.8.4.tar.xz
#cfc965f21ced001f745239d40f0a49a1 plasma-bigscreen-6.8.4.tar.xz
#461f2a2634e83c4229a20c908a7b2632 kup-6.8.4.tar.xz
EOF
In the above list, several files are commented out with a hash (#) character.
The plasma-sdk package is optional and used for software development.
The discover package requires AppStream-1.2.3 to be built with the -D qt=true switch.
The breeze-grub, breeze-plymouth, and plymouth-kcm packages above are all for customized support of Plymouth which is designed to be run within an initial ram disk during boot (see the section called “About initramfs”).
The plasma-browser-integration package is designed to implement browser integration for Plasma into Mozilla Firefox and Google Chrome. The package does build, but is only useful if you want these browsers to be integrated into the shell in a way that lets you see (and control) downloads from Plasma's notifications area, as well as allowing you to search browser history in the KDE Runner. Note that you must also install a browser extension for this to work. For more details, see the KDE Plasma wiki page about browser integration.
The krdp package is used to allow an RDP server to be run while using Plasma. This feature requires the 2.x version of FreeRDP, which is not in BLFS.
The plasma-nano package is used for embedded systems.
The plasma-mobile, plasma-dialer, and spacebar packages provide phone functionality for Plasma.
The flatpak-kcm package is for managing support of flatpak applications.
The kwayland-integration application requires plasma5 support.
The plasma-login-manager application provides a display manager for KDE Plasma, forked from SDDM and with an new frontend providing a greeter, wallpaper plugin integration and System Settings module (KCM).
When installing multiple packages in a script, the installation needs to be done as the root user. There are three general options that can be used to do this:
Run the entire script as the root user (not recommended).
Use the sudo command from the Sudo-1.9.17p2 package.
Use su -c "command arguments" (quotes required) which will ask for the root password for every iteration of the loop.
One way to handle this situation is to create a short bash function that automatically selects the appropriate method. Once the command is set in the environment, it does not need to be set again.
as_root()
{
if [ $EUID = 0 ]; then $*
elif [ -x /usr/bin/sudo ]; then sudo $*
else su -c \\"$*\\"
fi
}
export -f 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
name=$( echo $pkg |sed 's|-6.*$||') # Isolate package name
packagedir=$(echo $pkg |sed 's|\.tar.*||') # Source directory
tar -xf $file
pushd $packagedir
mkdir build
cd build
cmake -D CMAKE_INSTALL_PREFIX=$KF6_PREFIX \
-D CMAKE_INSTALL_LIBEXECDIR=libexec \
-D CMAKE_BUILD_TYPE=Release \
-D BUILD_QT5=OFF \
-D BUILD_TESTING=OFF \
-W no-author .. &&
make
as_root make install
popd
as_root rm -rf $packagedir
as_root /sbin/ldconfig
done < plasma-6.8.4.md5
exit
If you did not set $KF6_PREFIX to
/usr, create symlinks to allow
display managers to find Plasma,
and to allow the XDG Desktop Portal to be detected. As the
root user:
# Setup xsessions (X11 sessions) install -dvm 755 /usr/share/xsessions cd /usr/share/xsessions [ -e plasma.desktop ] || ln -sfv $KF6_PREFIX/share/xsessions/plasmax11.desktop # Setup wayland-sessions install -dvm 755 /usr/share/wayland-sessions cd /usr/share/wayland-sessions [ -e plasmawayland.desktop ] || ln -sfv $KF6_PREFIX/share/wayland-sessions/plasma.desktop # Setup xdg-desktop-portal install -dvm 755 /usr/share/xdg-desktop-portal cd /usr/share/xdg-desktop-portal [ -e kde-portals.conf ] || ln -sfv $KF6_PREFIX/share/xdg-desktop-portal/kde-portals.conf # Setup kde portal install -dvm 755 /usr/share/xdg-desktop-portal/portals cd /usr/share/xdg-desktop-portal/portals [ -e kde.portal ] || ln -sfv $KF6_PREFIX/share/xdg-desktop-portal/portals/kde.portal
Useless systemd units have been installed in $KF6_PREFIX/lib. Remove them now (as root):
rm -rf $KF6_PREFIX/lib/systemd
If you built Plasma with the recommended Linux PAM support, create necessary
configuration files by running the following commands as the
root user:
cat > /etc/pam.d/kde << "EOF"# Begin /etc/pam.d/kde auth requisite pam_nologin.so auth required pam_env.so auth required pam_succeed_if.so uid >= 1000 quiet auth include system-auth account include system-account password include system-password session include system-session # End /etc/pam.d/kdeEOF cat > /etc/pam.d/kde-np << "EOF"# Begin /etc/pam.d/kde-np auth requisite pam_nologin.so auth required pam_env.so auth required pam_succeed_if.so uid >= 1000 quiet auth required pam_permit.so account include system-account password include system-password session include system-session # End /etc/pam.d/kde-npEOF cat > /etc/pam.d/kscreensaver << "EOF"# Begin /etc/pam.d/kscreensaver auth include system-auth account include system-account # End /etc/pam.d/kscreensaverEOF
You can start Plasma from runlevel 3, using xinit-1.4.4, or from runlevel 5, using a Display Manager, such as lightdm-1.33.1.