1 | <sect2>
|
---|
2 | <title>Installation of <application>Mozilla</application></title>
|
---|
3 |
|
---|
4 | <!--
|
---|
5 | <note>
|
---|
6 | <para>According to the financial institutions, the following hack makes your
|
---|
7 | browser insecure. You have been warned. Many sites use an MS-IE specific tag
|
---|
8 | (autocomplete=off) to prevent autocomplete from working in some forms. This
|
---|
9 | tag is now supported in <application>Mozilla</application> to appease the financial institutions. As per
|
---|
10 | the requirements of the financial institutions, they will not even accept a
|
---|
11 | solution where this a preference option. However our opinion is that it should
|
---|
12 | be in the hands of the user. To enable autocomplete to bypass
|
---|
13 | this restriction, we need to make a slight modification in the code.</para>
|
---|
14 |
|
---|
15 | <para>Open the file <filename>extensions/wallet/src/wallet.cpp</filename> in
|
---|
16 | the <application>Mozilla</application> source tree and search for the line:
|
---|
17 | <screen>#define WALLET_DONT_CACHE_ALL_PASSWORDS</screen>
|
---|
18 | Then delete or comment out the line. Now, if anyone tells you MS-IE is user
|
---|
19 | friendly, give them this example!</para>
|
---|
20 | </note>
|
---|
21 | -->
|
---|
22 |
|
---|
23 | <para>If you plan to install Enigmail, extract the ipc and enigmail tarballs
|
---|
24 | in the <filename class="directory">extensions</filename> directory.</para>
|
---|
25 |
|
---|
26 | <para>Compile <application>Mozilla</application> by running the following
|
---|
27 | commands:</para>
|
---|
28 |
|
---|
29 | <screen><userinput><command>export MOZILLA_OFFICIAL="1" &&
|
---|
30 | export BUILD_OFFICIAL="1" &&
|
---|
31 | ./configure --prefix=/usr \
|
---|
32 | --with-default-mozilla-five-home=/usr/lib/mozilla \
|
---|
33 | --enable-default-toolkit=gtk2 \
|
---|
34 | --with-x --with-system-zlib \
|
---|
35 | --with-system-jpeg --with-system-png --with-system-mng \
|
---|
36 | --enable-xft --enable-crypto \
|
---|
37 | --disable-accessibility \
|
---|
38 | --disable-tests --disable-debug \
|
---|
39 | --disable-logging --enable-reorder \
|
---|
40 | --enable-strip --disable-pedantic \
|
---|
41 | --enable-cpp-rtti --enable-extensions=all &&
|
---|
42 | make</command></userinput></screen>
|
---|
43 |
|
---|
44 | <para>If installing Enigmail, execute the following steps:</para>
|
---|
45 |
|
---|
46 | <screen><userinput><command>cd extensions/ipc &&
|
---|
47 | ./makemake -r &&
|
---|
48 | make &&
|
---|
49 | cd ../enigmail &&
|
---|
50 | ./makemake -r &&
|
---|
51 | make &&
|
---|
52 | cd ../..</command></userinput></screen>
|
---|
53 |
|
---|
54 | <para>Install <application>Mozilla</application> as follows:</para>
|
---|
55 |
|
---|
56 | <screen><userinput><command>make install &&
|
---|
57 | install -d /usr/include/mozilla-&mozilla-version;/nss &&
|
---|
58 | cp -Lf dist/private/nss/*.h dist/public/nss/*.h \
|
---|
59 | /usr/include/mozilla-&mozilla-version;/nss &&
|
---|
60 | ln -nsf mozilla-&mozilla-version; /usr/include/mozilla &&
|
---|
61 | ln -nsf mozilla-&mozilla-version; /usr/lib/mozilla</command></userinput></screen>
|
---|
62 |
|
---|
63 | <para>Install Enigmail as follows:</para>
|
---|
64 |
|
---|
65 | <screen><userinput><command>for i in components/enigmime.xpt \
|
---|
66 | components/ipc.xpt components/libenigmime.so components/enigmail.js \
|
---|
67 | components/enigmail.xpt chrome/enigmail.jar
|
---|
68 | do
|
---|
69 | install dist/bin/$i /usr/lib/mozilla-&mozilla-version;/$i
|
---|
70 | done</command></userinput></screen>
|
---|
71 |
|
---|
72 | <para>To enable multi-user operation, execute the following:</para>
|
---|
73 |
|
---|
74 | <screen><userinput><command>cd /usr/lib/mozilla-&mozilla-version; &&
|
---|
75 | export LD_LIBRARY_PATH="/usr/lib/mozilla-&mozilla-version;" &&
|
---|
76 | export MOZILLA_FIVE_HOME="/usr/lib/mozilla-&mozilla-version;" &&
|
---|
77 | ./regxpcom &&
|
---|
78 | ./regchrome &&
|
---|
79 | touch `find /usr/lib/mozilla-&mozilla-version; -name *.rdf`</command></userinput></screen>
|
---|
80 |
|
---|
81 | </sect2>
|
---|
82 |
|
---|
83 | <sect2>
|
---|
84 | <title>Optional Extra Switches</title>
|
---|
85 |
|
---|
86 | <para>Each of these switches can be added to the configure line in order to
|
---|
87 | have the described effect on the <application>Mozilla</application> compile.</para>
|
---|
88 |
|
---|
89 | <para><option>--enable-elf-dynstr-gc</option>: Removes un-referenced
|
---|
90 | strings from <acronym>ELF</acronym> shared objects generated during the build.
|
---|
91 | Note that this option breaks build on alpha.</para>
|
---|
92 |
|
---|
93 | <para><option>--disable-mailnews</option>: Disable the mail and news
|
---|
94 | clients.</para>
|
---|
95 |
|
---|
96 | <para><option>--disable-ldap</option>: Disable <acronym>LDAP</acronym>
|
---|
97 | Support, recommended if mail is disabled.</para>
|
---|
98 |
|
---|
99 | <para><option>--enable-calendar</option>: Build the calendar client.</para>
|
---|
100 |
|
---|
101 | <para><option>--enable-xterm-updates</option>: This option is
|
---|
102 | for enabling the <command>xterm</command> title with the current command when
|
---|
103 | compiling.</para>
|
---|
104 |
|
---|
105 | <para><option>--enable-plaintext-editor-only</option>: Disable support
|
---|
106 | for <acronym>HTML</acronym> editing. Do not use this switch if you are building
|
---|
107 | the mail-news component.</para>
|
---|
108 |
|
---|
109 | </sect2>
|
---|
110 |
|
---|
111 | <sect2>
|
---|
112 | <title>Additional build notes for <application>Mozilla Firebird</application> &firebird-version;</title>
|
---|
113 |
|
---|
114 | <para>Add the following env variable (The variable is named Phoenix since
|
---|
115 | that was the original name for the <application>Mozilla
|
---|
116 | Firebird</application> project):</para>
|
---|
117 |
|
---|
118 | <screen><userinput><command>export MOZ_PHOENIX="1"</command></userinput></screen>
|
---|
119 |
|
---|
120 | <para>Make sure that the following switches are passed to
|
---|
121 | <command>./configure</command>: <option>--disable-calendar</option> and
|
---|
122 | <option>--disable-mailnews</option>.</para>
|
---|
123 |
|
---|
124 | <para>We recommend installing in a separate prefix
|
---|
125 | such as <parameter>--prefix=/opt/firebird-&firebird-version;</parameter>
|
---|
126 | to prevent clashes with
|
---|
127 | an installed <application>Mozilla</application>.</para>
|
---|
128 |
|
---|
129 | <para>The <application>Mozilla Firebird</application> executable is
|
---|
130 | <command>MozillaFirebird</command>.</para>
|
---|
131 |
|
---|
132 | </sect2>
|
---|
133 |
|
---|
134 | <sect2>
|
---|
135 | <title>Additional build notes for <application>Mozilla Thunderbird</application> &thunderbird-version;</title>
|
---|
136 |
|
---|
137 | <para>Add the following env variable:</para>
|
---|
138 |
|
---|
139 | <screen><userinput><command>export MOZ_THUNDERBIRD="1"</command></userinput></screen>
|
---|
140 |
|
---|
141 | <para>Make sure that the following switches is passed to
|
---|
142 | <command>./configure</command>: <option>--disable-calendar</option>.</para>
|
---|
143 |
|
---|
144 | <para>We recommend installing in a separate prefix
|
---|
145 | such as
|
---|
146 | <parameter>--prefix=/opt/thunderbird-&thunderbird-version;</parameter>
|
---|
147 | to prevent clashes with
|
---|
148 | an installed <application>Mozilla</application>.</para>
|
---|
149 |
|
---|
150 | <para>The <application>Mozilla Thunderbird</application> executable is
|
---|
151 | <command>thunderbird</command>.</para>
|
---|
152 |
|
---|
153 | </sect2>
|
---|