source: lxqt/desktop/pre-install.xml@ 0639bb6

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules 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 0639bb6 was 0639bb6, checked in by Bruce Dubbs <bdubbs@…>, 7 years ago

More spelling fixes

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

  • Property mode set to 100644
File size: 8.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="lxqt-pre-install" xreflabel="LXQt Pre-Install">
9 <?dbhtml filename="pre-install.html"?>
10
11 <sect1info>
12 <othername>$LastChangedBy$</othername>
13 <date>$Date$</date>
14 </sect1info>
15
16 <title>LXQt Desktop Pre-Install Instructions</title>
17
18 <indexterm zone="lxqt-pre-install">
19 <primary sortas="g-lxqt-pre-install">LXQt Pre-Install</primary>
20 </indexterm>
21
22 <caution>
23 <para>
24 Due to recent changes in <command>grep</command> it is essential that
25 the installing system be set to an UTF-8 locale. An example
26 is <command>export LANG=en_US.UTF-8</command>, but any UTF-8 locale is
27 sufficient. Failure to do this will result in a faulty installation.
28 </para>
29 </caution>
30
31 <para>
32 LXQt can be installed in /usr or /opt/lxqt.
33 </para>
34
35 <sect2>
36 <title>Installing in /usr</title>
37
38 <para>
39 Installing in <filename class="directory">/usr</filename> creates
40 a simpler setup. Run:
41 </para>
42
43<screen><userinput>export LXQT_PREFIX=/usr</userinput></screen>
44
45 <para>
46 Either add that to your own <filename>.bash_profile</filename>
47 so that it will still be set if you build the packages over a
48 period of time, or else add it to the system profile as the
49 <systemitem class="username">root</systemitem> user:
50 </para>
51
52<screen role="root"><userinput>cat &gt; /etc/profile.d/lxqt.sh &lt;&lt; "EOF"
53<literal># Begin LXQt profile
54
55export LXQT_PREFIX=/usr
56
57# End LXQt profile</literal>
58EOF</userinput></screen>
59
60 <para>
61 There is no other configuration needed to install LXQt in
62 <filename class="directory">/usr</filename>.
63 </para>
64
65 </sect2>
66
67 <sect2>
68 <title>Installing in /opt/lxqt</title>
69
70 <para>
71 Installing in <filename class="directory">/opt/lxqt</filename> may
72 simplify upgrading to a later version of LXQt.
73 </para>
74
75 <para>
76 Some variables need to be defined in your system profile, as the
77 <systemitem class="username">root</systemitem> user:
78 </para>
79
80<screen role="root"><userinput>install -vdm755 /opt/lxqt/{bin,lib,share/man}
81
82cat &gt; /etc/profile.d/lxqt.sh &lt;&lt; "EOF"
83<literal># Begin LXQt profile
84
85export LXQT_PREFIX=/opt/lxqt
86
87pathappend /opt/lxqt/bin PATH
88pathappend /opt/lxqt/share/man/ MANPATH
89pathappend /opt/lxqt/lib/pkgconfig PKG_CONFIG_PATH
90pathappend /opt/lxqt/lib/plugins QT_PLUGIN_PATH
91
92# End LXQt profile</literal>
93EOF
94
95cat &gt;&gt; /etc/profile.d/qt5.sh &lt;&lt; "EOF"
96<literal>
97# Begin Qt5 changes for LXQt
98
99pathappend $QT5DIR/plugins QT_PLUGIN_PATH
100
101# End Qt5 changes for LXQt</literal>
102EOF</userinput></screen>
103
104 <para>
105 Expand your <filename>/etc/ld.so.conf</filename> file:
106 </para>
107
108<screen role="root"><userinput>cat &gt;&gt; /etc/ld.so.conf &lt;&lt; "EOF"
109<literal>
110# Begin LXQt addition
111
112/opt/lxqt/lib
113
114# End LXQt addition
115</literal>
116EOF</userinput></screen>
117
118 <para>
119 Before starting to install the packages in the following pages, remember
120 to execute:
121 </para>
122
123<screen><userinput>source /etc/profile</userinput></screen>
124
125 <para>
126 Some packages from the KDE Frameworks 5 bundle install files into D-Bus
127 directories. In order to have D-Bus find those files, the easiest
128 way is to create a symlink. Some packages may also install icons from
129 the <quote>hicolor</quote> icon set. Since that icon set is used by many
130 packages, it is a good idea to create a symlink to the one in <filename
131 class="directory">/usr/share</filename> to avoid having multiple
132 installations of <xref linkend="hicolor-icon-theme"/>. Run the
133 following commands as the <systemitem class="username">root</systemitem>
134 user:
135 </para>
136
137<screen role="root"><userinput>source /etc/profile &amp;&amp;
138install -v -dm755 $LXQT_PREFIX/share/icons &amp;&amp;
139ln -sfv /usr/share/icons/hicolor $LXQT_PREFIX/share/icons &amp;&amp;
140ln -sfv /usr/share/dbus-1 $LXQT_PREFIX/share </userinput></screen>
141
142 <tip>
143 <para>
144 Sometimes, the installation paths are hardcoded into installed files.
145 This is the reason why <filename class="directory">/opt/lxqt</filename>
146 is used as installation prefix instead of <filename
147 class="directory">/opt/lxqt-&lxqt-version;</filename>. After installing
148 <application>LXQt Desktop</application>, you may rename the directory
149 and create a symlink:
150 </para>
151
152<screen role="root"><userinput>mv /opt/lxqt{,-&lxqt-version;}
153ln -sfv lxqt-&lxqt-version; /opt/lxqt</userinput></screen>
154
155 <para>
156 Later on, you may want to install other versions of <application>LXQt
157 Desktop</application>. To do that, just remove the symlink and use
158 <filename class="directory">/opt/lxqt</filename> as the prefix again.
159 Which version of <application>LXQt Desktop</application> you use
160 depends only on where the symlink points. No other reconfiguration will
161 be needed.
162 </para>
163 </tip>
164
165 </sect2>
166
167 <sect2>
168 <title>Notes about building LXQt dependencies</title>
169
170 <para>
171 <application>LXQt</application> obviously needs <xref linkend="qt5"/>,
172 but not all Qt5 modules and dependencies are necessary. Since the aim
173 of <application>LXQt</application> is to be light weight, it may be
174 interesting to cut down the Qt5 overhead, and to build only parts of it.
175 To build Qt and LXQT dependencies, the proposed order is the following:
176 </para>
177
178 <procedure>
179 <step>
180 <para>
181 Build <xref linkend="linux-pam"/>, <xref linkend="shadow"/>,
182 and <xref linkend="sudo"/>, with their dependencies
183 </para>
184 </step>
185
186 <step>
187 <para>
188 Build the whole <xref linkend="x-window-system"/> chapter, with
189 Wayland support, and replacing twm vith <xref linkend="openbox"/>
190 (and its required dependencies). Some Xorg applications and fonts
191 may be omitted, but with a negligible impact on build time and size
192 </para>
193 </step>
194
195 <step>
196 <para>
197 Build <xref linkend="gtk2"/> and its required and recommended
198 dependencies. GTK+2 is needed for <xref linkend="libfm"/>, and
199 brings the <command>gtk-update-icon-cache</command> executable,
200 which is needed by libqtxdg
201 </para>
202 </step>
203
204 <step>
205 <para>
206 Build required Qt dependencies, and some of the recommended or
207 optional dependencies, namely:
208 <xref linkend="dbus"/>,
209 <xref linkend="alsa-lib"/>,
210 <xref linkend="pulseaudio"/>, and
211 <xref linkend="libxkbcommon"/>
212 </para>
213 </step>
214
215 <step>
216 <para>
217 Build the required parts of <xref linkend="qt5"/>. To skip all
218 modules but the four needed for LXQt, do:
219 </para>
220<screen role="nodump"><userinput>ls -Fd qt* | grep / | sed 's/^/-skip /;s/qt//;s@/@@' > tempconf
221sed -i '/base/d;/tools/d;/x11extras/d;/svg/d' tempconf
222# if you plan to build SDDM, add:
223sed -i '/declarative/d'
224./configure &lt;book flags&gt; $(cat tempconf)</userinput></screen>
225 <para>
226 The time needed to complete the Qt installation is thus reduced to
227 around 6 SBU
228 </para>
229 </step>
230
231 <step>
232 <para>
233 Build miscellaneous dependencies (with their required ones):
234 <xref linkend="libstatgrab"/>,
235 <xref linkend="polkit"/>,
236 <phrase revision="sysv">
237 <xref linkend="consolekit"/>,
238 <xref linkend="pm-utils"/>,
239 </phrase>
240 <xref linkend="lm_sensors"/>,
241 <xref linkend="upower"/>, and
242 <xref linkend="libfm"/>. If <xref linkend="cmake"/> has not been
243 built during the preceding steps, build it now
244 </para>
245 </step>
246
247 <step>
248 <para>
249 Build KDE frameworks dependencies:
250 <xref linkend="extra-cmake-modules"/>,
251 <xref linkend="libdbusmenu-qt"/>, and
252 <xref linkend="polkit-qt"/>
253 </para>
254 </step>
255
256 <step>
257 <para>
258 Finally, build some desktop utilities:
259 <xref linkend="xdg-utils"/> (needs only xmlto),
260 <xref linkend="xdg-user-dirs"/>,
261 <xref linkend="oxygen-icons5"/> or other sets of icons
262 </para>
263 </step>
264 </procedure>
265
266 </sect2>
267
268</sect1>
Note: See TracBrowser for help on using the repository browser.