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