mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-04 07:17:15 +08:00
2e29bbac36
kde frameworks 5.79; with extra-cmake-modules, breeze-icons, and oxygen-icons kde frameworks applications 20.12.2; with kate and kwave kde plasma 5.21.0 git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@24285 af4574ff-66df-0310-9fd7-8a98e5e911e0
485 lines
17 KiB
XML
485 lines
17 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
%general-entities;
|
|
|
|
<!ENTITY plasma5-download-http "http://download.kde.org/stable/plasma/&plasma5-version;">
|
|
<!ENTITY plasma5-download-ftp " ">
|
|
<!ENTITY plasma5-md5sum "See Below">
|
|
<!ENTITY plasma5-size "130 MB">
|
|
<!ENTITY plasma5-buildsize "572 MB (357 MB installed)">
|
|
<!ENTITY plasma5-time "14 SBU (using parallelism=4)">
|
|
]>
|
|
|
|
<sect1 id="plasma5-build" xreflabel="Plasma-&plasma5-version;">
|
|
<?dbhtml filename="plasma-all.html"?>
|
|
|
|
<sect1info>
|
|
<othername>$LastChangedBy: bdubbs $</othername>
|
|
<date>$Date: 2015-09-24 16:44:04 -0500 (Thu, 24 Sep 2015) $</date>
|
|
</sect1info>
|
|
|
|
<title>Building Plasma 5</title>
|
|
|
|
<indexterm zone="plasma5-build">
|
|
<primary sortas="a-kde-plasma">KDE Plasma 5</primary>
|
|
</indexterm>
|
|
|
|
<para>
|
|
KDE Plasma 5 is a collection of packages based on top of KDE Frameworks
|
|
5 and QML. They implement the KDE Display Environment (Plasma 5).
|
|
</para>
|
|
|
|
&lfs101_checked;
|
|
|
|
<para>
|
|
The instructions below build all of the Plasma 5 packages in one
|
|
step by using a bash script.
|
|
</para>
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
<itemizedlist spacing="compact">
|
|
<listitem>
|
|
<para>
|
|
Download (HTTP): <ulink url="&plasma5-download-http;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download (FTP): <ulink url="&plasma5-download-ftp;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download MD5 sum: &plasma5-md5sum;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download size: &plasma5-size;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated disk space required: &plasma5-buildsize;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated build time: &plasma5-time;
|
|
</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
<bridgehead renderas="sect3">Plasma 5 Dependencies</bridgehead>
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
<para role="required">
|
|
<!--<xref linkend="fontforge"/>,-->
|
|
<xref linkend="GConf"/>,
|
|
<xref linkend="gtk2"/>,
|
|
<xref linkend="gtk3"/>,
|
|
<xref linkend="kf5-frameworks"/>,
|
|
<xref linkend="libpwquality"/>,
|
|
<xref linkend="libxkbcommon"/>,
|
|
<xref linkend="mesa"/> built with <xref linkend="wayland"/>,
|
|
<xref linkend="NetworkManager"/>,
|
|
<xref linkend="pipewire"/>,
|
|
<xref linkend="pulseaudio"/>,
|
|
<xref linkend="qca"/>,
|
|
<xref linkend="sassc"/>,
|
|
<xref linkend="taglib"/>, and
|
|
<xref linkend="xcb-util-cursor"/>
|
|
</para>
|
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
|
<para role="recommended">
|
|
<xref linkend="fftw"/>,
|
|
<xref linkend="gsettings-desktop-schemas"/>,
|
|
<xref linkend="libdbusmenu-qt"/>,
|
|
<xref linkend="libcanberra"/>,
|
|
<xref linkend="libinput"/>,
|
|
<xref linkend="linux-pam"/>,
|
|
<xref linkend="lm_sensors"/>,
|
|
<xref linkend="oxygen-icons5"/>, and
|
|
<xref linkend="pciutils"/>
|
|
</para>
|
|
|
|
<bridgehead renderas="sect4">Recommended (runtime)</bridgehead>
|
|
<para role="recommended">
|
|
<xref role="runtime" linkend="smartmontools"/>
|
|
</para>
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
<para role="optional">
|
|
<xref linkend="glu"/>,
|
|
<xref linkend='ibus'/>,
|
|
<xref linkend="xorg-synaptics-driver"/>,
|
|
<ulink url="http://distributions.freedesktop.org/wiki/AppStream">appstream-qt</ulink>,
|
|
<ulink url="https://www.kdevelop.org/">KDevPlatform</ulink>,
|
|
<ulink url="https://gpsd.gitlab.io/gpsd/">libgps</ulink>,
|
|
<ulink url="https://github.com/libhybris/libhybris">libhybris</ulink>,
|
|
<ulink url="http://sourceforge.net/projects/libraw1394/">libraw1394</ulink>,
|
|
<ulink url="https://bitbucket.org/godsme/mockcpp">mockcpp</ulink>,
|
|
<ulink url="https://www.freedesktop.org/software/PackageKit/releases/">packagekit-qt</ulink>,
|
|
<ulink url="http://qalculate.github.io/">Qalculate</ulink>,
|
|
<ulink url="https://launchpad.net/qapt">Qapt</ulink>,
|
|
<ulink url="https://github.com/osiam/osiam">SCIM</ulink>, and
|
|
<ulink url="http://www.dest-unreach.org/socat/">socat</ulink> (for pam_kwallet)
|
|
</para>
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
<ulink url="&blfs-wiki;/kf5"/></para>
|
|
|
|
<sect2>
|
|
<title>Downloading KDE Plasma5</title>
|
|
|
|
<para>
|
|
The easiest way to get the KDE Plasma5 packages is to use a single
|
|
<command>wget</command> to fetch them all at once:
|
|
</para>
|
|
|
|
<screen><userinput>url=http://download.kde.org/stable/plasma/&plasma5-version;/
|
|
wget -r -nH -nd -A '*.xz' -np $url</userinput>
|
|
<literal>
|
|
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</literal></screen>
|
|
|
|
</sect2>
|
|
|
|
<sect2>
|
|
<title>Setting Package Order</title>
|
|
|
|
<para>
|
|
The order of building files is important due to internal dependencies.
|
|
Create the list of files in the proper order as follows:
|
|
</para>
|
|
|
|
<screen><userinput>cat > plasma-&plasma5-version;.md5 << "EOF"
|
|
<literal>a82fbd8ebdc24ab964a5794012dada6e kdecoration-5.21.0.tar.xz
|
|
678ceeac2e696d7633b84141dfb2ed64 libkscreen-5.21.0.tar.xz
|
|
9a8143caad8d195c6c8dfcf1b1d18aaa libksysguard-5.21.0.tar.xz
|
|
b8e9c1248709ff2c9e818143e874af27 breeze-5.21.0.tar.xz
|
|
1f6594183328fdfccc4010ab2c5ce5a4 breeze-gtk-5.21.0.tar.xz
|
|
d2ea1b3ae9b88b54749a98ca8193d45b kscreenlocker-5.21.0.tar.xz
|
|
6054c7ec35426a291df93adfd27e4176 oxygen-5.21.0.tar.xz
|
|
fe3c4c3ae19f7c61ccfc4d351fd7080b kinfocenter-5.21.0.tar.xz
|
|
8fa118b4d371acde44eda8029702d23a ksysguard-5.21.0.tar.xz
|
|
10ef295c21a7909cb3108afc4b921a73 kwayland-server-5.21.0.tar.xz
|
|
d2ed0c4a2a9fe524fe67bd83f00583c7 kwin-5.21.0.tar.xz
|
|
0c26edb46a3e8ed3d34e6d81d62d6e71 plasma-workspace-5.21.0.tar.xz
|
|
e68894f34307bafe32103fe1e33aae06 plasma-disks-5.21.0.tar.xz
|
|
a265b07c9682055478126fa4e204d092 bluedevil-5.21.0.tar.xz
|
|
028b13255bdb5d098f1803f9dc62f805 kde-gtk-config-5.21.0.tar.xz
|
|
74ee03ddb871b9c86895a20f495e7cdb khotkeys-5.21.0.tar.xz
|
|
a9320a3c516f70d4466bc30f6991a96d kmenuedit-5.21.0.tar.xz
|
|
e9ad62eb9c32163b839fca906ec5f72e kscreen-5.21.0.tar.xz
|
|
0ab6b3623c61a62e2063b4f5be79efe7 kwallet-pam-5.21.0.tar.xz
|
|
6dff22fc612a1927186eb62954bb429f kwayland-integration-5.21.0.tar.xz
|
|
c9d34d8803762b2a97eb3a3a70136bcd kwrited-5.21.0.tar.xz
|
|
b35abb65d6d87aa78a348ded6bb3c3ee milou-5.21.0.tar.xz
|
|
9a87ba8d9a47e2090501eddc781517de plasma-nm-5.21.0.tar.xz
|
|
2347c88fbebb6489827300219e641e5b plasma-pa-5.21.0.tar.xz
|
|
d0e77eda0c17aad34b4c68678518b7b8 plasma-workspace-wallpapers-5.21.0.tar.xz
|
|
ec6f3fe4e550d902cf5404c35ff845dc polkit-kde-agent-1-5.21.0.tar.xz
|
|
6ae8b57ab554c0349599ff033c1a005c powerdevil-5.21.0.tar.xz
|
|
83f34d06e69825de999b80cb8b8447ec plasma-desktop-5.21.0.tar.xz
|
|
0c29f739d54b08c5af1a36f1dd674035 kdeplasma-addons-5.21.0.tar.xz
|
|
429e1028bc4b06f903ddaafc3e0f0b1f kgamma5-5.21.0.tar.xz
|
|
71d4900281eb35b5175acf96e4a34eb3 ksshaskpass-5.21.0.tar.xz
|
|
#8c9ed6217ca03108bd8f427253a4cf40 plasma-sdk-5.21.0.tar.xz
|
|
f6cd2582f35ca20eb0e0caaf38ebbc00 sddm-kcm-5.21.0.tar.xz
|
|
54d37d5d27944c6c3d084ad93016e534 discover-5.21.0.tar.xz
|
|
#8e36d67aa751957ceddcbae98b52f2f0 breeze-grub-5.21.0.tar.xz
|
|
#ac7f1771a3cf3d85b365d374f1d6ff5c breeze-plymouth-5.21.0.tar.xz
|
|
6cbcdf5e2a6b047e3d1e9aa4cee62bf5 kactivitymanagerd-5.21.0.tar.xz
|
|
0353c03a961d8c2cb1748efaa85da382 plasma-integration-5.21.0.tar.xz
|
|
35c85a324d88bc88fe434d61e4a90d05 plasma-tests-5.21.0.tar.xz
|
|
#5e24f92008daf555da1c3b3dcb1c249f plymouth-kcm-5.21.0.tar.xz
|
|
a09aa3d9e9ca0e8a5ddad02d3bfe5a30 xdg-desktop-portal-kde-5.21.0.tar.xz
|
|
a1ec2be377d1055f35abd332acdf1ac7 drkonqi-5.21.0.tar.xz
|
|
74cb65b31bc5fa6a0c876e7b048b85fe plasma-vault-5.21.0.tar.xz
|
|
ee351cfb8de76a7bcd6dd0000b245d37 plasma-browser-integration-5.21.0.tar.xz
|
|
797b8636170462f27809ce7c28d4549a kde-cli-tools-5.21.0.tar.xz
|
|
97bb910b309683fac6136209147146b9 systemsettings-5.21.0.tar.xz
|
|
09c1bcdd87b637479fb3ff1e291b9727 plasma-thunderbolt-5.21.0.tar.xz
|
|
#dfe6d49611d3683438691f0a5d6d9871 plasma-nano-5.21.0.tar.xz
|
|
#8035dd323453f4818e6d80124e3c5571 plasma-phone-components-5.21.0.tar.xz
|
|
1d3861e81b9503874b9c45a6f78ffd23 plasma-firewall-5.21.0.tar.xz
|
|
9fe2cb55233ab4316045328424511a61 plasma-systemmonitor-5.21.0.tar.xz
|
|
e14320e9a524816de792a37a463c5d1c qqc2-breeze-style-5.21.0.tar.xz</literal>
|
|
EOF</userinput></screen>
|
|
|
|
<note>
|
|
<para>
|
|
The breeze-grub, breeze-plymouth, and plymouth-kcm packages above are
|
|
all for customized support of <ulink
|
|
url="https://www.freedesktop.org/wiki/Software/Plymouth/"
|
|
>Plymouth</ulink>
|
|
which is designed to be run within an initial ram disk during boot (see
|
|
<xref linkend="initramfs"/>). The plasma-sdk package is optional and
|
|
used for software development. The plasma-nano package is used for
|
|
embedded systems and plasma-phone-components provides phone
|
|
functionality for Plasma.
|
|
</para>
|
|
</note>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of Plasma5</title>
|
|
|
|
&as_root;
|
|
|
|
<para>
|
|
First, start a subshell that will exit on error:
|
|
</para>
|
|
|
|
<screen><userinput>bash -e</userinput></screen>
|
|
|
|
<para>
|
|
Install all of the packages by running the following
|
|
commands:
|
|
</para>
|
|
|
|
<screen><userinput>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
|
|
<!--
|
|
# Fix some build issues when generating some configuration files
|
|
case $name in
|
|
plasma-workspace)
|
|
sed -i '/set.HAVE_X11/a set(X11_FOUND 1)' CMakeLists.txt
|
|
;;
|
|
|
|
khotkeys)
|
|
sed -i '/X11Extras/a set(X11_FOUND 1)' CMakeLists.txt
|
|
;;
|
|
|
|
plasma-desktop)
|
|
sed -i '/X11.h)/i set(X11_FOUND 1)' CMakeLists.txt
|
|
;;
|
|
esac
|
|
-->
|
|
mkdir build
|
|
cd build
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=$KF5_PREFIX \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DBUILD_TESTING=OFF \
|
|
-Wno-dev .. &&
|
|
|
|
make
|
|
as_root make install
|
|
popd
|
|
|
|
<!-- some packages end up with files owned by root in $packagedir,
|
|
so use as_root for removing -->
|
|
as_root rm -rf $packagedir
|
|
as_root /sbin/ldconfig
|
|
|
|
done < plasma-&plasma5-version;.md5
|
|
|
|
exit</userinput></screen>
|
|
|
|
<para>
|
|
If you did not set <envar>$KF5_PREFIX</envar> to
|
|
<filename>/usr</filename>, create symlinks to allow display managers to
|
|
find <application>Plasma</application>:
|
|
</para>
|
|
|
|
<screen><userinput>as_root install -dvm 755 /usr/share/xsessions &&
|
|
cd /usr/share/xsessions/ &&
|
|
[ -e plasma.desktop ] ||
|
|
as_root ln -sfv $KF5_PREFIX/share/xsessions/plasma.desktop &&
|
|
as_root install -dvm 755 /usr/share/wayland-sessions &&
|
|
cd /usr/share/wayland-sessions/ &&
|
|
[ -e plasmawayland.desktop ] ||
|
|
as_root ln -sfv $KF5_PREFIX/share/wayland-sessions/plasmawayland.desktop<!--
|
|
cd $KF5_PREFIX/share/plasma/plasmoids
|
|
|
|
for j in $(find -name \*.js); do
|
|
as_root ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/
|
|
done--></userinput></screen>
|
|
|
|
<para revision="sysv">
|
|
Useless systemd units have been installed in
|
|
<filename class="directory">$KF5_PREFIX/lib</filename>. Remove
|
|
them now (as <systemitem class="username">root</systemitem>):
|
|
</para>
|
|
|
|
<screen role="root"
|
|
revision="sysv"><userinput>rm -rf $KF5_PREFIX/lib/systemd</userinput></screen>
|
|
|
|
</sect2>
|
|
<!--
|
|
<sect2 role="commands">
|
|
<title>Command Explanations</title>
|
|
|
|
<para>
|
|
<command>ln -sfv ../code/$(basename $j) $(dirname $j)/../ui/</command>:
|
|
Create symbolic links so qml files can find needed javascript modules.
|
|
</para>
|
|
|
|
</sect2>
|
|
-->
|
|
<sect2 role="configuration">
|
|
<title>Configuring Plasma</title>
|
|
|
|
<sect3>
|
|
<title>Linux PAM Configuration</title>
|
|
|
|
<para>
|
|
If you built Plasma with the recommended <application>Linux
|
|
PAM</application> support, create necessary configuration files by
|
|
running the following commands as the <systemitem
|
|
class="username">root</systemitem> user:
|
|
</para>
|
|
|
|
<screen role="root"><userinput>cat > /etc/pam.d/kde << "EOF"
|
|
<literal># 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/kde</literal>
|
|
EOF
|
|
|
|
cat > /etc/pam.d/kde-np << "EOF"
|
|
<literal># 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-np</literal>
|
|
EOF
|
|
|
|
cat > /etc/pam.d/kscreensaver << "EOF"
|
|
<literal># Begin /etc/pam.d/kscreensaver
|
|
|
|
auth include system-auth
|
|
account include system-account
|
|
|
|
# End /etc/pam.d/kscreensaver</literal>
|
|
EOF</userinput></screen>
|
|
</sect3>
|
|
</sect2>
|
|
|
|
<sect2 role="starting">
|
|
<title>Starting Plasma5</title>
|
|
|
|
<para revision="sysv">
|
|
You can start <application>Plasma5</application> from runlevel 3, using
|
|
<xref linkend="xinit"/>, or from runlevel 5, using a Display Manager,
|
|
such as <xref linkend="lightdm"/>.
|
|
</para>
|
|
|
|
<para revision="systemd">
|
|
You can start <application>Plasma5</application> from a TTY, using
|
|
<xref linkend="xinit"/><!--, or from a graphical display manager, such as
|
|
<xref linkend="sddm"/>-->.
|
|
</para>
|
|
|
|
<para>
|
|
To start <application>Plasma 5</application> using <xref linkend="xinit"/>,
|
|
run the following commands:
|
|
</para>
|
|
|
|
<screen><userinput>cat > ~/.xinitrc << "EOF"
|
|
<literal>dbus-launch --exit-with-session $KF5_PREFIX/bin/startplasma-x11</literal>
|
|
EOF
|
|
|
|
startx</userinput></screen>
|
|
|
|
<para>
|
|
The X session starts on the first unused virtual terminal, normally vt7.
|
|
You can switch to another vt<emphasis>n</emphasis> simultaneously
|
|
pressing the keys Ctrl-Alt-F<emphasis>n</emphasis>
|
|
(<emphasis>n</emphasis>=1, 2, ...). To switch back to the X session,
|
|
normally started at vt7, use Ctrl-Alt-F7. The vt where the command
|
|
<command>startx</command> 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:
|
|
</para>
|
|
|
|
<screen><userinput>startx &> ~/x-session-errors</userinput></screen>
|
|
|
|
<para>
|
|
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).
|
|
</para>
|
|
|
|
<para>
|
|
If you intend to start <application>Plasma</application> using a
|
|
display manager such as <xref linkend="lightdm"/>, there will be two entries
|
|
for <application>Plasma</application>, one for use with
|
|
<application>Xorg</application>, and another for
|
|
<application>Wayland</application>. Modify the
|
|
<application>Xorg</application> entry with the following command, as the
|
|
<systemitem class="username">root</systemitem> user, so that you can
|
|
differentiate between the two:</para>
|
|
|
|
<screen role="root"><userinput>sed '/^Name=/s/Plasma/Plasma on Xorg/' -i /usr/share/xsessions/plasma.desktop</userinput></screen>
|
|
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="content">
|
|
<title>Contents</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed Programs</segtitle>
|
|
<segtitle>Installed Libraries</segtitle>
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>
|
|
There are too many plasma programs (63 in /opt/kf5/bin) to list
|
|
separately here.
|
|
</seg>
|
|
<seg>
|
|
There are too many plasma libraries (40 in /opt/kf5/lib) to list
|
|
separately here.
|
|
</seg>
|
|
<seg>
|
|
There are too many plasma directories (over 1000 in /opt/kf5) to
|
|
list separately here.
|
|
</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|