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 > /etc/profile.d/lxqt.sh << "EOF"
|
---|
39 | <literal># Begin LXQt profile
|
---|
40 | export LXQT_PREFIX=/usr
|
---|
41 | # End LXQt profile</literal>
|
---|
42 | EOF</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 |
|
---|
66 | cat > /etc/profile.d/lxqt.sh << "EOF"
|
---|
67 | <literal># Begin LXQt profile
|
---|
68 | export LXQT_PREFIX=/opt/lxqt
|
---|
69 |
|
---|
70 | pathappend /opt/lxqt/bin PATH
|
---|
71 | pathappend /opt/lxqt/share/man/ MANPATH
|
---|
72 | pathappend /opt/lxqt/lib/pkgconfig PKG_CONFIG_PATH
|
---|
73 | pathappend /opt/lxqt/lib/plugins QT_PLUGIN_PATH
|
---|
74 |
|
---|
75 | export CMAKE_PREFIX_PATH=$LXQT_PREFIX
|
---|
76 | # End LXQt profile</literal>
|
---|
77 | EOF
|
---|
78 |
|
---|
79 | cat >> /etc/profile.d/qt5.sh << "EOF"
|
---|
80 | <literal># Begin Qt5 changes for LXQt
|
---|
81 | pathappend $QT5DIR/plugins QT_PLUGIN_PATH
|
---|
82 | # End Qt5 changes for LXQt</literal>
|
---|
83 | EOF</userinput></screen>
|
---|
84 |
|
---|
85 | <para>
|
---|
86 | Expand your <filename>/etc/ld.so.conf</filename> file:
|
---|
87 | </para>
|
---|
88 |
|
---|
89 | <screen role="root"><userinput>cat >> /etc/ld.so.conf << "EOF"
|
---|
90 | <literal># Begin LXQt addition
|
---|
91 | /opt/lxqt/lib
|
---|
92 | # End LXQt addition
|
---|
93 | </literal>
|
---|
94 | EOF</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 &&
|
---|
111 | install -v -dm755 $LXQT_PREFIX &&
|
---|
112 | ln -sfv /usr/share $LXQT_PREFIX</userinput></screen>
|
---|
113 |
|
---|
114 | <!--install -v -dm755 $LXQT_PREFIX/share/icons &&-->
|
---|
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;}
|
---|
126 | ln -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
|
---|
187 | sed -i '/base/d;/tools/d;/x11extras/d;/svg/d;/declarative/d;/wayland/d' tempconf
|
---|
188 | ./configure <book flags> $(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="libexif"/>,
|
---|
199 | <xref linkend="libstatgrab"/>,
|
---|
200 | <xref linkend="lm_sensors"/>,
|
---|
201 | <xref linkend="menu-cache"/>,
|
---|
202 |
|
---|
203 | <phrase revision="sysv">
|
---|
204 | <xref linkend="pm-utils"/>,
|
---|
205 | </phrase>
|
---|
206 |
|
---|
207 | <xref linkend="alsa-lib"/>,<!--recommended for pulseaudio, so has to
|
---|
208 | be here since we tell to build only required dependencies.-->
|
---|
209 | <xref linkend="polkit"/>,
|
---|
210 | <xref linkend="pulseaudio"/>, and
|
---|
211 | <xref linkend="upower"/>.
|
---|
212 | </para>
|
---|
213 | </step>
|
---|
214 |
|
---|
215 | <step>
|
---|
216 | <para>
|
---|
217 | Build KDE frameworks dependencies:
|
---|
218 | <xref linkend="extra-cmake-modules"/>,
|
---|
219 | <xref linkend="libdbusmenu-qt"/>,
|
---|
220 | <xref linkend="plasma-wayland-protocols"/>, and
|
---|
221 | <xref linkend="polkit-qt"/>.
|
---|
222 | </para>
|
---|
223 | </step>
|
---|
224 |
|
---|
225 | <step>
|
---|
226 | <para>
|
---|
227 | Finally, build some desktop utilities:
|
---|
228 | <xref linkend="breeze-icons"/> or other sets of icons,
|
---|
229 | <xref linkend="hicolor-icon-theme"/>,
|
---|
230 | <xref linkend="desktop-file-utils"/> (needed to update the
|
---|
231 | desktop database),
|
---|
232 | <xref linkend="shared-mime-info"/> (needed to update the mime
|
---|
233 | database),
|
---|
234 | <xref linkend="xdg-utils"/> (needs only xmlto), and
|
---|
235 | <xref linkend="xdg-user-dirs"/>.
|
---|
236 | </para>
|
---|
237 | </step>
|
---|
238 | </procedure>
|
---|
239 |
|
---|
240 | </sect2>
|
---|
241 |
|
---|
242 | </sect1>
|
---|