Add the directory
location where the firefox program is at to the PATH variable.
Edit either your $HOME/.bash_profile or $HOME/.profile file.
Check if one of them already exists. Sometimes one will check for the other and source
it if it exists. The .bash_profile is bash specific and what bash checks for first. The .profile file is checked for second if .bash_profile doesn't exist.
These files are run when you log into the computer, not every time a new shell is started. ( Unless you start bash with the "-l" option. )
See if there is a line such as PATH=$PATH:/usr/bin .
If there is, add :<firefox bin directory> to the end of the line. For example, this may mean adding:
Make sure there is a line that says: export PATH
There could be a line that has more export targets after the export command. That would be fine. If none of these lines exist, then add lines like this:
(note: your path to add may be different)
One other thing to note. You don't want to add this to the .bashrc file. This is because this file is sourced every time a new shell is opened. So a subshell will have the path variable extended again, once for each time a subshell is run.
There are a couple of things to mention. If there is a link from /usr/bin/firefox to the firefox executable, then you may not need to add the firefox bin directory to your path variable. ( unless you mucked something up earlier, /usr/bin is in your path. ) Also, the link may be to a script rather than to a binary program. If that is the case, then the script will add the firefox library load path automatically. If not, you may need to add the firefox lib directory to the end of the /etc/ld.so.conf file and execute "ldconfig" as root. For the RPM installation, the startup script would change the value of the LD_LIBRARY_PATH instead. If you wanted, you could do the same thing in your .bash_profile script rather than editing /etc/ld.so.conf. This is what you would have to do, for instance, if you had an account on a machine, but not root access.
## Set LD_LIBRARY_PATH
if [ "$LD_LIBRARY_PATH" ]