[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
|
---|
| 35 | <systemitem class="username">root</systemitem> 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 | <systemitem class="username">root</systemitem> user:
|
---|
| 62 | </para>
|
---|
| 63 |
|
---|
| 64 | <screen role="root"><userinput>install -vdm755 /opt/lxqt/{bin,lib,share/man}
|
---|
| 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 | # End LXQt profile</literal>
|
---|
| 75 | EOF
|
---|
| 76 |
|
---|
| 77 | cat >> /etc/profile.d/qt5.sh << "EOF"
|
---|
[06ddfc0] | 78 | <literal># Begin Qt5 changes for LXQt
|
---|
[66f4ab43] | 79 | pathappend $QT5DIR/plugins QT_PLUGIN_PATH
|
---|
| 80 | # End Qt5 changes for LXQt</literal>
|
---|
| 81 | EOF</userinput></screen>
|
---|
| 82 |
|
---|
| 83 | <para>
|
---|
| 84 | Expand your <filename>/etc/ld.so.conf</filename> file:
|
---|
| 85 | </para>
|
---|
| 86 |
|
---|
| 87 | <screen role="root"><userinput>cat >> /etc/ld.so.conf << "EOF"
|
---|
[06ddfc0] | 88 | <literal># Begin LXQt addition
|
---|
[66f4ab43] | 89 | /opt/lxqt/lib
|
---|
| 90 | # End LXQt addition
|
---|
| 91 | </literal>
|
---|
| 92 | EOF</userinput></screen>
|
---|
| 93 |
|
---|
| 94 | <para>
|
---|
| 95 | Before starting to install the packages in the following pages, remember
|
---|
| 96 | to execute:
|
---|
| 97 | </para>
|
---|
| 98 |
|
---|
| 99 | <screen><userinput>source /etc/profile</userinput></screen>
|
---|
| 100 |
|
---|
| 101 | <para>
|
---|
| 102 | Some packages from the KDE Frameworks 5 bundle install files into D-Bus
|
---|
| 103 | directories. In order to have D-Bus find those files, the easiest
|
---|
| 104 | way is to create a symlink. Some packages may also install icons from
|
---|
| 105 | the <quote>hicolor</quote> icon set. Since that icon set is used by many
|
---|
| 106 | packages, it is a good idea to create a symlink to the one in <filename
|
---|
| 107 | class="directory">/usr/share</filename> to avoid having multiple
|
---|
| 108 | installations of <xref linkend="hicolor-icon-theme"/>. Run the
|
---|
| 109 | following commands as the <systemitem class="username">root</systemitem>
|
---|
| 110 | user:
|
---|
| 111 | </para>
|
---|
| 112 |
|
---|
| 113 | <screen role="root"><userinput>source /etc/profile &&
|
---|
| 114 | install -v -dm755 $LXQT_PREFIX/share/icons &&
|
---|
| 115 | ln -sfv /usr/share/icons/hicolor $LXQT_PREFIX/share/icons &&
|
---|
| 116 | ln -sfv /usr/share/dbus-1 $LXQT_PREFIX/share </userinput></screen>
|
---|
| 117 |
|
---|
| 118 | <tip>
|
---|
| 119 | <para>
|
---|
| 120 | Sometimes, the installation paths are hardcoded into installed files.
|
---|
| 121 | This is the reason why <filename class="directory">/opt/lxqt</filename>
|
---|
| 122 | is used as installation prefix instead of <filename
|
---|
| 123 | class="directory">/opt/lxqt-&lxqt-version;</filename>. After installing
|
---|
| 124 | <application>LXQt Desktop</application>, you may rename the directory
|
---|
| 125 | and create a symlink:
|
---|
| 126 | </para>
|
---|
| 127 |
|
---|
| 128 | <screen role="root"><userinput>mv /opt/lxqt{,-&lxqt-version;}
|
---|
| 129 | ln -sfv lxqt-&lxqt-version; /opt/lxqt</userinput></screen>
|
---|
| 130 |
|
---|
| 131 | <para>
|
---|
| 132 | Later on, you may want to install other versions of <application>LXQt
|
---|
| 133 | Desktop</application>. To do that, just remove the symlink and use
|
---|
| 134 | <filename class="directory">/opt/lxqt</filename> as the prefix again.
|
---|
| 135 | Which version of <application>LXQt Desktop</application> you use
|
---|
| 136 | depends only on where the symlink points. No other reconfiguration will
|
---|
| 137 | be needed.
|
---|
| 138 | </para>
|
---|
| 139 | </tip>
|
---|
| 140 |
|
---|
| 141 | </sect2>
|
---|
| 142 |
|
---|
| 143 | <sect2>
|
---|
| 144 | <title>Notes about building LXQt dependencies</title>
|
---|
| 145 |
|
---|
| 146 | <para>
|
---|
| 147 | <application>LXQt</application> obviously needs <xref linkend="qt5"/>,
|
---|
| 148 | but not all Qt5 modules and dependencies are necessary. Since the aim
|
---|
| 149 | of <application>LXQt</application> is to be light weight, it may be
|
---|
| 150 | interesting to cut down the Qt5 overhead, and to build only parts of it.
|
---|
| 151 | To build Qt and LXQT dependencies, the proposed order is the following:
|
---|
| 152 | </para>
|
---|
| 153 |
|
---|
| 154 | <procedure>
|
---|
| 155 | <step>
|
---|
| 156 | <para>
|
---|
| 157 | Build <xref linkend="linux-pam"/>, <xref linkend="shadow"/>,
|
---|
| 158 | and <xref linkend="sudo"/>, with their dependencies
|
---|
| 159 | </para>
|
---|
| 160 | </step>
|
---|
| 161 |
|
---|
| 162 | <step>
|
---|
| 163 | <para>
|
---|
| 164 | Build the whole <xref linkend="x-window-system"/> chapter, with
|
---|
| 165 | Wayland support, and replacing twm vith <xref linkend="openbox"/>
|
---|
| 166 | (and its required dependencies). Some Xorg applications and fonts
|
---|
| 167 | may be omitted, but with a negligible impact on build time and size
|
---|
| 168 | </para>
|
---|
| 169 | </step>
|
---|
[06ddfc0] | 170 | <!--
|
---|
[66f4ab43] | 171 | <step>
|
---|
| 172 | <para>
|
---|
| 173 | Build <xref linkend="gtk2"/> and its required and recommended
|
---|
| 174 | dependencies. GTK+2 is needed for <xref linkend="libfm"/>, and
|
---|
| 175 | brings the <command>gtk-update-icon-cache</command> executable,
|
---|
| 176 | which is needed by libqtxdg
|
---|
| 177 | </para>
|
---|
| 178 | </step>
|
---|
[06ddfc0] | 179 | -->
|
---|
[66f4ab43] | 180 | <step>
|
---|
| 181 | <para>
|
---|
| 182 | Build required Qt dependencies, and some of the recommended or
|
---|
| 183 | optional dependencies, namely:
|
---|
| 184 | <xref linkend="dbus"/>,
|
---|
[06ddfc0] | 185 | <xref linkend="double-conversion"/>,
|
---|
| 186 | <xref linkend="libjpeg"/>,
|
---|
| 187 | <xref linkend="libxkbcommon"/>, and
|
---|
| 188 | <xref linkend="shared-mime-info"/>
|
---|
[66f4ab43] | 189 | </para>
|
---|
| 190 | </step>
|
---|
| 191 |
|
---|
| 192 | <step>
|
---|
| 193 | <para>
|
---|
| 194 | Build the required parts of <xref linkend="qt5"/>. To skip all
|
---|
| 195 | modules but the four needed for LXQt, do:
|
---|
| 196 | </para>
|
---|
| 197 | <screen role="nodump"><userinput>ls -Fd qt* | grep / | sed 's/^/-skip /;s/qt//;s@/@@' > tempconf
|
---|
| 198 | sed -i '/base/d;/tools/d;/x11extras/d;/svg/d' tempconf
|
---|
| 199 | # if you plan to build SDDM, add:
|
---|
| 200 | sed -i '/declarative/d' tempconf
|
---|
| 201 | ./configure <book flags> $(cat tempconf)</userinput></screen>
|
---|
| 202 | <para>
|
---|
| 203 | The time needed to complete the Qt installation is thus reduced to
|
---|
| 204 | around 6 SBU
|
---|
| 205 | </para>
|
---|
| 206 | </step>
|
---|
| 207 |
|
---|
| 208 | <step>
|
---|
| 209 | <para>
|
---|
| 210 | Build miscellaneous dependencies (with their required ones):
|
---|
| 211 | <xref linkend="libexif"/>,
|
---|
| 212 | <xref linkend="libstatgrab"/>,
|
---|
| 213 | <xref linkend="polkit"/>,
|
---|
| 214 | <phrase revision="sysv">
|
---|
| 215 | <xref linkend="pm-utils"/>,
|
---|
| 216 | </phrase>
|
---|
| 217 | <xref linkend="lm_sensors"/>,
|
---|
| 218 | <xref linkend="upower"/>, and
|
---|
[24e24c4] | 219 | <xref linkend="menu-cache"/>.
|
---|
[66f4ab43] | 220 | </para>
|
---|
| 221 | </step>
|
---|
| 222 |
|
---|
| 223 | <step>
|
---|
| 224 | <para>
|
---|
| 225 | Build KDE frameworks dependencies:
|
---|
| 226 | <xref linkend="extra-cmake-modules"/>,
|
---|
| 227 | <xref linkend="libdbusmenu-qt"/>, and
|
---|
| 228 | <xref linkend="polkit-qt"/>
|
---|
| 229 | </para>
|
---|
| 230 | </step>
|
---|
| 231 |
|
---|
| 232 | <step>
|
---|
| 233 | <para>
|
---|
| 234 | Finally, build some desktop utilities:
|
---|
| 235 | <xref linkend="xdg-utils"/> (needs only xmlto),
|
---|
| 236 | <xref linkend="xdg-user-dirs"/>,
|
---|
| 237 | <xref linkend="oxygen-icons5"/> or other sets of icons
|
---|
| 238 | </para>
|
---|
| 239 | </step>
|
---|
| 240 | </procedure>
|
---|
| 241 |
|
---|
| 242 | </sect2>
|
---|
| 243 |
|
---|
| 244 | </sect1>
|
---|