[5af3a383] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ece8268a] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
[5af3a383] | 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
[2341740] | 8 | <sect1 id="lxqt-pre-install" xreflabel="LXQt Pre-Install">
|
---|
[5af3a383] | 9 | <?dbhtml filename="pre-install.html"?>
|
---|
| 10 |
|
---|
| 11 |
|
---|
| 12 | <title>LXQt Desktop Pre-Install Instructions</title>
|
---|
| 13 |
|
---|
[ece8268a] | 14 | <indexterm zone="lxqt-pre-install">
|
---|
[2341740] | 15 | <primary sortas="g-lxqt-pre-install">LXQt Pre-Install</primary>
|
---|
[ece8268a] | 16 | </indexterm>
|
---|
[3368ef4] | 17 |
|
---|
[ece8268a] | 18 | <caution>
|
---|
| 19 | <para>
|
---|
| 20 | Due to recent changes in <command>grep</command> it is essential that
|
---|
[f50481de] | 21 | the installing system be set to a UTF-8 locale. An example
|
---|
[31be310] | 22 | is <command>export LANG=en_US.UTF-8</command>, but any UTF-8 locale is
|
---|
[ece8268a] | 23 | sufficient. Failure to do this will result in a faulty installation.
|
---|
| 24 | </para>
|
---|
| 25 | </caution>
|
---|
[3368ef4] | 26 |
|
---|
[6073ef0] | 27 | <para>
|
---|
| 28 | LXQt can be installed in /usr or /opt/lxqt.
|
---|
| 29 | </para>
|
---|
| 30 |
|
---|
[ece8268a] | 31 | <sect2>
|
---|
| 32 | <title>Installing in /usr</title>
|
---|
[6073ef0] | 33 |
|
---|
| 34 | <para>
|
---|
| 35 | Installing in <filename class="directory">/usr</filename> creates
|
---|
[ece8268a] | 36 | a simpler setup. Run:
|
---|
| 37 | </para>
|
---|
[6073ef0] | 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 |
|
---|
[2341740] | 48 | <screen role="root"><userinput>cat > /etc/profile.d/lxqt.sh << "EOF"
|
---|
| 49 | <literal># Begin LXQt profile
|
---|
[6073ef0] | 50 |
|
---|
| 51 | export LXQT_PREFIX=/usr
|
---|
| 52 |
|
---|
[2341740] | 53 | # End LXQt profile</literal>
|
---|
[6073ef0] | 54 | EOF</userinput></screen>
|
---|
| 55 |
|
---|
| 56 | <para>
|
---|
[ece8268a] | 57 | There is no other configuration needed to install LXQt in
|
---|
| 58 | <filename class="directory">/usr</filename>.
|
---|
[6073ef0] | 59 | </para>
|
---|
| 60 |
|
---|
| 61 | </sect2>
|
---|
| 62 |
|
---|
[5af3a383] | 63 | <sect2>
|
---|
| 64 | <title>Installing in /opt/lxqt</title>
|
---|
| 65 |
|
---|
| 66 | <para>
|
---|
[2341740] | 67 | Installing in <filename class="directory">/opt/lxqt</filename> may
|
---|
| 68 | simplify upgrading to a later version of LXQt.
|
---|
[5af3a383] | 69 | </para>
|
---|
| 70 |
|
---|
| 71 | <para>
|
---|
| 72 | Some variables need to be defined in your system profile, as the
|
---|
[b8edcab8] | 73 | <systemitem class="username">root</systemitem> user:
|
---|
[5af3a383] | 74 | </para>
|
---|
| 75 |
|
---|
[ece8268a] | 76 | <screen role="root"><userinput>install -vdm755 /opt/lxqt/{bin,lib,share/man}
|
---|
[5af3a383] | 77 |
|
---|
[ece8268a] | 78 | cat > /etc/profile.d/lxqt.sh << "EOF"
|
---|
[2341740] | 79 | <literal># Begin LXQt profile
|
---|
[5af3a383] | 80 |
|
---|
[6073ef0] | 81 | export LXQT_PREFIX=/opt/lxqt
|
---|
| 82 |
|
---|
[d8efa96] | 83 | pathappend /opt/lxqt/bin PATH
|
---|
| 84 | pathappend /opt/lxqt/share/man/ MANPATH
|
---|
| 85 | pathappend /opt/lxqt/lib/pkgconfig PKG_CONFIG_PATH
|
---|
[ece8268a] | 86 | pathappend /opt/lxqt/lib/plugins QT_PLUGIN_PATH
|
---|
[5af3a383] | 87 |
|
---|
[2341740] | 88 | # End LXQt profile</literal>
|
---|
[ece8268a] | 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>
|
---|
[5af3a383] | 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"
|
---|
[20f09631] | 105 | <literal>
|
---|
| 106 | # Begin LXQt addition
|
---|
[5af3a383] | 107 |
|
---|
| 108 | /opt/lxqt/lib
|
---|
| 109 |
|
---|
[20f09631] | 110 | # End LXQt addition
|
---|
| 111 | </literal>
|
---|
[5af3a383] | 112 | EOF</userinput></screen>
|
---|
| 113 |
|
---|
[ece8268a] | 114 | <para>
|
---|
| 115 | Before starting to install the packages in the following pages, remember
|
---|
| 116 | to execute:
|
---|
| 117 | </para>
|
---|
[5af3a383] | 118 |
|
---|
| 119 | <screen><userinput>source /etc/profile</userinput></screen>
|
---|
| 120 |
|
---|
| 121 | <para>
|
---|
[ece8268a] | 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
|
---|
[31be310] | 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
|
---|
[ece8268a] | 127 | class="directory">/usr/share</filename> to avoid having multiple
|
---|
[31be310] | 128 | installations of <xref linkend="hicolor-icon-theme"/>. Run the
|
---|
[ece8268a] | 129 | following commands as the <systemitem class="username">root</systemitem>
|
---|
| 130 | user:
|
---|
[5af3a383] | 131 | </para>
|
---|
| 132 |
|
---|
[6073ef0] | 133 | <screen role="root"><userinput>source /etc/profile &&
|
---|
| 134 | install -v -dm755 $LXQT_PREFIX/share/icons &&
|
---|
[4ea888eb] | 135 | ln -sfv /usr/share/icons/hicolor $LXQT_PREFIX/share/icons &&
|
---|
| 136 | ln -sfv /usr/share/dbus-1 $LXQT_PREFIX/share </userinput></screen>
|
---|
[5af3a383] | 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 |
|
---|
[31be310] | 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:
|
---|
[737f339] | 204 | <xref linkend="openssl10"/>,
|
---|
[31be310] | 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:
|
---|
[737f339] | 220 | sed -i '/declarative/d' tempconf
|
---|
[31be310] | 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>
|
---|
[0639bb6] | 230 | Build miscellaneous dependencies (with their required ones):
|
---|
[737f339] | 231 | <xref linkend="libexif"/>,
|
---|
[31be310] | 232 | <xref linkend="libstatgrab"/>,
|
---|
| 233 | <xref linkend="polkit"/>,
|
---|
| 234 | <phrase revision="sysv">
|
---|
[737f339] | 235 | <xref linkend="consolekit"/> (after polkit),
|
---|
[31be310] | 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 |
|
---|
[5af3a383] | 266 | </sect1>
|
---|