source: xsoft/graphweb/firefox.xml@ 9faa3b74

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 9faa3b74 was 9faa3b74, checked in by Ken Moffat <ken@…>, 10 years ago

more tags, remove libexecdir from evince

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

  • Property mode set to 100644
File size: 15.0 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7<!-- <!ENTITY firefox-download-http
8 "http://releases.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">-->
9 <!ENTITY firefox-download-http
10 "http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
11 <!ENTITY firefox-download-ftp
12 "ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
13 <!ENTITY firefox-md5sum "c8feb2c55294aa679e8755ac24844933">
14 <!ENTITY firefox-size "124 MB">
15 <!ENTITY firefox-buildsize "3.5 GB (54 MB installed) (or 874 MB and 5.3 MB
16 if using Xulrunner)">
17 <!ENTITY firefox-time "34 SBU (0.4 SBU if using Xulrunner)">
18]>
19
20<sect1 id="firefox" xreflabel="Firefox-&firefox-version;">
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
37 <para>
38 <application>Firefox</application> is a stand-alone browser based on the
39 <application>Mozilla</application> codebase.
40 </para>
41
42 &lfs75_checked;
43
44 <bridgehead renderas="sect3">Package Information</bridgehead>
45 <itemizedlist spacing="compact">
46 <listitem>
47 <para>
48 Download (HTTP): <ulink url="&firefox-download-http;"/>
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download (FTP): <ulink url="&firefox-download-ftp;"/>
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Download MD5 sum: &firefox-md5sum;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Download size: &firefox-size;
64 </para>
65 </listitem>
66 <listitem>
67 <para>
68 Estimated disk space required: &firefox-buildsize;
69 </para>
70 </listitem>
71 <listitem>
72 <para>
73 Estimated build time: &firefox-time;
74 </para>
75 </listitem>
76 </itemizedlist>
77
78 <bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
79
80 <bridgehead renderas="sect4">Required</bridgehead>
81 <para role="required">
82 <xref linkend="alsa-lib"/>,
83 <xref linkend="gtk2"/>,
84 <xref linkend="zip"/>, and
85 <xref linkend="unzip"/>
86 </para>
87
88 <bridgehead renderas="sect4">Recommended</bridgehead>
89 <para role="recommended">
90 <xref linkend="libevent"/>,
91 <xref linkend="libvpx"/>,
92 <xref linkend="nspr"/>,
93 <xref linkend="nss"/>,
94 <xref linkend="sqlite"/> and
95 <xref linkend="yasm"/>
96 </para>
97
98 <note>
99 <para>
100 If you don't install recommended dependencies,
101 then internal copies of those packages will
102 be used. They might be tested to work, but
103 they can be out of date or contain security
104 holes.
105 </para>
106 </note>
107
108 <bridgehead renderas="sect4">Optional</bridgehead>
109 <para role="optional">
110 <xref linkend="curl"/>,
111 <xref linkend="dbus-glib"/>,
112 <xref linkend="doxygen"/>,
113 <xref linkend="gst-plugins-good"/> and
114 <xref linkend="gst-ffmpeg"/>,
115 <ulink url="http://hunspell.sourceforge.net/">Hunspell</ulink>,
116 <xref linkend="libnotify"/>,
117 <xref linkend="startup-notification"/>,
118 <xref linkend="wget"/>,
119 <xref linkend="wireless_tools"/> and
120 <xref linkend="xulrunner"/>
121 </para>
122
123 <para condition="html" role="usernotes">
124 User Notes: <ulink url="&blfs-wiki;/firefox"/>
125 </para>
126 </sect2>
127
128 <sect2 role="installation">
129 <title>Installation of Firefox</title>
130
131 <para>
132 There are two major methods for building
133 <application>Firefox</application>. In the standard case, the entire suite
134 of libraries is built and installed. In the other, most of the system is
135 built using the procedures found in <xref linkend="xulrunner"/>. This is
136 advantageous if you are planning to build other related packages such as
137 <xref linkend="icedtea-web"/>. With either build method, you need to run
138 the main build procedure below with the appropriate options in the
139 <filename>mozconfig</filename> file. Then use the appropriate install
140 instructions depending on the chosen build method.
141 </para>
142
143 <para>
144 The configuration of <application>Firefox</application> is accomplished by
145 creating a <filename>mozconfig</filename> file containing the desired
146 configuration options. A default <filename>mozconfig</filename> is created
147 below. To see the entire list of available configuration options (and an
148 abbreviated description of each one), issue <command>./configure
149 --help</command>. You may also wish to review the entire file and
150 uncomment any other desired options.
151 Create the file by issuing the following command:
152 </para>
153
154<screen><userinput>cat &gt; mozconfig &lt;&lt; "EOF"
155# If you have a multicore machine, firefox will now use all the cores by
156# default. Exceptionally, you can reduce the number of cores, e.g. to 1,
157# by uncommenting the next line and setting a valid number of CPU cores.
158#mk_add_options MOZ_MAKE_FLAGS="-j1"
159
160# If you have installed DBus-Glib comment out this line:
161ac_add_options --disable-dbus
162
163# If you have installed wireless-tools comment out this line:
164ac_add_options --disable-necko-wifi
165
166# If you have installed libnotify comment out this line:
167ac_add_options --disable-libnotify
168
169# GStreamer is necessary for H.264 video playback in HTML5 Video Player;
170# to be enabled, also remember to set "media.gstreamer.enabled" to "true"
171# in about:config. If you have installed GStreamer comment out this line:
172ac_add_options --disable-gstreamer
173
174# Uncomment these lines if you have installed optional dependencies:
175#ac_add_options --enable-system-hunspell
176#ac_add_options --enable-startup-notification
177
178# Uncomment this line if you compiled Cairo with --enable-tee switch and want
179# to use it instead of the bundled one:
180#ac_add_options --enable-system-cairo
181
182# If you have not installed Yasm then uncomment this line:
183#ac_add_options --disable-webm
184
185# If you have installed xulrunner uncomment the next two ac_add_options lines
186# and check that the sdk will be set by running pkg-config in a subshell
187# and has not become hardcoded or empty when you created this file
188#ac_add_options --with-system-libxul
189#ac_add_options --with-libxul-sdk=$(pkg-config --variable=sdkdir libxul)
190
191# Comment out following options if you have not installed
192# recommended dependencies:
193ac_add_options --enable-system-sqlite
194ac_add_options --with-system-libevent
195ac_add_options --with-system-libvpx
196ac_add_options --with-system-nspr
197ac_add_options --with-system-nss
198
199# It is recommended not to touch anything below this line
200ac_add_options --prefix=/usr
201ac_add_options --enable-application=browser
202
203ac_add_options --disable-crashreporter
204ac_add_options --disable-installer
205ac_add_options --disable-updater
206ac_add_options --disable-debug
207ac_add_options --disable-tests
208
209ac_add_options --enable-optimize
210ac_add_options --enable-strip
211ac_add_options --enable-install-strip
212
213ac_add_options --enable-gio
214ac_add_options --enable-official-branding
215ac_add_options --enable-safe-browsing
216ac_add_options --enable-url-classifier
217
218ac_add_options --enable-system-ffi
219ac_add_options --enable-system-pixman
220
221ac_add_options --with-pthreads
222
223ac_add_options --with-system-bz2
224ac_add_options --with-system-jpeg
225ac_add_options --with-system-png
226ac_add_options --with-system-zlib
227
228mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir
229EOF</userinput></screen>
230
231 <para>
232 Compile <application>Firefox</application> by issuing the following
233 commands:
234 </para>
235
236 <note><para>
237 If you are compiling <application>Firefox</application> in chroot, prepend
238 <envar>SHELL=/bin/bash</envar> to the first make command below.
239 </para></note>
240
241<screen><userinput>sed -i 's@ ""@@' browser/base/Makefile.in &amp;&amp;
242make -f client.mk</userinput></screen>
243
244 <para>
245 This package does not come with a test suite.
246 </para>
247
248 <para>
249 If you have <emphasis>not</emphasis> linked
250 <application>Firefox</application> against an installed
251 <application>Xulrunner</application>:
252 </para>
253
254<screen><userinput>make -C firefox-build-dir/browser/installer</userinput></screen>
255
256 <para>
257 Now, as the <systemitem class="username">root</systemitem> user, if you
258 have <emphasis>not</emphasis> linked <application>Firefox</application>
259 against an installed <application>Xulrunner</application>, install the
260 package:
261 </para>
262
263<screen role="root"><userinput>rm -rf /usr/lib/firefox-&firefox-version; &amp;&amp;
264mkdir /usr/lib/firefox-&firefox-version; &amp;&amp;
265
266tar -xvf firefox-build-dir/dist/firefox-&firefox-version;.en-US.linux-$(uname -m).tar.bz2 \
267 -C /usr/lib/firefox-&firefox-version; --strip-components=1 &amp;&amp;
268chown -R -v root:root /usr/lib/firefox-&firefox-version; &amp;&amp;
269
270ln -sfv ../lib/firefox-&firefox-version;/firefox /usr/bin &amp;&amp;
271
272mkdir -pv /usr/lib/mozilla/plugins &amp;&amp;
273ln -sfv ../mozilla/plugins /usr/lib/firefox-&firefox-version;</userinput></screen>
274
275 <para>
276 If you <emphasis>have</emphasis> linked against an already installed
277 <application>Xulrunner</application>, as the
278 <systemitem class="username">root</systemitem> user:
279 </para>
280
281<screen role="root"><userinput>make -C firefox-build-dir install &amp;&amp;
282ln -sfv ../lib/firefox-&firefox-version;/firefox /usr/bin &amp;&amp;
283ln -sfv ../xulrunner-&firefox-version; /usr/lib/firefox-&firefox-version;/xulrunner &amp;&amp;
284
285mkdir -pv /usr/lib/mozilla/plugins &amp;&amp;
286ln -sfv ../mozilla/plugins /usr/lib/firefox-&firefox-version;</userinput></screen>
287
288 </sect2>
289
290 <sect2 role="commands">
291 <title>Command Explanations</title>
292
293 <para>
294 <command>sed -i 's@ ""@@' browser/base/Makefile.in</command>: This sed
295 removes an unprintable control character from the title bar.
296 </para>
297
298 <para>
299 <command>make -f client.mk ...</command>: Mozilla products are packaged to
300 allow the use of a configuration file which can be used to pass the
301 configuration settings to the <command>configure</command> command.
302 <command>make</command> uses the <filename>client.mk</filename> file to
303 get initial configuration and setup parameters.
304 </para>
305
306 <para>
307 <command>make -C firefox-build-dir/browser/installer</command>: this
308 creates a <application>Firefox</application> tarball similar to the ones
309 you can download from Mozilla.
310 </para>
311
312 <para>
313 <command>tar -xfv firefox-build-dir/dist ...</command>: This untars
314 <application>Firefox</application> in /usr/lib. The
315 <option>--strip-components=1</option> option removes the leading
316 'firefox' directory from the filenames, allowing us to untar it
317 into a versioned directory.
318 </para>
319
320 <para>
321 <command>make -C firefox-build-dir install</command>: This runs
322 <command>make install</command> in firefox-build-dir.
323 </para>
324
325 <para>
326 <command>ln -sfv ... /usr/bin/firefox</command>: This puts a symbolic link
327 to the <command>firefox</command> executable in your <envar>PATH</envar>
328 variable.
329 </para>
330
331 <para>
332 <command>mkdir -p /usr/lib/mozilla/plugins</command>: This checks
333 that <filename class="directory">/usr/lib/mozilla/plugins</filename>
334 exists.
335 </para>
336
337 <para>
338 <command>ln -sv ... /usr/lib/firefox-&firefox-version;</command>: This
339 command creates a symbolic link to
340 <filename class="directory">/usr/lib/mozilla/plugins</filename>. It's not
341 really needed, as <application>Firefox</application> checks
342 <filename class="directory">/usr/lib/mozilla/plugins</filename> by
343 default, but the symbolic link is made to keep all the plugins installed in
344 one folder.
345 </para>
346
347 </sect2>
348
349 <sect2 role="configuration">
350 <title>Configuring Firefox</title>
351
352 <para>
353 If you deleted the <option>--disable-webm</option> option from your
354 <filename>mozconfig</filename>, your <application>Firefox</application>
355 can play most YouTube videos without the need for the flash plugin. To
356 enable this, go to <ulink url="http://www.youtube.com/html5"/> and click
357 on 'Join the HTML5 Trial' (needs cookies enabled).
358 </para>
359
360 <para>
361 If you use a desktop environment like <application>Gnome</application> or
362 <application>KDE</application> you may like to create a
363 <filename>firefox.desktop</filename> file so that
364 <application>Firefox</application> appears in the panel's menus. If you
365 didn't enable startup-notification in your mozconfig change the
366 StartupNotify line to false. As the
367 <systemitem class="username">root</systemitem> user:
368 </para>
369
370<screen role="root"><userinput>mkdir -pv /usr/share/applications &amp;&amp;
371mkdir -pv /usr/share/pixmaps &amp;&amp;
372
373cat &gt; /usr/share/applications/firefox.desktop &lt;&lt; "EOF" &amp;&amp;
374<literal>[Desktop Entry]
375Encoding=UTF-8
376Name=Firefox Web Browser
377Comment=Browse the World Wide Web
378GenericName=Web Browser
379Exec=firefox %u
380Terminal=false
381Type=Application
382Icon=firefox
383Categories=GNOME;GTK;Network;WebBrowser;
384MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
385StartupNotify=true</literal>
386EOF
387
388ln -sfv /usr/lib/firefox-&firefox-version;/browser/icons/mozicon128.png \
389 /usr/share/pixmaps/firefox.png</userinput></screen>
390
391 </sect2>
392
393 <sect2 role="content">
394 <title>Contents</title>
395
396 <segmentedlist>
397 <segtitle>Installed Programs</segtitle>
398 <segtitle>Installed Libraries</segtitle>
399 <segtitle>Installed Directory</segtitle>
400
401 <seglistitem>
402 <seg>
403 firefox
404 </seg>
405 <seg>
406 Numerous libraries, browser components, plugins, extensions, and
407 helper modules installed in
408 <filename class="directory">/usr/lib/firefox-&firefox-version;</filename>
409 </seg>
410 <seg>
411 /usr/lib/firefox-&firefox-version;
412 </seg>
413 </seglistitem>
414 </segmentedlist>
415
416 <variablelist>
417 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
418 <?dbfo list-presentation="list"?>
419 <?dbhtml list-presentation="table"?>
420
421 <varlistentry id="firefox-prog">
422 <term><command>firefox</command></term>
423 <listitem>
424 <para>
425 is a <application>GTK+ 2</application> internet browser that uses the
426 Mozilla Gecko rendering engine.
427 </para>
428 <indexterm zone="firefox firefox-prog">
429 <primary sortas="b-firefox">firefox</primary>
430 </indexterm>
431 </listitem>
432 </varlistentry>
433
434 </variablelist>
435
436 </sect2>
437
438</sect1>
Note: See TracBrowser for help on using the repository browser.