2011-03-10 04:39:52 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
|
|
|
|
2012-04-06 09:50:36 +08:00
|
|
|
<sect1 id="kde-pre-install-config">
|
2011-03-10 04:39:52 +08:00
|
|
|
<?dbhtml filename="pre-install-config.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
2012-04-06 09:50:36 +08:00
|
|
|
<title>KDE Pre-installation Configuration</title>
|
2011-03-10 04:39:52 +08:00
|
|
|
|
|
|
|
<sect2><title>Installing in /usr</title>
|
2012-01-11 05:25:24 +08:00
|
|
|
|
2012-04-06 09:50:36 +08:00
|
|
|
<para>One option is to put <application>KDE</application> into the
|
2012-01-11 05:25:24 +08:00
|
|
|
<filename class='directory'>/usr</filename> hierarchy. This creates a
|
2012-03-16 21:30:16 +08:00
|
|
|
simpler setup but makes it more difficult to try multiple versions of
|
|
|
|
<application>KDE</application>.</para>
|
2011-03-10 04:39:52 +08:00
|
|
|
|
2012-04-06 09:50:36 +08:00
|
|
|
<screen><userinput>export &kde-dir-var;=/usr</userinput></screen>
|
2011-03-10 04:39:52 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2><title>Installing in /opt</title>
|
2012-01-11 05:25:24 +08:00
|
|
|
|
2011-03-10 04:39:52 +08:00
|
|
|
<para>A method of building multiple versions installs
|
2012-04-06 09:50:36 +08:00
|
|
|
<application>KDE</application> in the <filename
|
2011-03-10 04:39:52 +08:00
|
|
|
class='directory'>/opt</filename> hierarchy:</para>
|
|
|
|
|
2012-07-14 18:38:15 +08:00
|
|
|
<screen><userinput>export &kde-dir-var;=/opt/kde</userinput></screen>
|
2011-03-10 04:39:52 +08:00
|
|
|
|
2012-04-06 09:50:36 +08:00
|
|
|
<para>If you are not installing <application>KDE</application> in
|
2011-03-10 04:39:52 +08:00
|
|
|
<filename class="directory">/usr</filename>, you will need to make some
|
2012-01-11 05:25:24 +08:00
|
|
|
additional configuration changes. Best practice is to add those to your
|
2011-03-10 04:39:52 +08:00
|
|
|
system or personal profile:</para>
|
|
|
|
|
2012-07-14 18:38:15 +08:00
|
|
|
<screen><userinput>cat > /etc/profile.d/kde.sh << "EOF"
|
|
|
|
# Begin /etc/profile.d/kde.sh
|
2011-03-10 04:39:52 +08:00
|
|
|
|
2012-07-14 18:38:15 +08:00
|
|
|
&kde-dir-var;=/opt/kde
|
2012-04-06 09:50:36 +08:00
|
|
|
KDEDIR=&kde-dir;
|
2011-03-10 04:39:52 +08:00
|
|
|
|
2012-04-06 09:50:36 +08:00
|
|
|
pathappend &kde-dir;/bin PATH
|
|
|
|
pathappend &kde-dir;/lib/pkgconfig PKG_CONFIG_PATH
|
|
|
|
pathappend &kde-dir;/share/pkgconfig PKG_CONFIG_PATH
|
|
|
|
pathappend &kde-dir;/share XDG_DATA_DIRS
|
2012-07-14 18:38:15 +08:00
|
|
|
pathappend /etc/kde/xdg XDG_CONFIG_DIRS
|
2011-03-10 04:39:52 +08:00
|
|
|
|
2012-07-14 18:38:15 +08:00
|
|
|
export &kde-dir-var; KDEDIR
|
2011-03-10 04:39:52 +08:00
|
|
|
|
2012-07-14 18:38:15 +08:00
|
|
|
# End /etc/profile.d/kde.sh
|
2011-03-10 04:39:52 +08:00
|
|
|
EOF
|
|
|
|
</userinput></screen>
|
|
|
|
|
|
|
|
<para>Add to your <filename>/etc/ld.so.conf</filename>:</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>cat >> /etc/ld.so.conf << "EOF"
|
2012-07-14 18:38:15 +08:00
|
|
|
<literal># Begin kde addition
|
2011-03-10 04:39:52 +08:00
|
|
|
|
2012-07-14 18:38:15 +08:00
|
|
|
/opt/kde/lib
|
2011-03-10 04:39:52 +08:00
|
|
|
|
2012-07-14 18:38:15 +08:00
|
|
|
# End kde addition</literal>
|
2011-03-10 04:39:52 +08:00
|
|
|
EOF</userinput></screen>
|
|
|
|
|
2012-04-06 09:50:36 +08:00
|
|
|
<indexterm zone="kde-pre-install-config">
|
2011-03-10 04:39:52 +08:00
|
|
|
<primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
2012-04-15 19:25:23 +08:00
|
|
|
<para>Several KDE packages install files into D-Bus and polkit directories.
|
2012-04-06 09:50:36 +08:00
|
|
|
When installing KDE in a location other than <filename class="directory">/usr</filename>,
|
2012-04-15 19:25:23 +08:00
|
|
|
D-Bus and polkit need to find these files. The easiest way to achieve this is to create
|
2012-03-16 21:30:16 +08:00
|
|
|
the following symlinks (as the <systemitem class="username">root</systemitem> user):</para>
|
2012-01-11 05:25:24 +08:00
|
|
|
|
2012-07-14 18:38:15 +08:00
|
|
|
<screen role="root"><userinput>install -d &kde-dir;/share &&
|
|
|
|
ln -svf /usr/share/dbus-1 &kde-dir;/share &&
|
|
|
|
ln -svf /usr/share/polkit-1 &kde-dir;/share</userinput></screen>
|
2012-03-16 21:30:16 +08:00
|
|
|
|
2012-04-15 19:25:23 +08:00
|
|
|
<para>D-Bus also needs to find the configuration files for the system-wide
|
|
|
|
bus, which, if you follow the books instructions, are installed in
|
2012-07-14 18:38:15 +08:00
|
|
|
<filename class="directory">/etc/kde/dbus-1/system.d</filename>.
|
2012-04-15 19:25:23 +08:00
|
|
|
Fix this by issuing the following (as
|
|
|
|
<systemitem class="username">root</systemitem>):</para>
|
|
|
|
|
2012-07-03 03:00:36 +08:00
|
|
|
<screen role="root"><userinput>mkdir -pv /etc/dbus-1 &&
|
|
|
|
cat > /etc/dbus-1/system-local.conf << "EOF"
|
2012-04-15 19:25:23 +08:00
|
|
|
<literal><!DOCTYPE busconfig PUBLIC
|
|
|
|
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
|
|
|
|
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
|
|
|
|
<busconfig>
|
|
|
|
|
2012-07-14 18:38:15 +08:00
|
|
|
<includedir>/etc/kde/dbus-1/system.d</includedir>
|
2012-04-15 19:25:23 +08:00
|
|
|
|
|
|
|
</busconfig></literal>
|
|
|
|
EOF</userinput></screen>
|
|
|
|
|
2012-03-16 21:30:16 +08:00
|
|
|
<tip>
|
2012-01-11 05:25:24 +08:00
|
|
|
<para>Sometimes, the installation paths are coded into installed files.
|
2012-07-14 18:38:15 +08:00
|
|
|
This is the reason why <filename class="directory">/opt/kde</filename>
|
2012-01-11 05:25:24 +08:00
|
|
|
is used as installation prefix instead of <filename
|
2012-04-06 09:50:36 +08:00
|
|
|
class="directory">/opt/kde-&kde-version;</filename>. After installing
|
2012-07-14 18:38:15 +08:00
|
|
|
<application>KDE</application>, you may rename the directory and create
|
2012-01-11 05:25:24 +08:00
|
|
|
a symlink:</para>
|
2011-03-10 04:39:52 +08:00
|
|
|
|
2012-07-14 18:38:15 +08:00
|
|
|
<screen role="root"><userinput>mv /opt/kde{,-&kde-version;} &&
|
|
|
|
ln -svf kde-&kde-version; /opt/kde</userinput></screen>
|
2012-01-11 05:25:24 +08:00
|
|
|
|
|
|
|
<para>Later on, you may want to install other versions of
|
2012-04-06 09:50:36 +08:00
|
|
|
<application>KDE</application>. To do that, just remove the symlink and
|
2012-07-14 18:38:15 +08:00
|
|
|
use <filename class="directory">/opt/kde</filename> as the prefix again
|
2012-04-06 09:50:36 +08:00
|
|
|
(<application>KDE</application> must not be started). Which version of
|
|
|
|
<application>KDE</application> you use depends only on where the symlink
|
2012-01-11 05:25:24 +08:00
|
|
|
points to. No other reconfiguration will be needed.</para>
|
2011-03-10 04:39:52 +08:00
|
|
|
|
|
|
|
</tip>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|