Results 1 to 6 of 6
Hello !
I have a very trivial question, really i'm a bit ashamed not to be able to make that work.
I want to add firefox to the path, so ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 07-31-2005 #1
Adding firefox to the PATH
Hello !
I have a very trivial question, really i'm a bit ashamed not to be able to make that work.
I want to add firefox to the path, so that writing "firefox" in command-line will be enough to run the program.
Firefox is installed, on my computer, in the folder /bin/firefox-installer/ (yeah, weird location, true)
I first ran "export PATH=$PATH:/bin/firefox-installer" (I tried as root, or as single user)
->
Then I tried, maybe in fact we didn't add folders but commands to the bash path :Code:[sabin@mna75-3-82-66-231-163 ~]$ firefox bash: firefox: command not found
"export PATH=$PATH:/bin/firefox-installer/firefox"
Neither.
Then I tried to create a symbolic link for firefox in a directory where the path worked : in the firefox folder, I ran
"ln -s firefox /bin".
Running just "firefox" gave the usual error message, but running ./firefox produced another error message :
bash: ./firefox: Too many levels of symbolic links
So i'm tired today, I guess I won't find until i have a good rest (be it in three days, pity I spoiled my break not managing to add firefox to pah <_<) i'll give up.
What may I have done wrong in this ?
Please, if you're nice, explain a slightly ashamed newbie what he should have done in order to be able to add firefox to the system-recognized apps ^_^
- 07-31-2005 #2Linux Newbie
- Join Date
- Apr 2005
- Location
- South America
- Posts
- 152
Well, did you try an alias?
Code:alias firefox=/bin/firefox-installer/firefox
- 07-31-2005 #3
If i were a girl I would try to kiss you
Thanks a lot, that made the trick !
Unfortunately the man commands don't work for export, same as alias, redirecting me to bash options. That doesn't help self-learning. Thanks to you, I know that command now, thanks again ^_^
- 07-31-2005 #4Linux Guru
- Join Date
- Nov 2004
- Posts
- 6,110
If you want that alias to stick drop it into your .bashrc or into /etc/profile if you want it there for everyone that logs in. I used to keep up to date with my firefox but now I find that this effort of keeping installs here there and everywhere a bit messy. I used to get it working with the PATH= option though, it's a bit strange it's not working for you. I know you've solved this but I'm kind of curious, can you dump out contents of your /bin/firefox-installer directory? I know it's usually a shell script that calls firefox. Isn't there a script there called mozilla-firefox?
- 07-31-2005 #5
Tom, do you mean I should precisly just add a line containing alias firefox=/bin/firefox-installer/firefox to /etc/profile ?
It seems that file contains code more than lines of things to be ran, so, just in case, I prefer to ask.
Concerning the contents of my firefox folder, there are three shell-scripts.
"firefox", "run-mozilla.sh", and "firefox-installer".
- 07-31-2005 #6Linux Guru
- Join Date
- Nov 2004
- Posts
- 6,110
Yup you can add that full line for the alias to /etc/profile right at the end. I was wondering about those scipts, but they're not the ones I was thinking of. Cheers dude.


Reply With Quote
