[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 |
|
---|
[0bcaa9a6] | 7 | <!ENTITY firefox-download-http "&mozilla-http;/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.xz">
|
---|
[8dfc5c3] | 8 | <!ENTITY firefox-download-ftp " ">
|
---|
[6ec04ea] | 9 | <!ENTITY firefox-md5sum "d3068f73fb70dc5d9f629fbbb6192bb9">
|
---|
| 10 | <!ENTITY firefox-size "256 MB">
|
---|
[5c2b024] | 11 | <!-- NB with stylo, much of the build uses rust, and therefore cargo files.
|
---|
[ab67425] | 12 | But the extra files, if any, seem to be minimal -->
|
---|
| 13 | <!ENTITY firefox-buildsize "7.7 GB (157 MB installed) without tests">
|
---|
| 14 | <!ENTITY firefox-time "27 SBU (with parallelism=4) without tests">
|
---|
[f939f05] | 15 | ]>
|
---|
| 16 |
|
---|
[ffe47ca2] | 17 | <sect1 id="firefox" xreflabel="Firefox-&firefox-version;">
|
---|
[b81991e1] | 18 | <?dbhtml filename="firefox.html" ?>
|
---|
| 19 |
|
---|
| 20 | <sect1info>
|
---|
| 21 | <othername>$LastChangedBy$</othername>
|
---|
| 22 | <date>$Date$</date>
|
---|
| 23 | </sect1info>
|
---|
| 24 |
|
---|
| 25 | <title>Firefox-&firefox-version;</title>
|
---|
| 26 |
|
---|
| 27 | <indexterm zone="firefox">
|
---|
| 28 | <primary sortas="a-Firefox">Firefox</primary>
|
---|
| 29 | </indexterm>
|
---|
| 30 |
|
---|
| 31 | <sect2 role="package">
|
---|
| 32 | <title>Introduction to Firefox</title>
|
---|
| 33 |
|
---|
[c1ae13c] | 34 | <para>
|
---|
| 35 | <application>Firefox</application> is a stand-alone browser based on the
|
---|
| 36 | <application>Mozilla</application> codebase.
|
---|
| 37 | </para>
|
---|
[b81991e1] | 38 |
|
---|
[0a43695] | 39 | &lfs82_checked;
|
---|
[76ae9a2] | 40 |
|
---|
[b81991e1] | 41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 42 | <itemizedlist spacing="compact">
|
---|
| 43 | <listitem>
|
---|
[c1ae13c] | 44 | <para>
|
---|
| 45 | Download (HTTP): <ulink url="&firefox-download-http;"/>
|
---|
| 46 | </para>
|
---|
[b81991e1] | 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
[c1ae13c] | 49 | <para>
|
---|
| 50 | Download (FTP): <ulink url="&firefox-download-ftp;"/>
|
---|
| 51 | </para>
|
---|
[b81991e1] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[c1ae13c] | 54 | <para>
|
---|
| 55 | Download MD5 sum: &firefox-md5sum;
|
---|
| 56 | </para>
|
---|
[b81991e1] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[c1ae13c] | 59 | <para>
|
---|
| 60 | Download size: &firefox-size;
|
---|
| 61 | </para>
|
---|
[b81991e1] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[c1ae13c] | 64 | <para>
|
---|
| 65 | Estimated disk space required: &firefox-buildsize;
|
---|
| 66 | </para>
|
---|
[b81991e1] | 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
[c1ae13c] | 69 | <para>
|
---|
| 70 | Estimated build time: &firefox-time;
|
---|
| 71 | </para>
|
---|
[b81991e1] | 72 | </listitem>
|
---|
| 73 | </itemizedlist>
|
---|
| 74 |
|
---|
[14de4227] | 75 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 76 | <itemizedlist spacing="compact">
|
---|
[f9c80c9] | 77 | <listitem>
|
---|
[ab67425] | 78 | <para>Required patch if ffmpeg >=3.5 has been installed: <ulink url="&patch-root;/firefox-&firefox-version;-ffmpeg4.0-1.patch"/></para>
|
---|
[f9c80c9] | 79 | </listitem>
|
---|
[14de4227] | 80 | <listitem>
|
---|
| 81 | <para>
|
---|
| 82 | Optional patch to allow system versions of <xref linkend="graphite2"/>
|
---|
[ecffcbbc] | 83 | and <xref linkend="harfbuzz"/>:
|
---|
[ef82450c] | 84 | <ulink url="&patch-root;/firefox-&firefox-version;-system_graphite2_harfbuzz-1.patch"/>
|
---|
[14de4227] | 85 | </para>
|
---|
| 86 | </listitem>
|
---|
| 87 | </itemizedlist>
|
---|
| 88 |
|
---|
[f06c692] | 89 | <note>
|
---|
| 90 | <para>
|
---|
[8d0bc761] | 91 | Extracting the tarball
|
---|
| 92 | will reset the permissions of the current directory to 0755 if you
|
---|
[765c2a7] | 93 | have permission to do that. If you do this in a directory where
|
---|
[37bf7b1] | 94 | the sticky bit is set, such
|
---|
[dc9a18a] | 95 | as <filename class="directory">/tmp</filename> it will end with error
|
---|
| 96 | messages:
|
---|
| 97 | </para>
|
---|
| 98 |
|
---|
| 99 | <literallayout>tar: .: Cannot utime: Operation not permitted
|
---|
| 100 | tar: .: Cannot change mode to rwxr-xr-t: Operation not permitted
|
---|
| 101 | tar: Exiting with failure status due to previous errors
|
---|
| 102 | </literallayout>
|
---|
| 103 |
|
---|
| 104 | <para>
|
---|
| 105 | This does finish with non-zero status, but it does
|
---|
| 106 | <emphasis>NOT</emphasis> mean there is a real problem.
|
---|
| 107 | Do not untar as the <systemitem class="username">root</systemitem> user
|
---|
| 108 | in a directory where the sticky bit is set - that will unset it.
|
---|
[f06c692] | 109 | </para>
|
---|
[8d0bc761] | 110 |
|
---|
| 111 | <para>
|
---|
[406e5ffe] | 112 | As with other large packages which use C++ (or rust), the SBU times
|
---|
| 113 | to build this vary more widely than you might expect. Also, almost 6GB
|
---|
| 114 | of real memory is used during the final link and the SBUs can increase
|
---|
| 115 | significantly if the machine has to swap to do this.
|
---|
[8d0bc761] | 116 | </para>
|
---|
| 117 |
|
---|
| 118 | <para>
|
---|
| 119 | Although upstream prefer to use <application>PulseAudio</application>,
|
---|
| 120 | for the moment <application>Alsa</application> can still be used. Both
|
---|
| 121 | may need runtime configuration to get sound working.
|
---|
| 122 | </para>
|
---|
[f06c692] | 123 | </note>
|
---|
| 124 |
|
---|
[b81991e1] | 125 | <bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
|
---|
| 126 |
|
---|
| 127 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[c1ae13c] | 128 | <para role="required">
|
---|
[14de4227] | 129 | <xref linkend="autoconf213"/>,
|
---|
[ac105103] | 130 | both <xref linkend="gtk3"/> and
|
---|
[be0bd12] | 131 | <xref linkend="gtk2"/>,
|
---|
[326f830] | 132 | <xref linkend="libnotify"/>,
|
---|
[59a6b63] | 133 | <xref linkend="nss"/>,
|
---|
[be0bd12] | 134 | <xref linkend="pulseaudio"/>
|
---|
[81b3e7fd] | 135 | (or
|
---|
[0603be6f] | 136 | <xref linkend="alsa-lib"/> if you edit the mozconfig;
|
---|
[326f830] | 137 | now deprecated by mozilla), in either case please read the
|
---|
| 138 | Configuration Information,
|
---|
[4c6edac] | 139 | <xref linkend="rust"/>,
|
---|
[59a6b63] | 140 | <xref linkend="unzip"/>,
|
---|
[479e03a] | 141 | <xref linkend="yasm"/>, and
|
---|
| 142 | <xref linkend="zip"/>
|
---|
[c1ae13c] | 143 | </para>
|
---|
| 144 |
|
---|
[1555d3d] | 145 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[c1ae13c] | 146 | <para role="recommended">
|
---|
[7bf10b1] | 147 | <xref linkend="icu"/>,
|
---|
[0e37869] | 148 | <xref linkend="libevent"/>,
|
---|
[a0d558d] | 149 | <xref linkend="libvpx"/>,
|
---|
| 150 | <package>clang</package> from <xref linkend="llvm"/> (for stylo), and
|
---|
[a30a874] | 151 | <xref linkend="sqlite"/>
|
---|
[c1ae13c] | 152 | </para>
|
---|
[1555d3d] | 153 |
|
---|
[0e37869] | 154 | <note>
|
---|
| 155 | <para>
|
---|
[b9f61df] | 156 | If you don't install recommended dependencies, then internal copies of
|
---|
| 157 | those packages will be used. They might be tested to work, but they can
|
---|
| 158 | be out of date or contain security holes.
|
---|
[0e37869] | 159 | </para>
|
---|
| 160 | </note>
|
---|
[8d0bc761] | 161 |
|
---|
[b81991e1] | 162 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[c1ae13c] | 163 | <para role="optional">
|
---|
[6c64623f] | 164 | <xref linkend="curl"/>,
|
---|
[c1ae13c] | 165 | <xref linkend="dbus-glib"/>,
|
---|
| 166 | <xref linkend="doxygen"/>,
|
---|
[d525da9c] | 167 | <xref linkend="GConf"/>,
|
---|
[babf0a0] | 168 | <xref role="runtime" linkend="ffmpeg"/> (runtime, to play mov, mp3 or mp4 files),
|
---|
[9d2268bb] | 169 | <xref linkend="libwebp"/>,
|
---|
[26fa7d2] | 170 | <xref linkend="openjdk"/>,
|
---|
[0e37869] | 171 | <xref linkend="startup-notification"/>,
|
---|
[566fcae] | 172 | <xref linkend="valgrind"/>,
|
---|
[6000a3e] | 173 | <xref linkend="wget"/>,
|
---|
[73b06df] | 174 | <xref linkend="wireless_tools"/>,
|
---|
[b09ed46a] | 175 | <ulink url="https://hunspell.github.io/">Hunspell</ulink>,
|
---|
[7090d94] | 176 | <phrase revision="sysv"><ulink url="http://sourceforge.net/projects/liboauth/files/">liboauth</ulink></phrase>
|
---|
| 177 | <phrase revision="systemd"><xref linkend="liboauth"/></phrase>,
|
---|
[14de4227] | 178 | <ulink url="https://github.com/libproxy/libproxy">libproxy</ulink>,
|
---|
| 179 | and (with the patch)
|
---|
| 180 | <xref linkend="graphite2"/> and
|
---|
| 181 | <xref linkend="harfbuzz"/>
|
---|
[c1ae13c] | 182 | </para>
|
---|
| 183 |
|
---|
| 184 | <para condition="html" role="usernotes">
|
---|
| 185 | User Notes: <ulink url="&blfs-wiki;/firefox"/>
|
---|
| 186 | </para>
|
---|
[b81991e1] | 187 | </sect2>
|
---|
| 188 |
|
---|
| 189 | <sect2 role="installation">
|
---|
| 190 | <title>Installation of Firefox</title>
|
---|
| 191 |
|
---|
[f72a04a] | 192 | <para>
|
---|
[b9f61df] | 193 | The configuration of <application>Firefox</application> is accomplished
|
---|
| 194 | by creating a <filename>mozconfig</filename> file containing the desired
|
---|
| 195 | configuration options. A default <filename>mozconfig</filename> is
|
---|
| 196 | created below. To see the entire list of available configuration options
|
---|
[888e303] | 197 | (and an abbreviated description of some of them), issue <command>./mach
|
---|
| 198 | configure && ./configure --help | less</command>. You may also
|
---|
| 199 | wish to review the entire file and uncomment any other desired options.
|
---|
| 200 | Create the file by issuing the following command:
|
---|
[c1ae13c] | 201 | </para>
|
---|
[5a13c45] | 202 |
|
---|
[0e37869] | 203 | <screen><userinput>cat > mozconfig << "EOF"
|
---|
[dcb0fe6] | 204 | <literal># If you have a multicore machine, all cores will be used by default.
|
---|
[a0d558d] | 205 | # You can change the number of non-rust jobs by setting a valid number
|
---|
| 206 | # of cores in this option, but when rust crates are being compiled
|
---|
[8d0bc761] | 207 | # jobs will be scheduled for all the available CPU cores.
|
---|
[dcb0fe6] | 208 | #mk_add_options MOZ_MAKE_FLAGS="-j1"
|
---|
| 209 |
|
---|
[7090d94] | 210 | # If you have installed dbus-glib, comment out this line:
|
---|
[74eaf91] | 211 | ac_add_options --disable-dbus
|
---|
[aed37975] | 212 |
|
---|
[32cca2cd] | 213 | # If you have installed dbus-glib, and you have installed (or will install)
|
---|
| 214 | # wireless-tools, and you wish to use geolocation web services, comment out
|
---|
| 215 | # this line
|
---|
[6d1bf0e] | 216 | ac_add_options --disable-necko-wifi
|
---|
| 217 |
|
---|
[ad5a97d] | 218 | # API Keys for geolocation APIs - necko-wifi (above) is required for MLS
|
---|
| 219 | # Uncomment the following line if you wish to use Mozilla Location Service
|
---|
| 220 | #ac_add_options --with-mozilla-api-keyfile=$PWD/mozilla-key
|
---|
| 221 |
|
---|
| 222 | # Uncomment the following line if you wish to use Google's geolocaton API
|
---|
| 223 | # (needed for use with saved maps with Google Maps)
|
---|
| 224 | #ac_add_options --with-google-api-keyfile=$PWD/google-key
|
---|
| 225 |
|
---|
[48ae92a] | 226 | # Uncomment these lines if you have installed optional dependencies:
|
---|
[0e37869] | 227 | #ac_add_options --enable-system-hunspell
|
---|
| 228 | #ac_add_options --enable-startup-notification
|
---|
[495ebe07] | 229 |
|
---|
[81b3e7fd] | 230 | # Uncomment the following option if you have not installed PulseAudio
|
---|
| 231 | #ac_add_options --disable-pulseaudio
|
---|
| 232 | # and uncomment this if you installed alsa-lib instead of PulseAudio
|
---|
| 233 | #ac_add_options --enable-alsa
|
---|
[89cdb63d] | 234 |
|
---|
| 235 | # If you have installed GConf, comment out this line
|
---|
| 236 | ac_add_options --disable-gconf
|
---|
| 237 |
|
---|
[e29a0b1] | 238 | # Stylo is the new CSS code, including the rust 'style'
|
---|
[a0d558d] | 239 | # package. It is enabled by default but requires clang.
|
---|
| 240 | # Uncomment this if you do not wish to use stylo.
|
---|
| 241 | #ac_add_options --disable-stylo
|
---|
[e29a0b1] | 242 |
|
---|
[0e37869] | 243 | # Comment out following options if you have not installed
|
---|
| 244 | # recommended dependencies:
|
---|
| 245 | ac_add_options --enable-system-sqlite
|
---|
| 246 | ac_add_options --with-system-libevent
|
---|
| 247 | ac_add_options --with-system-libvpx
|
---|
| 248 | ac_add_options --with-system-nspr
|
---|
| 249 | ac_add_options --with-system-nss
|
---|
[7bf10b1] | 250 | ac_add_options --with-system-icu
|
---|
[0e37869] | 251 |
|
---|
[14de4227] | 252 | # If you are going to apply the patch for system graphite
|
---|
| 253 | # and system harfbuzz, uncomment these lines:
|
---|
| 254 | #ac_add_options --with-system-graphite2
|
---|
| 255 | #ac_add_options --with-system-harfbuzz
|
---|
| 256 |
|
---|
| 257 | # Stripping is now enabled by default.
|
---|
| 258 | # Uncomment these lines if you need to run a debugger:
|
---|
| 259 | #ac_add_options --disable-strip
|
---|
| 260 | #ac_add_options --disable-install-strip
|
---|
| 261 |
|
---|
[7251b1d] | 262 | # The BLFS editors recommend not changing anything below this line:
|
---|
[495ebe07] | 263 | ac_add_options --prefix=/usr
|
---|
[0e37869] | 264 | ac_add_options --enable-application=browser
|
---|
[495ebe07] | 265 |
|
---|
[5f5dcc2] | 266 | ac_add_options --disable-crashreporter
|
---|
| 267 | ac_add_options --disable-updater
|
---|
[57a8df2] | 268 | # enabling the tests will use a lot more space and significantly
|
---|
| 269 | # increase the build time, for no obvious benefit.
|
---|
[0e37869] | 270 | ac_add_options --disable-tests
|
---|
| 271 |
|
---|
[f067fa94] | 272 | # Optimization for size is broken with gcc7
|
---|
[98484411] | 273 | ac_add_options --enable-optimize="-O2"
|
---|
[0e37869] | 274 |
|
---|
| 275 | ac_add_options --enable-official-branding
|
---|
| 276 |
|
---|
[8d0bc761] | 277 | # In firefox-59.0 system cairo breaks the build, so comment it.
|
---|
| 278 | #ac_add_options --enable-system-cairo
|
---|
[41f2e90] | 279 | ac_add_options --enable-system-ffi
|
---|
[0e37869] | 280 | ac_add_options --enable-system-pixman
|
---|
| 281 |
|
---|
[5f5dcc2] | 282 | ac_add_options --with-pthreads
|
---|
[0e37869] | 283 |
|
---|
| 284 | ac_add_options --with-system-bz2
|
---|
[a0ace670] | 285 | ac_add_options --with-system-jpeg
|
---|
| 286 | ac_add_options --with-system-png
|
---|
| 287 | ac_add_options --with-system-zlib
|
---|
[aed37975] | 288 |
|
---|
[4def8b6] | 289 | mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir</literal>
|
---|
[0e37869] | 290 | EOF</userinput></screen>
|
---|
[b9b7146] | 291 |
|
---|
[c1ae13c] | 292 | <para>
|
---|
| 293 | Compile <application>Firefox</application> by issuing the following
|
---|
| 294 | commands:
|
---|
| 295 | </para>
|
---|
[9572e88] | 296 |
|
---|
[14de4227] | 297 | <para>
|
---|
| 298 | If you have installed system versions of graphite2 and harfbuzz and wish
|
---|
| 299 | firefox to use those instead of its shipped versions, apply the patch and
|
---|
| 300 | uncomment the appropriate entries in the <filename>mozconfig</filename>
|
---|
[346e269] | 301 | file.
|
---|
[14de4227] | 302 | </para>
|
---|
| 303 |
|
---|
[0a4a5cd] | 304 | <screen><userinput>patch -Np1 -i ../firefox-&firefox-version;-system_graphite2_harfbuzz-1.patch</userinput></screen>
|
---|
[14de4227] | 305 |
|
---|
[ad5a97d] | 306 | <para>
|
---|
| 307 | If the geolocation APIs are needed:
|
---|
| 308 | </para>
|
---|
| 309 |
|
---|
[e5c8de01] | 310 | <note>
|
---|
| 311 | <para>
|
---|
| 312 | <!-- Taken from Arch Linux - an immensely helpful link - Thanks -->
|
---|
| 313 | The Google and Mozilla API Keys below are specific to LFS. If using
|
---|
| 314 | these instructions for another distro, or if you intend to distribute
|
---|
| 315 | binary copies of the software using these instructions, please obtain
|
---|
| 316 | your own keys following the instructions located at
|
---|
| 317 | <ulink url="http://www.chromium.org/developers/how-tos/api-keys"/> and
|
---|
| 318 | <ulink url="https://location.services.mozilla.com/api"/> respectively.
|
---|
| 319 | <!-- BLFS Devs, register an account at Google with your
|
---|
| 320 | @linuxfromscratch.org email address, and I'll make you an administrator
|
---|
| 321 | for the 'Google APIs for LFS' project (where the API and OAuth keys
|
---|
| 322 | were created for use in the book).-->
|
---|
| 323 | </para>
|
---|
| 324 | </note>
|
---|
| 325 |
|
---|
[ad5a97d] | 326 | <screen><userinput>echo "AIzaSyDxKL42zsPjbke5O8_rPVpVrLrJ8aeE9rQ" > google-key
|
---|
| 327 | echo "d2284a20-0505-4927-a809-7ffaf4d91e55" > mozilla-key</userinput></screen>
|
---|
| 328 |
|
---|
[8b3a8979] | 329 | <note><para>
|
---|
[9572e88] | 330 | If you are compiling <application>Firefox</application> in chroot, make
|
---|
| 331 | sure you have <envar>$SHELL</envar> environment variable set or prepend
|
---|
[566fcae] | 332 | <envar>SHELL=/bin/sh</envar>.
|
---|
[8b3a8979] | 333 | </para></note>
|
---|
[9516a4f] | 334 |
|
---|
[3f54026] | 335 | <screen><userinput>patch -Np1 -i ../firefox-&firefox-version;-ffmpeg4.0-1.patch &&
|
---|
| 336 | ./mach build</userinput></screen>
|
---|
[bccbdaea] | 337 |
|
---|
[0e37869] | 338 | <para>
|
---|
[57a8df2] | 339 | The <filename>mozconfig</filename> above disables the tests because
|
---|
| 340 | they use a lot more time and disk space for no obvious benefit. If
|
---|
[ecffcbbc] | 341 | you have nevertheless enabled them, you can run the tests by executing
|
---|
| 342 | <command>./mach gtest</command>. This will require a network connection,
|
---|
| 343 | and to be run from within an Xorg session - there is a popup dialog
|
---|
| 344 | when it fails to connect to ALSA (that does not create a failed test).
|
---|
| 345 | One or two tests will fail. To see the details of the failure(s) you
|
---|
| 346 | will need to log the output from that command so that you can review it.
|
---|
[0e37869] | 347 | </para>
|
---|
[01ce75f8] | 348 |
|
---|
[495ebe07] | 349 | <para>
|
---|
[b9f61df] | 350 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
[c1ae13c] | 351 | </para>
|
---|
[5a13c45] | 352 |
|
---|
[326f830] | 353 | <screen role="root"><userinput>./mach install &&
|
---|
[5ee1266] | 354 |
|
---|
[326f830] | 355 | mkdir -pv /usr/lib/mozilla/plugins &&
|
---|
[8d0bc761] | 356 | ln -sfv ../../mozilla/plugins /usr/lib/firefox/browser/</userinput></screen>
|
---|
[aee479c] | 357 | <!--
|
---|
[a5708ba] | 358 | <para>
|
---|
| 359 | Set environment variables back to their values:
|
---|
| 360 | </para>
|
---|
| 361 |
|
---|
| 362 | <screen><userinput>export CFLAGS=$CFLAGS_HOLD &&
|
---|
[6c4bb8f] | 363 | export CXXFLAGS=$CXXFLAGS_HOLD &&
|
---|
| 364 | unset CFLAGS_HOLD CXXFLAGS_HOLD</userinput></screen>
|
---|
[aee479c] | 365 | -->
|
---|
[01ce75f8] | 366 |
|
---|
[b81991e1] | 367 | </sect2>
|
---|
| 368 |
|
---|
[361df3e] | 369 | <sect2 role="commands">
|
---|
| 370 | <title>Command Explanations</title>
|
---|
[7d09fcb9] | 371 |
|
---|
[a0d558d] | 372 | <para>
|
---|
[326f830] | 373 | <command>./mach build</command>: <application>Firefox</application>
|
---|
| 374 | now uses this <application>python2</application> script to run the
|
---|
| 375 | build and install.
|
---|
[a0d558d] | 376 | </para>
|
---|
| 377 |
|
---|
[c1ae13c] | 378 | <para>
|
---|
[326f830] | 379 | <option>./mach build --verbose</option>: Use this alternative if you
|
---|
| 380 | need details of which files are being compiled, together with any C or
|
---|
| 381 | C++ flags being used.
|
---|
[c1ae13c] | 382 | </para>
|
---|
| 383 |
|
---|
| 384 | <para>
|
---|
[8d0bc761] | 385 | <command>mkdir -pv /usr/lib/mozilla/plugins</command>: This ensures
|
---|
| 386 | that <filename class="directory">/usr/lib/mozilla/plugins/</filename>
|
---|
[c1ae13c] | 387 | exists.
|
---|
| 388 | </para>
|
---|
| 389 |
|
---|
| 390 | <para>
|
---|
[8d0bc761] | 391 | <command>ln -sv ... /usr/lib/firefox/browser</command>:
|
---|
[24da103] | 392 | This command creates a symbolic link to <filename
|
---|
| 393 | class="directory">/usr/lib/mozilla/plugins</filename>. It's not really
|
---|
| 394 | needed, as <application>Firefox</application> checks <filename
|
---|
| 395 | class="directory">/usr/lib/mozilla/plugins</filename> by default, but the
|
---|
| 396 | symbolic link is made to keep all the plugins installed in one folder.
|
---|
[c1ae13c] | 397 | </para>
|
---|
[fa1bc3e] | 398 |
|
---|
[b81991e1] | 399 | </sect2>
|
---|
| 400 |
|
---|
[88cec02] | 401 | <sect2 role="configuration">
|
---|
| 402 | <title>Configuring Firefox</title>
|
---|
| 403 |
|
---|
[c1ae13c] | 404 | <para>
|
---|
| 405 | If you use a desktop environment like <application>Gnome</application> or
|
---|
| 406 | <application>KDE</application> you may like to create a
|
---|
| 407 | <filename>firefox.desktop</filename> file so that
|
---|
| 408 | <application>Firefox</application> appears in the panel's menus. If you
|
---|
| 409 | didn't enable startup-notification in your mozconfig change the
|
---|
| 410 | StartupNotify line to false. As the
|
---|
| 411 | <systemitem class="username">root</systemitem> user:
|
---|
| 412 | </para>
|
---|
[31de6e7] | 413 |
|
---|
[eb5f847a] | 414 | <screen role="root"><userinput>mkdir -pv /usr/share/applications &&
|
---|
[0e37869] | 415 | mkdir -pv /usr/share/pixmaps &&
|
---|
[74f73ede] | 416 |
|
---|
[c099902d] | 417 | cat > /usr/share/applications/firefox.desktop << "EOF" &&
|
---|
[fcd66369] | 418 | <literal>[Desktop Entry]
|
---|
[31de6e7] | 419 | Encoding=UTF-8
|
---|
[0e37869] | 420 | Name=Firefox Web Browser
|
---|
| 421 | Comment=Browse the World Wide Web
|
---|
| 422 | GenericName=Web Browser
|
---|
| 423 | Exec=firefox %u
|
---|
| 424 | Terminal=false
|
---|
[31de6e7] | 425 | Type=Application
|
---|
| 426 | Icon=firefox
|
---|
[0e37869] | 427 | Categories=GNOME;GTK;Network;WebBrowser;
|
---|
| 428 | MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
|
---|
[fcd66369] | 429 | StartupNotify=true</literal>
|
---|
[31de6e7] | 430 | EOF
|
---|
[74f73ede] | 431 |
|
---|
[888e303] | 432 | ln -sfv /usr/lib/firefox/browser/chrome/icons/default/default128.png \
|
---|
[0e37869] | 433 | /usr/share/pixmaps/firefox.png</userinput></screen>
|
---|
| 434 |
|
---|
[326f830] | 435 | <sect3><title>Configuration Information</title>
|
---|
| 436 |
|
---|
| 437 | <para>
|
---|
| 438 | The application settings for firefox are accessible by keying
|
---|
| 439 | <command>about:config</command> in the address bar.
|
---|
| 440 | </para>
|
---|
| 441 |
|
---|
| 442 | <para>
|
---|
| 443 | With this version of <application>firefox</application>, getting
|
---|
| 444 | working sound can be a problem. Although upstream prefers pulseaudio,
|
---|
| 445 | on balance using <application>Alsa</application> may be easier.
|
---|
| 446 | </para>
|
---|
| 447 |
|
---|
| 448 | <para>
|
---|
| 449 | If you enabled <application>Alsa</application> for sound, you may need
|
---|
| 450 | to alter one variable to get working sound. If you run
|
---|
| 451 | <command>firefox</command> from a term and try to play something with
|
---|
| 452 | sound you might encounter error messages like:
|
---|
| 453 | </para>
|
---|
| 454 |
|
---|
| 455 | <para>
|
---|
| 456 | <literal>Sandbox: seccomp sandbox violation: pid 3941, tid 4030,
|
---|
| 457 | syscall 16, args 48 2147767296 139909894784796 0 0 0.</literal>
|
---|
| 458 | </para>
|
---|
| 459 |
|
---|
| 460 | <para>
|
---|
| 461 | That was on x86_64, on i686 the syscall number is 54. To allow this
|
---|
| 462 | syscall, in <command>about:config</command> change
|
---|
| 463 | <command>security.sandbox.content.syscall_whitelist</command> to 16
|
---|
| 464 | (or 54 if using i686).
|
---|
| 465 | </para>
|
---|
| 466 |
|
---|
| 467 | <para>
|
---|
| 468 | If you use <command>pulseaudio</command> in a Desktop Environment, it
|
---|
| 469 | might already be started by that DE. But if it is not, although
|
---|
| 470 | firefox-57 managed to start it, firefox-58 does not. If you run
|
---|
| 471 | <command>firefox</command> from a term, trying to play sound will
|
---|
| 472 | encounter error messages warning <literal>Can't get cubeb
|
---|
| 473 | context!</literal>
|
---|
| 474 | </para>
|
---|
| 475 |
|
---|
| 476 | <para>
|
---|
| 477 | The fix for this is to close firefox, start pulseaudio to check it
|
---|
| 478 | does start (if not, read the information on Configuring in <xref
|
---|
| 479 | linkend="pulseaudio"/>) and restart firefox to check it is working.
|
---|
| 480 | If it now works, add the following to your <filename>~/.xinitrc</filename>:
|
---|
| 481 | <phrase revision="sysv">
|
---|
| 482 | <literal>pulseaudio --verbose --log-target=syslog&</literal></phrase>
|
---|
| 483 | <phrase revision="systemd">
|
---|
| 484 | <literal>pulseaudio --verbose --log-target=journald&</literal></phrase>
|
---|
| 485 | (unfortunately, on some systems this does not work).
|
---|
| 486 | </para>
|
---|
| 487 |
|
---|
| 488 | <para>
|
---|
| 489 | You may wish to use multiple profiles within firefox. To do that, invoke
|
---|
| 490 | firefox as <command>firefox --ProfileManager</command>. You can also
|
---|
| 491 | check which profile is currently in use from
|
---|
| 492 | <command>about:profiles</command>.
|
---|
| 493 | </para>
|
---|
| 494 |
|
---|
| 495 | </sect3>
|
---|
[88cec02] | 496 | </sect2>
|
---|
| 497 |
|
---|
[b81991e1] | 498 | <sect2 role="content">
|
---|
| 499 | <title>Contents</title>
|
---|
| 500 |
|
---|
| 501 | <segmentedlist>
|
---|
| 502 | <segtitle>Installed Programs</segtitle>
|
---|
| 503 | <segtitle>Installed Libraries</segtitle>
|
---|
[c5f005b] | 504 | <segtitle>Installed Directory</segtitle>
|
---|
[b81991e1] | 505 |
|
---|
| 506 | <seglistitem>
|
---|
[0e37869] | 507 | <seg>
|
---|
| 508 | firefox
|
---|
| 509 | </seg>
|
---|
[c1ae13c] | 510 | <seg>
|
---|
| 511 | Numerous libraries, browser components, plugins, extensions, and
|
---|
[8d0bc761] | 512 | helper modules installed in /usr/lib/firefox
|
---|
[c1ae13c] | 513 | </seg>
|
---|
[7498751] | 514 | <seg>
|
---|
[54814bdd] | 515 | /usr/lib/firefox and /usr/lib/mozilla
|
---|
[7498751] | 516 | </seg>
|
---|
[b81991e1] | 517 | </seglistitem>
|
---|
| 518 | </segmentedlist>
|
---|
| 519 |
|
---|
| 520 | <variablelist>
|
---|
| 521 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 522 | <?dbfo list-presentation="list"?>
|
---|
| 523 | <?dbhtml list-presentation="table"?>
|
---|
| 524 |
|
---|
| 525 | <varlistentry id="firefox-prog">
|
---|
| 526 | <term><command>firefox</command></term>
|
---|
| 527 | <listitem>
|
---|
[c1ae13c] | 528 | <para>
|
---|
[7e1afc9] | 529 | is a <application>GTK+-3</application> internet browser that uses
|
---|
| 530 | the Mozilla Gecko rendering engine.
|
---|
[c1ae13c] | 531 | </para>
|
---|
[b81991e1] | 532 | <indexterm zone="firefox firefox-prog">
|
---|
| 533 | <primary sortas="b-firefox">firefox</primary>
|
---|
| 534 | </indexterm>
|
---|
| 535 | </listitem>
|
---|
| 536 | </varlistentry>
|
---|
[0e37869] | 537 |
|
---|
[b81991e1] | 538 | </variablelist>
|
---|
[0e37869] | 539 |
|
---|
[b81991e1] | 540 | </sect2>
|
---|
[0e37869] | 541 |
|
---|
[4d37129] | 542 | </sect1>
|
---|