source: kde/kf5/kf5-intro.xml@ 41d4fe23

12.0 12.1 kea ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 41d4fe23 was 3f2db3a6, checked in by Pierre Labastie <pierre.labastie@…>, 19 months ago

Remove sect1info tags

They only contain a date tag that is nowhere used.

  • Property mode set to 100644
File size: 8.6 KB
RevLine 
[f175d6f6]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
7 <!ENTITY kf5-download-http "&kf5-download-http;">
8 <!ENTITY kf5-download-ftp "&kf5e-download-ftp;">
9 <!ENTITY kf5-md5sum "See Below">
10 <!ENTITY kf5-size "30 MB">
11 <!ENTITY kf5-buildsize "11.7 MB">
12 <!ENTITY kf5-time "0.4 SBU">
13]>
14
15<sect1 id="kf5-intro" xreflabel="Introduction to KF5">
16 <?dbhtml filename="kf5-intro.html"?>
17
18
19 <title>KDE Frameworks 5 Pre-installation Configuration</title>
20
[2630345]21 <indexterm zone="kf5-intro">
22 <primary sortas="g-kf5">KDE Frameworks Introduction</primary>
[f175d6f6]23 </indexterm>
24
[1c8c15c]25 <para>
26 KF5 can be installed in <filename class="directory">/usr</filename> or
27 <filename class="directory">/opt/kf5</filename>. The BLFS editors
28 recommend the latter in the BLFS environment.
[f175d6f6]29 </para>
30
31 <sect2>
32 <title>Installing in /usr</title>
33
34 <para>
35 One option is to install <application>KDE Frameworks 5</application>
36 into the <filename class="directory">/usr</filename> hierarchy.
37 This creates a simpler setup but makes it more difficult to try
38 multiple versions of <application>KDE Frameworks</application>.
39 </para>
40
41<screen><userinput>export KF5_PREFIX=/usr</userinput></screen>
42
43 <para>
44 It is a good idea to add the following variables to your
[5652a81]45 system or personal profiles:
[f175d6f6]46 </para>
47
[5652a81]48<screen role="root"><userinput>cat &gt;&gt; /etc/profile.d/qt5.sh &lt;&lt; "EOF"
[77a6d25]49<literal># Begin kf5 extension for /etc/profile.d/qt5.sh
[f175d6f6]50
[c50cdeea]51pathappend /usr/lib/plugins QT_PLUGIN_PATH
[5652a81]52pathappend $QT5DIR/lib/plugins QT_PLUGIN_PATH
[f175d6f6]53
54pathappend /usr/lib/qt5/qml QML2_IMPORT_PATH
[5652a81]55pathappend $QT5DIR/lib/qml QML2_IMPORT_PATH
56
[77a6d25]57# End extension for /etc/profile.d/qt5.sh</literal>
[5652a81]58EOF
59
60cat &gt; /etc/profile.d/kf5.sh &lt;&lt; "EOF"
61<literal># Begin /etc/profile.d/kf5.sh
62
63export KF5_PREFIX=/usr
[f175d6f6]64
65# End /etc/profile.d/kf5.sh</literal>
66EOF</userinput></screen>
[5652a81]67
[1c8c15c]68 <note>
69 <para>
70 If <application>qt5</application> was installed in <filename
71 class="directory">/usr</filename>, the <filename
72 class="directory">$QT5DIR/lib/</filename> portions of the above paths
73 may need to be changed to <filename
74 class="directory">$QT5DIR/lib/qt5/</filename>.
75 </para>
76 </note>
[5652a81]77
[1c8c15c]78 <para>
79 Additionally, if <xref linkend="sudo"/> is installed, these variables
80 should be available to the super user. Execute the following commands as
81 the <systemitem class="username">root</systemitem> user:
82 </para>
[77b64bd]83
[b32a1dc]84<screen role="root"><userinput>cat &gt;&gt; /etc/sudoers.d/qt &lt;&lt; "EOF"
[77b64bd]85<literal>Defaults env_keep += QT_PLUGIN_PATH
86Defaults env_keep += QML2_IMPORT_PATH</literal>
87EOF
88
[b32a1dc]89cat &gt;&gt; /etc/sudoers.d/kde &lt;&lt; "EOF"
[77b64bd]90<literal>Defaults env_keep += KF5_PREFIX</literal>
91EOF</userinput></screen>
92
[f175d6f6]93 </sect2>
94
95 <sect2>
96 <title>Installing in /opt</title>
97
98 <para>
99 A method of building multiple versions installs
100 <application>KDE Frameworks 5</application> in the
101 <filename class="directory">/opt</filename> hierarchy:
102 </para>
103
104<screen><userinput>export KF5_PREFIX=/opt/kf5</userinput></screen>
105
106 <para>
107 If you are not installing <application>KDE Frameworks 5</application>
108 in <filename class="directory">/usr</filename>, you will need to
109 make some additional configuration changes. Best practice is to add
110 those to your system or personal profile:
111 </para>
112
113<screen role="root"><userinput>cat &gt; /etc/profile.d/kf5.sh &lt;&lt; "EOF"
114<literal># Begin /etc/profile.d/kf5.sh
115
116export KF5_PREFIX=/opt/kf5
117
[4e0a40f]118pathappend $KF5_PREFIX/bin PATH
119pathappend $KF5_PREFIX/lib/pkgconfig PKG_CONFIG_PATH
[f175d6f6]120
[4e0a40f]121pathappend $KF5_PREFIX/etc/xdg XDG_CONFIG_DIRS
122pathappend $KF5_PREFIX/share XDG_DATA_DIRS
[f175d6f6]123
[4e0a40f]124pathappend $KF5_PREFIX/lib/plugins QT_PLUGIN_PATH
125pathappend $KF5_PREFIX/lib/plugins/kcms QT_PLUGIN_PATH
[f175d6f6]126
[4e0a40f]127pathappend $KF5_PREFIX/lib/qml QML2_IMPORT_PATH
[f175d6f6]128
[33c8b427]129pathappend $KF5_PREFIX/lib/python&python3-majorver;/site-packages PYTHONPATH
[2ead8c6f]130
[4e0a40f]131pathappend $KF5_PREFIX/share/man MANPATH
[f175d6f6]132# End /etc/profile.d/kf5.sh</literal>
133EOF
134
[773b316]135cat &gt;&gt; /etc/profile.d/qt5.sh &lt;&lt; "EOF"
136<literal># Begin Qt5 changes for KF5
[f175d6f6]137
[c50cdeea]138pathappend /usr/lib/plugins QT_PLUGIN_PATH
[f175d6f6]139pathappend $QT5DIR/plugins QT_PLUGIN_PATH
140pathappend $QT5DIR/qml QML2_IMPORT_PATH
141
142# End Qt5 changes for KF5</literal>
143EOF</userinput></screen>
144
145 <para>
146 Expand your <filename>/etc/ld.so.conf</filename> file:
147 </para>
148
149<screen role="root"><userinput>cat &gt;&gt; /etc/ld.so.conf &lt;&lt; "EOF"
150<literal># Begin KF5 addition
151
152/opt/kf5/lib
153
154# End KF5 addition</literal>
155EOF</userinput></screen>
156
157 <indexterm zone="kf5-intro">
158 <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
159 </indexterm>
160
[2e29bba]161 <para revision="sysv">
[f263bf7]162 Several <application>KDE Frameworks 5</application> and
163 <application>Plasma 5</application> packages install
164 files into <application>D-Bus</application> and
165 <application>Polkit</application> directories. When installing
[f175d6f6]166 <application>KDE Frameworks 5</application> in a location other than
167 <filename class="directory">/usr</filename>,
[f263bf7]168 <application>D-Bus</application> and <application>Polkit</application>
169 need to be able to find these files.
[f175d6f6]170 The easiest way to achieve this is to create the following symlinks (as
171 the <systemitem class="username">root</systemitem> user):
172 </para>
173
[2e29bba]174<screen role="root"
175 revision="sysv"><userinput>install -v -dm755 $KF5_PREFIX/{etc,share} &amp;&amp;
[f175d6f6]176ln -sfv /etc/dbus-1 $KF5_PREFIX/etc &amp;&amp;
[f263bf7]177ln -sfv /usr/share/dbus-1 $KF5_PREFIX/share &amp;&amp;
178ln -sfv /usr/share/polkit-1 $KF5_PREFIX/share</userinput></screen>
[f175d6f6]179
[2e29bba]180 <para revision="systemd">
181 Several <application>KDE Frameworks 5</application> and
182 <application>KDE Plasma 5</application> packages install
[f263bf7]183 files into <application>D-Bus</application>,
184 <application>Polkit</application>, and
[2e29bba]185 <application>systemd</application> directories. When installing
186 <application>KDE 5</application> in a location other than
187 <filename class="directory">/usr</filename>,
[f263bf7]188 <application>D-Bus</application>, <application>Polkit</application>,
189 and <application>systemd</application>
[2e29bba]190 need to be able to find these files.
191 The easiest way to achieve this is to create the following symlinks (as
192 the <systemitem class="username">root</systemitem> user):
193 </para>
194
195<screen role="root"
[f263bf7]196 revision="systemd"><userinput>install -v -dm755 $KF5_PREFIX/{etc,share} &amp;&amp;
197ln -sfv /etc/dbus-1 $KF5_PREFIX/etc &amp;&amp;
198ln -sfv /usr/share/dbus-1 $KF5_PREFIX/share &amp;&amp;
199ln -sfv /usr/share/polkit-1 $KF5_PREFIX/share &amp;&amp;
200install -v -dm755 $KF5_PREFIX/lib &amp;&amp;
201ln -sfv /usr/lib/systemd $KF5_PREFIX/lib</userinput></screen>
[2e29bba]202
[f175d6f6]203 <para>
204 Some packages may also install icons from the "hicolor" icon set. Since that
205 icon set is used by many packages, it is a good idea to create a
206 symlink to the one in <filename class="directory">/usr/share</filename>
207 to avoid having multiple installations of <xref linkend="hicolor-icon-theme"/>.
208 Run the following commands as the <systemitem class="username">root</systemitem>
209 user:
210 </para>
211
212<screen role="root"><userinput>install -v -dm755 $KF5_PREFIX/share/icons &amp;&amp;
213ln -sfv /usr/share/icons/hicolor $KF5_PREFIX/share/icons</userinput></screen>
214
215 <tip>
216 <para>
217 Sometimes, the installation paths are hardcoded into installed files.
218 This is the reason why <filename class="directory">/opt/kf5</filename>
219 is used as installation prefix instead of <filename
220 class="directory">/opt/kf5-&kf5-version;</filename>. After installing
221 <application>KDE Frameworks</application>, you may rename the directory
222 and create a symlink:
223 </para>
224
225<screen role="root"><userinput>mv /opt/kf5{,-&kf5-version;}
226ln -sfv kf5-&kf5-version; /opt/kf5</userinput></screen>
227
228 <para>
229 Later on, you may want to install other versions of
230 <application>KDE Frameworks 5</application>. To do that, just remove
231 the symlink and use <filename class="directory">/opt/kf5</filename>
232 as the prefix again. Which version of
233 <application>KDE Frameworks 5</application> you use depends only on
234 where the symlink points. No other reconfiguration will be needed.
235 </para>
236 </tip>
237
238 </sect2>
239
240</sect1>
Note: See TracBrowser for help on using the repository browser.