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