source: xsoft/graphweb/firefox.xml@ 28909b72

11.0 11.1 11.2 11.3 12.0 12.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 28909b72 was 28909b72, checked in by Bruce Dubbs <bdubbs@…>, 3 years ago

Fix up MimeType entries in .desktop instructions
We aso had a sed in the Makefile that changes text/html.
I changed that to only look at the top 20 lines of each page.

  • Property mode set to 100644
File size: 25.0 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
[2eae5bc]7 <!ENTITY firefox-download-http "&mozilla-http;/firefox/releases/&firefox-version;esr/source/firefox-&firefox-version;esr.source.tar.xz">
[8dfc5c3]8 <!ENTITY firefox-download-ftp " ">
[a4f2fb6]9 <!ENTITY firefox-md5sum "f81ca2f266ab3dafdd080f269bbb2286">
10 <!ENTITY firefox-size "366 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 -->
[883e376]13 <!ENTITY firefox-buildsize "6.7 GB (196 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 -->
[883e376]17 <!ENTITY firefox-time "28 SBU (on a typical 4-core machine) without tests">
[f939f05]18]>
19
[ffe47ca2]20<sect1 id="firefox" xreflabel="Firefox-&firefox-version;">
[b81991e1]21 <?dbhtml filename="firefox.html" ?>
22
23 <sect1info>
24 <date>$Date$</date>
25 </sect1info>
26
27 <title>Firefox-&firefox-version;</title>
28
29 <indexterm zone="firefox">
30 <primary sortas="a-Firefox">Firefox</primary>
31 </indexterm>
32
33 <sect2 role="package">
34 <title>Introduction to Firefox</title>
35
[c1ae13c]36 <para>
37 <application>Firefox</application> is a stand-alone browser based on the
38 <application>Mozilla</application> codebase.
39 </para>
[b81991e1]40
[b5645ad]41 &lfs110a_checked;
[76ae9a2]42
[b81991e1]43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
[c1ae13c]46 <para>
47 Download (HTTP): <ulink url="&firefox-download-http;"/>
48 </para>
[b81991e1]49 </listitem>
50 <listitem>
[c1ae13c]51 <para>
52 Download (FTP): <ulink url="&firefox-download-ftp;"/>
53 </para>
[b81991e1]54 </listitem>
55 <listitem>
[c1ae13c]56 <para>
57 Download MD5 sum: &firefox-md5sum;
58 </para>
[b81991e1]59 </listitem>
60 <listitem>
[c1ae13c]61 <para>
62 Download size: &firefox-size;
63 </para>
[b81991e1]64 </listitem>
65 <listitem>
[c1ae13c]66 <para>
67 Estimated disk space required: &firefox-buildsize;
68 </para>
[b81991e1]69 </listitem>
70 <listitem>
[c1ae13c]71 <para>
72 Estimated build time: &firefox-time;
73 </para>
[b81991e1]74 </listitem>
75 </itemizedlist>
76
[883e376]77 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
[bf5fb94]78 <itemizedlist spacing="compact">
79 <listitem>
80 <para>
81 Required patch:
[883e376]82 <ulink url="&patch-root;/firefox-&firefox-version;esr-glibc234-1.patch"/>
[bf5fb94]83 </para>
84 </listitem>
[a05a69a4]85 <listitem>
86 <para>
87 Recommended patch:
88 <ulink url="&patch-root;/firefox-&firefox-version;esr-disable_rust_test-1.patch"/>
89 </para>
90 </listitem>
[883e376]91 </itemizedlist>
[bf5fb94]92
[f06c692]93 <note>
[883e376]94
[a05a69a4]95 <!-- temporary note, remove with firefox-legacy -->
[883e376]96 <para>
[a05a69a4]97 With the 91 ESR series, firefox no-longer works on ftp: links.
98 If that is important to you, as a temporary measure (on non-glibc-2.34
99 systems) you can continue to use <xref linkend="firefox-legacy"/>
100 while you explore alternative approaches.
[883e376]101 </para>
102 <!-- end of temporary note -->
103
[2eae5bc]104 <para>
105 The directory name is firefox-&firefox-version;
106 </para>
107
[f06c692]108 <para>
[8d0bc761]109 Extracting the tarball
110 will reset the permissions of the current directory to 0755 if you
[765c2a7]111 have permission to do that. If you do this in a directory where
[37bf7b1]112 the sticky bit is set, such
[dc9a18a]113 as <filename class="directory">/tmp</filename> it will end with error
114 messages:
115 </para>
116
117<literallayout>tar: .: Cannot utime: Operation not permitted
118tar: .: Cannot change mode to rwxr-xr-t: Operation not permitted
119tar: Exiting with failure status due to previous errors
120</literallayout>
121
122 <para>
123 This does finish with non-zero status, but it does
124 <emphasis>NOT</emphasis> mean there is a real problem.
125 Do not untar as the <systemitem class="username">root</systemitem> user
126 in a directory where the sticky bit is set - that will unset it.
[f06c692]127 </para>
[8d0bc761]128
129 <para>
[406e5ffe]130 As with other large packages which use C++ (or rust), the SBU times
[d5d7cd6]131 to build this vary more widely than you might expect. The build times
132 will increase significantly if your machine has to swap.
[8d0bc761]133 </para>
134
[d5d7cd6]135 <!-- commented, by 78.0 it seems to work reliably
[e628b536]136 <para>
137 The mach build system (Python scripts) can be somewhat unreliable: if
138 the build fails and reports an Error, it can still return a status of
139 success, causing a scripted build to try to install (which does not rerun
140 the build), fail during the preparations for installing, but still exit
141 with a status of success. Also, on occasion it may limit itself to only
142 running one set of jobs - that will make the build take about 3 times as
143 long as running with four sets of jobs.
[d5d7cd6]144 </para>-->
[e628b536]145
[8d0bc761]146 <para>
147 Although upstream prefer to use <application>PulseAudio</application>,
148 for the moment <application>Alsa</application> can still be used. Both
149 may need runtime configuration to get sound working.
150 </para>
[f06c692]151 </note>
152
[b81991e1]153 <bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
154
155 <bridgehead renderas="sect4">Required</bridgehead>
[c1ae13c]156 <para role="required">
[14de4227]157 <xref linkend="autoconf213"/>,
[44cd41e]158 <xref linkend="cbindgen"/>,
[703f0ce]159 <xref linkend="dbus-glib"/>,
[ac105103]160 both <xref linkend="gtk3"/> and
[9da4cc6f]161 <xref linkend="gtk2"/>,
[326f830]162 <xref linkend="libnotify"/>,
[74762a5]163 <xref linkend="llvm"/> (clang, used for bindgen even if using gcc),
[fe5f563d]164 <xref linkend="nodejs"/>,
[59a6b63]165 <xref linkend="nss"/>,
[be0bd12]166 <xref linkend="pulseaudio"/>
[81b3e7fd]167 (or
[9da4cc6f]168 <xref linkend="alsa-lib"/> if you edit the mozconfig;
[326f830]169 now deprecated by mozilla), in either case please read the
170 Configuration Information,
[d5d7cd6]171 <!-- rustc is required by cbindgen so not needed here
172 <xref linkend="rust"/>,-->
[693f28e1]173 <xref linkend="python3"/> (rebuilt after installing <xref linkend="sqlite"/>),
[d5d7cd6]174 <xref linkend="startup-notification"/>,
[59a6b63]175 <xref linkend="unzip"/>,
[479e03a]176 <xref linkend="yasm"/>, and
177 <xref linkend="zip"/>
[c1ae13c]178 </para>
179
[1555d3d]180 <bridgehead renderas="sect4">Recommended</bridgehead>
[c1ae13c]181 <para role="recommended">
[b84fe71]182 <xref linkend="icu"/>,
[0e37869]183 <xref linkend="libevent"/>,
[e399c12]184 <xref linkend="libwebp"/>,
[d5d7cd6]185 <xref linkend="nasm"/>
[c1ae13c]186 </para>
[1555d3d]187
[0e37869]188 <note>
189 <para>
[b9f61df]190 If you don't install recommended dependencies, then internal copies of
191 those packages will be used. They might be tested to work, but they can
192 be out of date or contain security holes.
[0e37869]193 </para>
194 </note>
[8d0bc761]195
[b81991e1]196 <bridgehead renderas="sect4">Optional</bridgehead>
[c1ae13c]197 <para role="optional">
[6c64623f]198 <xref linkend="curl"/>,
[c1ae13c]199 <xref linkend="doxygen"/>,
[babf0a0]200 <xref role="runtime" linkend="ffmpeg"/> (runtime, to play mov, mp3 or mp4 files),
[c6b192c]201 <!-- <phrase revision="sysv"><ulink url="https://sourceforge.net/projects/liboauth/files/">liboauth</ulink></phrase> -->
[fe30eab]202 <xref linkend="liboauth"/>,
[26fa7d2]203 <xref linkend="openjdk"/>,
[566fcae]204 <xref linkend="valgrind"/>,
[6000a3e]205 <xref linkend="wget"/>,
[73b06df]206 <xref linkend="wireless_tools"/>,
[d5d7cd6]207 <ulink url="https://github.com/libproxy/libproxy">libproxy</ulink>
[c1ae13c]208 </para>
209
210 <para condition="html" role="usernotes">
211 User Notes: <ulink url="&blfs-wiki;/firefox"/>
212 </para>
[b81991e1]213 </sect2>
214
215 <sect2 role="installation">
216 <title>Installation of Firefox</title>
217
[f72a04a]218 <para>
[b9f61df]219 The configuration of <application>Firefox</application> is accomplished
220 by creating a <filename>mozconfig</filename> file containing the desired
221 configuration options. A default <filename>mozconfig</filename> is
222 created below. To see the entire list of available configuration options
[888e303]223 (and an abbreviated description of some of them), issue <command>./mach
224 configure &amp;&amp; ./configure --help | less</command>. You may also
225 wish to review the entire file and uncomment any other desired options.
226 Create the file by issuing the following command:
[c1ae13c]227 </para>
[5a13c45]228
[0e37869]229<screen><userinput>cat &gt; mozconfig &lt;&lt; "EOF"
[dcb0fe6]230<literal># If you have a multicore machine, all cores will be used by default.
231
[703f0ce]232# If you have installed (or will install) wireless-tools, and you wish
233# to use geolocation web services, comment out this line
[6d1bf0e]234ac_add_options --disable-necko-wifi
235
[ad5a97d]236# API Keys for geolocation APIs - necko-wifi (above) is required for MLS
237# Uncomment the following line if you wish to use Mozilla Location Service
238#ac_add_options --with-mozilla-api-keyfile=$PWD/mozilla-key
239
240# Uncomment the following line if you wish to use Google's geolocaton API
241# (needed for use with saved maps with Google Maps)
[9116137c]242#ac_add_options --with-google-location-service-api-keyfile=$PWD/google-key
[ad5a97d]243
[d5d7cd6]244# startup-notification is required since firefox-78
[495ebe07]245
[81b3e7fd]246# Uncomment the following option if you have not installed PulseAudio
247#ac_add_options --disable-pulseaudio
[3507f80]248# or uncomment this if you installed alsa-lib instead of PulseAudio
[81b3e7fd]249#ac_add_options --enable-alsa
[89cdb63d]250
[4f89710]251# Uncomment this line if you are building on an i686 system to fix a build
252# failure due to invalid ASM code.
253#ac_add_options --with-system-libvpx
254
[0e37869]255# Comment out following options if you have not installed
256# recommended dependencies:
257ac_add_options --with-system-libevent
[8df543f]258ac_add_options --with-system-webp
[0e37869]259ac_add_options --with-system-nspr
260ac_add_options --with-system-nss
[b84fe71]261ac_add_options --with-system-icu
[9a469bc]262
[e399c12]263# Do not specify the gold linker which is not the default. It will take
264# longer and use more disk space when debug symbols are disabled.
[9a469bc]265
[e399c12]266# libdavid (av1 decoder) requires nasm. Uncomment this if nasm
267# has not been installed.
268#ac_add_options --disable-av1
[0a561d8]269
[9a469bc]270# You cannot distribute the binary if you do this
271ac_add_options --enable-official-branding
[0e37869]272
[14de4227]273# Stripping is now enabled by default.
274# Uncomment these lines if you need to run a debugger:
275#ac_add_options --disable-strip
276#ac_add_options --disable-install-strip
277
[e399c12]278# Disabling debug symbols makes the build much smaller and a little
[ec54fa5b]279# faster. Comment this if you need to run a debugger. Note: This is
280# required for compilation on i686.
[e399c12]281ac_add_options --disable-debug-symbols
282
[c9677a35]283# The elf-hack is reported to cause failed installs (after successful builds)
284# on some machines. It is supposed to improve startup time and it shrinks
285# libxul.so by a few MB - comment this if you know your machine is not affected.
286ac_add_options --disable-elf-hack
287
[d5d7cd6]288# The BLFS editors recommend not changing anything below this line:
289ac_add_options --prefix=/usr
290ac_add_options --enable-application=browser
[5f5dcc2]291ac_add_options --disable-crashreporter
292ac_add_options --disable-updater
[57a8df2]293# enabling the tests will use a lot more space and significantly
294# increase the build time, for no obvious benefit.
[0e37869]295ac_add_options --disable-tests
296
[e399c12]297# The default level of optimization again produces a working build with gcc.
[8df543f]298ac_add_options --enable-optimize
[0e37869]299
[41f2e90]300ac_add_options --enable-system-ffi
[0e37869]301ac_add_options --enable-system-pixman
302
[a0ace670]303ac_add_options --with-system-jpeg
304ac_add_options --with-system-png
305ac_add_options --with-system-zlib
[aed37975]306
[1b0a207]307# The following option unsets Telemetry Reporting. With the Addons Fiasco,
308# Mozilla was found to be collecting user's data, including saved passwords and
309# web form data, without users consent. Mozilla was also found shipping updates
310# to systems without the user's knowledge or permission.
311# As a result of this, use the following command to permanently disable
312# telemetry reporting in Firefox.
313unset MOZ_TELEMETRY_REPORTING
314
[4def8b6]315mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir</literal>
[0e37869]316EOF</userinput></screen>
[b9b7146]317
[c1ae13c]318 <para>
319 Compile <application>Firefox</application> by issuing the following
320 commands:
321 </para>
[9572e88]322
[2eb6c62]323 <para>
[883e376]324 Apply a patch which allows compilation on systems running glibc-2.34:
[2eb6c62]325 </para>
[14de4227]326
[883e376]327<screen><userinput>patch -Np1 -i ../firefox-&firefox-version;esr-glibc234-1.patch</userinput></screen>
[14de4227]328
[a05a69a4]329 <para>
330 Now apply a patch which works around unexplained failures on some machines
331 (a message that a python check on libgkrust.a identified 1 networking
332 function, getsockname) in the rust static library.
333 </para>
334
335<screen><userinput>patch -Np1 -i ../firefox-&firefox-version;esr-disable_rust_test-1.patch</userinput></screen>
336
[ad5a97d]337 <para>
338 If the geolocation APIs are needed:
339 </para>
340
[e5c8de01]341 <note>
342 <para>
343 <!-- Taken from Arch Linux - an immensely helpful link - Thanks -->
344 The Google and Mozilla API Keys below are specific to LFS. If using
345 these instructions for another distro, or if you intend to distribute
346 binary copies of the software using these instructions, please obtain
347 your own keys following the instructions located at
348 <ulink url="http://www.chromium.org/developers/how-tos/api-keys"/> and
349 <ulink url="https://location.services.mozilla.com/api"/> respectively.
350 <!-- BLFS Devs, register an account at Google with your
351 @linuxfromscratch.org email address, and I'll make you an administrator
352 for the 'Google APIs for LFS' project (where the API and OAuth keys
353 were created for use in the book).-->
354 </para>
355 </note>
356
[ad5a97d]357<screen><userinput>echo "AIzaSyDxKL42zsPjbke5O8_rPVpVrLrJ8aeE9rQ" > google-key
[5f18b7a8]358echo "613364a7-9418-4c86-bcee-57e32fd70c23" > mozilla-key</userinput></screen>
[ad5a97d]359
[5b0a978e]360 <note>
361
362 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
363 href="../../xincludes/mozshm.xml"/>
364
365 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
366 href="../../xincludes/mozmach.xml"/>
367
368 </note>
[57feeb5]369 <!--
[ec54fa5b]370 <para>
371 If you are building on i686, apply a fix to prevent Internal Compiler
372 Errors in GCC-7+:
[e399c12]373 </para>
374
[ec54fa5b]375<screen><userinput remap="pre">case $(uname -m) in
376 i?86) sed -i "562 s/mips64/i386/" gfx/skia/skia/third_party/skcms/src/Transform_inl.h ;;
377esac</userinput></screen>
[57feeb5]378 -->
[393517d3]379<!--<para>
[bf5fb94]380 Apply a patch to allow this to be compiled with <xref linkend="rust"/>:
381 </para>
382
[393517d3]383<screen><userinput remap="pre">patch -p1 -i ../firefox-&firefox-version;esr-rustc1470-1.patch</userinput></screen>-->
[29b0395]384
385 <para>
[8d70628]386 Now invoke the Python <command>mach</command> script to compile the package.
[29b0395]387 </para>
[e8d45427]388
[29b0395]389<screen><userinput>export CC=gcc CXX=g++ &amp;&amp;
[8d70628]390export MACH_USE_SYSTEM_PYTHON=1 &amp;&amp;
[ec1d8ae]391export MOZBUILD_STATE_PATH=${PWD}/mozbuild &amp;&amp;
[89d7ee1]392./mach configure &amp;&amp;
[f0b7ae67]393./mach build</userinput></screen>
[3bdfc9fd]394
[0e37869]395 <para>
[57a8df2]396 The <filename>mozconfig</filename> above disables the tests because
397 they use a lot more time and disk space for no obvious benefit. If
[ecffcbbc]398 you have nevertheless enabled them, you can run the tests by executing
399 <command>./mach gtest</command>. This will require a network connection,
400 and to be run from within an Xorg session - there is a popup dialog
401 when it fails to connect to ALSA (that does not create a failed test).
402 One or two tests will fail. To see the details of the failure(s) you
403 will need to log the output from that command so that you can review it.
[0e37869]404 </para>
[01ce75f8]405
[495ebe07]406 <para>
[b9f61df]407 Now, as the <systemitem class="username">root</systemitem> user:
[c1ae13c]408 </para>
[5a13c45]409
[8d70628]410<screen role="root"><userinput>MACH_USE_SYSTEM_PYTHON=1 ./mach install</userinput></screen>
[fe5f563d]411
[a5708ba]412 <para>
[8d70628]413 Empty the environment variables which were set above:
[a5708ba]414 </para>
415
[8d70628]416<screen><userinput>unset CC CXX MACH_USE_SYSTEM_PYTHON MOZBUILD_STATE_PATH</userinput></screen>
[01ce75f8]417
[b81991e1]418 </sect2>
419
[361df3e]420 <sect2 role="commands">
421 <title>Command Explanations</title>
[7d09fcb9]422
[29b0395]423<!--<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
424 href="../../xincludes/SIOCGSTAMP.xml"/>-->
[e8d45427]425
[9a469bc]426 <para>
[e399c12]427 <command>export CC=gcc CXX=g++ ...</command>: Upstream now prefer
[d5d7cd6]428 <application>clang</application> so that they can use one compiler
429 everywhere. On the X86 architectures <application>clang</application>
[6629008]430 now appears to support most of the same security-hardening options as
[bf5fb94]431 <application>GCC</application>.
432 <!-- supported in llvm-11
433 but the newer
434 <literal>-fstack-clash-protection</literal> is still not supported.-->
[6629008]435 With the current versions and the default flags,
[d5d7cd6]436 <application>GCC</application> creates a marginally bigger build but
437 takes typically 2 SBU less time on a 4-core machine using the mozconfig
438 above.
[9a469bc]439 </para>
440
[fe5f563d]441 <para>
442 <command>export MOZBUILD_STATE_PATH=${PWD}/mozbuild</command>: The build
443 is now supposed to tell you that it intends to create <filename
444 class="directory">~/.mozbuild</filename>, and offer you an option to
445 press &lt;ENTER&gt; to accept this, or Ctrl-C to cancel and restart the
446 build after specifying the directory. In practice, the message may not
447 appear until after &lt;ENTER&gt; is keyed, i.e. the build stalls.
448 </para>
449
450 <para>
451 That directory is used for a (probably random) telemetry identifier.
452 Creating this in the build directory, and deleting that after the
453 installation, prevents it being used. If you wish to participate in
[883e376]454 telemetry, export MOZBUILD_STATE_PATH to point to its default directory
455 and remove the entry from the <filename>mozconfig</filename>.
456 </para>
457
458 <para>
[8d70628]459 <command>MACH_USE_SYSTEM_PYTHON=1</command>: Use the system python
460 to create a virtual environment for <command>mach</command> without
461 downloading any python wheels.
[883e376]462 </para>
463
464 <para>
465 <command>./mach configure</command>: This validates the supplied
466 dependencies and the <filename>mozconfig</filename>.
[fe5f563d]467 </para>
468
[c1ae13c]469 <para>
[326f830]470 <option>./mach build --verbose</option>: Use this alternative if you
471 need details of which files are being compiled, together with any C or
[d5d7cd6]472 C++ flags being used. But do not add '--verbose' to the install command,
473 it is not accepted there.
[c1ae13c]474 </para>
475
[9a469bc]476 <para>
[fe5f563d]477 <option>./mach build -jN</option>: The build should, by default, use
[d5d7cd6]478 all the online CPU cores. If using all the cores causes the build to swap
479 because you have insufficient memory, using fewer cores can be faster.
[9a469bc]480 </para>
481
[95df066]482<!--
[c1ae13c]483 <para>
[8d0bc761]484 <command>mkdir -pv /usr/lib/mozilla/plugins</command>: This ensures
485 that <filename class="directory">/usr/lib/mozilla/plugins/</filename>
[c1ae13c]486 exists.
487 </para>
488
489 <para>
[8d0bc761]490 <command>ln -sv ... /usr/lib/firefox/browser</command>:
[24da103]491 This command creates a symbolic link to <filename
492 class="directory">/usr/lib/mozilla/plugins</filename>. It's not really
493 needed, as <application>Firefox</application> checks <filename
494 class="directory">/usr/lib/mozilla/plugins</filename> by default, but the
495 symbolic link is made to keep all the plugins installed in one folder.
[c1ae13c]496 </para>
[95df066]497-->
[fa1bc3e]498
[b81991e1]499 </sect2>
500
[88cec02]501 <sect2 role="configuration">
502 <title>Configuring Firefox</title>
503
[c1ae13c]504 <para>
505 If you use a desktop environment like <application>Gnome</application> or
506 <application>KDE</application> you may like to create a
507 <filename>firefox.desktop</filename> file so that
[3927e328]508 <application>Firefox</application> appears in the panel's menus. <!--If you
[c1ae13c]509 didn't enable startup-notification in your mozconfig change the
[3927e328]510 StartupNotify line to false.--> As the
[c1ae13c]511 <systemitem class="username">root</systemitem> user:
512 </para>
[31de6e7]513
[eb5f847a]514<screen role="root"><userinput>mkdir -pv /usr/share/applications &amp;&amp;
[28909b72]515mkdir -pv /usr/share/pixmaps &amp;&amp;
[74f73ede]516
[28909b72]517MIMETYPE="text/xml;text/mml;text/html;" &amp;&amp;
518MIMETYPE="$MIMETYPE;application/xhtml+xml;application/vnd.mozilla.xul+xml" &amp;&amp;
519MIMETYPE="$MIMETYPE;x-scheme-handler/http;x-scheme-handler/https; &amp;&amp;
520
521cat &gt; /usr/share/applications/firefox.desktop &lt;&lt; EOF &amp;&amp;
[fcd66369]522<literal>[Desktop Entry]
[31de6e7]523Encoding=UTF-8
[0e37869]524Name=Firefox Web Browser
525Comment=Browse the World Wide Web
526GenericName=Web Browser
527Exec=firefox %u
528Terminal=false
[31de6e7]529Type=Application
530Icon=firefox
[0e37869]531Categories=GNOME;GTK;Network;WebBrowser;
[28909b72]532MimeType=$MIMETYPE
[fcd66369]533StartupNotify=true</literal>
[31de6e7]534EOF
[74f73ede]535
[28909b72]536unset MIMETYPE &amp;&amp;
537
[888e303]538ln -sfv /usr/lib/firefox/browser/chrome/icons/default/default128.png \
[0e37869]539 /usr/share/pixmaps/firefox.png</userinput></screen>
540
[326f830]541 <sect3><title>Configuration Information</title>
542
543 <para>
544 The application settings for firefox are accessible by keying
545 <command>about:config</command> in the address bar.
546 </para>
547
548 <para>
[d5d7cd6]549 Occasionally, getting working sound in
550 <application>firefox</application> can be a problem. Although upstream
551 prefers pulseaudio,
[326f830]552 on balance using <application>Alsa</application> may be easier.
553 </para>
554
555 <para>
556 If you enabled <application>Alsa</application> for sound, you may need
557 to alter one variable to get working sound. If you run
558 <command>firefox</command> from a term and try to play something with
559 sound you might encounter error messages like:
560 </para>
561
562 <para>
563 <literal>Sandbox: seccomp sandbox violation: pid 3941, tid 4030,
564 syscall 16, args 48 2147767296 139909894784796 0 0 0.</literal>
565 </para>
566
567 <para>
568 That was on x86_64, on i686 the syscall number is 54. To allow this
569 syscall, in <command>about:config</command> change
570 <command>security.sandbox.content.syscall_whitelist</command> to 16
571 (or 54 if using i686).
572 </para>
573
574 <para>
575 If you use <command>pulseaudio</command> in a Desktop Environment, it
576 might already be started by that DE. But if it is not, although
[7ebe22e]577 firefox-57 managed to start it, firefox-58 did not. If you run
578 <command>firefox</command> from a term and this problem is present,
579 trying to play sound will
[326f830]580 encounter error messages warning <literal>Can't get cubeb
581 context!</literal>
582 </para>
583
584 <para>
585 The fix for this is to close firefox, start pulseaudio to check it
586 does start (if not, read the information on Configuring in <xref
587 linkend="pulseaudio"/>) and restart firefox to check it is working.
588 If it now works, add the following to your <filename>~/.xinitrc</filename>:
589<phrase revision="sysv">
590<literal>pulseaudio --verbose --log-target=syslog&amp;</literal></phrase>
591<phrase revision="systemd">
592<literal>pulseaudio --verbose --log-target=journald&amp;</literal></phrase>
593 (unfortunately, on some systems this does not work).
594 </para>
595
596 <para>
597 You may wish to use multiple profiles within firefox. To do that, invoke
598 firefox as <command>firefox --ProfileManager</command>. You can also
599 check which profile is currently in use from
600 <command>about:profiles</command>.
601 </para>
602
[d5d7cd6]603 <para>
604 Although WebRender (using the GPU for compositing) is not used by
605 default, it now appears to work well on supported hardware (ATI, Nvidia
606 and Intel GPUs with Mesa-18 or later. For an explanation, please see
607 <ulink
608 url="https://hacks.mozilla.org/2017/10/the-whole-web-at-maximum-fps-how-webrender-gets-rid-of-jank/">hacks.mozilla.org</ulink>.
609 The only downside seems to be that on a machine with limited RAM it might
610 use more RAM.
611 </para>
612
613 <para>
614 To check if WebRender is being used, look in about:support. In the Graphics
615 section Compositing will either show 'Basic' (i.e. not in use) or
616 'WebRender'. To enable it, go to about:config and change gfx.webrender.all
617 to True. You will need to restart firefox.
618 </para>
619
620 <para>
621 It may be useful to mention the processes from firefox which can appear in
622 <command>top</command> - as well as firefox itself, there may be multiple
623 Web Content processes, and now an RDD Process (Remote Data Decoder) which
624 appears when playing web videos encoded with av1 (libdav1d). If WebRender
625 has been enabled, a GPU Process will also appear when firefox has to
626 repaint (e.g. scrolling, opening a new tab, or playing a video).
627 </para>
628
[326f830]629 </sect3>
[88cec02]630 </sect2>
631
[b81991e1]632 <sect2 role="content">
633 <title>Contents</title>
634
635 <segmentedlist>
636 <segtitle>Installed Programs</segtitle>
637 <segtitle>Installed Libraries</segtitle>
[c5f005b]638 <segtitle>Installed Directory</segtitle>
[b81991e1]639
640 <seglistitem>
[0e37869]641 <seg>
642 firefox
643 </seg>
[c1ae13c]644 <seg>
645 Numerous libraries, browser components, plugins, extensions, and
[8d0bc761]646 helper modules installed in /usr/lib/firefox
[c1ae13c]647 </seg>
[7498751]648 <seg>
[54814bdd]649 /usr/lib/firefox and /usr/lib/mozilla
[7498751]650 </seg>
[b81991e1]651 </seglistitem>
652 </segmentedlist>
653
654 <variablelist>
655 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
656 <?dbfo list-presentation="list"?>
657 <?dbhtml list-presentation="table"?>
658
659 <varlistentry id="firefox-prog">
660 <term><command>firefox</command></term>
661 <listitem>
[c1ae13c]662 <para>
[7e1afc9]663 is a <application>GTK+-3</application> internet browser that uses
[4c24eb0a]664 the Mozilla Gecko rendering engine
[c1ae13c]665 </para>
[b81991e1]666 <indexterm zone="firefox firefox-prog">
667 <primary sortas="b-firefox">firefox</primary>
668 </indexterm>
669 </listitem>
670 </varlistentry>
[0e37869]671
[b81991e1]672 </variablelist>
[0e37869]673
[b81991e1]674 </sect2>
[0e37869]675
[4d37129]676</sect1>
Note: See TracBrowser for help on using the repository browser.