source: xsoft/graphweb/firefox.xml@ dc8d40b

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gimp3 gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since dc8d40b was 519bbf6, checked in by Randy McMurchy <randy@…>, 19 years ago

Another readability fix in the Firefox instructions

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@4981 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 10.0 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY firefox-download-http "http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;-source.tar.bz2">
8 <!ENTITY firefox-download-ftp "ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;-source.tar.bz2">
9 <!ENTITY firefox-md5sum "7b4c1d10d478dcb4c52fbbe3e41745d9">
10 <!ENTITY firefox-size "32.0 MB">
11 <!ENTITY firefox-buildsize "545 MB">
12 <!ENTITY firefox-time "10.3 SBU">
13]>
14
15<!--
16
17Devs:
18
19Always check the browser/config/mozconfig file in the source tree for
20any changes to the options passed to configure. This file shows the
21default build used by Mozilla. BLFS adds to this, but the values here
22should be in our setup.
23
24-->
25
26<sect1 id="firefox" xreflabel="Firefox-&firefox-version;">
27 <?dbhtml filename="firefox.html" ?>
28
29 <sect1info>
30 <othername>$LastChangedBy$</othername>
31 <date>$Date$</date>
32 </sect1info>
33
34 <title>Firefox-&firefox-version;</title>
35
36 <indexterm zone="firefox">
37 <primary sortas="a-Firefox">Firefox</primary>
38 </indexterm>
39
40 <sect2 role="package">
41 <title>Introduction to Firefox</title>
42
43 <para><application>Firefox</application> is a stand-alone browser
44 based on the <application>Mozilla</application> codebase.</para>
45
46 <bridgehead renderas="sect3">Package Information</bridgehead>
47 <itemizedlist spacing="compact">
48 <listitem>
49 <para>Download (HTTP): <ulink url="&firefox-download-http;"/></para>
50 </listitem>
51 <listitem>
52 <para>Download (FTP): <ulink url="&firefox-download-ftp;"/></para>
53 </listitem>
54 <listitem>
55 <para>Download MD5 sum: &firefox-md5sum;</para>
56 </listitem>
57 <listitem>
58 <para>Download size: &firefox-size;</para>
59 </listitem>
60 <listitem>
61 <para>Estimated disk space required: &firefox-buildsize;</para>
62 </listitem>
63 <listitem>
64 <para>Estimated build time: &firefox-time;</para>
65 </listitem>
66 </itemizedlist>
67
68 <bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
69
70 <bridgehead renderas="sect4">Required</bridgehead>
71 <para><xref linkend="gtk2"/>,
72 <xref linkend="libidl"/> and
73 <xref linkend="zip"/></para>
74
75 <bridgehead renderas="sect4">Optional</bridgehead>
76 <para><xref linkend="libjpeg"/>,
77 <xref linkend="unzip"/>,
78 <xref linkend="gnome-vfs"/> and
79 <xref linkend="libgnome"/> (to build the gnomevfs extension),
80 <xref linkend="mitkrb"/> or <xref linkend="heimdal"/>
81 (for the GSSAPI libraries to build the negotiateauth extension),
82 <xref linkend="doxygen"/>,
83 <ulink url="http://xprint.mozdev.org/">Xprint</ulink>,
84 <ulink url="http://perens.com/FreeSoftware/">Electric Fence</ulink> and
85 <ulink url="http://cairographics.org/">Cairo</ulink></para>
86
87 </sect2>
88
89 <sect2 role="installation">
90 <title>Installation of Firefox</title>
91
92 <para>The configuration of <application>Firefox</application> is very
93 similar to <xref linkend="mozilla"/> and hence the options are not
94 discussed. Refer to the <xref linkend="mozilla"/> instructions for
95 explanations and additional configuration information.</para>
96
97 <para><application>Firefox</application> default behavior when invoked
98 with a URL parameter is to open a new browser window. If you would rather
99 <application>Firefox</application> open a new tab in an existing browser
100 window, issue the following command:</para>
101
102<screen><userinput>sed -i 's|openURL(${_optLast}|&amp;, new-tab|' browser/app/mozilla.in</userinput></screen>
103
104 <para>Compile and install <application>Firefox</application> by
105 running the following commands:</para>
106
107<screen><userinput>export MOZILLA_OFFICIAL="1" &amp;&amp;
108export BUILD_OFFICIAL="1" &amp;&amp;
109export MOZ_PHOENIX="1" &amp;&amp;
110
111sed -i 's| dist_bin="$moz_libdir"|\
112&amp;\n run_moz="$dist_bin/run-mozilla.sh"|' browser/app/mozilla.in &amp;&amp;
113
114./configure --prefix=/usr \
115 --with-default-mozilla-five-home=/usr/lib/firefox-&firefox-version; \
116 --with-user-appdir=.firefox \
117 --with-system-zlib \
118 --with-system-png \
119 --enable-application=browser \
120 --enable-default-toolkit=gtk2 \
121 --enable-extensions=cookie,xml-rpc,xmlextras,pref,\
122transformiix,universalchardet,webservices,inspector,\
123gnomevfs,negotiateauth \
124 --enable-crypto \
125 --enable-xft \
126 --enable-xinerama \
127 --enable-optimize \
128 --enable-reorder \
129 --enable-strip \
130 --enable-cpp-rtti \
131 --enable-single-profile \
132 --disable-freetype2 \
133 --disable-accessibility \
134 --disable-debug \
135 --disable-tests \
136 --disable-logging \
137 --disable-pedantic \
138 --disable-installer \
139 --disable-mailnews \
140 --disable-ldap \
141 --disable-composer \
142 --disable-profilesharing &amp;&amp;
143make</userinput></screen>
144
145 <para>You should add the <option>--with-system-jpeg</option> switch
146 to the <command>configure</command> script if you have
147 <application>libjpeg</application> installed.</para>
148
149 <para>This package does not come with a test suite.</para>
150
151 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
152
153<screen role="root"><userinput>make install &amp;&amp;
154install -v -m755 -d /usr/include/firefox-&firefox-version;/nss &amp;&amp;
155cp -v -Lf dist/private/nss/*.h dist/public/nss/*.h \
156 /usr/include/firefox-&firefox-version;/nss</userinput></screen>
157
158 <para>To enable multi-user operation, execute the following as the
159 <systemitem class="username">root</systemitem> user:</para>
160
161<screen role="root"><userinput>cd /usr/lib/firefox-&firefox-version; &amp;&amp;
162export LD_LIBRARY_PATH="$PWD" &amp;&amp;
163export MOZILLA_FIVE_HOME="$PWD" &amp;&amp;
164./regxpcom &amp;&amp;
165./regchrome &amp;&amp;
166touch `find . -name *.rdf`</userinput></screen>
167
168 <note>
169 <para>You should run <command>/usr/bin/firefox</command> once as the
170 <systemitem class="username">root</systemitem> user (or any user with
171 write privileges) to create some necessary additional files in the
172 <filename class='directory'>/usr</filename> hierarchy.</para>
173 </note>
174
175 <para>Lastly, unset the build variables from the unprivileged user's
176 environment:</para>
177
178<screen><userinput>unset MOZILLA_OFFICIAL &amp;&amp;
179unset BUILD_OFFICIAL &amp;&amp;
180unset MOZ_PHOENIX</userinput></screen>
181
182 </sect2>
183
184 <sect2 role="commands">
185 <title>Command Explanations</title>
186
187 <para><command>sed -i '...' browser/app/mozilla.in</command>: This command
188 fixes an issue where <application>Firefox</application> wants to call the
189 profile manager instead of just invoking another copy of itself.</para>
190
191 </sect2>
192
193 <sect2 role="configuration">
194 <title>Configuring Firefox</title>
195
196 <para>No specific configuration is required as long as the
197 <command>firefox</command> script is in the user's path. If
198 <application>Firefox</application> is installed in a non-standard location,
199 then make a symlink to the <command>firefox</command> script from
200 <filename class="directory">/usr/bin</filename>.</para>
201
202 <para>Many applications look for <command>netscape</command> when they
203 need to open a browser. You may make the following symlink for convenience
204 (as the <systemitem class="username">root</systemitem> user).</para>
205
206<screen role="root"><userinput>ln -v -sf firefox /usr/bin/netscape</userinput></screen>
207
208 <para>For installing various <application>Firefox</application> plugins,
209 refer to <ulink url="http://plugindoc.mozdev.org/linux.html">Mozdev's
210 PluginDoc Project</ulink>. If you have <xref linkend="jdk"/> already
211 installed, create the following link as the
212 <systemitem class="username">root</systemitem> user to utilize the
213 <application>JAVA</application> plugin: </para>
214
215<screen role="root"><userinput>ln -v -s $JAVA_HOME/jre/plugin/i386/ns7/libjavaplugin_oji.so \
216 /usr/lib/firefox-&firefox-version;/plugins</userinput></screen>
217
218 </sect2>
219
220 <sect2 role="content">
221 <title>Contents</title>
222
223 <segmentedlist>
224 <segtitle>Installed Programs</segtitle>
225 <segtitle>Installed Libraries</segtitle>
226 <segtitle>Installed Directories</segtitle>
227
228 <seglistitem>
229 <seg>firefox and firefox-config</seg>
230 <seg>Numerous libraries, browser components, plugins, extensions, and
231 helper modules installed in <filename
232 class='directory'>/usr/lib/firefox-&firefox-version;</filename></seg>
233 <seg>/usr/bin/defaults, /usr/include/firefox-&firefox-version;,
234 /usr/lib/firefox-&firefox-version;, and
235 /usr/share/idl/firefox-&firefox-version;</seg>
236 </seglistitem>
237 </segmentedlist>
238
239 <variablelist>
240 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
241 <?dbfo list-presentation="list"?>
242 <?dbhtml list-presentation="table"?>
243
244 <varlistentry id="firefox-prog">
245 <term><command>firefox</command></term>
246 <listitem>
247 <para>is the next-generation browser from Mozilla.</para>
248 <indexterm zone="firefox firefox-prog">
249 <primary sortas="b-firefox">firefox</primary>
250 </indexterm>
251 </listitem>
252 </varlistentry>
253
254 <varlistentry id="firefox-config">
255 <term><command>firefox-config</command></term>
256 <listitem>
257 <para>determines the compile and linker flags that should be
258 used to compile and link programs that use
259 <application>Firefox</application> libraries and browser
260 components.</para>
261 <indexterm zone="firefox firefox-config">
262 <primary sortas="b-firefox-config">firefox-config</primary>
263 </indexterm>
264 </listitem>
265 </varlistentry>
266
267 </variablelist>
268
269 </sect2>
270
271</sect1>
Note: See TracBrowser for help on using the repository browser.