source: kde4/intro/pre-install-config.xml@ 97ccf511

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gimp3 gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 97ccf511 was 8d86c672, checked in by Ragnar Thomsen <rthomsen@…>, 13 years ago

KDE4/QT4/ConsoleKit conf.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@9718 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 5.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 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
8<sect1 id="kde4-pre-install-config">
9 <?dbhtml filename="pre-install-config.html"?>
10
11 <sect1info>
12 <othername>$LastChangedBy$</othername>
13 <date>$Date$</date>
14 </sect1info>
15
16 <title>KDE4 Pre-installation Configuration</title>
17
18 <sect2><title>Installing in /usr</title>
19
20 <para>One option is to put <application>KDE4</application> into the
21 <filename class='directory'>/usr</filename> hierarchy. This creates a
22 simpler setup but makes it more difficult to try multiple versions of
23 <application>KDE</application>.</para>
24
25<screen><userinput>export &kde4-dir-var;=/usr</userinput></screen>
26 </sect2>
27
28 <sect2><title>Installing in /opt</title>
29
30 <para>A method of building multiple versions installs
31 <application>KDE4</application> in the <filename
32 class='directory'>/opt</filename> hierarchy:</para>
33
34<screen><userinput>export &kde4-dir-var;=/opt/kde4</userinput></screen>
35
36 <para>If you are not installing <application>KDE4</application> in
37 <filename class="directory">/usr</filename>, you will need to make some
38 additional configuration changes. Best practice is to add those to your
39 system or personal profile:</para>
40
41<screen><userinput>cat &gt; /etc/profile.d/kde4.sh &lt;&lt; "EOF"
42# Begin /etc/profile.d/kde4.sh
43
44&kde4-dir-var;=/opt/kde4
45KDE4DIR=&kde4-dir;
46KDEDIR=&kde4-dir;
47
48pathappend &kde4-dir;/bin PATH
49pathappend &kde4-dir;/lib/pkgconfig PKG_CONFIG_PATH
50pathappend &kde4-dir;/share/pkgconfig PKG_CONFIG_PATH
51pathappend &kde4-dir;/share XDG_DATA_DIRS
52pathappend /etc/kde4/xdg XDG_CONFIG_DIRS
53
54export KDE4_PREFIX KDE4DIR KDEDIR
55
56# End /etc/profile.d/kde4.sh
57EOF
58</userinput></screen>
59
60 <para>Add to your <filename>/etc/ld.so.conf</filename>:</para>
61
62<screen role="root"><userinput>cat &gt;&gt; /etc/ld.so.conf &lt;&lt; "EOF"
63<literal># Begin kde4 addition
64
65/opt/kde4/lib
66
67# End kde4 addition</literal>
68EOF</userinput></screen>
69
70 <indexterm zone="kde4-pre-install-config">
71 <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
72 </indexterm>
73
74 <para>Add to your <filename>/etc/man_db.conf</filename>:</para>
75
76<screen role="root"><userinput>cat &gt;&gt; /etc/man_db.conf &lt;&lt; "EOF"
77<literal># Begin kde4 addition
78
79MANDATORY_MANPATH /opt/kde4/man
80
81# End kde4 addition</literal>
82EOF</userinput></screen>
83
84 <indexterm zone="kde4-pre-install-config">
85 <primary sortas="e-etc-man_db.conf">/etc/man_db.conf</primary>
86 </indexterm>
87
88 <para>Several KDE4 packages install files into D-BUS and polkit directories.
89 When installing KDE4 in a location other than <filename class="directory">/usr</filename>,
90 D-BUS and polkit need to find these files. The easiest way to achieve this is to create
91 the following symlinks (as the <systemitem class="username">root</systemitem> user):</para>
92
93<screen role="root"><userinput>install -d /opt/kde4/share &amp;&amp;
94ln -svf /usr/share/dbus-1 /opt/kde4/share &amp;&amp;
95ln -svf /usr/share/polkit-1 /opt/kde4/share</userinput></screen>
96
97 <tip>
98 <para>Sometimes, the installation paths are coded into installed files.
99 This is the reason why <filename class="directory">/opt/kde4</filename>
100 is used as installation prefix instead of <filename
101 class="directory">/opt/kde-&kde4-version;</filename>. After installing
102 <application>KDE4</application>, you may rename the directory and create
103 a symlink:</para>
104
105<screen role="root"><userinput>mv /opt/kde{4,-&kde4-version;} &amp;&amp;
106ln -vsf kde-&kde4-version; /opt/kde4</userinput></screen>
107
108 <para>Later on, you may want to install other versions of
109 <application>KDE4</application>. To do that, just remove the symlink and
110 use <filename class="directory">/opt/kde4</filename> as ithe prefix again
111 (<application>KDE4</application> must not be started). Which version of
112 <application>KDE4</application> you use depends only on where the symlink
113 points to. No other reconfiguration will be needed.</para>
114
115 </tip>
116
117 <!-- Moved to QT4
118 <sect2><title>The QT4DIR variable</title>
119
120 <para>Some additional packages which are based on
121 <application>Qt4</application> will be installed. One of them is
122 <application>Phonon</application>, a direct replacement of the implementation
123 which comes with <application>Qt4</application>. It's recommended placing
124 such libraries in the same hierarchy where <application>Qt4</application>
125 itself resides. Later on, it is refered to as <envar>QT4DIR</envar>. If you have
126 placed <application>Qt4</application> in <filename
127 class='directory'>/usr</filename>, set <envar>QT4DIR</envar>:</para>
128
129<screen><userinput>export QT4DIR=/usr</userinput></screen>
130
131 <para>Alternativly, <application>Qt4</application> is often placed in the
132 <filename class='directory'>/opt</filename> hierarchy:</para>
133
134<screen><userinput>export QT4DIR=/opt/qt-&qt4-version;
135export PATH=$QT4DIR/bin:$PATH</userinput></screen>
136-->
137 </sect2>
138</sect1>
Note: See TracBrowser for help on using the repository browser.