{"id":224,"date":"2011-06-30T14:35:16","date_gmt":"2011-06-30T19:35:16","guid":{"rendered":"http:\/\/www.compdigitec.com\/labs\/?p=224"},"modified":"2011-10-26T18:32:06","modified_gmt":"2011-10-26T23:32:06","slug":"light-build-of-mozilla-firefox","status":"publish","type":"post","link":"http:\/\/www.compdigitec.com\/labs\/2011\/06\/30\/light-build-of-mozilla-firefox\/","title":{"rendered":"Light build of Mozilla Firefox"},"content":{"rendered":"<p>Most of the time, a stock Firefox installation from <a href=\"http:\/\/www.mozilla.com\/firefox\/channel\/\">Mozilla&#8217;s website<\/a> or the <a href=\"apt:firefox\">apt repository<\/a> usually works just fine on most machines. However, if you prefer a more plain and vanilla Firefox install without all the latest bells and whistles, then one can manually compile a build from source code. This has the advantage of being faster and leaner than the stock Firefox because the unwanted features are simply not present, although you will not have all the latest web bells\/whistles with this method (e.g. WebM, WebGL, HTML5 video, etc).<\/p>\n<p>Download a copy of the <a href=\"ftp:\/\/ftp.mozilla.org\/pub\/mozilla.org\/firefox\/releases\">Firefox source<\/a>, and extract it. Then run <strong>.\/configure<\/strong> as follows:<\/p>\n<blockquote><p>&#8211;enable-application=browser &#8211;enable-official-branding &#8211;disable-debug &#8211;with-x &#8211;disable-profiling &#8211;disable-gnomevfs &#8211;disable-gconf &#8211;disable-accessibility &#8211;disable-ogg &#8211;disable-webm &#8211;enable-splashscreen &#8211;disable-angle &#8211;enable-crashreporter &#8211;disable-smil &#8211;disable-installer &#8211;disable-updater &#8211;disable-update-packaging &#8211;disable-parental-controls &#8211;disable-tests &#8211;enable-faststart &#8211;disable-safe-browsing &#8211;disable-meegocontentaction &#8211;enable-optimize=-O2 &#8211;disable-logging &#8211;enable-install-strip &#8211;disable-necko-wifi &#8211;disable-glibtest<\/p><\/blockquote>\n<p>A few points to note:<\/p>\n<ul>\n<li>Remove <em>&#8211;enable-official-branding <\/em>if you ever plan to distribute your build online (in .deb or something like that) &#8211; Mozilla is extremely picky about distributing official artwork in modified builds.<\/li>\n<li>Add a <em>&#8211;prefix=\/usr<\/em> if you don&#8217;t want to install to \/usr\/local (replace \/usr with whatever path you want)<\/li>\n<li>You will want to add <em>&#8211;disable-libjpeg-turbo<\/em> if you don&#8217;t have a <a href=\"http:\/\/www.compdigitec.com\/labs\/2011\/10\/24\/updated-version-of-yasm-v1-1-0-for-ubuntu\/\">handy version of yasm (or are lazy)<\/a><\/li>\n<\/ul>\n<p>Then run <strong>make<\/strong>. If you want to test your build, you can find it under <em>dist\/bin<\/em> of your extracted tarball. Change to that directory and then one can test it like so:<\/p>\n<p>LD_LIBRARY_PATH=. .\/firefox-bin -ProfileManager -no-remote<\/p>\n<p>This will allow you to test without clobbering your existing profile. When you are done, you can run <strong>make install<\/strong> (beware of conflicts with the repository&#8217;s firefox) or if you would rather use checkinstall to make a package, <strong>checkinstall &#8211;fstrans=no<\/strong>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Most of the time, a stock Firefox installation from Mozilla&#8217;s website or the apt repository usually works just fine on most machines. However, if you prefer a more plain and vanilla Firefox install without all the latest bells and whistles, then one can manually compile a build from source code. This has the advantage of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[752,13,754,558,862,753,28],"_links":{"self":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/224"}],"collection":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/comments?post=224"}],"version-history":[{"count":0,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/224\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/media?parent=224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/categories?post=224"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/tags?post=224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}