Debian x86 & x64 replace Iceweasel with Firefox

Official Iceweasel Icon, used in Debian Package

I have been using Debian for almost 5-6 years already. One of the things that has always bothered me is, that the people of the Debian team have replaced Firefox with Iceweasel. The reason is quite ideological – because Debian people want to have it completely 100% free distribution and some components like fonts and other things are proprietary in Firefox the fork is used in which it is free from these things. Sometimes “The Ice Weasel” she behaved strangely, but I never had 100% clear proof, that it is marginally a different browser. At least that was the case until yesterday. I did it yesterday html5 test on my browser and found the unpleasant fact, that I do 10-15 points less than the standard version. Extremely unpleasant, I immediately checked my versions were the same 18.0.1. From now on, things are clear, that I will go back to the standard version but I wonder why important components do not work as expected and this is not mentioned. In general, I am quite annoyed by fanatical ideologues who will prefer 100% an open solution that, even if it doesn't work as well as it should, will be basic. It's like losing the main performance of the GPU to use the free driver for Nvidia instead of the one offered by the manufacturer. – personally i can't afford such a loss of performance. So let's go back to the migration from one browser to another. In general, it is quite simple, if I can list it in a few steps, I will emphasize the most important ones

  1. Downloading the correct version for your architecture matters whether you use the x86 or x64 version of the plugins as a flash and someone else already installed on your system. If you are not sure what your architecture is you can check with the uname -m command in the goat.
wget ftp://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-$(uname -m)/en-US/firefox-18.0.1.tar.bz2 -O /tmp/firefox.tar.bz2
  1. Unzip the browser you can do it where you want / home / opt or where your soul wants you personally I preferred / opt
tar jxfv /tmp/firefox.tar.bz2 -C /opt/
  1. Add a link to the old executable file to the new browser location
ln -s /opt/firefox/firefox /usr/bin/firefox
  1. adding a link for the plugins to the new location so we can watch flash videos and so on
ln -s /usr/lib/mozilla/plugins /opt/firefox/plugins
  1. update the default browser
update-alternatives --install  /usr/bin/x-www-browser x-www-browser /opt/firefox/firefox 100
  1. and add an entry for the new program to your system
echo '[Desktop Entry]
Name=Firefox
GenericName=Web Browser
Comment=Surf the internet
Exec=/opt/firefox/firefox %u
Terminal=false
Icon=/opt/firefox/icons/mozicon128.png
Type=Application
Categories=Application;Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;
StartupWMClass=Firefox-bin
StartupNotify=true' > /usr/share/applications/firefox.desktop

In general, these are the steps we need to follow. Because I'm lazy and I can't do everything by hand, I made the following script every time.

#!/bin/bash

VERSION='18.0.1'

if [ $EUID -ne 0 ]
then
echo -en "�33[1;31mERROR: Must be a 'root'!!! nUse 'su' or 'sudo ./ff_install' :) �33[0m n"
exit
fi

wget ftp://ftp.mozilla.org/pub/firefox/releases/$VERSION/linux-$(uname -m)/en-US/firefox-18.0.1.tar.bz2 -O /tmp/firefox.tar.bz2

tar jxfv /tmp/firefox.tar.bz2 -C /opt/
chown $1:$1 -R /opt/firefox
mv /usr/bin/firefox /usr/bin/firefox-iw
ln -s /opt/firefox/firefox /usr/bin/firefox
ln -s /usr/lib/mozilla/plugins /opt/firefox/plugins

update-alternatives --install  /usr/bin/x-www-browser x-www-browser /opt/firefox/firefox 100

echo '[Desktop Entry]
Name=Firefox
GenericName=Web Browser
Comment=Surf the internet
Exec=/opt/firefox/firefox %u
Terminal=false
Icon=/opt/firefox/icons/mozicon128.png
Type=Application
Categories=Application;Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;
StartupWMClass=Firefox-bin
StartupNotify=true' > /usr/share/applications/firefox.desktop

An important thing I missed is that the directory where the version of firefox is located must belong to your current user in order to be able to upgrade versions without problems. Therefore, the above script must be started with your user attribute.

./ff_install your_user_name

Leave a Reply

Your email address will not be published. Required fields are marked *

Anti SPAM *