[60384c68] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[60384c68] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
[fc20429] | 8 | <sect1 id="kde-pre-install-config">
|
---|
[c201c951] | 9 | <?dbhtml filename="pre-install-config.html"?>
|
---|
[fc20429] | 10 |
|
---|
[c201c951] | 11 | <sect1info>
|
---|
| 12 | <othername>$LastChangedBy$</othername>
|
---|
| 13 | <date>$Date$</date>
|
---|
| 14 | </sect1info>
|
---|
[fc20429] | 15 |
|
---|
[c201c951] | 16 | <title>KDE Pre-installation Configuration</title>
|
---|
[fc20429] | 17 |
|
---|
[c201c951] | 18 | <para>Based on your preference, set <envar>KDE_PREFIX</envar>.</para>
|
---|
[fc20429] | 19 |
|
---|
[bccbdaea] | 20 | <para>One option is to put <application>KDE</application> into the
|
---|
[4b69cf79] | 21 | <filename class='directory'>/usr</filename> hierarchy. This creates
|
---|
[5d1b050] | 22 | a simpler setup but is more difficult to try multiple versions
|
---|
[4b69cf79] | 23 | of <application>KDE</application>.</para>
|
---|
[fc20429] | 24 |
|
---|
[c201c951] | 25 | <screen><userinput>export KDE_PREFIX=/usr</userinput></screen>
|
---|
[fc20429] | 26 |
|
---|
[4b69cf79] | 27 | <para>A method of building multiple versions installs
|
---|
| 28 | <application>KDE</application> in the <filename
|
---|
| 29 | class='directory'>/opt</filename> hierarchy:</para>
|
---|
[fc20429] | 30 |
|
---|
[c201c951] | 31 | <screen><userinput>export KDE_PREFIX=/opt/kde-&kde-version;</userinput></screen>
|
---|
[fc20429] | 32 |
|
---|
[c201c951] | 33 | <para>Remember to execute <command>ldconfig</command> after installation
|
---|
| 34 | of libraries to update the library cache.</para>
|
---|
[1986ade] | 35 |
|
---|
[c201c951] | 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>
|
---|
[fc20429] | 39 |
|
---|
[9f271dd] | 40 | <para>You should consider installing the <xref linkend="desktop-file-utils"/>
|
---|
[00c8453] | 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
|
---|
[c201c951] | 45 | these applications to the <application>KDE</application> menu system.</para>
|
---|
[fc20429] | 46 |
|
---|
[c201c951] | 47 | <para>Add to your system or personal profile:</para>
|
---|
[fc20429] | 48 |
|
---|
[c201c951] | 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
|
---|
[fc20429] | 56 |
|
---|
| 57 | /opt/kde-&kde-version;/lib
|
---|
| 58 |
|
---|
[c201c951] | 59 | # End kde addition</literal>
|
---|
| 60 | EOF</userinput></screen>
|
---|
[fc20429] | 61 |
|
---|
[c201c951] | 62 | <indexterm zone="kde-pre-install-config">
|
---|
| 63 | <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
|
---|
| 64 | </indexterm>
|
---|
[fb31251] | 65 |
|
---|
[58c6057] | 66 | <para>Add to your <filename>/etc/man_db.conf</filename>:</para>
|
---|
[fc20429] | 67 |
|
---|
[58c6057] | 68 | <screen role="root"><userinput>cat >> /etc/man_db.conf << "EOF"
|
---|
| 69 | <literal># Begin kde addition to man_db.conf
|
---|
[fc20429] | 70 |
|
---|
[a3ef34c2] | 71 | MANDATORY_MANPATH /opt/kde-&kde-version;/man
|
---|
[fc20429] | 72 |
|
---|
[58c6057] | 73 | # End kde addition to man_db.conf</literal>
|
---|
[c201c951] | 74 | EOF</userinput></screen>
|
---|
[9f271dd] | 75 |
|
---|
[c201c951] | 76 | <indexterm zone="kde-pre-install-config">
|
---|
[58c6057] | 77 | <primary sortas="e-etc-man_db.conf">/etc/man_db.conf</primary>
|
---|
[c201c951] | 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>
|
---|
[fc20429] | 91 |
|
---|
| 92 | </sect1>
|
---|