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