HowTo: Set A Default Browser in Debian

Let's just say that you are a newbie like me. I know its easy to set a default browser in Debian but hey, I get to write about my experience on learning something new right?

Hehe, usually the normal way to do this would be to open your browser's settings and check if it is the default browser.

They like to do that.

The unusual way would be to do that in the terminal.

$ sudo update-alternatives --config x-www-browser


Then something like this would appear:

[sudo] password for daniel:

There are 6 alternatives which provide `x-www-browser'.

Selection Alternative
-----------------------------------------------
1 /usr/bin/iceape
2 /usr/bin/opera
3 /usr/bin/epiphany
*+ 4 /usr/bin/dillo
5 /usr/bin/konqueror
6 /usr/bin/iceweasel

Press enter to keep the default[*], or type selection number:


Enter the number of the browser that you would like as the default one and presto. Easier than the GUI. If you have the commands handy.

Got this from: http://kb.mozillazine.org/Default_browser