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>Install <application>Mozilla</application> by running the following
|
---|
22 | commands:</para>
|
---|
23 |
|
---|
24 | <screen><userinput><command>export MOZILLA_OFFICIAL="1" &&
|
---|
25 | export BUILD_OFFICIAL="1" &&
|
---|
26 | ./configure --prefix=/usr \
|
---|
27 | --enable-default-mozilla-five-home \
|
---|
28 | --enable-toolkit-gtk2 --enable-default-toolkit=gtk2 \
|
---|
29 | --with-x --with-system-zlib \
|
---|
30 | --with-system-jpeg --with-system-png --with-system-mng \
|
---|
31 | --enable-xft --enable-crypto \
|
---|
32 | --enable-java-supplement \
|
---|
33 | --disable-accessibility \
|
---|
34 | --disable-tests --disable-debug \
|
---|
35 | --disable-logging --enable-reorder \
|
---|
36 | --enable-strip --disable-pedantic \
|
---|
37 | --enable-cpp-rtti --enable-extensions=all &&
|
---|
38 | make &&
|
---|
39 | make install &&
|
---|
40 | install -d /usr/include/mozilla-&mozilla-version;/nss &&
|
---|
41 | cp -Lf dist/private/nss/*.h dist/public/nss/*.h \
|
---|
42 | /usr/include/mozilla-&mozilla-version;/nss &&
|
---|
43 | ln -nsf mozilla-&mozilla-version; /usr/include/mozilla &&
|
---|
44 | ln -nsf mozilla-&mozilla-version; /usr/lib/mozilla &&
|
---|
45 | cd /usr/lib/mozilla-&mozilla-version; &&
|
---|
46 | export LD_LIBRARY_PATH="/usr/lib/mozilla-&mozilla-version;" &&
|
---|
47 | export MOZILLA_FIVE_HOME="/usr/lib/mozilla-&mozilla-version;" &&
|
---|
48 | ./regxpcom &&
|
---|
49 | ./regchrome &&
|
---|
50 | touch `find /usr/lib/mozilla-&mozilla-version; -name *.rdf`</command></userinput></screen>
|
---|
51 |
|
---|
52 | </sect2>
|
---|
53 |
|
---|
54 | <sect2>
|
---|
55 | <title>Optional Extra Switches</title>
|
---|
56 |
|
---|
57 | <para>Each of these switches can be added to the configure line in order to
|
---|
58 | have the described effect on the <application>Mozilla</application> compile.</para>
|
---|
59 |
|
---|
60 | <para><option>--enable-elf-dynstr-gc</option>: Removes un-referenced
|
---|
61 | strings from <acronym>ELF</acronym> shared objects generated during the build.
|
---|
62 | Note that this option breaks build on alpha.</para>
|
---|
63 |
|
---|
64 | <para><option>--disable-mailnews</option>: Disable the mail and news
|
---|
65 | clients.</para>
|
---|
66 |
|
---|
67 | <para><option>--disable-ldap</option>: Disable <acronym>LDAP</acronym>
|
---|
68 | Support, recommended if mail is disabled.</para>
|
---|
69 |
|
---|
70 | <para><option>--enable-calendar</option>: Build the calendar client.</para>
|
---|
71 |
|
---|
72 | <para><option>--enable-xterm-updates</option>: This option is
|
---|
73 | for enabling the <command>xterm</command> title with the current command when
|
---|
74 | compiling.</para>
|
---|
75 |
|
---|
76 | <para><option>--enable-plaintext-editor-only</option>: Disable support
|
---|
77 | for <acronym>HTML</acronym> editing. Do not use this switch if you are building
|
---|
78 | the mail-news component.</para>
|
---|
79 |
|
---|
80 | </sect2>
|
---|
81 |
|
---|
82 | <sect2>
|
---|
83 | <title>Additional build notes for <application>Mozilla Firebird</application> &firebird-version;</title>
|
---|
84 |
|
---|
85 | <para>Add the following env variable (The variable is named Phoenix since
|
---|
86 | that was the original name for the <application>Mozilla
|
---|
87 | Firebird</application> project):</para>
|
---|
88 |
|
---|
89 | <screen><userinput><command>export MOZ_PHOENIX="1"</command></userinput></screen>
|
---|
90 |
|
---|
91 | <para>Make sure that the following switches are passed to
|
---|
92 | <command>./configure</command>: <option>--disable-calendar</option> and
|
---|
93 | <option>--disable-mailnews</option>.</para>
|
---|
94 |
|
---|
95 | <para>We recommend installing in a separate prefix
|
---|
96 | such as <parameter>--prefix=/opt/firebird-&firebird-version;</parameter>
|
---|
97 | to prevent clashes with
|
---|
98 | an installed <application>Mozilla</application>.</para>
|
---|
99 |
|
---|
100 | <para>The <application>Mozilla Firebird</application> executable is
|
---|
101 | <command>MozillaFirebird</command>.</para>
|
---|
102 |
|
---|
103 | </sect2>
|
---|
104 |
|
---|
105 | <sect2>
|
---|
106 | <title>Additional build notes for <application>Mozilla Thunderbird</application> &thunderbird-version;</title>
|
---|
107 |
|
---|
108 | <para>Add the following env variable:</para>
|
---|
109 |
|
---|
110 | <screen><userinput><command>export MOZ_THUNDERBIRD="1"</command></userinput></screen>
|
---|
111 |
|
---|
112 | <para>Make sure that the following switches is passed to
|
---|
113 | <command>./configure</command>: <option>--disable-calendar</option>.</para>
|
---|
114 |
|
---|
115 | <para>We recommend installing in a separate prefix
|
---|
116 | such as
|
---|
117 | <parameter>--prefix=/opt/thunderbird-&thunderbird-version;</parameter>
|
---|
118 | to prevent clashes with
|
---|
119 | an installed <application>Mozilla</application>.</para>
|
---|
120 |
|
---|
121 | <para>The <application>Mozilla Thunderbird</application> executable is
|
---|
122 | <command>thunderbird</command>.</para>
|
---|
123 |
|
---|
124 | </sect2>
|
---|