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