2004-06-14 04:45:42 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2005-04-04 04:52:42 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
2004-06-14 04:45:42 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2004-12-08 11:46:21 +08:00
|
|
|
<!ENTITY firefox-download-http "http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;-source.tar.bz2">
|
2005-12-25 01:34:04 +08:00
|
|
|
<!ENTITY firefox-download-ftp "ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;-source.tar.bz2">
|
|
|
|
<!ENTITY firefox-md5sum "fa915ddcadecda30ed3e13694f26a779">
|
|
|
|
<!ENTITY firefox-size "34.4 MB">
|
|
|
|
<!ENTITY firefox-buildsize "568 MB">
|
|
|
|
<!ENTITY firefox-time "15.8 SBU">
|
2004-06-14 04:45:42 +08:00
|
|
|
]>
|
|
|
|
|
2004-07-15 19:52:34 +08:00
|
|
|
<sect1 id="firefox" xreflabel="Firefox-&firefox-version;">
|
2005-05-21 16:19:50 +08:00
|
|
|
<?dbhtml filename="firefox.html" ?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
2005-12-08 20:17:37 +08:00
|
|
|
<keywordset>
|
|
|
|
<keyword role="package">firefox-&firefox-version;-source.tar</keyword>
|
2005-12-09 04:33:20 +08:00
|
|
|
<keyword role="ftpdir">firefox</keyword>
|
2005-12-08 20:17:37 +08:00
|
|
|
</keywordset>
|
2005-05-21 16:19:50 +08:00
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>Firefox-&firefox-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="firefox">
|
|
|
|
<primary sortas="a-Firefox">Firefox</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to Firefox</title>
|
|
|
|
|
|
|
|
<para><application>Firefox</application> is a stand-alone browser
|
|
|
|
based on the <application>Mozilla</application> codebase.</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>Download (HTTP): <ulink url="&firefox-download-http;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (FTP): <ulink url="&firefox-download-ftp;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &firefox-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download size: &firefox-size;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated disk space required: &firefox-buildsize;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated build time: &firefox-time;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
2005-12-08 20:17:37 +08:00
|
|
|
<para role="required"><xref linkend="gtk2"/>,
|
2005-05-21 16:19:50 +08:00
|
|
|
<xref linkend="libidl"/> and
|
|
|
|
<xref linkend="zip"/></para>
|
|
|
|
|
2005-12-25 01:34:04 +08:00
|
|
|
<para>Note: <application>libjpeg</application> should have been installed
|
|
|
|
before <application>GTK+</application> and should exist on your system. If
|
|
|
|
for some reason you haven't installed <application>libjpeg</application>,
|
|
|
|
you should remove the <option>--with-system-jpeg</option> option from the
|
|
|
|
<filename>.mozconfig</filename> file created below.</para>
|
|
|
|
|
2005-05-21 16:19:50 +08:00
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
2005-12-25 01:34:04 +08:00
|
|
|
<para role="optional"><xref linkend="unzip"/> and
|
|
|
|
<xref linkend="libgnomeui"/> (to build the gnomevfs extension)</para>
|
2005-05-21 16:19:50 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of Firefox</title>
|
|
|
|
|
2005-12-25 01:34:04 +08:00
|
|
|
<!-- This is now obsolete (I'm almost certain). During the next update
|
|
|
|
of Firefox, please remove everything contained in this comment if
|
|
|
|
there's been no mention to reactivate this. -Randy
|
2005-05-21 16:19:50 +08:00
|
|
|
|
2005-08-25 10:16:32 +08:00
|
|
|
<para><application>Firefox</application> default behavior when invoked
|
|
|
|
with a URL parameter is to open a new browser window. If you would rather
|
|
|
|
<application>Firefox</application> open a new tab in an existing browser
|
|
|
|
window, issue the following command:</para>
|
|
|
|
|
2005-08-25 11:10:43 +08:00
|
|
|
<screen><userinput>sed -i 's|openURL(${_optLast}|&, new-tab|' browser/app/mozilla.in</userinput></screen>
|
2005-12-25 01:34:04 +08:00
|
|
|
-->
|
|
|
|
|
|
|
|
<para>The configuration of <application>Firefox</application> is
|
|
|
|
accomplished by creating a <filename>.mozconfig</filename> file containing
|
|
|
|
the desired configuration options. A default <filename>.mozconfig</filename>
|
|
|
|
is created below. To see the entire list of available configuration options
|
|
|
|
(and an abbreviated description of each one), issue
|
|
|
|
<command>./configure --help</command>. If you are going to build the
|
|
|
|
<application>OpenOffice</application> package and you want to use this
|
|
|
|
<application>Firefox</application> installation as the default
|
|
|
|
<application>Mozilla</application> source, ensure you uncomment the
|
|
|
|
<option>--enable-ldap</option> option from the default file created below.
|
|
|
|
You may also wish to review the entire file and uncomment any other desired
|
|
|
|
options. If you would prefer to download the file instead of creating it by
|
|
|
|
typing or cut-and-pasting, here is the URL: <ulink
|
|
|
|
url="http://anduin.linuxfromscratch.org/files/BLFS/firefox-&firefox-version;-mozconfig"/>
|
|
|
|
(the file must be installed in the
|
|
|
|
<filename class='directory'>mozilla</filename> directory and named
|
|
|
|
<filename>.mozconfig</filename>). Create the file by issuing the following
|
|
|
|
command:</para>
|
|
|
|
|
|
|
|
<screen><userinput>cat > .mozconfig << "EOF"
|
|
|
|
<literal># This file contains the options used in the Firefox build. You may
|
|
|
|
# need to specify additional options for your specific build needs.
|
|
|
|
# Use the information provided by running './configure --help' to
|
|
|
|
# help you determine if you need to add any additional options.
|
|
|
|
# Some additional options can be added by uncommenting the examples
|
|
|
|
# in this file or adding options by inserting a line containing
|
|
|
|
# 'ac_add_options --some-option-you-need'.
|
|
|
|
|
|
|
|
|
|
|
|
# Use the default settings specified in the source tree
|
|
|
|
. $topsrcdir/browser/config/mozconfig
|
|
|
|
|
|
|
|
# Create an object directory and specify to build the package in that
|
|
|
|
# directory. If desired, modify the location of the object directory
|
|
|
|
# to a directory inside the source tree by removing '../' from the
|
|
|
|
# line below.
|
|
|
|
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../firefox-build
|
|
|
|
|
|
|
|
# Specify the installation prefix. If you would prefer Firefox
|
|
|
|
# installed in a different prefix, modify the line below to fit
|
|
|
|
# your needs. You'll also need to modify some of the instructions in
|
|
|
|
# the BLFS book to point to your desired prefix.
|
|
|
|
ac_add_options --prefix=/usr
|
|
|
|
|
|
|
|
# These options are used so that the Firefox binaries are linked to
|
|
|
|
# the system-installed copies of the specified libraries instead of
|
|
|
|
# the source tree code which may not be the most recent versions.
|
|
|
|
ac_add_options --with-system-zlib
|
|
|
|
ac_add_options --with-system-png
|
|
|
|
ac_add_options --with-system-jpeg
|
|
|
|
ac_add_options --enable-system-cairo
|
|
|
|
|
|
|
|
# This option causes the installed binaries to have the official
|
|
|
|
# Firefox name embedded in them. Due to license restrictions, you
|
|
|
|
# may not distribute binaries created using this option.
|
|
|
|
ac_add_options --enable-official-branding
|
|
|
|
|
|
|
|
# This option specifies to include support for rendering the HTML
|
|
|
|
# <canvas></canvas> tag in the Firefox browser.
|
|
|
|
ac_add_options --enable-canvas
|
|
|
|
|
|
|
|
# This option is used so that the debugging symbols are removed from
|
|
|
|
# the installed binaries during the installation process. Comment out
|
|
|
|
# this option if you may have a need to retain the debugging symbols
|
|
|
|
# in the installed binaries. Note that this can substantially
|
|
|
|
# increase the size of the installed binaries.
|
|
|
|
ac_add_options --enable-strip
|
|
|
|
|
|
|
|
# This option is added so that test libraries and programs are not
|
|
|
|
# built. These would only be required for debugging purposes.
|
|
|
|
ac_add_options --disable-tests
|
|
|
|
|
|
|
|
# This option is added so that the Mozilla Installer program is not
|
|
|
|
# built or installed. The program is not required for a BLFS
|
|
|
|
# installation of Firefox.
|
|
|
|
ac_add_options --disable-installer
|
|
|
|
|
|
|
|
# This option is used to disable the a11y support in the Firefox
|
|
|
|
# binaries. Comment out this option if you require a11y support.
|
|
|
|
ac_add_options --disable-accessibility
|
|
|
|
|
|
|
|
# This option is used to enable source tree included LDAP support in
|
|
|
|
# the Firefox binaries.
|
|
|
|
###################################################################
|
|
|
|
#
|
|
|
|
# NOTE: You must uncomment this option if there is any chance of
|
|
|
|
# compiling the OpenOffice package from source code using this copy
|
|
|
|
# of Firefox for your Mozilla support.
|
|
|
|
#
|
|
|
|
###################################################################
|
|
|
|
#ac_add_options --enable-ldap
|
|
|
|
|
|
|
|
# This option is used to enable support for rendering SVG files in the
|
|
|
|
# Firefox browser. Uncomment the line below to enable the option.
|
|
|
|
#ac_add_options --enable-svg
|
|
|
|
|
|
|
|
# Uncomment this option if you desire support for dual-monitor
|
|
|
|
# display of Firefox using the X-Window Xinerama libraries.
|
|
|
|
#ac_add_options --enable-xinerama
|
|
|
|
|
|
|
|
# This option identifies the default binary directory of the Firefox
|
|
|
|
# installation and is used to locate Firefox's installed files. This
|
|
|
|
# option is not required for end-user browsing, and is only used for
|
|
|
|
# development purposes.
|
|
|
|
#ac_add_options --with-default-mozilla-five-home=/usr/lib/firefox-&firefox-version;</literal>
|
|
|
|
|
|
|
|
EOF</userinput></screen>
|
|
|
|
|
|
|
|
<para>Compile <application>Firefox</application> by issuing the
|
|
|
|
following command:</para>
|
|
|
|
|
|
|
|
<screen><userinput>make -f client.mk build</userinput></screen>
|
2005-11-30 03:07:13 +08:00
|
|
|
|
2005-05-21 16:19:50 +08:00
|
|
|
<para>This package does not come with a test suite.</para>
|
2005-04-11 03:19:58 +08:00
|
|
|
|
2005-12-25 01:34:04 +08:00
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user,
|
|
|
|
install the package:</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>make -f client.mk install &&
|
|
|
|
|
|
|
|
install -v -m755 -d /usr/lib/firefox-&firefox-version;/chrome/icons/default &&
|
|
|
|
ln -v -s ../../../icons/default.xpm \
|
|
|
|
/usr/lib/firefox-&firefox-version;/chrome/icons/default &&
|
2005-02-18 13:57:02 +08:00
|
|
|
|
2005-08-25 10:16:32 +08:00
|
|
|
install -v -m755 -d /usr/include/firefox-&firefox-version;/nss &&
|
2005-12-25 01:34:04 +08:00
|
|
|
cp -v -Lf ../firefox-build/dist/{private,public}/nss/*.h \
|
|
|
|
/usr/include/firefox-&firefox-version;/nss &&
|
|
|
|
|
|
|
|
chown -v -R root:root \
|
|
|
|
/usr/lib/firefox-&firefox-version;/extensions/inspector@mozilla.org/*</userinput></screen>
|
|
|
|
|
|
|
|
<para>If you enabled LDAP support in the <application>Firefox</application>
|
|
|
|
build, install some additional interface headers as the
|
|
|
|
<systemitem class="username">root</systemitem> user:</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>install -v -m644 ../firefox-build/dist/public/ldap-private/* \
|
|
|
|
/usr/include/firefox-&firefox-version;/ldap</userinput></screen>
|
|
|
|
|
|
|
|
<!-- This appears to not be required any longer. The regchrome program
|
|
|
|
is not built any longer, and multi-user access to Firefox appears
|
|
|
|
to work fine without running regxpcom and touching the files. -Randy
|
2004-07-15 19:52:34 +08:00
|
|
|
|
2005-05-21 16:19:50 +08:00
|
|
|
<para>To enable multi-user operation, execute the following as the
|
|
|
|
<systemitem class="username">root</systemitem> user:</para>
|
2004-06-14 04:45:42 +08:00
|
|
|
|
2005-05-21 16:19:50 +08:00
|
|
|
<screen role="root"><userinput>cd /usr/lib/firefox-&firefox-version; &&
|
2004-06-14 04:45:42 +08:00
|
|
|
export LD_LIBRARY_PATH="$PWD" &&
|
|
|
|
export MOZILLA_FIVE_HOME="$PWD" &&
|
|
|
|
./regxpcom &&
|
|
|
|
./regchrome &&
|
2005-05-21 16:19:50 +08:00
|
|
|
touch `find . -name *.rdf`</userinput></screen>
|
2004-06-14 04:45:42 +08:00
|
|
|
|
2005-12-25 01:34:04 +08:00
|
|
|
-->
|
|
|
|
|
2005-05-21 16:19:50 +08:00
|
|
|
<note>
|
|
|
|
<para>You should run <command>/usr/bin/firefox</command> once as the
|
|
|
|
<systemitem class="username">root</systemitem> user (or any user with
|
|
|
|
write privileges) to create some necessary additional files in the
|
|
|
|
<filename class='directory'>/usr</filename> hierarchy.</para>
|
|
|
|
</note>
|
2004-09-14 00:12:40 +08:00
|
|
|
|
2005-05-21 16:19:50 +08:00
|
|
|
</sect2>
|
|
|
|
|
2005-08-25 10:16:32 +08:00
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2005-12-25 01:34:04 +08:00
|
|
|
<para><command>install -v -m755 -d .../chrome/icons/default</command> and
|
|
|
|
<command>ln -v -s ../../../icons/default.xpm ...</command>: These two
|
|
|
|
commands are used to create a symlink in the required directory so that
|
|
|
|
the proper icon is displayed in the taskbar and when
|
|
|
|
<application>Firefox</application> windows are minimized.</para>
|
|
|
|
|
|
|
|
<para><command>install -v -m755 -d /usr/include/firefox-&firefox-version;/nss</command>
|
|
|
|
and <command>cp -v -Lf ../firefox-build/dist/{private,public}/nss/*.h ...</command>:
|
|
|
|
These commands are used to install the Mozilla Network Security Services
|
|
|
|
(NSS) interface headers to a system-wide location.</para>
|
|
|
|
|
|
|
|
<para><command>chown -v -R root:root ...</command>: This command changes
|
|
|
|
the ownership of some installed files to more appropriate user:group
|
|
|
|
names.</para>
|
2005-08-25 10:16:32 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2005-05-21 16:19:50 +08:00
|
|
|
<sect2 role="configuration">
|
|
|
|
<title>Configuring Firefox</title>
|
|
|
|
|
|
|
|
<para>No specific configuration is required as long as the
|
|
|
|
<command>firefox</command> script is in the user's path. If
|
|
|
|
<application>Firefox</application> is installed in a non-standard location,
|
2005-12-25 01:34:04 +08:00
|
|
|
then make a symlink to the <command>firefox</command> script in the
|
|
|
|
<filename class="directory">/usr/bin</filename> directory.</para>
|
2005-05-21 16:19:50 +08:00
|
|
|
|
|
|
|
<para>Many applications look for <command>netscape</command> when they
|
|
|
|
need to open a browser. You may make the following symlink for convenience
|
|
|
|
(as the <systemitem class="username">root</systemitem> user).</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>ln -v -sf firefox /usr/bin/netscape</userinput></screen>
|
|
|
|
|
|
|
|
<para>For installing various <application>Firefox</application> plugins,
|
|
|
|
refer to <ulink url="http://plugindoc.mozdev.org/linux.html">Mozdev's
|
|
|
|
PluginDoc Project</ulink>. If you have <xref linkend="jdk"/> already
|
|
|
|
installed, create the following link as the
|
2005-12-25 01:34:04 +08:00
|
|
|
<systemitem class="username">root</systemitem> user to utilize the installed
|
|
|
|
<application>Java</application> plugin: </para>
|
2005-05-21 16:19:50 +08:00
|
|
|
|
|
|
|
<screen role="root"><userinput>ln -v -s $JAVA_HOME/jre/plugin/i386/ns7/libjavaplugin_oji.so \
|
|
|
|
/usr/lib/firefox-&firefox-version;/plugins</userinput></screen>
|
|
|
|
|
2005-12-25 01:34:04 +08:00
|
|
|
<para>Some packages install Mozilla plugins into the default system-wide
|
|
|
|
directory <filename class='directory'>/usr/lib/mozilla/plugins</filename>.
|
|
|
|
If desired, issue the following commands as the
|
|
|
|
<systemitem class="username">root</systemitem> user to link any plugins
|
|
|
|
you may have installed to the <application>Firefox</application> plugin
|
|
|
|
directory.</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>if [ -f /usr/lib/mozilla/plugins/* ]; then
|
|
|
|
for PLUGIN_FILE in $(ls /usr/lib/mozilla/plugins/*)
|
|
|
|
do
|
|
|
|
ln -v -s ../../mozilla/plugins/$(basename $PLUGIN_FILE) \
|
|
|
|
/usr/lib/firefox-&firefox-version;/plugins
|
|
|
|
done
|
|
|
|
fi</userinput></screen>
|
|
|
|
|
2005-05-21 16:19:50 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>firefox and firefox-config</seg>
|
|
|
|
<seg>Numerous libraries, browser components, plugins, extensions, and
|
|
|
|
helper modules installed in <filename
|
|
|
|
class='directory'>/usr/lib/firefox-&firefox-version;</filename></seg>
|
2005-12-25 01:34:04 +08:00
|
|
|
<seg>/usr/include/firefox-&firefox-version;,
|
2005-05-21 16:19:50 +08:00
|
|
|
/usr/lib/firefox-&firefox-version;, and
|
|
|
|
/usr/share/idl/firefox-&firefox-version;</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="firefox-prog">
|
|
|
|
<term><command>firefox</command></term>
|
|
|
|
<listitem>
|
2005-12-25 01:34:04 +08:00
|
|
|
<para>is a shell script that sets up the environment and
|
|
|
|
calls the <filename>firefox-bin</filename> binary.</para>
|
2005-05-21 16:19:50 +08:00
|
|
|
<indexterm zone="firefox firefox-prog">
|
|
|
|
<primary sortas="b-firefox">firefox</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="firefox-config">
|
|
|
|
<term><command>firefox-config</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>determines the compile and linker flags that should be
|
|
|
|
used to compile and link programs that use
|
|
|
|
<application>Firefox</application> libraries and browser
|
|
|
|
components.</para>
|
|
|
|
<indexterm zone="firefox firefox-config">
|
|
|
|
<primary sortas="b-firefox-config">firefox-config</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
2004-02-23 09:29:29 +08:00
|
|
|
|
|
|
|
</sect1>
|