source: xsoft/graphweb/firefox.xml@ 29b0395

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 9.0 9.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 29b0395 was 29b0395, checked in by Ken Moffat <ken@…>, 5 years ago

Comment seds re SIOCGSTAMP now that a fix is in place in LFS (rev 11651).

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@21958 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 23.8 KB
RevLine 
[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 " ">
[e8d45427]9 <!ENTITY firefox-md5sum "46fa1fd9f23e4a61cf477395ee332c45">
10 <!ENTITY firefox-size "297 MB">
[5c2b024]11 <!-- NB with stylo, much of the build uses rust, and therefore cargo files.
[9da4cc6f]12 But the extra cached cargo files, if any, seem to be minimal -->
[3507f80]13 <!ENTITY firefox-buildsize "4.1 GB (162 MB installed) without tests">
[9a469bc]14 <!-- editors: with ff63 and rust-1.29, ./mach build -j4 is probably the
[fe5f563d]15 most practical way to get a timing on a machine with more cores, if taking
16 cores offline is not practical. If in doubt, round up -->
[3507f80]17 <!ENTITY firefox-time "25 SBU (with parallelism=4) without tests">
[f939f05]18]>
19
[ffe47ca2]20<sect1 id="firefox" xreflabel="Firefox-&firefox-version;">
[b81991e1]21 <?dbhtml filename="firefox.html" ?>
22
23 <sect1info>
24 <othername>$LastChangedBy$</othername>
25 <date>$Date$</date>
26 </sect1info>
27
28 <title>Firefox-&firefox-version;</title>
29
30 <indexterm zone="firefox">
31 <primary sortas="a-Firefox">Firefox</primary>
32 </indexterm>
33
34 <sect2 role="package">
35 <title>Introduction to Firefox</title>
36
[c1ae13c]37 <para>
38 <application>Firefox</application> is a stand-alone browser based on the
39 <application>Mozilla</application> codebase.
40 </para>
[b81991e1]41
[38489aa0]42 &lfs84_checked;
[76ae9a2]43
[b81991e1]44 <bridgehead renderas="sect3">Package Information</bridgehead>
45 <itemizedlist spacing="compact">
46 <listitem>
[c1ae13c]47 <para>
48 Download (HTTP): <ulink url="&firefox-download-http;"/>
49 </para>
[b81991e1]50 </listitem>
51 <listitem>
[c1ae13c]52 <para>
53 Download (FTP): <ulink url="&firefox-download-ftp;"/>
54 </para>
[b81991e1]55 </listitem>
56 <listitem>
[c1ae13c]57 <para>
58 Download MD5 sum: &firefox-md5sum;
59 </para>
[b81991e1]60 </listitem>
61 <listitem>
[c1ae13c]62 <para>
63 Download size: &firefox-size;
64 </para>
[b81991e1]65 </listitem>
66 <listitem>
[c1ae13c]67 <para>
68 Estimated disk space required: &firefox-buildsize;
69 </para>
[b81991e1]70 </listitem>
71 <listitem>
[c1ae13c]72 <para>
73 Estimated build time: &firefox-time;
74 </para>
[b81991e1]75 </listitem>
76 </itemizedlist>
77
[14de4227]78 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
79 <itemizedlist spacing="compact">
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
100tar: .: Cannot change mode to rwxr-xr-t: Operation not permitted
101tar: 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
[fe5f563d]113 to build this vary more widely than you might expect. Also, 6GB
[406e5ffe]114 of real memory is used during the final link and the SBUs can increase
[fe5f563d]115 significantly if the machine has to swap.
[8d0bc761]116 </para>
117
[e628b536]118 <para>
119 The mach build system (Python scripts) can be somewhat unreliable: if
120 the build fails and reports an Error, it can still return a status of
121 success, causing a scripted build to try to install (which does not rerun
122 the build), fail during the preparations for installing, but still exit
123 with a status of success. Also, on occasion it may limit itself to only
124 running one set of jobs - that will make the build take about 3 times as
125 long as running with four sets of jobs.
126 </para>
127
[8d0bc761]128 <para>
129 Although upstream prefer to use <application>PulseAudio</application>,
130 for the moment <application>Alsa</application> can still be used. Both
131 may need runtime configuration to get sound working.
132 </para>
[f06c692]133 </note>
134
[b81991e1]135 <bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
136
137 <bridgehead renderas="sect4">Required</bridgehead>
[c1ae13c]138 <para role="required">
[14de4227]139 <xref linkend="autoconf213"/>,
[44cd41e]140 <xref linkend="cbindgen"/>,
[ac105103]141 both <xref linkend="gtk3"/> and
[9da4cc6f]142 <xref linkend="gtk2"/>,
[326f830]143 <xref linkend="libnotify"/>,
[fe5f563d]144 <xref linkend="nodejs"/>,
[59a6b63]145 <xref linkend="nss"/>,
[be0bd12]146 <xref linkend="pulseaudio"/>
[81b3e7fd]147 (or
[9da4cc6f]148 <xref linkend="alsa-lib"/> if you edit the mozconfig;
[326f830]149 now deprecated by mozilla), in either case please read the
150 Configuration Information,
[4c6edac]151 <xref linkend="rust"/>,
[59a6b63]152 <xref linkend="unzip"/>,
[479e03a]153 <xref linkend="yasm"/>, and
154 <xref linkend="zip"/>
[c1ae13c]155 </para>
156
[1555d3d]157 <bridgehead renderas="sect4">Recommended</bridgehead>
[c1ae13c]158 <para role="recommended">
[b84fe71]159 <xref linkend="icu"/>,
[0e37869]160 <xref linkend="libevent"/>,
[e48053bd]161<!-- fails to build in 65.0 (headers changed)
162 <xref linkend="libvpx"/>, -->
[e399c12]163 <xref linkend="libwebp"/>,
164 <xref linkend="nasm"/>, and
[a30a874]165 <xref linkend="sqlite"/>
[c1ae13c]166 </para>
[1555d3d]167
[0e37869]168 <note>
169 <para>
[b9f61df]170 If you don't install recommended dependencies, then internal copies of
171 those packages will be used. They might be tested to work, but they can
172 be out of date or contain security holes.
[0e37869]173 </para>
174 </note>
[8d0bc761]175
[b81991e1]176 <bridgehead renderas="sect4">Optional</bridgehead>
[c1ae13c]177 <para role="optional">
[6c64623f]178 <xref linkend="curl"/>,
[c1ae13c]179 <xref linkend="dbus-glib"/>,
180 <xref linkend="doxygen"/>,
[babf0a0]181 <xref role="runtime" linkend="ffmpeg"/> (runtime, to play mov, mp3 or mp4 files),
[fe30eab]182 <!-- <phrase revision="sysv"><ulink url="http://sourceforge.net/projects/liboauth/files/">liboauth</ulink></phrase> -->
183 <xref linkend="liboauth"/>,
[26fa7d2]184 <xref linkend="openjdk"/>,
[0e37869]185 <xref linkend="startup-notification"/>,
[566fcae]186 <xref linkend="valgrind"/>,
[6000a3e]187 <xref linkend="wget"/>,
[73b06df]188 <xref linkend="wireless_tools"/>,
[14de4227]189 <ulink url="https://github.com/libproxy/libproxy">libproxy</ulink>,
190 and (with the patch)
191 <xref linkend="graphite2"/> and
192 <xref linkend="harfbuzz"/>
[c1ae13c]193 </para>
194
195 <para condition="html" role="usernotes">
196 User Notes: <ulink url="&blfs-wiki;/firefox"/>
197 </para>
[b81991e1]198 </sect2>
199
200 <sect2 role="installation">
201 <title>Installation of Firefox</title>
202
[f72a04a]203 <para>
[b9f61df]204 The configuration of <application>Firefox</application> is accomplished
205 by creating a <filename>mozconfig</filename> file containing the desired
206 configuration options. A default <filename>mozconfig</filename> is
207 created below. To see the entire list of available configuration options
[888e303]208 (and an abbreviated description of some of them), issue <command>./mach
209 configure &amp;&amp; ./configure --help | less</command>. You may also
210 wish to review the entire file and uncomment any other desired options.
211 Create the file by issuing the following command:
[c1ae13c]212 </para>
[5a13c45]213
[0e37869]214<screen><userinput>cat &gt; mozconfig &lt;&lt; "EOF"
[dcb0fe6]215<literal># If you have a multicore machine, all cores will be used by default.
216
[7090d94]217# If you have installed dbus-glib, comment out this line:
[74eaf91]218ac_add_options --disable-dbus
[aed37975]219
[32cca2cd]220# If you have installed dbus-glib, and you have installed (or will install)
221# wireless-tools, and you wish to use geolocation web services, comment out
222# this line
[6d1bf0e]223ac_add_options --disable-necko-wifi
224
[ad5a97d]225# API Keys for geolocation APIs - necko-wifi (above) is required for MLS
226# Uncomment the following line if you wish to use Mozilla Location Service
227#ac_add_options --with-mozilla-api-keyfile=$PWD/mozilla-key
228
229# Uncomment the following line if you wish to use Google's geolocaton API
230# (needed for use with saved maps with Google Maps)
[9116137c]231#ac_add_options --with-google-location-service-api-keyfile=$PWD/google-key
[ad5a97d]232
[ab8cd9be]233# Uncomment this line if you have installed startup-notification:
[0e37869]234#ac_add_options --enable-startup-notification
[495ebe07]235
[81b3e7fd]236# Uncomment the following option if you have not installed PulseAudio
237#ac_add_options --disable-pulseaudio
[3507f80]238# or uncomment this if you installed alsa-lib instead of PulseAudio
[81b3e7fd]239#ac_add_options --enable-alsa
[89cdb63d]240
[0e37869]241# Comment out following options if you have not installed
242# recommended dependencies:
243ac_add_options --enable-system-sqlite
244ac_add_options --with-system-libevent
[8df543f]245# firefox-65 understands webp and ships with an included copy
246ac_add_options --with-system-webp
[0e37869]247ac_add_options --with-system-nspr
248ac_add_options --with-system-nss
[b84fe71]249ac_add_options --with-system-icu
[9a469bc]250
[e399c12]251# Do not specify the gold linker which is not the default. It will take
252# longer and use more disk space when debug symbols are disabled.
[9a469bc]253
[e399c12]254# libdavid (av1 decoder) requires nasm. Uncomment this if nasm
255# has not been installed.
256#ac_add_options --disable-av1
[0a561d8]257
[9a469bc]258# You cannot distribute the binary if you do this
259ac_add_options --enable-official-branding
[0e37869]260
[14de4227]261# If you are going to apply the patch for system graphite
262# and system harfbuzz, uncomment these lines:
263#ac_add_options --with-system-graphite2
264#ac_add_options --with-system-harfbuzz
265
266# Stripping is now enabled by default.
267# Uncomment these lines if you need to run a debugger:
268#ac_add_options --disable-strip
269#ac_add_options --disable-install-strip
270
[e399c12]271# Disabling debug symbols makes the build much smaller and a little
272# faster. Comment this if you need to run a debugger.
273ac_add_options --disable-debug-symbols
274
[7251b1d]275# The BLFS editors recommend not changing anything below this line:
[495ebe07]276ac_add_options --prefix=/usr
[0e37869]277ac_add_options --enable-application=browser
[495ebe07]278
[c9677a35]279# The elf-hack is reported to cause failed installs (after successful builds)
280# on some machines. It is supposed to improve startup time and it shrinks
281# libxul.so by a few MB - comment this if you know your machine is not affected.
282ac_add_options --disable-elf-hack
283
[5f5dcc2]284ac_add_options --disable-crashreporter
285ac_add_options --disable-updater
[57a8df2]286# enabling the tests will use a lot more space and significantly
287# increase the build time, for no obvious benefit.
[0e37869]288ac_add_options --disable-tests
289
[e399c12]290# The default level of optimization again produces a working build with gcc.
[8df543f]291ac_add_options --enable-optimize
[0e37869]292
[9da4cc6f]293# From firefox-61 system cairo is not supported
294
[41f2e90]295ac_add_options --enable-system-ffi
[0e37869]296ac_add_options --enable-system-pixman
297
[e628b536]298# From firefox-62 --with-pthreads is not recognized
[0e37869]299
300ac_add_options --with-system-bz2
[a0ace670]301ac_add_options --with-system-jpeg
302ac_add_options --with-system-png
303ac_add_options --with-system-zlib
[aed37975]304
[1b0a207]305# The following option unsets Telemetry Reporting. With the Addons Fiasco,
306# Mozilla was found to be collecting user's data, including saved passwords and
307# web form data, without users consent. Mozilla was also found shipping updates
308# to systems without the user's knowledge or permission.
309# As a result of this, use the following command to permanently disable
310# telemetry reporting in Firefox.
311unset MOZ_TELEMETRY_REPORTING
312
[4def8b6]313mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir</literal>
[0e37869]314EOF</userinput></screen>
[b9b7146]315
[c1ae13c]316 <para>
317 Compile <application>Firefox</application> by issuing the following
318 commands:
319 </para>
[9572e88]320
[14de4227]321 <para>
322 If you have installed system versions of graphite2 and harfbuzz and wish
323 firefox to use those instead of its shipped versions, apply the patch and
324 uncomment the appropriate entries in the <filename>mozconfig</filename>
[346e269]325 file.
[14de4227]326 </para>
327
[0a4a5cd]328<screen><userinput>patch -Np1 -i ../firefox-&firefox-version;-system_graphite2_harfbuzz-1.patch</userinput></screen>
[14de4227]329
[ad5a97d]330 <para>
331 If the geolocation APIs are needed:
332 </para>
333
[e5c8de01]334 <note>
335 <para>
336 <!-- Taken from Arch Linux - an immensely helpful link - Thanks -->
337 The Google and Mozilla API Keys below are specific to LFS. If using
338 these instructions for another distro, or if you intend to distribute
339 binary copies of the software using these instructions, please obtain
340 your own keys following the instructions located at
341 <ulink url="http://www.chromium.org/developers/how-tos/api-keys"/> and
342 <ulink url="https://location.services.mozilla.com/api"/> respectively.
343 <!-- BLFS Devs, register an account at Google with your
344 @linuxfromscratch.org email address, and I'll make you an administrator
345 for the 'Google APIs for LFS' project (where the API and OAuth keys
346 were created for use in the book).-->
347 </para>
348 </note>
349
[ad5a97d]350<screen><userinput>echo "AIzaSyDxKL42zsPjbke5O8_rPVpVrLrJ8aeE9rQ" > google-key
351echo "d2284a20-0505-4927-a809-7ffaf4d91e55" > mozilla-key</userinput></screen>
352
[8b3a8979]353 <note><para>
[9572e88]354 If you are compiling <application>Firefox</application> in chroot, make
355 sure you have <envar>$SHELL</envar> environment variable set or prepend
[b84fe71]356 <envar>SHELL=/bin/sh</envar>. Also ensure that <filename>/dev/shm</filename>
357 is mounted.
[8b3a8979]358 </para></note>
[9516a4f]359
[3bdfc9fd]360 <para>
[e399c12]361 If you are still using ICU-63, run a sed to avoid a conflict between
[7ebe22e]362 upstream ICU's use of <literal>CheckImpl()</literal> in their public headers
363 and firefox's internal use of a different <literal>CheckImpl()</literal>.
[3bdfc9fd]364 </para>
365
[e399c12]366<screen role="nodump"><userinput>sed -e 's/checkImpl/checkFFImpl/g' -i js/src/vm/JSContext*.h</userinput></screen>
367
[29b0395]368<!--<para>
[e8d45427]369 Apply a sed to work around a change in the linux headers, and then
370 invoke the Python2 script to compile the package.
[e399c12]371 </para>
372
[29b0395]373<screen><userinput>sed -i 's/SIOCGSTAMP/0x8906/' media/webrtc/trunk/webrtc/rtc_base/physicalsocketserver.cc &amp;&amp;-->
374
375 <para>
376 Now invoke the Python2 script to compile the package.
377 </para>
[e8d45427]378
[29b0395]379<screen><userinput>export CC=gcc CXX=g++ &amp;&amp;
[ec1d8ae]380export MOZBUILD_STATE_PATH=${PWD}/mozbuild &amp;&amp;
[f0b7ae67]381./mach build</userinput></screen>
[3bdfc9fd]382
[0e37869]383 <para>
[57a8df2]384 The <filename>mozconfig</filename> above disables the tests because
385 they use a lot more time and disk space for no obvious benefit. If
[ecffcbbc]386 you have nevertheless enabled them, you can run the tests by executing
387 <command>./mach gtest</command>. This will require a network connection,
388 and to be run from within an Xorg session - there is a popup dialog
389 when it fails to connect to ALSA (that does not create a failed test).
390 One or two tests will fail. To see the details of the failure(s) you
391 will need to log the output from that command so that you can review it.
[0e37869]392 </para>
[01ce75f8]393
[495ebe07]394 <para>
[b9f61df]395 Now, as the <systemitem class="username">root</systemitem> user:
[c1ae13c]396 </para>
[5a13c45]397
[326f830]398<screen role="root"><userinput>./mach install &amp;&amp;
[5ee1266]399
[326f830]400mkdir -pv /usr/lib/mozilla/plugins &amp;&amp;
[8d0bc761]401ln -sfv ../../mozilla/plugins /usr/lib/firefox/browser/</userinput></screen>
[fe5f563d]402
[a5708ba]403 <para>
404 Set environment variables back to their values:
405 </para>
406
[e399c12]407<screen><userinput>unset CC CXX MOZBUILD_STATE_PATH</userinput></screen>
[01ce75f8]408
[b81991e1]409 </sect2>
410
[361df3e]411 <sect2 role="commands">
412 <title>Command Explanations</title>
[7d09fcb9]413
[29b0395]414<!--<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
415 href="../../xincludes/SIOCGSTAMP.xml"/>-->
[e8d45427]416
[b84fe71]417 <para>
418 <command>sed -e 's/checkImpl/checkFFImpl/g' ...</command>: Although the
[e399c12]419 package ships with a modified version of <application>ICU-63</application>
420 and only tests that the system version, if used, is at least 63, changes
421 from upstream 63 cause builds with the system version to fail with an error
422 message <literal>no void JSContext::checkImpl_63 member function</literal>.
423 The sed renames the local function. Upstream ICU-64 works around this.
[b84fe71]424 </para>
425
[9a469bc]426 <para>
[e399c12]427 <command>export CC=gcc CXX=g++ ...</command>: Upstream now prefer
428 <application>clang</application>, but gcc is a more secure compiler and
429 now produces reasonably-sized builds.
[9a469bc]430 </para>
431
[fe5f563d]432 <para>
433 <command>export MOZBUILD_STATE_PATH=${PWD}/mozbuild</command>: The build
434 is now supposed to tell you that it intends to create <filename
435 class="directory">~/.mozbuild</filename>, and offer you an option to
436 press &lt;ENTER&gt; to accept this, or Ctrl-C to cancel and restart the
437 build after specifying the directory. In practice, the message may not
438 appear until after &lt;ENTER&gt; is keyed, i.e. the build stalls.
439 </para>
440
441 <para>
442 That directory is used for a (probably random) telemetry identifier.
443 Creating this in the build directory, and deleting that after the
444 installation, prevents it being used. If you wish to participate in
445 telemetry, export MOZBUILD_STATE_PATH to point to its default directory.
446 </para>
447
[a0d558d]448 <para>
[326f830]449 <command>./mach build</command>: <application>Firefox</application>
450 now uses this <application>python2</application> script to run the
451 build and install.
[a0d558d]452 </para>
453
[c1ae13c]454 <para>
[326f830]455 <option>./mach build --verbose</option>: Use this alternative if you
456 need details of which files are being compiled, together with any C or
457 C++ flags being used.
[c1ae13c]458 </para>
459
[9a469bc]460 <para>
[fe5f563d]461 <option>./mach build -jN</option>: The build should, by default, use
462 all the online CPU cores. There are two reasons to specify the number
463 of cores, e.g. -j4 for 4 cores: First, if using all the cores causes
464 the build to swap because you have insufficient memory (e.g. for 4 cores
[e399c12]465 a build without system graphite2 and harfbuzz now uses towards 8GB
[fe5f563d]466 of RAM). In such cases, using fewer cores can be faster. Second, on some
467 machines the middle part of the build can drag on as if only one core is
468 present. In those cases, specifying the number of cores may speed up the
469 build.
[9a469bc]470 </para>
471
[c1ae13c]472 <para>
[8d0bc761]473 <command>mkdir -pv /usr/lib/mozilla/plugins</command>: This ensures
474 that <filename class="directory">/usr/lib/mozilla/plugins/</filename>
[c1ae13c]475 exists.
476 </para>
477
478 <para>
[8d0bc761]479 <command>ln -sv ... /usr/lib/firefox/browser</command>:
[24da103]480 This command creates a symbolic link to <filename
481 class="directory">/usr/lib/mozilla/plugins</filename>. It's not really
482 needed, as <application>Firefox</application> checks <filename
483 class="directory">/usr/lib/mozilla/plugins</filename> by default, but the
484 symbolic link is made to keep all the plugins installed in one folder.
[c1ae13c]485 </para>
[fa1bc3e]486
[e399c12]487 <para>
488 <option>export CC=clang CXX=clang++ AR=llvm-ar NM=llvm-nm RANLIB=llvm-ranlib</option>:
489 Use this as an alternative to building with gcc and g++ if you wish to use
490 the clang toolchain. Remember to unset these variables after the build.
491 </para>
492
[b81991e1]493 </sect2>
494
[88cec02]495 <sect2 role="configuration">
496 <title>Configuring Firefox</title>
497
[c1ae13c]498 <para>
499 If you use a desktop environment like <application>Gnome</application> or
500 <application>KDE</application> you may like to create a
501 <filename>firefox.desktop</filename> file so that
502 <application>Firefox</application> appears in the panel's menus. If you
503 didn't enable startup-notification in your mozconfig change the
504 StartupNotify line to false. As the
505 <systemitem class="username">root</systemitem> user:
506 </para>
[31de6e7]507
[eb5f847a]508<screen role="root"><userinput>mkdir -pv /usr/share/applications &amp;&amp;
[0e37869]509mkdir -pv /usr/share/pixmaps &amp;&amp;
[74f73ede]510
[c099902d]511cat &gt; /usr/share/applications/firefox.desktop &lt;&lt; "EOF" &amp;&amp;
[fcd66369]512<literal>[Desktop Entry]
[31de6e7]513Encoding=UTF-8
[0e37869]514Name=Firefox Web Browser
515Comment=Browse the World Wide Web
516GenericName=Web Browser
517Exec=firefox %u
518Terminal=false
[31de6e7]519Type=Application
520Icon=firefox
[0e37869]521Categories=GNOME;GTK;Network;WebBrowser;
522MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
[fcd66369]523StartupNotify=true</literal>
[31de6e7]524EOF
[74f73ede]525
[888e303]526ln -sfv /usr/lib/firefox/browser/chrome/icons/default/default128.png \
[0e37869]527 /usr/share/pixmaps/firefox.png</userinput></screen>
528
[326f830]529 <sect3><title>Configuration Information</title>
530
531 <para>
532 The application settings for firefox are accessible by keying
533 <command>about:config</command> in the address bar.
534 </para>
535
536 <para>
537 With this version of <application>firefox</application>, getting
538 working sound can be a problem. Although upstream prefers pulseaudio,
539 on balance using <application>Alsa</application> may be easier.
540 </para>
541
542 <para>
543 If you enabled <application>Alsa</application> for sound, you may need
544 to alter one variable to get working sound. If you run
545 <command>firefox</command> from a term and try to play something with
546 sound you might encounter error messages like:
547 </para>
548
549 <para>
550 <literal>Sandbox: seccomp sandbox violation: pid 3941, tid 4030,
551 syscall 16, args 48 2147767296 139909894784796 0 0 0.</literal>
552 </para>
553
554 <para>
555 That was on x86_64, on i686 the syscall number is 54. To allow this
556 syscall, in <command>about:config</command> change
557 <command>security.sandbox.content.syscall_whitelist</command> to 16
558 (or 54 if using i686).
559 </para>
560
561 <para>
562 If you use <command>pulseaudio</command> in a Desktop Environment, it
563 might already be started by that DE. But if it is not, although
[7ebe22e]564 firefox-57 managed to start it, firefox-58 did not. If you run
565 <command>firefox</command> from a term and this problem is present,
566 trying to play sound will
[326f830]567 encounter error messages warning <literal>Can't get cubeb
568 context!</literal>
569 </para>
570
571 <para>
572 The fix for this is to close firefox, start pulseaudio to check it
573 does start (if not, read the information on Configuring in <xref
574 linkend="pulseaudio"/>) and restart firefox to check it is working.
575 If it now works, add the following to your <filename>~/.xinitrc</filename>:
576<phrase revision="sysv">
577<literal>pulseaudio --verbose --log-target=syslog&amp;</literal></phrase>
578<phrase revision="systemd">
579<literal>pulseaudio --verbose --log-target=journald&amp;</literal></phrase>
580 (unfortunately, on some systems this does not work).
581 </para>
582
583 <para>
584 You may wish to use multiple profiles within firefox. To do that, invoke
585 firefox as <command>firefox --ProfileManager</command>. You can also
586 check which profile is currently in use from
587 <command>about:profiles</command>.
588 </para>
589
590 </sect3>
[88cec02]591 </sect2>
592
[b81991e1]593 <sect2 role="content">
594 <title>Contents</title>
595
596 <segmentedlist>
597 <segtitle>Installed Programs</segtitle>
598 <segtitle>Installed Libraries</segtitle>
[c5f005b]599 <segtitle>Installed Directory</segtitle>
[b81991e1]600
601 <seglistitem>
[0e37869]602 <seg>
603 firefox
604 </seg>
[c1ae13c]605 <seg>
606 Numerous libraries, browser components, plugins, extensions, and
[8d0bc761]607 helper modules installed in /usr/lib/firefox
[c1ae13c]608 </seg>
[7498751]609 <seg>
[54814bdd]610 /usr/lib/firefox and /usr/lib/mozilla
[7498751]611 </seg>
[b81991e1]612 </seglistitem>
613 </segmentedlist>
614
615 <variablelist>
616 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
617 <?dbfo list-presentation="list"?>
618 <?dbhtml list-presentation="table"?>
619
620 <varlistentry id="firefox-prog">
621 <term><command>firefox</command></term>
622 <listitem>
[c1ae13c]623 <para>
[7e1afc9]624 is a <application>GTK+-3</application> internet browser that uses
625 the Mozilla Gecko rendering engine.
[c1ae13c]626 </para>
[b81991e1]627 <indexterm zone="firefox firefox-prog">
628 <primary sortas="b-firefox">firefox</primary>
629 </indexterm>
630 </listitem>
631 </varlistentry>
[0e37869]632
[b81991e1]633 </variablelist>
[0e37869]634
[b81991e1]635 </sect2>
[0e37869]636
[4d37129]637</sect1>
Note: See TracBrowser for help on using the repository browser.