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