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