Install Firefox in Debian

Debian comes with a fork of Firefox called Iceweasel, because of some trademarked mozilla artwork but otherwise they are basically the same.

I however like the real Firefox icon, so I wanted to install Firefox, thanks to fanDigital for this guide

Firefox logo

The first step is to download Firefox from the Mozilla website

Next step is to untar the downloaded firefox archive.

tar -xjvf firefox-27.0.1.tar.bz2

Move the extracted folder to /opt

sudo mv firefox/ /opt

Next we create a symlink to the real Firefox binary

sudo mv /usr/bin/firefox /usr/bin/iceweasel
sudo ln -s /opt/firefox/firefox /usr/bin/firefox

Now we can start Firefox by running firefox from the command line, now we will create symlinks to the Firefox icon and a firefox desktop file to provide a menu shortcut for it

sudo ln -s /opt/firefox/browser/icons/mozicon128.png /usr/share/icons/hicolor/128x128/apps/firefox.png
sudo ln -s /opt/firefox/browser/icons/mozicon128.png /usr/share/pixmaps/firefox.png

Create the file /usr/share/applications/firefox.desktop with this content

[Desktop Entry]
Encoding=UTF-8
Name=Firefox
Comment=Browse the World Wide Web
GenericName=Web Browser
X-GNOME-FullName=Firefox Web Browser
Exec=/opt/firefox/firefox %u
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=firefox
Categories=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;x-scheme-handler/http;x-scheme-handler/https;
StartupWMClass=Firefox-bin
StartupNotify=true

It can take a while before the shortcut for Firefox is loaded but it should turn up in a few minutes.

Since both iceweasel and firefox use the same configuration files in ~/.mozilla all the settings done in iceweasel are also done in Firefox.

Comments

Post comment