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 | <para>Based on your preference, set <envar>&kde4-dir-var;</envar>. In
|
---|
19 | contrast to the previous version of <application>KDE</application>
|
---|
20 | which uses <envar>KDE_PREFIX</envar>, the prefix is stored in
|
---|
21 | <envar>&kde4-dir-var;</envar> to avoid interferences. This prefix is
|
---|
22 | used to specify where <application>KDE4</application> should be
|
---|
23 | installed.</para>
|
---|
24 |
|
---|
25 | <!--
|
---|
26 | <para>You should consider installing the <xref linkend="desktop-file-utils"/>
|
---|
27 | package. Though not required, this package will allow you to easily use
|
---|
28 | existing <filename>.desktop</filename> files in
|
---|
29 | <filename class='directory'>/usr/share/applications</filename> (and any other
|
---|
30 | locations identified by <envar>XDG_DATA_DIRS</envar>), and automatically add
|
---|
31 | these applications to the <application>KDE4</application> menu system.</para>
|
---|
32 | -->
|
---|
33 |
|
---|
34 | <para>Remember to execute <command>ldconfig</command> after installation
|
---|
35 | of libraries to update the library cache.</para>
|
---|
36 |
|
---|
37 | <sect2><title>Dependencies</title>
|
---|
38 |
|
---|
39 | <para>As <application>KDE4</application> is a huge software collection
|
---|
40 | providing a desktop, tools for system and development tasks as well as
|
---|
41 | fun and educational stuff, it makes use of a tremendous amount of
|
---|
42 | non-KDE packages. While nearly all of those packages are optional,
|
---|
43 | some others are are highly recommended.</para>
|
---|
44 | <para>You should consider to install following packages. Installing
|
---|
45 | this packages will switch on some useful features in the resulting
|
---|
46 | <application>KDE4</application>.
|
---|
47 |
|
---|
48 | <itemizedlist>
|
---|
49 | <listitem>
|
---|
50 | <para><ulink url="http://qjson.sourceforge.net">QJSON</ulink> - Qt library for handling JavaScript objects</para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para><ulink url="http://gpsd.berlios.de/">libgps</ulink> - interface to GPS devices (kdeedu)</para>
|
---|
54 | </listitem>
|
---|
55 | <listitem>
|
---|
56 | <para><ulink url="http://eigen.tuxfamily.org/">eigen2</ulink> - a C++ template library for linear algebra</para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para><xref linkend="desktop-file-utils"/> - a few command line utilities for working with desktop entries</para>
|
---|
60 | </listitem>
|
---|
61 | <listitem>
|
---|
62 | <para><ulink url="http://www.riverbankcomputing.com/software/sip/intro">pySIP</ulink> - Python Service Integration Platform</para>
|
---|
63 | </listitem>
|
---|
64 | <listitem>
|
---|
65 | <para><ulink url="http://www.riverbankcomputing.com/software/pyqt/">pyQT4</ulink> - Python interface to Qt4 (kdebindings)</para>
|
---|
66 | </listitem>
|
---|
67 | <listitem>
|
---|
68 | <para><xref linkend="ruby"/> - Ruby language (kdebindings)</para>
|
---|
69 | </listitem>
|
---|
70 | <listitem>
|
---|
71 | <para><xref linkend="poppler"/> - Utility and library to show PDF files (kdegraphics)</para>
|
---|
72 | <para>make sure the --enable-xpdf-headers switch is set</para>
|
---|
73 | </listitem>
|
---|
74 | <listitem>
|
---|
75 | <para><xref linkend="libical"/> - library handling calendar entries (kdepimlibs)</para>
|
---|
76 | </listitem>
|
---|
77 | <listitem>
|
---|
78 | <para><ulink url="http://cyberelk.net/tim/data/pycups/">pyCUPS</ulink> - Python interface to CUPS (kdeadmin)</para>
|
---|
79 | </listitem>
|
---|
80 | <listitem>
|
---|
81 | <para><ulink url="http://cyberelk.net/tim/data/system-config-printer/">system-config-printer</ulink> - Printer config (kdeadmin)</para>
|
---|
82 | </listitem>
|
---|
83 | <listitem>
|
---|
84 | <para><xref linkend="libidn"/> - en-/decode internationalized domain names (kdenetwork)</para>
|
---|
85 | </listitem>
|
---|
86 | <listitem>
|
---|
87 | <para><xref linkend="polkit"/> - Policy handling (nearly all of KDE)</para>
|
---|
88 | </listitem>
|
---|
89 | <listitem>
|
---|
90 | <para><xref linkend="consolekit"/> - Runtime dependency of polkit</para>
|
---|
91 | </listitem>
|
---|
92 | <listitem>
|
---|
93 | <para>U-tools - udisks and upower instead of HAL</para>
|
---|
94 | <para>and all of its dependencies: <xref linkend="libatasmart"/>, <xref linkend="sg3_utils"/>,
|
---|
95 | <xref linkend="libffi"/>, <xref linkend="acl"/>, <xref linkend="gobject-introspection"/>,
|
---|
96 | <xref linkend="udev"/>, <xref linkend="Device-mapper"/>, <xref linkend="parted"/> and than
|
---|
97 | <xref linkend="udisks"/> and <xref linkend="upower"/></para>
|
---|
98 | </listitem>
|
---|
99 | <listitem>
|
---|
100 | <para><xref linkend="libiodbc"/> - iODBC library</para>
|
---|
101 | </listitem>
|
---|
102 | <listitem>
|
---|
103 | <para><xref linkend="virtuoso"/> - a Universal Database</para>
|
---|
104 | </listitem>
|
---|
105 | <listitem>
|
---|
106 | <para><xref linkend="exiv2"/> - Image data processing library</para>
|
---|
107 | </listitem>
|
---|
108 | <listitem>
|
---|
109 | <para>RDF tools - Handling of RDF data</para>
|
---|
110 | <para>Including: <xref linkend="raptor"/>, <xref linkend="rasqal"/> and <xref linkend="redland"/></para>
|
---|
111 | </listitem>
|
---|
112 | <listitem>
|
---|
113 | <para><xref linkend="clucene"/> - Text search engine</para>
|
---|
114 | </listitem>
|
---|
115 | <listitem>
|
---|
116 | <para><xref linkend="boost"/> - collection of free C++ libraries</para>
|
---|
117 | </listitem>
|
---|
118 | <listitem>
|
---|
119 | <para><xref linkend="qca"/> - Cryptographic library for Qt platform</para>
|
---|
120 | </listitem>
|
---|
121 | <listitem>
|
---|
122 | <para><xref linkend="libdbusmenu-qt"/> - Qt interface to D-Bus menue</para>
|
---|
123 | </listitem>
|
---|
124 | <listitem>
|
---|
125 | <para><xref linkend="soprano"/> - object-oriented C++/Qt4 framework for RDF data</para>
|
---|
126 | </listitem>
|
---|
127 | <listitem>
|
---|
128 | <para><xref linkend="strigi"/> - Desktop indexing engine</para>
|
---|
129 | </listitem>
|
---|
130 | <listitem>
|
---|
131 | <para><ulink url="http://www.grantlee.org">Grantlee</ulink> - a template system for Qt</para>
|
---|
132 | </listitem>
|
---|
133 | </itemizedlist>
|
---|
134 | </para>
|
---|
135 | </sect2>
|
---|
136 |
|
---|
137 | <sect2><title>Installing in /usr</title>
|
---|
138 | <para>One option is to put <application>KDE4</application> into the
|
---|
139 | <filename class='directory'>/usr</filename> hierarchy. This creates
|
---|
140 | a simpler setup but is more difficult to try multiple versions
|
---|
141 | of <application>KDE4</application>.</para>
|
---|
142 |
|
---|
143 | <screen><userinput>export &kde4-dir-var;=/usr</userinput></screen>
|
---|
144 | </sect2>
|
---|
145 |
|
---|
146 | <sect2><title>Installing in /opt</title>
|
---|
147 | <para>A method of building multiple versions installs
|
---|
148 | <application>KDE4</application> in the <filename
|
---|
149 | class='directory'>/opt</filename> hierarchy:</para>
|
---|
150 |
|
---|
151 | <screen><userinput>export &kde4-dir-var;=/opt/kde4</userinput></screen>
|
---|
152 |
|
---|
153 | <para>If you are not installing <application>KDE4</application> in
|
---|
154 | <filename class="directory">/usr</filename>, you will need to make some
|
---|
155 | additional configuration changes. Best practice is to add those to your
|
---|
156 | system or personal profile:</para>
|
---|
157 |
|
---|
158 | <screen><userinput>cat > /etc/profile.d/kde4.sh <<"EOF"
|
---|
159 | # Begin /etc/profile.d/kde4.sh
|
---|
160 |
|
---|
161 | &kde4-dir-var;=/opt/kde4
|
---|
162 | KDE4DIR=&kde4-dir;
|
---|
163 | KDEDIR=&kde4-dir;
|
---|
164 |
|
---|
165 | pathappend &kde4-dir;/bin PATH
|
---|
166 | pathappend &kde4-dir;/lib/pkgconfig PKG_CONFIG_PATH
|
---|
167 | pathappend &kde4-dir;/share XDG_DATA_DIRS
|
---|
168 | pathappend /etc/kde4/xdg XDG_CONFIG_DIRS
|
---|
169 |
|
---|
170 | export KDE4_PREFIX KDE4DIR KDEDIR
|
---|
171 | export PATH PKG_CONFIG_PATH XDG_DATA_DIRS XDG_CONFIG_DIRS
|
---|
172 |
|
---|
173 | # End /etc/profile.d/kde4.sh
|
---|
174 | EOF
|
---|
175 | </userinput></screen>
|
---|
176 |
|
---|
177 | <para>Add to your <filename>/etc/ld.so.conf</filename>:</para>
|
---|
178 |
|
---|
179 | <screen role="root"><userinput>cat >> /etc/ld.so.conf << "EOF"
|
---|
180 | <literal># Begin kde4 addition to /etc/ld.so.conf
|
---|
181 |
|
---|
182 | /opt/kde4/lib
|
---|
183 |
|
---|
184 | # End kde4 addition</literal>
|
---|
185 | EOF</userinput></screen>
|
---|
186 |
|
---|
187 | <indexterm zone="kde4-pre-install-config">
|
---|
188 | <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
|
---|
189 | </indexterm>
|
---|
190 |
|
---|
191 | <para>Add to your <filename>/etc/man_db.conf</filename>:</para>
|
---|
192 |
|
---|
193 | <screen role="root"><userinput>cat >> /etc/man_db.conf << "EOF"
|
---|
194 | <literal># Begin kde4 addition to man_db.conf
|
---|
195 |
|
---|
196 | MANDATORY_MANPATH /opt/kde4/man
|
---|
197 |
|
---|
198 | # End kde4 addition to man_db.conf</literal>
|
---|
199 | EOF</userinput></screen>
|
---|
200 |
|
---|
201 | <indexterm zone="kde4-pre-install-config">
|
---|
202 | <primary sortas="e-etc-man_db.conf">/etc/man_db.conf</primary>
|
---|
203 | </indexterm>
|
---|
204 |
|
---|
205 | <tip>
|
---|
206 | <para>Sometimes, the installation pathes are patched into installed
|
---|
207 | files. This is the reason why <filename class="directory">/opt/kde4</filename>
|
---|
208 | is used as installation prefix instead of <filename class="directory">/opt/kde-&kde4-version;</filename>.
|
---|
209 | After installing <application>KDE4</application>, you may consider to
|
---|
210 | rename the directory and create a symlink:</para>
|
---|
211 |
|
---|
212 | <screen role="root"><userinput>mv /opt/kde{4,-&kde4-version;} &&
|
---|
213 | ln -v -sf kde-&kde4-version; /opt/kde4</userinput></screen>
|
---|
214 |
|
---|
215 | <para>Later on, you may want to install other versions of <application>KDE4</application>.
|
---|
216 | To do that, just remove the symlink and use <filename class="directory">/opt/kde4</filename>
|
---|
217 | as prefix again (<application>KDE4</application> must not be started). Which
|
---|
218 | version of <application>KDE4</application> you use depends only on
|
---|
219 | where the symlink points to. No other reconfiguration will be needed.</para>
|
---|
220 | </tip>
|
---|
221 |
|
---|
222 | </sect2>
|
---|
223 |
|
---|
224 | <sect2><title>The QT4DIR variable</title>
|
---|
225 | <para>Some additional packages which are based on <application>Qt4</application>
|
---|
226 | will be installed. One of them is <application>Phonon</application>, a direct
|
---|
227 | replacement of the implementation which comes with <application>Qt4</application>.
|
---|
228 | It's recommended to place such libraries in the same hierarchy where <application>Qt4</application>
|
---|
229 | itself resides. Later on, it is refered to <envar>QT4DIR</envar>. If you have placed
|
---|
230 | <application>Qt4</application> in <filename class='directory'>/usr</filename>,
|
---|
231 | set <envar>QT4DIR</envar>:</para>
|
---|
232 |
|
---|
233 | <screen><userinput>export QT4DIR=/usr</userinput></screen>
|
---|
234 |
|
---|
235 | <para>Alternativly, <application>Qt4</application> is often placed in the
|
---|
236 | <filename class='directory'>/opt</filename> hierarchy:</para>
|
---|
237 |
|
---|
238 | <screen><userinput>export QT4DIR=/opt/qt-&qt4-version;
|
---|
239 | export PATH=$QT4DIR/bin:$PATH</userinput></screen>
|
---|
240 |
|
---|
241 | </sect2>
|
---|
242 |
|
---|
243 | </sect1>
|
---|