[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 |
|
---|
| 8 | <sect1 id="pre-install" xreflabel="LXQt Pre-Install">
|
---|
| 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 |
|
---|
[6073ef0] | 18 | <para>
|
---|
| 19 | LXQt can be installed in /usr or /opt/lxqt.
|
---|
| 20 | </para>
|
---|
| 21 |
|
---|
| 22 | <sect2><title>Installing in /usr</title>
|
---|
| 23 |
|
---|
| 24 | <para>
|
---|
| 25 | Installing in <filename class="directory">/usr</filename> creates
|
---|
| 26 | a simpler setup. Run:</para>
|
---|
| 27 |
|
---|
| 28 | <screen><userinput>export LXQT_PREFIX=/usr</userinput></screen>
|
---|
| 29 |
|
---|
| 30 | <para>
|
---|
| 31 | Either add that to your own <filename>.bash_profile</filename>
|
---|
| 32 | so that it will still be set if you build the packages over a
|
---|
| 33 | period of time, or else add it to the system profile as the
|
---|
| 34 | <systemitem class="username">root</systemitem> user:
|
---|
| 35 | </para>
|
---|
| 36 |
|
---|
| 37 | <screen role="root"><userinput>cat >> /etc/profile.d/lxqt.sh << "EOF"
|
---|
| 38 | <literal>
|
---|
| 39 | # Begin LXQt addition
|
---|
| 40 |
|
---|
| 41 | export LXQT_PREFIX=/usr
|
---|
| 42 |
|
---|
| 43 | # End LXQt addition
|
---|
| 44 | </literal>
|
---|
| 45 | EOF</userinput></screen>
|
---|
| 46 |
|
---|
| 47 | <para>
|
---|
[298fee30] | 48 | The rest of this page is for people who wish to use the alternative
|
---|
| 49 | prefix.
|
---|
[6073ef0] | 50 | </para>
|
---|
| 51 |
|
---|
| 52 | </sect2>
|
---|
| 53 |
|
---|
[5af3a383] | 54 | <sect2>
|
---|
| 55 | <title>Installing in /opt/lxqt</title>
|
---|
| 56 |
|
---|
| 57 | <para>
|
---|
[6073ef0] | 58 | Installing in <filename class="directory">/opt/lxqt</filename> may simplify
|
---|
[298fee30] | 59 | upgrading to a later version of LXQt.
|
---|
[5af3a383] | 60 | </para>
|
---|
| 61 |
|
---|
| 62 | <para>
|
---|
| 63 | Some variables need to be defined in your system profile, as the
|
---|
[b8edcab8] | 64 | <systemitem class="username">root</systemitem> user:
|
---|
[5af3a383] | 65 | </para>
|
---|
| 66 |
|
---|
| 67 | <screen role="root"><userinput>install -vdm755 /opt/lxqt/{bin,lib,share/man}</userinput></screen>
|
---|
| 68 |
|
---|
[6073ef0] | 69 | <screen role="root"><userinput>cat >> /etc/profile.d/lxqt.sh << "EOF"
|
---|
[5af3a383] | 70 | <literal>
|
---|
| 71 | # Begin LXQt addition
|
---|
| 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 |
|
---|
| 79 | # End LXQt addition
|
---|
| 80 | </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"
|
---|
| 88 | <literal>
|
---|
| 89 | # Begin LXQt addition
|
---|
| 90 |
|
---|
| 91 | /opt/lxqt/lib
|
---|
| 92 |
|
---|
| 93 | # End LXQt addition
|
---|
| 94 | </literal>
|
---|
| 95 | EOF</userinput></screen>
|
---|
| 96 |
|
---|
| 97 | <para>
|
---|
| 98 | Before starting to install the packages in the following pages, remember to
|
---|
| 99 | execute:
|
---|
| 100 | </para>
|
---|
| 101 |
|
---|
| 102 | <screen><userinput>source /etc/profile</userinput></screen>
|
---|
| 103 |
|
---|
| 104 | <para>
|
---|
| 105 | Some packages may also install icons from the "hicolor" icon set. Since
|
---|
| 106 | that icon set is used by many packages, it is a good idea to create a
|
---|
| 107 | symlink to the one in <filename class="directory">/usr/share</filename>
|
---|
| 108 | to avoid having multiple installations of <xref
|
---|
| 109 | linkend="hicolor-icon-theme"/>. Run the following commands as the
|
---|
| 110 | <systemitem class="username">root</systemitem> user:
|
---|
| 111 | </para>
|
---|
| 112 |
|
---|
[6073ef0] | 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</userinput></screen>
|
---|
[5af3a383] | 116 |
|
---|
| 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 | </sect1>
|
---|