[2aaa7e5] | 1 | <sect2>
|
---|
[21456e1] | 2 | <title>Installation of <application>Mozilla</application></title>
|
---|
[2aaa7e5] | 3 |
|
---|
[904004f] | 4 | <note>
|
---|
[1c6182e] | 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
|
---|
[46bca118] | 8 | tag is now supported in <application>Mozilla</application> to appease the financial institutions. As per
|
---|
[1c6182e] | 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
|
---|
[46bca118] | 15 | the <application>Mozilla</application> source tree and search for the line:
|
---|
[1c6182e] | 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>
|
---|
[904004f] | 19 | </note>
|
---|
[1c6182e] | 20 |
|
---|
[eef5089b] | 21 | <para>If you plan to install Enigmail, extract the ipc and enigmail tarballs
|
---|
[f92a515] | 22 | in the <filename class="directory">extensions</filename> directory.</para>
|
---|
| 23 |
|
---|
| 24 | <para>Compile <application>Mozilla</application> by running the following
|
---|
[904004f] | 25 | commands:</para>
|
---|
| 26 |
|
---|
| 27 | <screen><userinput><command>export MOZILLA_OFFICIAL="1" &&
|
---|
| 28 | export BUILD_OFFICIAL="1" &&
|
---|
| 29 | ./configure --prefix=/usr \
|
---|
[cf47a113] | 30 | --with-default-mozilla-five-home=/usr/lib/mozilla \
|
---|
| 31 | --enable-default-toolkit=gtk2 \
|
---|
[2aaa7e5] | 32 | --with-x --with-system-zlib \
|
---|
| 33 | --with-system-jpeg --with-system-png --with-system-mng \
|
---|
| 34 | --enable-xft --enable-crypto \
|
---|
[f5b4f72] | 35 | --disable-accessibility \
|
---|
[2aaa7e5] | 36 | --disable-tests --disable-debug \
|
---|
| 37 | --disable-logging --enable-reorder \
|
---|
[583cf2e4] | 38 | --enable-strip --disable-pedantic \
|
---|
[0f47226] | 39 | --enable-cpp-rtti --enable-extensions=all &&
|
---|
[f92a515] | 40 | make</command></userinput></screen>
|
---|
| 41 |
|
---|
| 42 | <para>If installing Enigmail, execute the following steps:</para>
|
---|
| 43 |
|
---|
| 44 | <screen><userinput><command>cd extensions/ipc &&
|
---|
| 45 | ./makemake -r &&
|
---|
[2aaa7e5] | 46 | make &&
|
---|
[f92a515] | 47 | cd ../enigmail &&
|
---|
| 48 | ./makemake -r &&
|
---|
| 49 | make &&
|
---|
| 50 | cd ../..</command></userinput></screen>
|
---|
| 51 |
|
---|
| 52 | <para>Install <application>Mozilla</application> as follows:</para>
|
---|
| 53 |
|
---|
| 54 | <screen><userinput><command>make install &&
|
---|
[65adb85] | 55 | install -d /usr/include/mozilla-&mozilla-version;/nss &&
|
---|
[1c6182e] | 56 | cp -Lf dist/private/nss/*.h dist/public/nss/*.h \
|
---|
[65adb85] | 57 | /usr/include/mozilla-&mozilla-version;/nss &&
|
---|
| 58 | ln -nsf mozilla-&mozilla-version; /usr/include/mozilla &&
|
---|
[f92a515] | 59 | ln -nsf mozilla-&mozilla-version; /usr/lib/mozilla</command></userinput></screen>
|
---|
| 60 |
|
---|
| 61 | <para>Install Enigmail as follows:</para>
|
---|
| 62 |
|
---|
| 63 | <screen><userinput><command>for i in components/enigmime.xpt \
|
---|
| 64 | components/ipc.xpt components/libenigmime.so components/enigmail.js \
|
---|
| 65 | components/enigmail.xpt chrome/enigmail.jar
|
---|
| 66 | do
|
---|
| 67 | install dist/bin/$i /usr/lib/mozilla-&mozilla-version;/$i
|
---|
| 68 | done</command></userinput></screen>
|
---|
| 69 |
|
---|
| 70 | <para>To enable multi-user operation, execute the following:</para>
|
---|
| 71 |
|
---|
| 72 | <screen><userinput><command>cd /usr/lib/mozilla-&mozilla-version; &&
|
---|
[65adb85] | 73 | export LD_LIBRARY_PATH="/usr/lib/mozilla-&mozilla-version;" &&
|
---|
| 74 | export MOZILLA_FIVE_HOME="/usr/lib/mozilla-&mozilla-version;" &&
|
---|
[2aaa7e5] | 75 | ./regxpcom &&
|
---|
| 76 | ./regchrome &&
|
---|
[65adb85] | 77 | touch `find /usr/lib/mozilla-&mozilla-version; -name *.rdf`</command></userinput></screen>
|
---|
[2aaa7e5] | 78 |
|
---|
| 79 | </sect2>
|
---|
| 80 |
|
---|
| 81 | <sect2>
|
---|
| 82 | <title>Optional Extra Switches</title>
|
---|
| 83 |
|
---|
| 84 | <para>Each of these switches can be added to the configure line in order to
|
---|
[237b6d9] | 85 | have the described effect on the <application>Mozilla</application> compile.</para>
|
---|
[2aaa7e5] | 86 |
|
---|
[2be0e0d] | 87 | <para><option>--enable-elf-dynstr-gc</option>: Removes un-referenced
|
---|
[21456e1] | 88 | strings from <acronym>ELF</acronym> shared objects generated during the build.
|
---|
| 89 | Note that this option breaks build on alpha.</para>
|
---|
[766e17e] | 90 |
|
---|
[237b6d9] | 91 | <para><option>--disable-mailnews</option>: Disable the mail and news
|
---|
[2aaa7e5] | 92 | clients.</para>
|
---|
| 93 |
|
---|
[237b6d9] | 94 | <para><option>--disable-ldap</option>: Disable <acronym>LDAP</acronym>
|
---|
[21456e1] | 95 | Support, recommended if mail is disabled.</para>
|
---|
[2aaa7e5] | 96 |
|
---|
[e49080a] | 97 | <para><option>--enable-calendar</option>: Build the calendar client.</para>
|
---|
[2aaa7e5] | 98 |
|
---|
[237b6d9] | 99 | <para><option>--enable-xterm-updates</option>: This option is
|
---|
[21456e1] | 100 | for enabling the <command>xterm</command> title with the current command when
|
---|
| 101 | compiling.</para>
|
---|
[2aaa7e5] | 102 |
|
---|
[237b6d9] | 103 | <para><option>--enable-plaintext-editor-only</option>: Disable support
|
---|
[21456e1] | 104 | for <acronym>HTML</acronym> editing. Do not use this switch if you are building
|
---|
| 105 | the mail-news component.</para>
|
---|
[2aaa7e5] | 106 |
|
---|
| 107 | </sect2>
|
---|
[0f47226] | 108 |
|
---|
| 109 | <sect2>
|
---|
| 110 | <title>Additional build notes for <application>Mozilla Firebird</application> &firebird-version;</title>
|
---|
| 111 |
|
---|
| 112 | <para>Add the following env variable (The variable is named Phoenix since
|
---|
[5145473] | 113 | that was the original name for the <application>Mozilla
|
---|
| 114 | Firebird</application> project):</para>
|
---|
[0f47226] | 115 |
|
---|
[c9b6a79] | 116 | <screen><userinput><command>export MOZ_PHOENIX="1"</command></userinput></screen>
|
---|
[0f47226] | 117 |
|
---|
| 118 | <para>Make sure that the following switches are passed to
|
---|
[5145473] | 119 | <command>./configure</command>: <option>--disable-calendar</option> and
|
---|
| 120 | <option>--disable-mailnews</option>.</para>
|
---|
[0f47226] | 121 |
|
---|
[2be0e0d] | 122 | <para>We recommend installing in a separate prefix
|
---|
[5145473] | 123 | such as <parameter>--prefix=/opt/firebird-&firebird-version;</parameter>
|
---|
[0f47226] | 124 | to prevent clashes with
|
---|
| 125 | an installed <application>Mozilla</application>.</para>
|
---|
| 126 |
|
---|
| 127 | <para>The <application>Mozilla Firebird</application> executable is
|
---|
| 128 | <command>MozillaFirebird</command>.</para>
|
---|
| 129 |
|
---|
| 130 | </sect2>
|
---|
| 131 |
|
---|
| 132 | <sect2>
|
---|
| 133 | <title>Additional build notes for <application>Mozilla Thunderbird</application> &thunderbird-version;</title>
|
---|
| 134 |
|
---|
| 135 | <para>Add the following env variable:</para>
|
---|
| 136 |
|
---|
| 137 | <screen><userinput><command>export MOZ_THUNDERBIRD="1"</command></userinput></screen>
|
---|
| 138 |
|
---|
[2be0e0d] | 139 | <para>Make sure that the following switches is passed to
|
---|
[5145473] | 140 | <command>./configure</command>: <option>--disable-calendar</option>.</para>
|
---|
[0f47226] | 141 |
|
---|
[2be0e0d] | 142 | <para>We recommend installing in a separate prefix
|
---|
[5145473] | 143 | such as
|
---|
| 144 | <parameter>--prefix=/opt/thunderbird-&thunderbird-version;</parameter>
|
---|
[0f47226] | 145 | to prevent clashes with
|
---|
| 146 | an installed <application>Mozilla</application>.</para>
|
---|
| 147 |
|
---|
| 148 | <para>The <application>Mozilla Thunderbird</application> executable is
|
---|
| 149 | <command>thunderbird</command>.</para>
|
---|
| 150 |
|
---|
| 151 | </sect2>
|
---|