source: kde/kf5/kf5-intro.xml@ 94ab975

12.1 gimp3 ken/TL2024 lazarus plabs/newcss python3.11 rahul/power-profiles-daemon trunk xry111/for-12.3 xry111/llvm18 xry111/spidermonkey128
Last change on this file since 94ab975 was e1e58be, checked in by Pierre Labastie <pierre.labastie@…>, 10 months ago

Remove all ftp urls

neither firefox nor epiphany can download them, and they are not
well maintained, because rarely tested.
This is WIP because the "(HTTP)" part of "Download (HTTP)" will
need to be removed too.
But let's see what users think first...

  • Property mode set to 100644
File size: 8.7 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;">
[e1e58be]8 <!ENTITY kf5-download-ftp " ">
[f175d6f6]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
[597a879c]132
133pathappend $KF5_PREFIX/include CPLUS_INCLUDE_PATH
[f175d6f6]134# End /etc/profile.d/kf5.sh</literal>
135EOF
136
[773b316]137cat &gt;&gt; /etc/profile.d/qt5.sh &lt;&lt; "EOF"
138<literal># Begin Qt5 changes for KF5
[f175d6f6]139
[c50cdeea]140pathappend /usr/lib/plugins QT_PLUGIN_PATH
[f175d6f6]141pathappend $QT5DIR/plugins QT_PLUGIN_PATH
142pathappend $QT5DIR/qml QML2_IMPORT_PATH
143
144# End Qt5 changes for KF5</literal>
145EOF</userinput></screen>
146
147 <para>
148 Expand your <filename>/etc/ld.so.conf</filename> file:
149 </para>
150
151<screen role="root"><userinput>cat &gt;&gt; /etc/ld.so.conf &lt;&lt; "EOF"
152<literal># Begin KF5 addition
153
154/opt/kf5/lib
155
156# End KF5 addition</literal>
157EOF</userinput></screen>
158
159 <indexterm zone="kf5-intro">
160 <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
161 </indexterm>
162
[2e29bba]163 <para revision="sysv">
[f263bf7]164 Several <application>KDE Frameworks 5</application> and
165 <application>Plasma 5</application> packages install
166 files into <application>D-Bus</application> and
167 <application>Polkit</application> directories. When installing
[f175d6f6]168 <application>KDE Frameworks 5</application> in a location other than
169 <filename class="directory">/usr</filename>,
[f263bf7]170 <application>D-Bus</application> and <application>Polkit</application>
171 need to be able to find these files.
[f175d6f6]172 The easiest way to achieve this is to create the following symlinks (as
173 the <systemitem class="username">root</systemitem> user):
174 </para>
175
[2e29bba]176<screen role="root"
177 revision="sysv"><userinput>install -v -dm755 $KF5_PREFIX/{etc,share} &amp;&amp;
[f175d6f6]178ln -sfv /etc/dbus-1 $KF5_PREFIX/etc &amp;&amp;
[f263bf7]179ln -sfv /usr/share/dbus-1 $KF5_PREFIX/share &amp;&amp;
180ln -sfv /usr/share/polkit-1 $KF5_PREFIX/share</userinput></screen>
[f175d6f6]181
[2e29bba]182 <para revision="systemd">
183 Several <application>KDE Frameworks 5</application> and
184 <application>KDE Plasma 5</application> packages install
[f263bf7]185 files into <application>D-Bus</application>,
186 <application>Polkit</application>, and
[2e29bba]187 <application>systemd</application> directories. When installing
188 <application>KDE 5</application> in a location other than
189 <filename class="directory">/usr</filename>,
[f263bf7]190 <application>D-Bus</application>, <application>Polkit</application>,
191 and <application>systemd</application>
[2e29bba]192 need to be able to find these files.
193 The easiest way to achieve this is to create the following symlinks (as
194 the <systemitem class="username">root</systemitem> user):
195 </para>
196
197<screen role="root"
[f263bf7]198 revision="systemd"><userinput>install -v -dm755 $KF5_PREFIX/{etc,share} &amp;&amp;
199ln -sfv /etc/dbus-1 $KF5_PREFIX/etc &amp;&amp;
200ln -sfv /usr/share/dbus-1 $KF5_PREFIX/share &amp;&amp;
201ln -sfv /usr/share/polkit-1 $KF5_PREFIX/share &amp;&amp;
202install -v -dm755 $KF5_PREFIX/lib &amp;&amp;
203ln -sfv /usr/lib/systemd $KF5_PREFIX/lib</userinput></screen>
[2e29bba]204
[f175d6f6]205 <para>
206 Some packages may also install icons from the "hicolor" icon set. Since that
207 icon set is used by many packages, it is a good idea to create a
208 symlink to the one in <filename class="directory">/usr/share</filename>
209 to avoid having multiple installations of <xref linkend="hicolor-icon-theme"/>.
210 Run the following commands as the <systemitem class="username">root</systemitem>
211 user:
212 </para>
213
214<screen role="root"><userinput>install -v -dm755 $KF5_PREFIX/share/icons &amp;&amp;
215ln -sfv /usr/share/icons/hicolor $KF5_PREFIX/share/icons</userinput></screen>
216
217 <tip>
218 <para>
219 Sometimes, the installation paths are hardcoded into installed files.
220 This is the reason why <filename class="directory">/opt/kf5</filename>
221 is used as installation prefix instead of <filename
222 class="directory">/opt/kf5-&kf5-version;</filename>. After installing
223 <application>KDE Frameworks</application>, you may rename the directory
224 and create a symlink:
225 </para>
226
227<screen role="root"><userinput>mv /opt/kf5{,-&kf5-version;}
228ln -sfv kf5-&kf5-version; /opt/kf5</userinput></screen>
229
230 <para>
231 Later on, you may want to install other versions of
232 <application>KDE Frameworks 5</application>. To do that, just remove
233 the symlink and use <filename class="directory">/opt/kf5</filename>
234 as the prefix again. Which version of
235 <application>KDE Frameworks 5</application> you use depends only on
236 where the symlink points. No other reconfiguration will be needed.
237 </para>
238 </tip>
239
240 </sect2>
241
242</sect1>
Note: See TracBrowser for help on using the repository browser.