source: lxqt/desktop/pre-install.xml@ 6d90301

12.0 12.1 ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18
Last change on this file since 6d90301 was 6d90301, checked in by Pierre Labastie <pierre.labastie@…>, 12 months ago

Add json-glib as a dependency for lxqt-archiver

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