[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 |
|
---|
[8e6f4f8] | 12 | <title>KDE4 Pre-installation Configuration</title>
|
---|
[0e25c32] | 13 |
|
---|
[97c713e] | 14 | <note><para>If you did not install <application>Xorg</application> in
|
---|
[f3429309] | 15 | <filename class="directory">/usr</filename>, some of the
|
---|
[97c713e] | 16 | <application>CMake</application> modules in <application>KDE</application>
|
---|
[b176eea] | 17 | look for packages at hard coded locations. To accommodate this issue,
|
---|
[e0ac6b0] | 18 | create the following symbolic link (as the root user):</para>
|
---|
[97c713e] | 19 |
|
---|
[e0ac6b0] | 20 | <screen role="root"><userinput>ln -sv $XORG_PREFIX /usr/X11R6</userinput></screen>
|
---|
[97c713e] | 21 | </note>
|
---|
| 22 |
|
---|
[0e25c32] | 23 | <sect2><title>Installing in /usr</title>
|
---|
[0d7900a] | 24 |
|
---|
[c9df31a] | 25 | <para>One option is to put <application>KDE</application> into the
|
---|
[00785d8] | 26 | <filename class='directory'>/usr</filename> hierarchy. This creates a
|
---|
[8d86c672] | 27 | simpler setup but makes it more difficult to try multiple versions of
|
---|
| 28 | <application>KDE</application>.</para>
|
---|
[0e25c32] | 29 |
|
---|
[c9df31a] | 30 | <screen><userinput>export &kde-dir-var;=/usr</userinput></screen>
|
---|
[0e25c32] | 31 | </sect2>
|
---|
[0d7900a] | 32 |
|
---|
[0e25c32] | 33 | <sect2><title>Installing in /opt</title>
|
---|
[0d7900a] | 34 |
|
---|
[0e25c32] | 35 | <para>A method of building multiple versions installs
|
---|
[c9df31a] | 36 | <application>KDE</application> in the <filename
|
---|
[0e25c32] | 37 | class='directory'>/opt</filename> hierarchy:</para>
|
---|
| 38 |
|
---|
[2cfb44a4] | 39 | <screen><userinput>export &kde-dir-var;=/opt/kde</userinput></screen>
|
---|
[0e25c32] | 40 |
|
---|
[c9df31a] | 41 | <para>If you are not installing <application>KDE</application> in
|
---|
[0e25c32] | 42 | <filename class="directory">/usr</filename>, you will need to make some
|
---|
[00785d8] | 43 | additional configuration changes. Best practice is to add those to your
|
---|
[2f1eeafe] | 44 | system (as <systemitem class="username">root</systemitem>) or personal
|
---|
| 45 | profile:</para>
|
---|
[0e25c32] | 46 |
|
---|
[2f1eeafe] | 47 | <screen role="root"><userinput>cat > /etc/profile.d/kde.sh << 'EOF'
|
---|
[2a7334e8] | 48 | <literal># Begin /etc/profile.d/kde.sh
|
---|
[0e25c32] | 49 |
|
---|
[2cfb44a4] | 50 | &kde-dir-var;=/opt/kde
|
---|
[c9df31a] | 51 | KDEDIR=&kde-dir;
|
---|
[0e25c32] | 52 |
|
---|
[c9df31a] | 53 | pathappend &kde-dir;/bin PATH
|
---|
| 54 | pathappend &kde-dir;/lib/pkgconfig PKG_CONFIG_PATH
|
---|
| 55 | pathappend &kde-dir;/share/pkgconfig PKG_CONFIG_PATH
|
---|
| 56 | pathappend &kde-dir;/share XDG_DATA_DIRS
|
---|
[bb8004d] | 57 | pathappend &kde-dir;/share/man MANPATH
|
---|
[2cfb44a4] | 58 | pathappend /etc/kde/xdg XDG_CONFIG_DIRS
|
---|
[0e25c32] | 59 |
|
---|
[2cfb44a4] | 60 | export &kde-dir-var; KDEDIR
|
---|
[0e25c32] | 61 |
|
---|
[2a7334e8] | 62 | # End /etc/profile.d/kde.sh</literal>
|
---|
[0e25c32] | 63 | EOF
|
---|
| 64 | </userinput></screen>
|
---|
| 65 |
|
---|
| 66 | <para>Add to your <filename>/etc/ld.so.conf</filename>:</para>
|
---|
| 67 |
|
---|
[2a7334e8] | 68 | <screen role="root"><userinput>cat >> /etc/ld.so.conf << EOF
|
---|
[2cfb44a4] | 69 | <literal># Begin kde addition
|
---|
[0e25c32] | 70 |
|
---|
[2cfb44a4] | 71 | /opt/kde/lib
|
---|
[0e25c32] | 72 |
|
---|
[2cfb44a4] | 73 | # End kde addition</literal>
|
---|
[0e25c32] | 74 | EOF</userinput></screen>
|
---|
| 75 |
|
---|
[c9df31a] | 76 | <indexterm zone="kde-pre-install-config">
|
---|
[0e25c32] | 77 | <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
|
---|
| 78 | </indexterm>
|
---|
| 79 |
|
---|
[0d7900a] | 80 | <para>Several KDE packages install files into D-Bus and polkit directories.
|
---|
| 81 | When installing KDE in a location other than <filename class="directory">/usr</filename>,
|
---|
| 82 | D-Bus and polkit need to find these files. The easiest way to achieve this is to create
|
---|
[8d86c672] | 83 | the following symlinks (as the <systemitem class="username">root</systemitem> user):</para>
|
---|
[00785d8] | 84 |
|
---|
[2cfb44a4] | 85 | <screen role="root"><userinput>install -d &kde-dir;/share &&
|
---|
| 86 | ln -svf /usr/share/dbus-1 &kde-dir;/share &&
|
---|
| 87 | ln -svf /usr/share/polkit-1 &kde-dir;/share</userinput></screen>
|
---|
[0d7900a] | 88 |
|
---|
[8d86c672] | 89 | <tip>
|
---|
[00785d8] | 90 | <para>Sometimes, the installation paths are coded into installed files.
|
---|
[2cfb44a4] | 91 | This is the reason why <filename class="directory">/opt/kde</filename>
|
---|
[00785d8] | 92 | is used as installation prefix instead of <filename
|
---|
[c9df31a] | 93 | class="directory">/opt/kde-&kde-version;</filename>. After installing
|
---|
[2cfb44a4] | 94 | <application>KDE</application>, you may rename the directory and create
|
---|
[00785d8] | 95 | a symlink:</para>
|
---|
[0e25c32] | 96 |
|
---|
[2cfb44a4] | 97 | <screen role="root"><userinput>mv /opt/kde{,-&kde-version;} &&
|
---|
| 98 | ln -svf kde-&kde-version; /opt/kde</userinput></screen>
|
---|
[00785d8] | 99 |
|
---|
| 100 | <para>Later on, you may want to install other versions of
|
---|
[c9df31a] | 101 | <application>KDE</application>. To do that, just remove the symlink and
|
---|
[2cfb44a4] | 102 | use <filename class="directory">/opt/kde</filename> as the prefix again
|
---|
[c9df31a] | 103 | (<application>KDE</application> must not be started). Which version of
|
---|
| 104 | <application>KDE</application> you use depends only on where the symlink
|
---|
[00785d8] | 105 | points to. No other reconfiguration will be needed.</para>
|
---|
[0e25c32] | 106 |
|
---|
| 107 | </tip>
|
---|
| 108 |
|
---|
| 109 | </sect2>
|
---|
| 110 | </sect1>
|
---|