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