How to change the default web browser in Ubuntu

by Sukrit Dhandhania on May 7, 2009

Firefox Linux

Have multiple browsers installed on your Ubuntu machine? Sometimes it can be a bit confusing if you want to change the the default web browser from one to another. Here’s a simple way you can make the switch using the Linux command line.

Say that Konqueror is currently the default web browser on your computer and you want to change it to Firefox. We’ll use the Ubuntu tool update-alternatives to help us make the change. Open a Terminal window by selecting Applications -> Accessories -> Terminal and run the following command:

sudo update-alternatives –config x-www-browser

Enter your password for sudo access. You will see a textual interactive menu like the one below:

There are 2 alternatives which provide `x-www-browser’.

Selection Alternative
———————————————–
1 /usr/bin/firefox
*+ 2 /usr/bin/konqueror

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

Follow the instructions. Type 1 and hit the Return key to change from the current default web browser (Konqueror) to Firefox. Now when you click on a link somewhere Firefox will launch rather than Konqueror.

  • Daxxi

    That’s a great help, thank you.