source: archive/core/pre-install-config.xml@ 48b59802

11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 48b59802 was 45ab6c7, checked in by Xi Ruoyao <xry111@…>, 3 years ago

more SVN prop clean up

Remove "$LastChanged$" everywhere, and also some unused $Date$

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