[f939f05] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[f939f05] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[3f810bf2] | 7 | <!ENTITY firefox-download-http "http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;-source.tar.bz2">
|
---|
| 8 | <!ENTITY firefox-download-ftp "ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;-source.tar.bz2">
|
---|
[7d1fae2b] | 9 | <!ENTITY firefox-md5sum "5704a8c36de84b408e069afb0c5bc1df">
|
---|
[4576a11] | 10 | <!ENTITY firefox-size "32.0 MB">
|
---|
[f72040eb] | 11 | <!ENTITY firefox-buildsize "545 MB">
|
---|
| 12 | <!ENTITY firefox-time "10.3 SBU">
|
---|
[f939f05] | 13 | ]>
|
---|
| 14 |
|
---|
[361df3e] | 15 | <!--
|
---|
| 16 |
|
---|
| 17 | Devs:
|
---|
| 18 |
|
---|
| 19 | Always check the browser/config/mozconfig file in the source tree for
|
---|
| 20 | any changes to the options passed to configure. This file shows the
|
---|
| 21 | default build used by Mozilla. BLFS adds to this, but the values here
|
---|
| 22 | should be in our setup.
|
---|
| 23 |
|
---|
| 24 | -->
|
---|
| 25 |
|
---|
[ffe47ca2] | 26 | <sect1 id="firefox" xreflabel="Firefox-&firefox-version;">
|
---|
[b81991e1] | 27 | <?dbhtml filename="firefox.html" ?>
|
---|
| 28 |
|
---|
| 29 | <sect1info>
|
---|
| 30 | <othername>$LastChangedBy$</othername>
|
---|
| 31 | <date>$Date$</date>
|
---|
| 32 | </sect1info>
|
---|
| 33 |
|
---|
| 34 | <title>Firefox-&firefox-version;</title>
|
---|
| 35 |
|
---|
| 36 | <indexterm zone="firefox">
|
---|
| 37 | <primary sortas="a-Firefox">Firefox</primary>
|
---|
| 38 | </indexterm>
|
---|
| 39 |
|
---|
| 40 | <sect2 role="package">
|
---|
| 41 | <title>Introduction to Firefox</title>
|
---|
| 42 |
|
---|
| 43 | <para><application>Firefox</application> is a stand-alone browser
|
---|
| 44 | based on the <application>Mozilla</application> codebase.</para>
|
---|
| 45 |
|
---|
| 46 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 47 | <itemizedlist spacing="compact">
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download (HTTP): <ulink url="&firefox-download-http;"/></para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Download (FTP): <ulink url="&firefox-download-ftp;"/></para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Download MD5 sum: &firefox-md5sum;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Download size: &firefox-size;</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>Estimated disk space required: &firefox-buildsize;</para>
|
---|
| 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
| 64 | <para>Estimated build time: &firefox-time;</para>
|
---|
| 65 | </listitem>
|
---|
| 66 | </itemizedlist>
|
---|
| 67 |
|
---|
[e50f829] | 68 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 69 | <itemizedlist spacing="compact">
|
---|
| 70 | <listitem>
|
---|
| 71 | <para>Required patch: <ulink
|
---|
[cd79557e] | 72 | url="&patch-root;/firefox-&firefox-version;-gcc4-2.patch"/></para>
|
---|
[e50f829] | 73 | </listitem>
|
---|
| 74 | </itemizedlist>
|
---|
| 75 |
|
---|
[b81991e1] | 76 | <bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
|
---|
| 77 |
|
---|
| 78 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 79 | <para><xref linkend="gtk2"/>,
|
---|
| 80 | <xref linkend="libidl"/> and
|
---|
| 81 | <xref linkend="zip"/></para>
|
---|
| 82 |
|
---|
| 83 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 84 | <para><xref linkend="libjpeg"/>,
|
---|
| 85 | <xref linkend="unzip"/>,
|
---|
| 86 | <xref linkend="gnome-vfs"/> and
|
---|
| 87 | <xref linkend="libgnome"/> (to build the gnomevfs extension),
|
---|
| 88 | <xref linkend="mitkrb"/> or <xref linkend="heimdal"/>
|
---|
| 89 | (for the GSSAPI libraries to build the negotiateauth extension),
|
---|
| 90 | <xref linkend="doxygen"/>,
|
---|
| 91 | <ulink url="http://xprint.mozdev.org/">Xprint</ulink>,
|
---|
[f3ebc751] | 92 | <ulink url="http://perens.com/FreeSoftware/">Electric Fence</ulink></para>
|
---|
[b81991e1] | 93 |
|
---|
| 94 | </sect2>
|
---|
| 95 |
|
---|
| 96 | <sect2 role="installation">
|
---|
| 97 | <title>Installation of Firefox</title>
|
---|
| 98 |
|
---|
| 99 | <para>The configuration of <application>Firefox</application> is very
|
---|
| 100 | similar to <xref linkend="mozilla"/> and hence the options are not
|
---|
| 101 | discussed. Refer to the <xref linkend="mozilla"/> instructions for
|
---|
| 102 | explanations and additional configuration information.</para>
|
---|
| 103 |
|
---|
[361df3e] | 104 | <para><application>Firefox</application> default behavior when invoked
|
---|
| 105 | with a URL parameter is to open a new browser window. If you would rather
|
---|
| 106 | <application>Firefox</application> open a new tab in an existing browser
|
---|
| 107 | window, issue the following command:</para>
|
---|
| 108 |
|
---|
[519bbf6] | 109 | <screen><userinput>sed -i 's|openURL(${_optLast}|&, new-tab|' browser/app/mozilla.in</userinput></screen>
|
---|
[361df3e] | 110 |
|
---|
[b81991e1] | 111 | <para>Compile and install <application>Firefox</application> by
|
---|
| 112 | running the following commands:</para>
|
---|
| 113 |
|
---|
| 114 | <screen><userinput>export MOZILLA_OFFICIAL="1" &&
|
---|
[f939f05] | 115 | export BUILD_OFFICIAL="1" &&
|
---|
| 116 | export MOZ_PHOENIX="1" &&
|
---|
[2034389] | 117 |
|
---|
[519bbf6] | 118 | sed -i 's| dist_bin="$moz_libdir"|\
|
---|
| 119 | &\n run_moz="$dist_bin/run-mozilla.sh"|' browser/app/mozilla.in &&
|
---|
[2034389] | 120 |
|
---|
[cd79557e] | 121 | patch -Np1 -i ../firefox-&firefox-version;-gcc4-2.patch &&
|
---|
[3e602d7a] | 122 | ./configure --prefix=/usr \
|
---|
[361df3e] | 123 | --with-default-mozilla-five-home=/usr/lib/firefox-&firefox-version; \
|
---|
[d1981e0] | 124 | --with-user-appdir=.firefox \
|
---|
[ffe47ca2] | 125 | --with-system-zlib \
|
---|
| 126 | --with-system-png \
|
---|
[d1981e0] | 127 | --enable-application=browser \
|
---|
[f939f05] | 128 | --enable-default-toolkit=gtk2 \
|
---|
[b94212a] | 129 | --enable-extensions=cookie,xml-rpc,xmlextras,pref,\
|
---|
[4d06a01f] | 130 | transformiix,universalchardet,webservices,inspector,\
|
---|
| 131 | gnomevfs,negotiateauth \
|
---|
[ffe47ca2] | 132 | --enable-crypto \
|
---|
[d1981e0] | 133 | --enable-xft \
|
---|
[ffe47ca2] | 134 | --enable-xinerama \
|
---|
| 135 | --enable-optimize \
|
---|
| 136 | --enable-reorder \
|
---|
| 137 | --enable-strip \
|
---|
| 138 | --enable-cpp-rtti \
|
---|
[d1981e0] | 139 | --enable-single-profile \
|
---|
| 140 | --disable-freetype2 \
|
---|
| 141 | --disable-accessibility \
|
---|
| 142 | --disable-debug \
|
---|
| 143 | --disable-tests \
|
---|
| 144 | --disable-logging \
|
---|
| 145 | --disable-pedantic \
|
---|
| 146 | --disable-installer \
|
---|
| 147 | --disable-mailnews \
|
---|
| 148 | --disable-ldap \
|
---|
| 149 | --disable-composer \
|
---|
[ffe47ca2] | 150 | --disable-profilesharing &&
|
---|
[b81991e1] | 151 | make</userinput></screen>
|
---|
[e3c939cc] | 152 |
|
---|
[b81991e1] | 153 | <para>You should add the <option>--with-system-jpeg</option> switch
|
---|
| 154 | to the <command>configure</command> script if you have
|
---|
| 155 | <application>libjpeg</application> installed.</para>
|
---|
[4d06a01f] | 156 |
|
---|
[b81991e1] | 157 | <para>This package does not come with a test suite.</para>
|
---|
[4a8e9f7] | 158 |
|
---|
[b81991e1] | 159 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[e3c939cc] | 160 |
|
---|
[b81991e1] | 161 | <screen role="root"><userinput>make install &&
|
---|
[361df3e] | 162 | install -v -m755 -d /usr/include/firefox-&firefox-version;/nss &&
|
---|
| 163 | cp -v -Lf dist/private/nss/*.h dist/public/nss/*.h \
|
---|
[b81991e1] | 164 | /usr/include/firefox-&firefox-version;/nss</userinput></screen>
|
---|
[ffe47ca2] | 165 |
|
---|
[b81991e1] | 166 | <para>To enable multi-user operation, execute the following as the
|
---|
| 167 | <systemitem class="username">root</systemitem> user:</para>
|
---|
[f939f05] | 168 |
|
---|
[b81991e1] | 169 | <screen role="root"><userinput>cd /usr/lib/firefox-&firefox-version; &&
|
---|
[f939f05] | 170 | export LD_LIBRARY_PATH="$PWD" &&
|
---|
| 171 | export MOZILLA_FIVE_HOME="$PWD" &&
|
---|
| 172 | ./regxpcom &&
|
---|
| 173 | ./regchrome &&
|
---|
[b81991e1] | 174 | touch `find . -name *.rdf`</userinput></screen>
|
---|
[f939f05] | 175 |
|
---|
[b81991e1] | 176 | <note>
|
---|
| 177 | <para>You should run <command>/usr/bin/firefox</command> once as the
|
---|
| 178 | <systemitem class="username">root</systemitem> user (or any user with
|
---|
| 179 | write privileges) to create some necessary additional files in the
|
---|
| 180 | <filename class='directory'>/usr</filename> hierarchy.</para>
|
---|
| 181 | </note>
|
---|
[82539b8b] | 182 |
|
---|
[b81991e1] | 183 | <para>Lastly, unset the build variables from the unprivileged user's
|
---|
| 184 | environment:</para>
|
---|
[b94212a] | 185 |
|
---|
[b81991e1] | 186 | <screen><userinput>unset MOZILLA_OFFICIAL &&
|
---|
[b94212a] | 187 | unset BUILD_OFFICIAL &&
|
---|
[b81991e1] | 188 | unset MOZ_PHOENIX</userinput></screen>
|
---|
| 189 |
|
---|
| 190 | </sect2>
|
---|
| 191 |
|
---|
[361df3e] | 192 | <sect2 role="commands">
|
---|
| 193 | <title>Command Explanations</title>
|
---|
| 194 |
|
---|
| 195 | <para><command>sed -i '...' browser/app/mozilla.in</command>: This command
|
---|
| 196 | fixes an issue where <application>Firefox</application> wants to call the
|
---|
| 197 | profile manager instead of just invoking another copy of itself.</para>
|
---|
| 198 |
|
---|
| 199 | </sect2>
|
---|
| 200 |
|
---|
[b81991e1] | 201 | <sect2 role="configuration">
|
---|
| 202 | <title>Configuring Firefox</title>
|
---|
| 203 |
|
---|
| 204 | <para>No specific configuration is required as long as the
|
---|
| 205 | <command>firefox</command> script is in the user's path. If
|
---|
| 206 | <application>Firefox</application> is installed in a non-standard location,
|
---|
| 207 | then make a symlink to the <command>firefox</command> script from
|
---|
| 208 | <filename class="directory">/usr/bin</filename>.</para>
|
---|
| 209 |
|
---|
| 210 | <para>Many applications look for <command>netscape</command> when they
|
---|
| 211 | need to open a browser. You may make the following symlink for convenience
|
---|
| 212 | (as the <systemitem class="username">root</systemitem> user).</para>
|
---|
| 213 |
|
---|
| 214 | <screen role="root"><userinput>ln -v -sf firefox /usr/bin/netscape</userinput></screen>
|
---|
| 215 |
|
---|
| 216 | <para>For installing various <application>Firefox</application> plugins,
|
---|
| 217 | refer to <ulink url="http://plugindoc.mozdev.org/linux.html">Mozdev's
|
---|
| 218 | PluginDoc Project</ulink>. If you have <xref linkend="jdk"/> already
|
---|
| 219 | installed, create the following link as the
|
---|
| 220 | <systemitem class="username">root</systemitem> user to utilize the
|
---|
| 221 | <application>JAVA</application> plugin: </para>
|
---|
| 222 |
|
---|
| 223 | <screen role="root"><userinput>ln -v -s $JAVA_HOME/jre/plugin/i386/ns7/libjavaplugin_oji.so \
|
---|
| 224 | /usr/lib/firefox-&firefox-version;/plugins</userinput></screen>
|
---|
| 225 |
|
---|
| 226 | </sect2>
|
---|
| 227 |
|
---|
| 228 | <sect2 role="content">
|
---|
| 229 | <title>Contents</title>
|
---|
| 230 |
|
---|
| 231 | <segmentedlist>
|
---|
| 232 | <segtitle>Installed Programs</segtitle>
|
---|
| 233 | <segtitle>Installed Libraries</segtitle>
|
---|
| 234 | <segtitle>Installed Directories</segtitle>
|
---|
| 235 |
|
---|
| 236 | <seglistitem>
|
---|
| 237 | <seg>firefox and firefox-config</seg>
|
---|
| 238 | <seg>Numerous libraries, browser components, plugins, extensions, and
|
---|
| 239 | helper modules installed in <filename
|
---|
| 240 | class='directory'>/usr/lib/firefox-&firefox-version;</filename></seg>
|
---|
| 241 | <seg>/usr/bin/defaults, /usr/include/firefox-&firefox-version;,
|
---|
| 242 | /usr/lib/firefox-&firefox-version;, and
|
---|
| 243 | /usr/share/idl/firefox-&firefox-version;</seg>
|
---|
| 244 | </seglistitem>
|
---|
| 245 | </segmentedlist>
|
---|
| 246 |
|
---|
| 247 | <variablelist>
|
---|
| 248 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 249 | <?dbfo list-presentation="list"?>
|
---|
| 250 | <?dbhtml list-presentation="table"?>
|
---|
| 251 |
|
---|
| 252 | <varlistentry id="firefox-prog">
|
---|
| 253 | <term><command>firefox</command></term>
|
---|
| 254 | <listitem>
|
---|
| 255 | <para>is the next-generation browser from Mozilla.</para>
|
---|
| 256 | <indexterm zone="firefox firefox-prog">
|
---|
| 257 | <primary sortas="b-firefox">firefox</primary>
|
---|
| 258 | </indexterm>
|
---|
| 259 | </listitem>
|
---|
| 260 | </varlistentry>
|
---|
| 261 |
|
---|
| 262 | <varlistentry id="firefox-config">
|
---|
| 263 | <term><command>firefox-config</command></term>
|
---|
| 264 | <listitem>
|
---|
| 265 | <para>determines the compile and linker flags that should be
|
---|
| 266 | used to compile and link programs that use
|
---|
| 267 | <application>Firefox</application> libraries and browser
|
---|
| 268 | components.</para>
|
---|
| 269 | <indexterm zone="firefox firefox-config">
|
---|
| 270 | <primary sortas="b-firefox-config">firefox-config</primary>
|
---|
| 271 | </indexterm>
|
---|
| 272 | </listitem>
|
---|
| 273 | </varlistentry>
|
---|
| 274 |
|
---|
| 275 | </variablelist>
|
---|
| 276 |
|
---|
| 277 | </sect2>
|
---|
[4d37129] | 278 |
|
---|
| 279 | </sect1>
|
---|