[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 |
|
---|
[2cfb44a4] | 34 | <screen><userinput>export &kde-dir-var;=/opt/kde</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 |
|
---|
[2a7334e8] | 41 | <screen><userinput>cat > /etc/profile.d/kde.sh << EOF
|
---|
| 42 | <literal># Begin /etc/profile.d/kde.sh
|
---|
[0e25c32] | 43 |
|
---|
[2cfb44a4] | 44 | &kde-dir-var;=/opt/kde
|
---|
[c9df31a] | 45 | KDEDIR=&kde-dir;
|
---|
[0e25c32] | 46 |
|
---|
[c9df31a] | 47 | pathappend &kde-dir;/bin PATH
|
---|
| 48 | pathappend &kde-dir;/lib/pkgconfig PKG_CONFIG_PATH
|
---|
| 49 | pathappend &kde-dir;/share/pkgconfig PKG_CONFIG_PATH
|
---|
| 50 | pathappend &kde-dir;/share XDG_DATA_DIRS
|
---|
[2cfb44a4] | 51 | pathappend /etc/kde/xdg XDG_CONFIG_DIRS
|
---|
[0e25c32] | 52 |
|
---|
[2cfb44a4] | 53 | export &kde-dir-var; KDEDIR
|
---|
[0e25c32] | 54 |
|
---|
[2a7334e8] | 55 | # End /etc/profile.d/kde.sh</literal>
|
---|
[0e25c32] | 56 | EOF
|
---|
| 57 | </userinput></screen>
|
---|
| 58 |
|
---|
| 59 | <para>Add to your <filename>/etc/ld.so.conf</filename>:</para>
|
---|
| 60 |
|
---|
[2a7334e8] | 61 | <screen role="root"><userinput>cat >> /etc/ld.so.conf << EOF
|
---|
[2cfb44a4] | 62 | <literal># Begin kde addition
|
---|
[0e25c32] | 63 |
|
---|
[2cfb44a4] | 64 | /opt/kde/lib
|
---|
[0e25c32] | 65 |
|
---|
[2cfb44a4] | 66 | # End kde addition</literal>
|
---|
[0e25c32] | 67 | EOF</userinput></screen>
|
---|
| 68 |
|
---|
[c9df31a] | 69 | <indexterm zone="kde-pre-install-config">
|
---|
[0e25c32] | 70 | <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
|
---|
| 71 | </indexterm>
|
---|
| 72 |
|
---|
[c4fbedc] | 73 | <para>Several KDE packages install files into D-Bus and polkit directories.
|
---|
[c9df31a] | 74 | When installing KDE in a location other than <filename class="directory">/usr</filename>,
|
---|
[c4fbedc] | 75 | D-Bus and polkit need to find these files. The easiest way to achieve this is to create
|
---|
[8d86c672] | 76 | the following symlinks (as the <systemitem class="username">root</systemitem> user):</para>
|
---|
[00785d8] | 77 |
|
---|
[2cfb44a4] | 78 | <screen role="root"><userinput>install -d &kde-dir;/share &&
|
---|
| 79 | ln -svf /usr/share/dbus-1 &kde-dir;/share &&
|
---|
| 80 | ln -svf /usr/share/polkit-1 &kde-dir;/share</userinput></screen>
|
---|
[8d86c672] | 81 |
|
---|
[c4fbedc] | 82 | <para>D-Bus also needs to find the configuration files for the system-wide
|
---|
| 83 | bus, which, if you follow the books instructions, are installed in
|
---|
[2cfb44a4] | 84 | <filename class="directory">/etc/kde/dbus-1/system.d</filename>.
|
---|
[c4fbedc] | 85 | Fix this by issuing the following (as
|
---|
| 86 | <systemitem class="username">root</systemitem>):</para>
|
---|
| 87 |
|
---|
[d298c5f] | 88 | <screen role="root"><userinput>mkdir -pv /etc/dbus-1 &&
|
---|
[2a7334e8] | 89 | cat > /etc/dbus-1/system-local.conf << EOF
|
---|
[c4fbedc] | 90 | <literal><!DOCTYPE busconfig PUBLIC
|
---|
| 91 | "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
|
---|
| 92 | "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
|
---|
| 93 | <busconfig>
|
---|
| 94 |
|
---|
[2cfb44a4] | 95 | <includedir>/etc/kde/dbus-1/system.d</includedir>
|
---|
[c4fbedc] | 96 |
|
---|
| 97 | </busconfig></literal>
|
---|
| 98 | EOF</userinput></screen>
|
---|
| 99 |
|
---|
[8d86c672] | 100 | <tip>
|
---|
[00785d8] | 101 | <para>Sometimes, the installation paths are coded into installed files.
|
---|
[2cfb44a4] | 102 | This is the reason why <filename class="directory">/opt/kde</filename>
|
---|
[00785d8] | 103 | is used as installation prefix instead of <filename
|
---|
[c9df31a] | 104 | class="directory">/opt/kde-&kde-version;</filename>. After installing
|
---|
[2cfb44a4] | 105 | <application>KDE</application>, you may rename the directory and create
|
---|
[00785d8] | 106 | a symlink:</para>
|
---|
[0e25c32] | 107 |
|
---|
[2cfb44a4] | 108 | <screen role="root"><userinput>mv /opt/kde{,-&kde-version;} &&
|
---|
| 109 | ln -svf kde-&kde-version; /opt/kde</userinput></screen>
|
---|
[00785d8] | 110 |
|
---|
| 111 | <para>Later on, you may want to install other versions of
|
---|
[c9df31a] | 112 | <application>KDE</application>. To do that, just remove the symlink and
|
---|
[2cfb44a4] | 113 | use <filename class="directory">/opt/kde</filename> as the prefix again
|
---|
[c9df31a] | 114 | (<application>KDE</application> must not be started). Which version of
|
---|
| 115 | <application>KDE</application> you use depends only on where the symlink
|
---|
[00785d8] | 116 | points to. No other reconfiguration will be needed.</para>
|
---|
[0e25c32] | 117 |
|
---|
| 118 | </tip>
|
---|
| 119 |
|
---|
| 120 | </sect2>
|
---|
| 121 | </sect1>
|
---|