source: kde/intro/pre-install-config.xml@ c3c56b2

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since c3c56b2 was 2a7334e8, checked in by Ragnar Thomsen <rthomsen@…>, 12 years ago

Update to KDE 4.9.0 and a major overhaul of the section.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@10496 af4574ff-66df-0310-9fd7-8a98e5e911e0

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