source: xsoft/graphweb/firefox.xml@ f2b8afea

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 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 f2b8afea was f2b8afea, checked in by Fernando de Oliveira <fernando@…>, 10 years ago

firefox-28.0-standalone remove sed, not necessary anymore.

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

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