[f939f05] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[f939f05] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[d9402bb4] | 7 | <!ENTITY firefox-download-http "http://releases.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;-source.tar.bz2">
|
---|
[5a13c45] | 8 | <!ENTITY firefox-download-ftp "ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;-source.tar.bz2">
|
---|
[2082307d] | 9 | <!ENTITY firefox-md5sum "136867f95c86f3988b7f825e874b85de">
|
---|
| 10 | <!ENTITY firefox-size " MB">
|
---|
| 11 | <!ENTITY firefox-buildsize "322 MB (stand-alone) or 291 MB (on xulrunner)">
|
---|
| 12 | <!ENTITY firefox-time "11 SBU (stand-alone) or 0.2 SBU (on xulrunner)">
|
---|
[f939f05] | 13 | ]>
|
---|
| 14 |
|
---|
[ffe47ca2] | 15 | <sect1 id="firefox" xreflabel="Firefox-&firefox-version;">
|
---|
[b81991e1] | 16 | <?dbhtml filename="firefox.html" ?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>Firefox-&firefox-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="firefox">
|
---|
| 26 | <primary sortas="a-Firefox">Firefox</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to Firefox</title>
|
---|
| 31 |
|
---|
| 32 | <para><application>Firefox</application> is a stand-alone browser
|
---|
| 33 | based on the <application>Mozilla</application> codebase.</para>
|
---|
| 34 |
|
---|
[2082307d] | 35 | <para>With the introduction of firefox-3.x, the
|
---|
| 36 | <application>pkgconfig</application> files for the Gecko engine (and for
|
---|
| 37 | <application>nss</application> and <application>nspr</application>) are not
|
---|
| 38 | installed. This means that applications such as
|
---|
| 39 | <application>Epiphany</application> can no longer be built against firefox,
|
---|
| 40 | and must instead be built against xulrunner (which is actually the same
|
---|
| 41 | code, but built in a different way). If you wish to build other packages
|
---|
| 42 | which use Gecko (for the moment, probably only gnome-2.24 or later versions
|
---|
| 43 | will recognize xulrunner), build <xref linkend="xulrunner"/> first.</para>
|
---|
[aed37975] | 44 |
|
---|
| 45 | <tip>
|
---|
[2082307d] | 46 | <para>Firefox is updated frequently as new vulnerabilities are found.
|
---|
| 47 | Consult
|
---|
[aed37975] | 48 | <ulink url="http://www.mozilla.org/security/known-vulnerabilities/">mozilla security</ulink>
|
---|
[2082307d] | 49 | for details of what is fixed in newer releases. The editors cannot guess
|
---|
| 50 | what will differ in newer versions: it should be straightforward to upgrade
|
---|
| 51 | within the same series (3.5), but it is always possible that newer versions
|
---|
| 52 | will have increased dependencies, or that something using the nss or gecko
|
---|
| 53 | libraries will break. If you update, begin by updating
|
---|
| 54 | <application>xulrunner</application> if you use that, then update firefox
|
---|
| 55 | (ensuring the libxul-sdk option points to the new version).</para>
|
---|
[aed37975] | 56 | </tip>
|
---|
| 57 |
|
---|
[b81991e1] | 58 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 59 | <itemizedlist spacing="compact">
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>Download (HTTP): <ulink url="&firefox-download-http;"/></para>
|
---|
| 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
| 64 | <para>Download (FTP): <ulink url="&firefox-download-ftp;"/></para>
|
---|
| 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
| 67 | <para>Download MD5 sum: &firefox-md5sum;</para>
|
---|
| 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
| 70 | <para>Download size: &firefox-size;</para>
|
---|
| 71 | </listitem>
|
---|
| 72 | <listitem>
|
---|
| 73 | <para>Estimated disk space required: &firefox-buildsize;</para>
|
---|
| 74 | </listitem>
|
---|
| 75 | <listitem>
|
---|
| 76 | <para>Estimated build time: &firefox-time;</para>
|
---|
| 77 | </listitem>
|
---|
| 78 | </itemizedlist>
|
---|
| 79 |
|
---|
[2082307d] | 80 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 81 | <itemizedlist spacing="compact">
|
---|
| 82 | <listitem>
|
---|
| 83 | <para>Optional patch: <ulink
|
---|
[c65f0c0] | 84 | url="&patch-root;/firefox-&firefox-version;-provide_system_nspr_nss-2.patch"/>
|
---|
[2082307d] | 85 | (Required if using the included NSPR and NSS libs as system versions for
|
---|
| 86 | other packages)</para>
|
---|
| 87 | </listitem>
|
---|
| 88 | </itemizedlist>
|
---|
| 89 |
|
---|
[b81991e1] | 90 | <bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
|
---|
| 91 |
|
---|
[aed37975] | 92 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[2082307d] | 93 | <para role="recommended"><xref linkend="xulrunner"/> which shares all these
|
---|
[aed37975] | 94 | dependencies, or for a standalone firefox the following Required and
|
---|
| 95 | Optional dependencies:</para>
|
---|
| 96 |
|
---|
[b81991e1] | 97 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[2082307d] | 98 | <para role="required"><xref linkend="alsa-lib"/>,
|
---|
| 99 | <xref linkend="gtk2"/>,
|
---|
[aed37975] | 100 | <xref linkend="libidl"/>
|
---|
| 101 | <xref linkend="pango"/>
|
---|
| 102 | <xref linkend="python"/>, and
|
---|
[b81991e1] | 103 | <xref linkend="zip"/></para>
|
---|
| 104 |
|
---|
[5a13c45] | 105 | <para>Note: <application>libjpeg</application> should have been installed
|
---|
| 106 | before <application>GTK+</application> and should exist on your system. If
|
---|
| 107 | for some reason you haven't installed <application>libjpeg</application>,
|
---|
| 108 | you should remove the <option>--with-system-jpeg</option> option from the
|
---|
| 109 | <filename>.mozconfig</filename> file created below.</para>
|
---|
| 110 |
|
---|
[b81991e1] | 111 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[aed37975] | 112 | <para role="optional"><xref linkend="dbus-glib"/>,
|
---|
| 113 | <xref linkend="doxygen"/>,
|
---|
| 114 | <xref linkend="curl"/> (only for crash-reporter),
|
---|
| 115 | <xref linkend="gnome-vfs"/> and <xref linkend="libgnomeui"/>
|
---|
| 116 | (for gnome integration),
|
---|
| 117 | <xref linkend="lcms"/>,
|
---|
| 118 | <xref linkend="libpng"/> (patched for apng support),
|
---|
[2082307d] | 119 | <xref linkend="nspr"/>,
|
---|
| 120 | <xref linkend="nss"/>,
|
---|
[aed37975] | 121 | <xref linkend="startup-notification"/>.
|
---|
[2082307d] | 122 | <xref linkend="sqlite"/>,
|
---|
[aed37975] | 123 | <xref linkend="unzip"/>,
|
---|
| 124 | <ulink url="http://www.valgrind.org/">Valgrind</ulink> (only for testing the
|
---|
| 125 | jemalloc code), and
|
---|
| 126 | <xref linkend="wget"/></para>
|
---|
[b81991e1] | 127 |
|
---|
[38e4f06] | 128 | <para condition="html" role="usernotes">User Notes:
|
---|
| 129 | <ulink url="&blfs-wiki;/firefox"/></para>
|
---|
| 130 |
|
---|
[b81991e1] | 131 | </sect2>
|
---|
| 132 |
|
---|
| 133 | <sect2 role="installation">
|
---|
| 134 | <title>Installation of Firefox</title>
|
---|
| 135 |
|
---|
[5a13c45] | 136 | <para>The configuration of <application>Firefox</application> is
|
---|
| 137 | accomplished by creating a <filename>.mozconfig</filename> file containing
|
---|
| 138 | the desired configuration options. A default <filename>.mozconfig</filename>
|
---|
| 139 | is created below. To see the entire list of available configuration options
|
---|
| 140 | (and an abbreviated description of each one), issue
|
---|
[2082307d] | 141 | <command>./configure --help</command>. If you are not building against
|
---|
| 142 | <application>Xulrunner</application> you must comment the 'xulrunner' items.
|
---|
[5a13c45] | 143 | You may also wish to review the entire file and uncomment any other desired
|
---|
| 144 | options. If you would prefer to download the file instead of creating it by
|
---|
[c103832] | 145 | typing or cut-and-pasting, you can find it at <ulink
|
---|
[60a31248] | 146 | url="&files-anduin;/firefox-&firefox-version;-mozconfig"/>
|
---|
[c103832] | 147 | (the file must be installed in the root of the source tree
|
---|
[6473e74] | 148 | <filename class='directory'>mozilla</filename> directory, and named
|
---|
[5a13c45] | 149 | <filename>.mozconfig</filename>). Create the file by issuing the following
|
---|
| 150 | command:</para>
|
---|
| 151 |
|
---|
[8e37798] | 152 | <screen><?dbfo keep-together="auto"?><userinput>cat > .mozconfig << "EOF"
|
---|
[2082307d] | 153 | <literal># This file contains the options used in the Firefox build. You may
|
---|
| 154 | # need to specify additional options for your specific build needs.
|
---|
[5a13c45] | 155 | # Use the information provided by running './configure --help' to
|
---|
| 156 | # help you determine if you need to add any additional options.
|
---|
| 157 | # Some additional options can be added by uncommenting the examples
|
---|
| 158 | # in this file or adding options by inserting a line containing
|
---|
[2082307d] | 159 | # 'ac_add_options --some-option-you-need'. Be aware that some accepted
|
---|
| 160 | # options, such as '--with-system-bz2', do not affect the build.
|
---|
[5a13c45] | 161 |
|
---|
[2082307d] | 162 | # specify that we want to build firefox
|
---|
[aed37975] | 163 | ac_add_options --enable-application=browser
|
---|
[5a13c45] | 164 |
|
---|
| 165 | # Use the default settings specified in the source tree
|
---|
| 166 | . $topsrcdir/browser/config/mozconfig
|
---|
| 167 |
|
---|
| 168 | # Create an object directory and specify to build the package in that
|
---|
| 169 | # directory. If desired, modify the location of the object directory
|
---|
| 170 | # to a directory inside the source tree by removing '../' from the
|
---|
| 171 | # line below.
|
---|
| 172 | mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../firefox-build
|
---|
| 173 |
|
---|
[2082307d] | 174 | # Specify the installation prefix. If you would prefer Xulrunner
|
---|
[5a13c45] | 175 | # installed in a different prefix, modify the line below to fit
|
---|
[2082307d] | 176 | # your needs (the config will always be written to /etc/gre.d)
|
---|
[5a13c45] | 177 | ac_add_options --prefix=/usr
|
---|
| 178 |
|
---|
[2082307d] | 179 | # apply a minimal level of optimization (-O)
|
---|
[aed37975] | 180 | ac_add_options --enable-optimize
|
---|
| 181 |
|
---|
[2082307d] | 182 | # These options are used so that the Xulrunner binaries are linked to
|
---|
| 183 | # the system-installed copies of the specified libraries instead of
|
---|
| 184 | # the source tree code which may not be the most recent versions.
|
---|
| 185 | # With the exception of libsqlite3, the libraries are statically linked.
|
---|
| 186 |
|
---|
| 187 | # (Options to use system installed libraries)
|
---|
| 188 | # Using the shipped version of libsqlite3 has been reported to cause
|
---|
| 189 | # problems with other applications which were using sqlite3.
|
---|
[74eaf91] | 190 | # Only comment this line if you know exactly what you are doing!
|
---|
[2082307d] | 191 | ac_add_options --enable-system-sqlite
|
---|
| 192 |
|
---|
| 193 | # Comment this only if you want to use whatever patched version of cairo
|
---|
| 194 | # is in the shipped mozilla tree, together with the system headers.
|
---|
[5a13c45] | 195 | ac_add_options --enable-system-cairo
|
---|
| 196 |
|
---|
[2082307d] | 197 | # Comment this if you have not installed lcms.
|
---|
[aed37975] | 198 | ac_add_options --enable-system-lcms
|
---|
[5a13c45] | 199 |
|
---|
[2082307d] | 200 | # Comment this if you did not build libjpeg before GTK+-2.
|
---|
[aed37975] | 201 | ac_add_options --with-system-jpeg
|
---|
[5a13c45] | 202 |
|
---|
[2082307d] | 203 | # These two options enable support for building Xulrunner with
|
---|
[aed37975] | 204 | # system-installed versions of the Network Security Services (NSS)
|
---|
[2082307d] | 205 | # and Netscape Portable Runtime (NSPR) libraries. Comment them if
|
---|
| 206 | # you wish to use the included copies (not recommended).
|
---|
[aed37975] | 207 | ac_add_options --with-system-nspr
|
---|
| 208 | ac_add_options --with-system-nss
|
---|
| 209 |
|
---|
[2082307d] | 210 | # Comment this if you have not built png with the apng patch.
|
---|
[aed37975] | 211 | ac_add_options --with-system-png
|
---|
| 212 |
|
---|
[2082307d] | 213 | # The pthreads option is only used when building nspr
|
---|
| 214 | # Uncomment this if you build the included nspr.
|
---|
[aed37975] | 215 | #ac_add_options --with-pthreads
|
---|
| 216 |
|
---|
[2082307d] | 217 | # zlib is included in LFS. Do not comment this line.
|
---|
[aed37975] | 218 | ac_add_options --with-system-zlib
|
---|
| 219 |
|
---|
[2082307d] | 220 | # (Options to disable parts of the package)
|
---|
| 221 | # This option is used to disable the a11y support in the Xulrunner
|
---|
[aed37975] | 222 | # binaries. Comment out this option if you require a11y support.
|
---|
| 223 | ac_add_options --disable-accessibility
|
---|
| 224 |
|
---|
[2082307d] | 225 | # Uncomment this if you did not build curl.
|
---|
[74eaf91] | 226 | #ac_add_options --disable-crashreporter
|
---|
[aed37975] | 227 |
|
---|
[2082307d] | 228 | # Comment this if you have built dbus-glib.
|
---|
[74eaf91] | 229 | ac_add_options --disable-dbus
|
---|
[aed37975] | 230 |
|
---|
[2082307d] | 231 | # Comment this if you have gnome-vfs and libgnomeui, and wish to
|
---|
| 232 | # integrate xulrunner into your gnome desktop
|
---|
[aed37975] | 233 | ac_add_options --disable-gnomevfs
|
---|
[5a13c45] | 234 |
|
---|
| 235 | # This option is added so that the Mozilla Installer program is not
|
---|
| 236 | # built or installed. The program is not required for a BLFS
|
---|
[2082307d] | 237 | # installation of Xulrunner.
|
---|
[5a13c45] | 238 | ac_add_options --disable-installer
|
---|
| 239 |
|
---|
[2082307d] | 240 | # If you enable javaxpcom, you must have a java compiler installed.
|
---|
| 241 | ac_add_options --disable-javaxpcom
|
---|
| 242 |
|
---|
| 243 | # mochitest often causes problems
|
---|
[aed37975] | 244 | ac_add_options --disable-mochitest
|
---|
| 245 |
|
---|
| 246 | # This option is added so that test libraries and programs are not
|
---|
| 247 | # built. These would only be required for debugging purposes.
|
---|
| 248 | ac_add_options --disable-tests
|
---|
[5a13c45] | 249 |
|
---|
[2082307d] | 250 | # Disable the updater, which is not appropriate if you build from source
|
---|
[aed37975] | 251 | ac_add_options --disable-updater
|
---|
| 252 |
|
---|
| 253 | # (options to add extra parts of the package)
|
---|
[5a13c45] | 254 | # This option is used to enable source tree included LDAP support in
|
---|
[2082307d] | 255 | # the Xulrunner binaries.
|
---|
[5a13c45] | 256 | ###################################################################
|
---|
| 257 | #
|
---|
| 258 | # NOTE: You must uncomment this option if there is any chance of
|
---|
| 259 | # compiling the OpenOffice package from source code using this copy
|
---|
[2082307d] | 260 | # of Xulrunner for your Mozilla support.
|
---|
| 261 | #
|
---|
| 262 | # This has NOT been tested, the current status of OpenOffice
|
---|
| 263 | # and xulrunner is unknown! (Remove this comment before release)
|
---|
[5a13c45] | 264 | #
|
---|
| 265 | ###################################################################
|
---|
| 266 | #ac_add_options --enable-ldap
|
---|
| 267 |
|
---|
[211d84f4] | 268 | # This option causes the installed binaries to have the official
|
---|
| 269 | # Firefox name embedded in them. Due to license restrictions, you
|
---|
| 270 | # may not distribute binaries created using this option. It also
|
---|
| 271 | # means you get a popup EULA when you first run firefox.
|
---|
| 272 | # If you disable this, the browser will call itself Shiretoki.
|
---|
| 273 | ac_add_options --enable-official-branding
|
---|
| 274 |
|
---|
[2082307d] | 275 | # Use the anti-phishing measures (a blacklist of sites).
|
---|
[aed37975] | 276 | ac_add_options --enable-safe-browsing
|
---|
| 277 |
|
---|
| 278 | # This option is used so that the debugging symbols are removed from
|
---|
| 279 | # the installed binaries during the installation process. Comment out
|
---|
| 280 | # this option if you may have a need to retain the debugging symbols
|
---|
| 281 | # in the installed binaries (the resulting binaries will be about 7MB
|
---|
| 282 | # bigger).
|
---|
| 283 | ac_add_options --enable-strip
|
---|
| 284 |
|
---|
[5a13c45] | 285 | # Uncomment this option if you desire support for dual-monitor
|
---|
[2082307d] | 286 | # display using the X-Window Xinerama libraries.
|
---|
[5a13c45] | 287 | #ac_add_options --enable-xinerama
|
---|
| 288 |
|
---|
[2082307d] | 289 | # This option identifies the default binary directory of the Xulrunner
|
---|
| 290 | # installation and is used to locate Xulrunner's installed files. This
|
---|
| 291 | # option is is only used for development purposes.
|
---|
| 292 | #ac_add_options --with-default-mozilla-five-home=/usr/lib/firefox-&firefox-version;
|
---|
[aed37975] | 293 |
|
---|
[2082307d] | 294 | # Point to the xulrunner libraries - comment these for a standalone browser
|
---|
| 295 | ac_add_options --with-system-libxul
|
---|
| 296 | ac_add_options --with-libxul-sdk=/usr/lib/xulrunner-devel-&xulrunner-version;</literal>
|
---|
[5a13c45] | 297 | EOF</userinput></screen>
|
---|
| 298 |
|
---|
[2082307d] | 299 | <para>If you did not install <xref linkend="xulrunner"/> or
|
---|
| 300 | <xref linkend="nspr"/> and <xref linkend="nss"/>, then apply the patch
|
---|
| 301 | with the following command:</para>
|
---|
| 302 |
|
---|
| 303 | <screen><userinput>patch -Np1 -i ../firefox-&firefox-version;-provide_system_nss_nspr-1.patch</userinput></screen>
|
---|
| 304 |
|
---|
[5a13c45] | 305 | <para>Compile <application>Firefox</application> by issuing the
|
---|
[27706cc] | 306 | following commands:</para>
|
---|
[5a13c45] | 307 |
|
---|
[aed37975] | 308 | <screen><userinput>make -f client.mk build</userinput></screen>
|
---|
[bccbdaea] | 309 |
|
---|
[b81991e1] | 310 | <para>This package does not come with a test suite.</para>
|
---|
[4a8e9f7] | 311 |
|
---|
[5a13c45] | 312 | <para>Now, as the <systemitem class="username">root</systemitem> user,
|
---|
| 313 | install the package:</para>
|
---|
| 314 |
|
---|
[aed37975] | 315 | <screen role="root"><userinput>make -f client.mk install</userinput></screen>
|
---|
[5a13c45] | 316 |
|
---|
[aed37975] | 317 | <para>If you are building firefox on xulrunner, as the
|
---|
| 318 | <systemitem class="username">root</systemitem> user enter the following
|
---|
| 319 | symbolic link:</para>
|
---|
[5a13c45] | 320 |
|
---|
[ec61549] | 321 | <screen role="root"><userinput>ln -sv /usr/lib/xulrunner-&xulrunner-version;/plugins \
|
---|
[2082307d] | 322 | /usr/lib/firefox-&firefox-version;/plugins</userinput></screen>
|
---|
| 323 |
|
---|
| 324 | <para>If you've elected to use the included NSPR and NSS, while still the
|
---|
| 325 | <systemitem class="username">root</systemitem> user, complete the
|
---|
| 326 | installation with the following commands:</para>
|
---|
| 327 |
|
---|
| 328 | <screen role="root"><userinput>for DL in \
|
---|
| 329 | libnss3.so libnssutil3.so libsmime3.so libssl3.so libsoftokn3.so \
|
---|
| 330 | libplds4.so libplc4.so libnspr4.so
|
---|
| 331 | do
|
---|
| 332 | ln -sv xulrunner-&xulrunner-version;/$DL /usr/lib/$DL
|
---|
| 333 | done</userinput></screen>
|
---|
[82539b8b] | 334 |
|
---|
[b81991e1] | 335 | </sect2>
|
---|
| 336 |
|
---|
[361df3e] | 337 | <sect2 role="commands">
|
---|
| 338 | <title>Command Explanations</title>
|
---|
| 339 |
|
---|
[d33eabc] | 340 | <para><command>make -f client.mk ...</command>: Mozilla products are
|
---|
| 341 | packaged to allow the use of a configuration file which can be used to
|
---|
| 342 | pass the configuration settings to the <command>configure</command>
|
---|
| 343 | command. <command>make</command> uses the <filename>client.mk</filename>
|
---|
| 344 | file to get initial configuration and setup parameters, then depending on
|
---|
| 345 | the target parameter (<parameter>build</parameter> or
|
---|
| 346 | <parameter>install</parameter>), either runs the
|
---|
| 347 | <command>configure</command> script and compiles the package or installs
|
---|
| 348 | the package.</para>
|
---|
[27706cc] | 349 |
|
---|
[ec61549] | 350 | <para><command>ln -sv /usr/lib/xulrunner-&xulrunner-version;/plugins
|
---|
[45a4d8b] | 351 | /usr/lib/firefox-&firefox-version;/plugins</command>:
|
---|
[aed37975] | 352 | <application>Firefox</application> looks for plugins in its own directory,
|
---|
| 353 | but when building on <application>xulrunner</application> the plugins were
|
---|
| 354 | installed by that package.</para>
|
---|
[5a13c45] | 355 |
|
---|
[aed37975] | 356 | <tip>
|
---|
[2082307d] | 357 | <para>If you upgrade firefox, ensure that any additional plugins are moved
|
---|
| 358 | to the plugin directory of the new version.</para>
|
---|
[aed37975] | 359 | </tip>
|
---|
[361df3e] | 360 |
|
---|
| 361 | </sect2>
|
---|
| 362 |
|
---|
[b81991e1] | 363 | <sect2 role="configuration">
|
---|
| 364 | <title>Configuring Firefox</title>
|
---|
| 365 |
|
---|
| 366 | <para>No specific configuration is required as long as the
|
---|
| 367 | <command>firefox</command> script is in the user's path. If
|
---|
| 368 | <application>Firefox</application> is installed in a non-standard location,
|
---|
[5a13c45] | 369 | then make a symlink to the <command>firefox</command> script in the
|
---|
| 370 | <filename class="directory">/usr/bin</filename> directory.</para>
|
---|
[b81991e1] | 371 |
|
---|
[c103832] | 372 | <para>If your Window or Desktop Manager does not allow you to configure
|
---|
[3a4bc84] | 373 | a default mail client, you can add a configuration parameter to
|
---|
[c103832] | 374 | <application>Firefox</application> so that an email client will start
|
---|
| 375 | when you click on a <systemitem role='url'>mailto:</systemitem> URL.
|
---|
| 376 | There are two parameters you need to check. The procedure to check or
|
---|
| 377 | modify any of the configuration parameters is quite simple and the
|
---|
| 378 | instructions here can be used to view or modify any of the
|
---|
| 379 | parameters.</para>
|
---|
| 380 |
|
---|
| 381 | <para>First, open the configuration dialog by entering
|
---|
| 382 | <systemitem role='url'>about:config</systemitem> in the address bar. This
|
---|
| 383 | will display a list of the configuration preferences and information
|
---|
| 384 | related to each one. You can use the <quote>Filter:</quote> bar to enter
|
---|
| 385 | search criteria and narrow down the listed items. Changing a preference
|
---|
[3a4bc84] | 386 | can be done using two methods. One, if the preference has a boolean value
|
---|
[c103832] | 387 | (True/False), simply double-click on the preference to toggle the value
|
---|
| 388 | and two, for other preferences simply right-click on the desired line,
|
---|
| 389 | choose <quote>Modify</quote> from the menu and change the value. Creating
|
---|
| 390 | new preference items is accomplished in the same way, except choose
|
---|
| 391 | <quote>New</quote> from the menu and provide the desired data into the
|
---|
| 392 | fields when prompted.</para>
|
---|
| 393 |
|
---|
| 394 | <para>The two configuration preference items you need to check so that
|
---|
| 395 | <application>Firefox</application> uses a specified default mail client
|
---|
| 396 | are the <parameter>network.protocol-handler.external.mailto</parameter>
|
---|
| 397 | which should be set to <option>True</option> and the
|
---|
| 398 | <parameter>network.protocol-handler.app.mailto</parameter> which should
|
---|
| 399 | be set to the path of the desired mail client, e.g.,
|
---|
| 400 | <option>/usr/bin/thunderbird</option>.</para>
|
---|
| 401 |
|
---|
| 402 | <tip>
|
---|
| 403 | <para>There is a multitude of configuration parameters you can tweak to
|
---|
| 404 | customize <application>Firefox</application>. A very extensive and
|
---|
| 405 | up-to-date list of these parameters can be found at <ulink
|
---|
| 406 | url="http://preferential.mozdev.org/preferences.html"/>.</para>
|
---|
| 407 | </tip>
|
---|
| 408 |
|
---|
[b81991e1] | 409 | <para>Many applications look for <command>netscape</command> when they
|
---|
[c103832] | 410 | need to open a browser. You may wish to make the following symlink for
|
---|
| 411 | convenience (as the <systemitem class="username">root</systemitem>
|
---|
| 412 | user).</para>
|
---|
[b81991e1] | 413 |
|
---|
| 414 | <screen role="root"><userinput>ln -v -sf firefox /usr/bin/netscape</userinput></screen>
|
---|
| 415 |
|
---|
| 416 | <para>For installing various <application>Firefox</application> plugins,
|
---|
| 417 | refer to <ulink url="http://plugindoc.mozdev.org/linux.html">Mozdev's
|
---|
[c103832] | 418 | PluginDoc Project</ulink>. If you have the <xref linkend="jdk"/> already
|
---|
[b81991e1] | 419 | installed, create the following link as the
|
---|
[5a13c45] | 420 | <systemitem class="username">root</systemitem> user to utilize the installed
|
---|
| 421 | <application>Java</application> plugin: </para>
|
---|
[b81991e1] | 422 |
|
---|
| 423 | <screen role="root"><userinput>ln -v -s $JAVA_HOME/jre/plugin/i386/ns7/libjavaplugin_oji.so \
|
---|
| 424 | /usr/lib/firefox-&firefox-version;/plugins</userinput></screen>
|
---|
| 425 |
|
---|
[5a13c45] | 426 | <para>Some packages install Mozilla plugins into the default system-wide
|
---|
| 427 | directory <filename class='directory'>/usr/lib/mozilla/plugins</filename>.
|
---|
[aed37975] | 428 | If you have not already done this for <application>Xulrunner</application>
|
---|
| 429 | create symbolic links in the <application>Firefox</application>
|
---|
[a7d71e2] | 430 | plugin directory
|
---|
| 431 | <filename class='directory'>/usr/lib/firefox-&firefox-version;/plugins</filename>
|
---|
[c103832] | 432 | to the files in the default plugin directory (you should link to the actual
|
---|
| 433 | files and not other links). Alternatively, you can move or copy the files
|
---|
| 434 | in the default plugin directory to the
|
---|
[a7d71e2] | 435 | <application>Firefox</application> plugin directory. An example of creating
|
---|
| 436 | a symbolic link is shown below. Create the links as the
|
---|
| 437 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 438 |
|
---|
[38e4f06] | 439 | <screen role="root"><userinput>ln -v -s ../../mozilla/plugins/<replaceable><plugin.so></replaceable> \
|
---|
[a7d71e2] | 440 | /usr/lib/firefox-&firefox-version;/plugins</userinput></screen>
|
---|
| 441 |
|
---|
[b81991e1] | 442 | </sect2>
|
---|
| 443 |
|
---|
| 444 | <sect2 role="content">
|
---|
| 445 | <title>Contents</title>
|
---|
| 446 |
|
---|
| 447 | <segmentedlist>
|
---|
| 448 | <segtitle>Installed Programs</segtitle>
|
---|
| 449 | <segtitle>Installed Libraries</segtitle>
|
---|
| 450 | <segtitle>Installed Directories</segtitle>
|
---|
| 451 |
|
---|
| 452 | <seglistitem>
|
---|
| 453 | <seg>firefox and firefox-config</seg>
|
---|
| 454 | <seg>Numerous libraries, browser components, plugins, extensions, and
|
---|
| 455 | helper modules installed in <filename
|
---|
| 456 | class='directory'>/usr/lib/firefox-&firefox-version;</filename></seg>
|
---|
[5a13c45] | 457 | <seg>/usr/include/firefox-&firefox-version;,
|
---|
[b81991e1] | 458 | /usr/lib/firefox-&firefox-version;, and
|
---|
| 459 | /usr/share/idl/firefox-&firefox-version;</seg>
|
---|
| 460 | </seglistitem>
|
---|
| 461 | </segmentedlist>
|
---|
| 462 |
|
---|
| 463 | <variablelist>
|
---|
| 464 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 465 | <?dbfo list-presentation="list"?>
|
---|
| 466 | <?dbhtml list-presentation="table"?>
|
---|
| 467 |
|
---|
| 468 | <varlistentry id="firefox-prog">
|
---|
| 469 | <term><command>firefox</command></term>
|
---|
| 470 | <listitem>
|
---|
[5a13c45] | 471 | <para>is a shell script that sets up the environment and
|
---|
| 472 | calls the <filename>firefox-bin</filename> binary.</para>
|
---|
[b81991e1] | 473 | <indexterm zone="firefox firefox-prog">
|
---|
| 474 | <primary sortas="b-firefox">firefox</primary>
|
---|
| 475 | </indexterm>
|
---|
| 476 | </listitem>
|
---|
| 477 | </varlistentry>
|
---|
| 478 |
|
---|
| 479 | <varlistentry id="firefox-config">
|
---|
| 480 | <term><command>firefox-config</command></term>
|
---|
| 481 | <listitem>
|
---|
| 482 | <para>determines the compile and linker flags that should be
|
---|
| 483 | used to compile and link programs that use
|
---|
| 484 | <application>Firefox</application> libraries and browser
|
---|
| 485 | components.</para>
|
---|
| 486 | <indexterm zone="firefox firefox-config">
|
---|
| 487 | <primary sortas="b-firefox-config">firefox-config</primary>
|
---|
| 488 | </indexterm>
|
---|
| 489 | </listitem>
|
---|
| 490 | </varlistentry>
|
---|
| 491 |
|
---|
| 492 | </variablelist>
|
---|
| 493 |
|
---|
| 494 | </sect2>
|
---|
[4d37129] | 495 |
|
---|
| 496 | </sect1>
|
---|