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 > mozconfig << "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:
|
---|
161 | ac_add_options --disable-dbus
|
---|
162 |
|
---|
163 | # If you have installed wireless-tools comment out this line:
|
---|
164 | ac_add_options --disable-necko-wifi
|
---|
165 |
|
---|
166 | # If you have installed libnotify comment out this line:
|
---|
167 | ac_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:
|
---|
172 | ac_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:
|
---|
193 | ac_add_options --enable-system-sqlite
|
---|
194 | ac_add_options --with-system-libevent
|
---|
195 | ac_add_options --with-system-libvpx
|
---|
196 | ac_add_options --with-system-nspr
|
---|
197 | ac_add_options --with-system-nss
|
---|
198 |
|
---|
199 | # It is recommended not to touch anything below this line
|
---|
200 | ac_add_options --prefix=/usr
|
---|
201 | ac_add_options --enable-application=browser
|
---|
202 |
|
---|
203 | ac_add_options --disable-crashreporter
|
---|
204 | ac_add_options --disable-installer
|
---|
205 | ac_add_options --disable-updater
|
---|
206 | ac_add_options --disable-debug
|
---|
207 | ac_add_options --disable-tests
|
---|
208 |
|
---|
209 | ac_add_options --enable-optimize
|
---|
210 | ac_add_options --enable-strip
|
---|
211 | ac_add_options --enable-install-strip
|
---|
212 |
|
---|
213 | ac_add_options --enable-gio
|
---|
214 | ac_add_options --enable-official-branding
|
---|
215 | ac_add_options --enable-safe-browsing
|
---|
216 | ac_add_options --enable-url-classifier
|
---|
217 |
|
---|
218 | ac_add_options --enable-system-ffi
|
---|
219 | ac_add_options --enable-system-pixman
|
---|
220 |
|
---|
221 | ac_add_options --with-pthreads
|
---|
222 |
|
---|
223 | ac_add_options --with-system-bz2
|
---|
224 | ac_add_options --with-system-jpeg
|
---|
225 | ac_add_options --with-system-png
|
---|
226 | ac_add_options --with-system-zlib
|
---|
227 |
|
---|
228 | mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir
|
---|
229 | EOF</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 &&
|
---|
242 | make -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; &&
|
---|
264 | mkdir /usr/lib/firefox-&firefox-version; &&
|
---|
265 |
|
---|
266 | tar -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 &&
|
---|
268 | chown -R -v root:root /usr/lib/firefox-&firefox-version; &&
|
---|
269 |
|
---|
270 | ln -sfv ../lib/firefox-&firefox-version;/firefox /usr/bin &&
|
---|
271 |
|
---|
272 | mkdir -pv /usr/lib/mozilla/plugins &&
|
---|
273 | ln -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 &&
|
---|
282 | ln -sfv ../lib/firefox-&firefox-version;/firefox /usr/bin &&
|
---|
283 | ln -sfv ../xulrunner-&firefox-version; /usr/lib/firefox-&firefox-version;/xulrunner &&
|
---|
284 |
|
---|
285 | mkdir -pv /usr/lib/mozilla/plugins &&
|
---|
286 | ln -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 &&
|
---|
371 | mkdir -pv /usr/share/pixmaps &&
|
---|
372 |
|
---|
373 | cat > /usr/share/applications/firefox.desktop << "EOF" &&
|
---|
374 | <literal>[Desktop Entry]
|
---|
375 | Encoding=UTF-8
|
---|
376 | Name=Firefox Web Browser
|
---|
377 | Comment=Browse the World Wide Web
|
---|
378 | GenericName=Web Browser
|
---|
379 | Exec=firefox %u
|
---|
380 | Terminal=false
|
---|
381 | Type=Application
|
---|
382 | Icon=firefox
|
---|
383 | Categories=GNOME;GTK;Network;WebBrowser;
|
---|
384 | MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
|
---|
385 | StartupNotify=true</literal>
|
---|
386 | EOF
|
---|
387 |
|
---|
388 | ln -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>
|
---|