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