[66f4ab43] | 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>
|
---|
[06ddfc0] | 16 |
|
---|
[66f4ab43] | 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
|
---|
[532405b] | 35 | &root; user:
|
---|
[66f4ab43] | 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>
|
---|
[890ea89] | 45 | There is no other configuration needed to install LXQt in
|
---|
[66f4ab43] | 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
|
---|
[532405b] | 61 | &root; user:
|
---|
[66f4ab43] | 62 | </para>
|
---|
| 63 |
|
---|
[23a2a955] | 64 | <screen role="root"><userinput>install -vdm755 /opt/lxqt/{bin,lib}
|
---|
[66f4ab43] | 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
|
---|
[1c060d7] | 74 |
|
---|
[fccb7d3d] | 75 | export CMAKE_PREFIX_PATH=$LXQT_PREFIX
|
---|
| 76 | # End LXQt profile</literal>
|
---|
[66f4ab43] | 77 | EOF
|
---|
| 78 |
|
---|
| 79 | cat >> /etc/profile.d/qt5.sh << "EOF"
|
---|
[06ddfc0] | 80 | <literal># Begin Qt5 changes for LXQt
|
---|
[66f4ab43] | 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"
|
---|
[06ddfc0] | 90 | <literal># Begin LXQt addition
|
---|
[66f4ab43] | 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>
|
---|
[890ea89] | 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.
|
---|
[1c060d7] | 107 | Run the following commands as the &root; user:
|
---|
[66f4ab43] | 108 | </para>
|
---|
| 109 |
|
---|
[1c060d7] | 110 | <screen role="root"><userinput>source /etc/profile &&
|
---|
| 111 | install -v -dm755 $LXQT_PREFIX &&
|
---|
| 112 | ln -sfv /usr/share $LXQT_PREFIX</userinput></screen>
|
---|
[66f4ab43] | 113 |
|
---|
[0ea82524] | 114 | <!--install -v -dm755 $LXQT_PREFIX/share/icons &&-->
|
---|
[66f4ab43] | 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"/>,
|
---|
[4a313d2] | 155 | <xref linkend="libpwquality"/>, and <xref linkend="sudo"/>, with
|
---|
| 156 | their dependencies.
|
---|
[66f4ab43] | 157 | </para>
|
---|
| 158 | </step>
|
---|
| 159 |
|
---|
| 160 | <step>
|
---|
| 161 | <para>
|
---|
[4a313d2] | 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.
|
---|
[66f4ab43] | 168 | </para>
|
---|
| 169 | </step>
|
---|
[1c060d7] | 170 |
|
---|
[66f4ab43] | 171 | <step>
|
---|
| 172 | <para>
|
---|
[4a313d2] | 173 | Build some of the recommended Qt dependencies, namely:
|
---|
[06ddfc0] | 174 | <xref linkend="double-conversion"/>,
|
---|
| 175 | <xref linkend="libjpeg"/>,
|
---|
| 176 | <xref linkend="libxkbcommon"/>, and
|
---|
[4a313d2] | 177 | <xref linkend="sqlite"/>.
|
---|
[66f4ab43] | 178 | </para>
|
---|
| 179 | </step>
|
---|
| 180 |
|
---|
| 181 | <step>
|
---|
| 182 | <para>
|
---|
| 183 | Build the required parts of <xref linkend="qt5"/>. To skip all
|
---|
[8133796] | 184 | modules but the those needed for LXQt, do:
|
---|
[66f4ab43] | 185 | </para>
|
---|
[4a313d2] | 186 | <screen role="nodump"><userinput>ls -Fd qt* | grep / | sed 's/^/-skip /;s@/@@' > tempconf
|
---|
[4b58de7] | 187 | sed -ir '/base|tools|x11extras|svg|declarative|wayland/d' tempconf
|
---|
[66f4ab43] | 188 | ./configure <book flags> $(cat tempconf)</userinput></screen>
|
---|
| 189 | <para>
|
---|
| 190 | The time needed to complete the Qt installation is thus reduced to
|
---|
[4a313d2] | 191 | around 11 SBU.
|
---|
[66f4ab43] | 192 | </para>
|
---|
| 193 | </step>
|
---|
| 194 |
|
---|
| 195 | <step>
|
---|
| 196 | <para>
|
---|
| 197 | Build miscellaneous dependencies (with their required ones):
|
---|
[6d90301] | 198 | <xref linkend="json-glib"/>,
|
---|
[66f4ab43] | 199 | <xref linkend="libexif"/>,
|
---|
| 200 | <xref linkend="libstatgrab"/>,
|
---|
[1cc6ea03] | 201 | <xref linkend="lm_sensors"/>,
|
---|
[890ea89] | 202 | <xref linkend="menu-cache"/>,
|
---|
[1cc6ea03] | 203 |
|
---|
[66f4ab43] | 204 | <phrase revision="sysv">
|
---|
| 205 | <xref linkend="pm-utils"/>,
|
---|
| 206 | </phrase>
|
---|
[1c060d7] | 207 |
|
---|
[4a313d2] | 208 | <xref linkend="alsa-lib"/>,<!--recommended for pulseaudio, so has to
|
---|
| 209 | be here since we tell to build only required dependencies.-->
|
---|
[1cc6ea03] | 210 | <xref linkend="polkit"/>,
|
---|
| 211 | <xref linkend="pulseaudio"/>, and
|
---|
| 212 | <xref linkend="upower"/>.
|
---|
[66f4ab43] | 213 | </para>
|
---|
| 214 | </step>
|
---|
| 215 |
|
---|
| 216 | <step>
|
---|
| 217 | <para>
|
---|
| 218 | Build KDE frameworks dependencies:
|
---|
| 219 | <xref linkend="extra-cmake-modules"/>,
|
---|
[8133796] | 220 | <xref linkend="libdbusmenu-qt"/>,
|
---|
| 221 | <xref linkend="plasma-wayland-protocols"/>, and
|
---|
[1cc6ea03] | 222 | <xref linkend="polkit-qt"/>.
|
---|
[66f4ab43] | 223 | </para>
|
---|
| 224 | </step>
|
---|
| 225 |
|
---|
| 226 | <step>
|
---|
| 227 | <para>
|
---|
| 228 | Finally, build some desktop utilities:
|
---|
[4a313d2] | 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"/>.
|
---|
[66f4ab43] | 237 | </para>
|
---|
| 238 | </step>
|
---|
| 239 | </procedure>
|
---|
| 240 |
|
---|
| 241 | </sect2>
|
---|
| 242 |
|
---|
| 243 | </sect1>
|
---|