[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">
|
---|
[4576a11] | 9 | <!ENTITY firefox-md5sum "7b4c1d10d478dcb4c52fbbe3e41745d9">
|
---|
| 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 |
|
---|
| 68 | <bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
|
---|
| 69 |
|
---|
| 70 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 71 | <para><xref linkend="gtk2"/>,
|
---|
| 72 | <xref linkend="libidl"/> and
|
---|
| 73 | <xref linkend="zip"/></para>
|
---|
| 74 |
|
---|
| 75 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 76 | <para><xref linkend="libjpeg"/>,
|
---|
| 77 | <xref linkend="unzip"/>,
|
---|
| 78 | <xref linkend="gnome-vfs"/> and
|
---|
| 79 | <xref linkend="libgnome"/> (to build the gnomevfs extension),
|
---|
| 80 | <xref linkend="mitkrb"/> or <xref linkend="heimdal"/>
|
---|
| 81 | (for the GSSAPI libraries to build the negotiateauth extension),
|
---|
| 82 | <xref linkend="doxygen"/>,
|
---|
| 83 | <ulink url="http://xprint.mozdev.org/">Xprint</ulink>,
|
---|
| 84 | <ulink url="http://perens.com/FreeSoftware/">Electric Fence</ulink> and
|
---|
| 85 | <ulink url="http://cairographics.org/">Cairo</ulink></para>
|
---|
| 86 |
|
---|
| 87 | </sect2>
|
---|
| 88 |
|
---|
| 89 | <sect2 role="installation">
|
---|
| 90 | <title>Installation of Firefox</title>
|
---|
| 91 |
|
---|
| 92 | <para>The configuration of <application>Firefox</application> is very
|
---|
| 93 | similar to <xref linkend="mozilla"/> and hence the options are not
|
---|
| 94 | discussed. Refer to the <xref linkend="mozilla"/> instructions for
|
---|
| 95 | explanations and additional configuration information.</para>
|
---|
| 96 |
|
---|
[361df3e] | 97 | <para><application>Firefox</application> default behavior when invoked
|
---|
| 98 | with a URL parameter is to open a new browser window. If you would rather
|
---|
| 99 | <application>Firefox</application> open a new tab in an existing browser
|
---|
| 100 | window, issue the following command:</para>
|
---|
| 101 |
|
---|
[519bbf6] | 102 | <screen><userinput>sed -i 's|openURL(${_optLast}|&, new-tab|' browser/app/mozilla.in</userinput></screen>
|
---|
[361df3e] | 103 |
|
---|
[b81991e1] | 104 | <para>Compile and install <application>Firefox</application> by
|
---|
| 105 | running the following commands:</para>
|
---|
| 106 |
|
---|
| 107 | <screen><userinput>export MOZILLA_OFFICIAL="1" &&
|
---|
[f939f05] | 108 | export BUILD_OFFICIAL="1" &&
|
---|
| 109 | export MOZ_PHOENIX="1" &&
|
---|
[2034389] | 110 |
|
---|
[519bbf6] | 111 | sed -i 's| dist_bin="$moz_libdir"|\
|
---|
| 112 | &\n run_moz="$dist_bin/run-mozilla.sh"|' browser/app/mozilla.in &&
|
---|
[2034389] | 113 |
|
---|
[3e602d7a] | 114 | ./configure --prefix=/usr \
|
---|
[361df3e] | 115 | --with-default-mozilla-five-home=/usr/lib/firefox-&firefox-version; \
|
---|
[d1981e0] | 116 | --with-user-appdir=.firefox \
|
---|
[ffe47ca2] | 117 | --with-system-zlib \
|
---|
| 118 | --with-system-png \
|
---|
[d1981e0] | 119 | --enable-application=browser \
|
---|
[f939f05] | 120 | --enable-default-toolkit=gtk2 \
|
---|
[b94212a] | 121 | --enable-extensions=cookie,xml-rpc,xmlextras,pref,\
|
---|
[4d06a01f] | 122 | transformiix,universalchardet,webservices,inspector,\
|
---|
| 123 | gnomevfs,negotiateauth \
|
---|
[ffe47ca2] | 124 | --enable-crypto \
|
---|
[d1981e0] | 125 | --enable-xft \
|
---|
[ffe47ca2] | 126 | --enable-xinerama \
|
---|
| 127 | --enable-optimize \
|
---|
| 128 | --enable-reorder \
|
---|
| 129 | --enable-strip \
|
---|
| 130 | --enable-cpp-rtti \
|
---|
[d1981e0] | 131 | --enable-single-profile \
|
---|
| 132 | --disable-freetype2 \
|
---|
| 133 | --disable-accessibility \
|
---|
| 134 | --disable-debug \
|
---|
| 135 | --disable-tests \
|
---|
| 136 | --disable-logging \
|
---|
| 137 | --disable-pedantic \
|
---|
| 138 | --disable-installer \
|
---|
| 139 | --disable-mailnews \
|
---|
| 140 | --disable-ldap \
|
---|
| 141 | --disable-composer \
|
---|
[ffe47ca2] | 142 | --disable-profilesharing &&
|
---|
[b81991e1] | 143 | make</userinput></screen>
|
---|
[e3c939cc] | 144 |
|
---|
[b81991e1] | 145 | <para>You should add the <option>--with-system-jpeg</option> switch
|
---|
| 146 | to the <command>configure</command> script if you have
|
---|
| 147 | <application>libjpeg</application> installed.</para>
|
---|
[4d06a01f] | 148 |
|
---|
[b81991e1] | 149 | <para>This package does not come with a test suite.</para>
|
---|
[4a8e9f7] | 150 |
|
---|
[b81991e1] | 151 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[e3c939cc] | 152 |
|
---|
[b81991e1] | 153 | <screen role="root"><userinput>make install &&
|
---|
[361df3e] | 154 | install -v -m755 -d /usr/include/firefox-&firefox-version;/nss &&
|
---|
| 155 | cp -v -Lf dist/private/nss/*.h dist/public/nss/*.h \
|
---|
[b81991e1] | 156 | /usr/include/firefox-&firefox-version;/nss</userinput></screen>
|
---|
[ffe47ca2] | 157 |
|
---|
[b81991e1] | 158 | <para>To enable multi-user operation, execute the following as the
|
---|
| 159 | <systemitem class="username">root</systemitem> user:</para>
|
---|
[f939f05] | 160 |
|
---|
[b81991e1] | 161 | <screen role="root"><userinput>cd /usr/lib/firefox-&firefox-version; &&
|
---|
[f939f05] | 162 | export LD_LIBRARY_PATH="$PWD" &&
|
---|
| 163 | export MOZILLA_FIVE_HOME="$PWD" &&
|
---|
| 164 | ./regxpcom &&
|
---|
| 165 | ./regchrome &&
|
---|
[b81991e1] | 166 | touch `find . -name *.rdf`</userinput></screen>
|
---|
[f939f05] | 167 |
|
---|
[b81991e1] | 168 | <note>
|
---|
| 169 | <para>You should run <command>/usr/bin/firefox</command> once as the
|
---|
| 170 | <systemitem class="username">root</systemitem> user (or any user with
|
---|
| 171 | write privileges) to create some necessary additional files in the
|
---|
| 172 | <filename class='directory'>/usr</filename> hierarchy.</para>
|
---|
| 173 | </note>
|
---|
[82539b8b] | 174 |
|
---|
[b81991e1] | 175 | <para>Lastly, unset the build variables from the unprivileged user's
|
---|
| 176 | environment:</para>
|
---|
[b94212a] | 177 |
|
---|
[b81991e1] | 178 | <screen><userinput>unset MOZILLA_OFFICIAL &&
|
---|
[b94212a] | 179 | unset BUILD_OFFICIAL &&
|
---|
[b81991e1] | 180 | unset MOZ_PHOENIX</userinput></screen>
|
---|
| 181 |
|
---|
| 182 | </sect2>
|
---|
| 183 |
|
---|
[361df3e] | 184 | <sect2 role="commands">
|
---|
| 185 | <title>Command Explanations</title>
|
---|
| 186 |
|
---|
| 187 | <para><command>sed -i '...' browser/app/mozilla.in</command>: This command
|
---|
| 188 | fixes an issue where <application>Firefox</application> wants to call the
|
---|
| 189 | profile manager instead of just invoking another copy of itself.</para>
|
---|
| 190 |
|
---|
| 191 | </sect2>
|
---|
| 192 |
|
---|
[b81991e1] | 193 | <sect2 role="configuration">
|
---|
| 194 | <title>Configuring Firefox</title>
|
---|
| 195 |
|
---|
| 196 | <para>No specific configuration is required as long as the
|
---|
| 197 | <command>firefox</command> script is in the user's path. If
|
---|
| 198 | <application>Firefox</application> is installed in a non-standard location,
|
---|
| 199 | then make a symlink to the <command>firefox</command> script from
|
---|
| 200 | <filename class="directory">/usr/bin</filename>.</para>
|
---|
| 201 |
|
---|
| 202 | <para>Many applications look for <command>netscape</command> when they
|
---|
| 203 | need to open a browser. You may make the following symlink for convenience
|
---|
| 204 | (as the <systemitem class="username">root</systemitem> user).</para>
|
---|
| 205 |
|
---|
| 206 | <screen role="root"><userinput>ln -v -sf firefox /usr/bin/netscape</userinput></screen>
|
---|
| 207 |
|
---|
| 208 | <para>For installing various <application>Firefox</application> plugins,
|
---|
| 209 | refer to <ulink url="http://plugindoc.mozdev.org/linux.html">Mozdev's
|
---|
| 210 | PluginDoc Project</ulink>. If you have <xref linkend="jdk"/> already
|
---|
| 211 | installed, create the following link as the
|
---|
| 212 | <systemitem class="username">root</systemitem> user to utilize the
|
---|
| 213 | <application>JAVA</application> plugin: </para>
|
---|
| 214 |
|
---|
| 215 | <screen role="root"><userinput>ln -v -s $JAVA_HOME/jre/plugin/i386/ns7/libjavaplugin_oji.so \
|
---|
| 216 | /usr/lib/firefox-&firefox-version;/plugins</userinput></screen>
|
---|
| 217 |
|
---|
| 218 | </sect2>
|
---|
| 219 |
|
---|
| 220 | <sect2 role="content">
|
---|
| 221 | <title>Contents</title>
|
---|
| 222 |
|
---|
| 223 | <segmentedlist>
|
---|
| 224 | <segtitle>Installed Programs</segtitle>
|
---|
| 225 | <segtitle>Installed Libraries</segtitle>
|
---|
| 226 | <segtitle>Installed Directories</segtitle>
|
---|
| 227 |
|
---|
| 228 | <seglistitem>
|
---|
| 229 | <seg>firefox and firefox-config</seg>
|
---|
| 230 | <seg>Numerous libraries, browser components, plugins, extensions, and
|
---|
| 231 | helper modules installed in <filename
|
---|
| 232 | class='directory'>/usr/lib/firefox-&firefox-version;</filename></seg>
|
---|
| 233 | <seg>/usr/bin/defaults, /usr/include/firefox-&firefox-version;,
|
---|
| 234 | /usr/lib/firefox-&firefox-version;, and
|
---|
| 235 | /usr/share/idl/firefox-&firefox-version;</seg>
|
---|
| 236 | </seglistitem>
|
---|
| 237 | </segmentedlist>
|
---|
| 238 |
|
---|
| 239 | <variablelist>
|
---|
| 240 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 241 | <?dbfo list-presentation="list"?>
|
---|
| 242 | <?dbhtml list-presentation="table"?>
|
---|
| 243 |
|
---|
| 244 | <varlistentry id="firefox-prog">
|
---|
| 245 | <term><command>firefox</command></term>
|
---|
| 246 | <listitem>
|
---|
| 247 | <para>is the next-generation browser from Mozilla.</para>
|
---|
| 248 | <indexterm zone="firefox firefox-prog">
|
---|
| 249 | <primary sortas="b-firefox">firefox</primary>
|
---|
| 250 | </indexterm>
|
---|
| 251 | </listitem>
|
---|
| 252 | </varlistentry>
|
---|
| 253 |
|
---|
| 254 | <varlistentry id="firefox-config">
|
---|
| 255 | <term><command>firefox-config</command></term>
|
---|
| 256 | <listitem>
|
---|
| 257 | <para>determines the compile and linker flags that should be
|
---|
| 258 | used to compile and link programs that use
|
---|
| 259 | <application>Firefox</application> libraries and browser
|
---|
| 260 | components.</para>
|
---|
| 261 | <indexterm zone="firefox firefox-config">
|
---|
| 262 | <primary sortas="b-firefox-config">firefox-config</primary>
|
---|
| 263 | </indexterm>
|
---|
| 264 | </listitem>
|
---|
| 265 | </varlistentry>
|
---|
| 266 |
|
---|
| 267 | </variablelist>
|
---|
| 268 |
|
---|
| 269 | </sect2>
|
---|
[4d37129] | 270 |
|
---|
| 271 | </sect1>
|
---|