[0e25c32] | 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 |
|
---|
[c9df31a] | 8 | <sect1 id="kde-pre-install-config">
|
---|
[0e25c32] | 9 | <?dbhtml filename="pre-install-config.html"?>
|
---|
| 10 |
|
---|
| 11 | <sect1info>
|
---|
| 12 | <othername>$LastChangedBy$</othername>
|
---|
| 13 | <date>$Date$</date>
|
---|
| 14 | </sect1info>
|
---|
| 15 |
|
---|
[c9df31a] | 16 | <title>KDE Pre-installation Configuration</title>
|
---|
[0e25c32] | 17 |
|
---|
| 18 | <sect2><title>Installing in /usr</title>
|
---|
[00785d8] | 19 |
|
---|
[c9df31a] | 20 | <para>One option is to put <application>KDE</application> into the
|
---|
[00785d8] | 21 | <filename class='directory'>/usr</filename> hierarchy. This creates a
|
---|
[8d86c672] | 22 | simpler setup but makes it more difficult to try multiple versions of
|
---|
| 23 | <application>KDE</application>.</para>
|
---|
[0e25c32] | 24 |
|
---|
[c9df31a] | 25 | <screen><userinput>export &kde-dir-var;=/usr</userinput></screen>
|
---|
[0e25c32] | 26 | </sect2>
|
---|
| 27 |
|
---|
| 28 | <sect2><title>Installing in /opt</title>
|
---|
[00785d8] | 29 |
|
---|
[0e25c32] | 30 | <para>A method of building multiple versions installs
|
---|
[c9df31a] | 31 | <application>KDE</application> in the <filename
|
---|
[0e25c32] | 32 | class='directory'>/opt</filename> hierarchy:</para>
|
---|
| 33 |
|
---|
[c9df31a] | 34 | <screen><userinput>export &kde-dir-var;=/opt/kde4</userinput></screen>
|
---|
[0e25c32] | 35 |
|
---|
[c9df31a] | 36 | <para>If you are not installing <application>KDE</application> in
|
---|
[0e25c32] | 37 | <filename class="directory">/usr</filename>, you will need to make some
|
---|
[00785d8] | 38 | additional configuration changes. Best practice is to add those to your
|
---|
[0e25c32] | 39 | system or personal profile:</para>
|
---|
| 40 |
|
---|
[8d86c672] | 41 | <screen><userinput>cat > /etc/profile.d/kde4.sh << "EOF"
|
---|
[0e25c32] | 42 | # Begin /etc/profile.d/kde4.sh
|
---|
| 43 |
|
---|
[c9df31a] | 44 | &kde-dir-var;=/opt/kde4
|
---|
| 45 | KDE4DIR=&kde-dir;
|
---|
| 46 | KDEDIR=&kde-dir;
|
---|
[0e25c32] | 47 |
|
---|
[c9df31a] | 48 | pathappend &kde-dir;/bin PATH
|
---|
| 49 | pathappend &kde-dir;/lib/pkgconfig PKG_CONFIG_PATH
|
---|
| 50 | pathappend &kde-dir;/share/pkgconfig PKG_CONFIG_PATH
|
---|
| 51 | pathappend &kde-dir;/share XDG_DATA_DIRS
|
---|
[e9f77617] | 52 | pathappend /etc/kde4/xdg XDG_CONFIG_DIRS
|
---|
[0e25c32] | 53 |
|
---|
| 54 | export KDE4_PREFIX KDE4DIR KDEDIR
|
---|
| 55 |
|
---|
| 56 | # End /etc/profile.d/kde4.sh
|
---|
| 57 | EOF
|
---|
| 58 | </userinput></screen>
|
---|
| 59 |
|
---|
| 60 | <para>Add to your <filename>/etc/ld.so.conf</filename>:</para>
|
---|
| 61 |
|
---|
| 62 | <screen role="root"><userinput>cat >> /etc/ld.so.conf << "EOF"
|
---|
[8d86c672] | 63 | <literal># Begin kde4 addition
|
---|
[0e25c32] | 64 |
|
---|
| 65 | /opt/kde4/lib
|
---|
| 66 |
|
---|
| 67 | # End kde4 addition</literal>
|
---|
| 68 | EOF</userinput></screen>
|
---|
| 69 |
|
---|
[c9df31a] | 70 | <indexterm zone="kde-pre-install-config">
|
---|
[0e25c32] | 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 >> /etc/man_db.conf << "EOF"
|
---|
[8d86c672] | 77 | <literal># Begin kde4 addition
|
---|
[0e25c32] | 78 |
|
---|
| 79 | MANDATORY_MANPATH /opt/kde4/man
|
---|
| 80 |
|
---|
[8d86c672] | 81 | # End kde4 addition</literal>
|
---|
[0e25c32] | 82 | EOF</userinput></screen>
|
---|
| 83 |
|
---|
[c9df31a] | 84 | <indexterm zone="kde-pre-install-config">
|
---|
[0e25c32] | 85 | <primary sortas="e-etc-man_db.conf">/etc/man_db.conf</primary>
|
---|
| 86 | </indexterm>
|
---|
| 87 |
|
---|
[c4fbedc] | 88 | <para>Several KDE packages install files into D-Bus and polkit directories.
|
---|
[c9df31a] | 89 | When installing KDE in a location other than <filename class="directory">/usr</filename>,
|
---|
[c4fbedc] | 90 | D-Bus and polkit need to find these files. The easiest way to achieve this is to create
|
---|
[8d86c672] | 91 | the following symlinks (as the <systemitem class="username">root</systemitem> user):</para>
|
---|
[00785d8] | 92 |
|
---|
[8d86c672] | 93 | <screen role="root"><userinput>install -d /opt/kde4/share &&
|
---|
| 94 | ln -svf /usr/share/dbus-1 /opt/kde4/share &&
|
---|
| 95 | ln -svf /usr/share/polkit-1 /opt/kde4/share</userinput></screen>
|
---|
| 96 |
|
---|
[c4fbedc] | 97 | <para>D-Bus also needs to find the configuration files for the system-wide
|
---|
| 98 | bus, which, if you follow the books instructions, are installed in
|
---|
| 99 | <filename class="directory">/etc/kde4/dbus-1/system.d</filename>.
|
---|
| 100 | Fix this by issuing the following (as
|
---|
| 101 | <systemitem class="username">root</systemitem>):</para>
|
---|
| 102 |
|
---|
| 103 | <screen role="root"><userinput>cat > /etc/dbus-1/system-local.conf << "EOF"
|
---|
| 104 | <literal><!DOCTYPE busconfig PUBLIC
|
---|
| 105 | "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
|
---|
| 106 | "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
|
---|
| 107 | <busconfig>
|
---|
| 108 |
|
---|
| 109 | <includedir>/etc/kde4/dbus-1/system.d</includedir>
|
---|
| 110 |
|
---|
| 111 | </busconfig></literal>
|
---|
| 112 | EOF</userinput></screen>
|
---|
| 113 |
|
---|
[8d86c672] | 114 | <tip>
|
---|
[00785d8] | 115 | <para>Sometimes, the installation paths are coded into installed files.
|
---|
| 116 | This is the reason why <filename class="directory">/opt/kde4</filename>
|
---|
| 117 | is used as installation prefix instead of <filename
|
---|
[c9df31a] | 118 | class="directory">/opt/kde-&kde-version;</filename>. After installing
|
---|
[00785d8] | 119 | <application>KDE4</application>, you may rename the directory and create
|
---|
| 120 | a symlink:</para>
|
---|
[0e25c32] | 121 |
|
---|
[c9df31a] | 122 | <screen role="root"><userinput>mv /opt/kde{4,-&kde-version;} &&
|
---|
| 123 | ln -svf kde-&kde-version; /opt/kde4</userinput></screen>
|
---|
[00785d8] | 124 |
|
---|
| 125 | <para>Later on, you may want to install other versions of
|
---|
[c9df31a] | 126 | <application>KDE</application>. To do that, just remove the symlink and
|
---|
| 127 | use <filename class="directory">/opt/kde4</filename> as the prefix again
|
---|
| 128 | (<application>KDE</application> must not be started). Which version of
|
---|
| 129 | <application>KDE</application> you use depends only on where the symlink
|
---|
[00785d8] | 130 | points to. No other reconfiguration will be needed.</para>
|
---|
[0e25c32] | 131 |
|
---|
| 132 | </tip>
|
---|
| 133 |
|
---|
| 134 | </sect2>
|
---|
| 135 | </sect1>
|
---|