source: archive/core/pre-install-config.xml

trunk
Last change on this file was 3f2db3a6, checked in by Pierre Labastie <pierre.labastie@…>, 17 months ago

Remove sect1info tags

They only contain a date tag that is nowhere used.

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