[5af3a383] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE chapter 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 |
|
---|
[2341740] | 8 | <sect1 id="lxqt-pre-install" xreflabel="LXQt Pre-Install">
|
---|
[5af3a383] | 9 | <?dbhtml filename="pre-install.html"?>
|
---|
| 10 |
|
---|
| 11 | <sect1info>
|
---|
| 12 | <othername>$LastChangedBy$</othername>
|
---|
| 13 | <date>$Date$</date>
|
---|
| 14 | </sect1info>
|
---|
| 15 |
|
---|
| 16 | <title>LXQt Desktop Pre-Install Instructions</title>
|
---|
| 17 |
|
---|
[2341740] | 18 | <indexterm zone="lxqt-pre-install">
|
---|
| 19 | <primary sortas="g-lxqt-pre-install">LXQt Pre-Install</primary>
|
---|
| 20 | </indexterm>
|
---|
[6073ef0] | 21 | <para>
|
---|
| 22 | LXQt can be installed in /usr or /opt/lxqt.
|
---|
| 23 | </para>
|
---|
| 24 |
|
---|
| 25 | <sect2><title>Installing in /usr</title>
|
---|
| 26 |
|
---|
| 27 | <para>
|
---|
| 28 | Installing in <filename class="directory">/usr</filename> creates
|
---|
| 29 | a simpler setup. Run:</para>
|
---|
| 30 |
|
---|
| 31 | <screen><userinput>export LXQT_PREFIX=/usr</userinput></screen>
|
---|
| 32 |
|
---|
| 33 | <para>
|
---|
| 34 | Either add that to your own <filename>.bash_profile</filename>
|
---|
| 35 | so that it will still be set if you build the packages over a
|
---|
| 36 | period of time, or else add it to the system profile as the
|
---|
| 37 | <systemitem class="username">root</systemitem> user:
|
---|
| 38 | </para>
|
---|
| 39 |
|
---|
[2341740] | 40 | <screen role="root"><userinput>cat > /etc/profile.d/lxqt.sh << "EOF"
|
---|
| 41 | <literal># Begin LXQt profile
|
---|
[6073ef0] | 42 |
|
---|
| 43 | export LXQT_PREFIX=/usr
|
---|
| 44 |
|
---|
[2341740] | 45 | # End LXQt profile</literal>
|
---|
[6073ef0] | 46 | EOF</userinput></screen>
|
---|
| 47 |
|
---|
| 48 | <para>
|
---|
[298fee30] | 49 | The rest of this page is for people who wish to use the alternative
|
---|
| 50 | prefix.
|
---|
[6073ef0] | 51 | </para>
|
---|
| 52 |
|
---|
| 53 | </sect2>
|
---|
| 54 |
|
---|
[5af3a383] | 55 | <sect2>
|
---|
| 56 | <title>Installing in /opt/lxqt</title>
|
---|
| 57 |
|
---|
| 58 | <para>
|
---|
[2341740] | 59 | Installing in <filename class="directory">/opt/lxqt</filename> may
|
---|
| 60 | simplify upgrading to a later version of LXQt.
|
---|
[5af3a383] | 61 | </para>
|
---|
| 62 |
|
---|
| 63 | <para>
|
---|
| 64 | Some variables need to be defined in your system profile, as the
|
---|
[b8edcab8] | 65 | <systemitem class="username">root</systemitem> user:
|
---|
[5af3a383] | 66 | </para>
|
---|
| 67 |
|
---|
| 68 | <screen role="root"><userinput>install -vdm755 /opt/lxqt/{bin,lib,share/man}</userinput></screen>
|
---|
| 69 |
|
---|
[2341740] | 70 | <screen role="root"><userinput>cat > /etc/profile.d/lxqt.sh << "EOF"
|
---|
| 71 | <literal># Begin LXQt profile
|
---|
[5af3a383] | 72 |
|
---|
[6073ef0] | 73 | export LXQT_PREFIX=/opt/lxqt
|
---|
| 74 |
|
---|
[d8efa96] | 75 | pathappend /opt/lxqt/bin PATH
|
---|
| 76 | pathappend /opt/lxqt/share/man/ MANPATH
|
---|
| 77 | pathappend /opt/lxqt/lib/pkgconfig PKG_CONFIG_PATH
|
---|
[5af3a383] | 78 |
|
---|
[2341740] | 79 | # End LXQt profile</literal>
|
---|
[5af3a383] | 80 | EOF</userinput></screen>
|
---|
| 81 |
|
---|
| 82 | <para>
|
---|
| 83 | Expand your <filename>/etc/ld.so.conf</filename> file:
|
---|
| 84 | </para>
|
---|
| 85 |
|
---|
| 86 | <screen role="root"><userinput>cat >> /etc/ld.so.conf << "EOF"
|
---|
[20f09631] | 87 | <literal>
|
---|
| 88 | # Begin LXQt addition
|
---|
[5af3a383] | 89 |
|
---|
| 90 | /opt/lxqt/lib
|
---|
| 91 |
|
---|
[20f09631] | 92 | # End LXQt addition
|
---|
| 93 | </literal>
|
---|
[5af3a383] | 94 | EOF</userinput></screen>
|
---|
| 95 |
|
---|
| 96 | <para>
|
---|
| 97 | Before starting to install the packages in the following pages, remember to
|
---|
| 98 | execute:
|
---|
| 99 | </para>
|
---|
| 100 |
|
---|
| 101 | <screen><userinput>source /etc/profile</userinput></screen>
|
---|
| 102 |
|
---|
| 103 | <para>
|
---|
| 104 | Some packages may also install icons from the "hicolor" icon set. Since
|
---|
| 105 | that icon set is used by many packages, it is a good idea to create a
|
---|
| 106 | symlink to the one in <filename class="directory">/usr/share</filename>
|
---|
| 107 | to avoid having multiple installations of <xref
|
---|
| 108 | linkend="hicolor-icon-theme"/>. Run the following commands as the
|
---|
| 109 | <systemitem class="username">root</systemitem> user:
|
---|
| 110 | </para>
|
---|
| 111 |
|
---|
[6073ef0] | 112 | <screen role="root"><userinput>source /etc/profile &&
|
---|
| 113 | install -v -dm755 $LXQT_PREFIX/share/icons &&
|
---|
| 114 | ln -sfv /usr/share/icons/hicolor $LXQT_PREFIX/share/icons</userinput></screen>
|
---|
[5af3a383] | 115 |
|
---|
| 116 |
|
---|
| 117 | <tip>
|
---|
| 118 | <para>
|
---|
| 119 | Sometimes, the installation paths are hardcoded into installed files.
|
---|
| 120 | This is the reason why <filename class="directory">/opt/lxqt</filename>
|
---|
| 121 | is used as installation prefix instead of <filename
|
---|
| 122 | class="directory">/opt/lxqt-&lxqt-version;</filename>. After installing
|
---|
| 123 | <application>LXQt Desktop</application>, you may rename the directory
|
---|
| 124 | and create a symlink:
|
---|
| 125 | </para>
|
---|
| 126 |
|
---|
| 127 | <screen role="root"><userinput>mv /opt/lxqt{,-&lxqt-version;}
|
---|
| 128 | ln -sfv lxqt-&lxqt-version; /opt/lxqt</userinput></screen>
|
---|
| 129 |
|
---|
| 130 | <para>
|
---|
| 131 | Later on, you may want to install other versions of <application>LXQt
|
---|
| 132 | Desktop</application>. To do that, just remove the symlink and use
|
---|
| 133 | <filename class="directory">/opt/lxqt</filename> as the prefix again.
|
---|
| 134 | Which version of <application>LXQt Desktop</application> you use
|
---|
| 135 | depends only on where the symlink points. No other reconfiguration will
|
---|
| 136 | be needed.
|
---|
| 137 | </para>
|
---|
| 138 | </tip>
|
---|
| 139 |
|
---|
| 140 | </sect2>
|
---|
| 141 |
|
---|
| 142 | </sect1>
|
---|