How to set up your default browser in Linux?

From BOINC Wiki

In the Linux version of BOINC Manager, if you try to click on the links to the project web pages and you get an error message about not being able to find BROWSER or BROWSER not being set then you need to do the following -


edit /etc/profile to include the following -

BROWSER="/path/to/browser"
export BROWSER

- where /path/to/browser is the executable path to your browser.


To find out what the executable path is, open a terminal window and type whereis browser - so if your browser is firefox you would type whereis firefox. The result is your executable path, which maybe something like /usr/local/bin/firefox.


In this case the exact code you would add to /etc/profile would be -

BROWSER="/usr/local/bin/firefox"
export BROWSER


Original writer Original FAQ Date
Jorden 236 25-Aug-2007