Find the answer to your Linux question:
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.
  1. #1
    Linux Newbie sabin's Avatar
    Join Date
    Apr 2005
    Posts
    207

    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)
    ->
    Code:
    [sabin@mna75-3-82-66-231-163 ~]$ firefox
    bash: firefox: command not found
    Then I tried, maybe in fact we didn't add folders but commands to the bash path :
    "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 ^_^

  2. #2
    Linux Newbie
    Join Date
    Apr 2005
    Location
    South America
    Posts
    152
    Well, did you try an alias?

    Code:
    alias firefox=/bin/firefox-installer/firefox

  3. #3
    Linux Newbie sabin's Avatar
    Join Date
    Apr 2005
    Posts
    207
    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 ^_^

  4. #4
    Linux Guru bigtomrodney's Avatar
    Join Date
    Nov 2004
    Location
    Ireland
    Posts
    6,126
    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?

  5. #5
    Linux Newbie sabin's Avatar
    Join Date
    Apr 2005
    Posts
    207
    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".

  6. #6
    Linux Guru bigtomrodney's Avatar
    Join Date
    Nov 2004
    Location
    Ireland
    Posts
    6,126
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •