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="kde-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>KDE Pre-installation Configuration</title>
|
---|
17 |
|
---|
18 | <para>Based on your preference, set <envar>KDE_PREFIX</envar>.</para>
|
---|
19 |
|
---|
20 | <para>One option is to put <application>KDE</application> into the
|
---|
21 | <filename class='directory'>/usr</filename> hierarchy. This creates
|
---|
22 | a simpler setup but is more difficult to try multiple versions
|
---|
23 | of <application>KDE</application>.</para>
|
---|
24 |
|
---|
25 | <screen><userinput>export KDE_PREFIX=/usr</userinput></screen>
|
---|
26 |
|
---|
27 | <para>A method of building multiple versions installs
|
---|
28 | <application>KDE</application> in the <filename
|
---|
29 | class='directory'>/opt</filename> hierarchy:</para>
|
---|
30 |
|
---|
31 | <screen><userinput>export KDE_PREFIX=/opt/kde-&kde-version;</userinput></screen>
|
---|
32 |
|
---|
33 | <para>Remember to execute <command>ldconfig</command> after installation
|
---|
34 | of libraries to update the library cache.</para>
|
---|
35 |
|
---|
36 | <para>If you are not installing <application>KDE</application> in
|
---|
37 | <filename class="directory">/usr</filename>, you will need to make some
|
---|
38 | configuration changes:</para>
|
---|
39 |
|
---|
40 | <para>You should consider installing the <xref linkend="desktop-file-utils"/>
|
---|
41 | package. Though not required, this package will allow you to easily use
|
---|
42 | existing <filename>.desktop</filename> files in
|
---|
43 | <filename class='directory'>/usr/share/applications</filename> (and any other
|
---|
44 | locations identified by <envar>XDG_DATA_DIRS</envar>), and automatically add
|
---|
45 | these applications to the <application>KDE</application> menu system.</para>
|
---|
46 |
|
---|
47 | <para>Add to your system or personal profile:</para>
|
---|
48 |
|
---|
49 | <screen><literal>export PATH=$PATH:/opt/kde-&kde-version;/bin
|
---|
50 | export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/kde-&kde-version;/lib/pkgconfig</literal></screen>
|
---|
51 |
|
---|
52 | <para>Add to your <filename>/etc/ld.so.conf</filename>:</para>
|
---|
53 |
|
---|
54 | <screen role="root"><userinput>cat >> /etc/ld.so.conf << "EOF"
|
---|
55 | <literal># Begin kde addition to /etc/ld.so.conf
|
---|
56 |
|
---|
57 | /opt/kde-&kde-version;/lib
|
---|
58 |
|
---|
59 | # End kde addition</literal>
|
---|
60 | EOF</userinput></screen>
|
---|
61 |
|
---|
62 | <indexterm zone="kde-pre-install-config">
|
---|
63 | <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
|
---|
64 | </indexterm>
|
---|
65 |
|
---|
66 | <para>Add to your <filename>/etc/man_db.conf</filename>:</para>
|
---|
67 |
|
---|
68 | <screen role="root"><userinput>cat >> /etc/man_db.conf << "EOF"
|
---|
69 | <literal># Begin kde addition to man_db.conf
|
---|
70 |
|
---|
71 | MANDATORY_MANPATH /opt/kde-&kde-version;/man
|
---|
72 |
|
---|
73 | # End kde addition to man_db.conf</literal>
|
---|
74 | EOF</userinput></screen>
|
---|
75 |
|
---|
76 | <indexterm zone="kde-pre-install-config">
|
---|
77 | <primary sortas="e-etc-man_db.conf">/etc/man_db.conf</primary>
|
---|
78 | </indexterm>
|
---|
79 |
|
---|
80 | <tip>
|
---|
81 | <para>If you prefer installing KDE in <filename
|
---|
82 | class="directory">/opt</filename>, one trick to avoid the above configuration
|
---|
83 | changes every time you install a new version is to replace <filename
|
---|
84 | class="directory">/opt/kde-&kde-version;</filename> with <filename
|
---|
85 | class="directory">/opt/kde</filename> and to create a symlink from <filename
|
---|
86 | class="directory">/opt/kde-&kde-version;</filename> to <filename
|
---|
87 | class="directory">/opt/kde</filename>.</para>
|
---|
88 |
|
---|
89 | <screen role="root"><userinput>ln -v -sf kde-&kde-version; /opt/kde</userinput></screen>
|
---|
90 | </tip>
|
---|
91 |
|
---|
92 | </sect1>
|
---|