LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-12-2004, 10:20 AM   #1
merchtemeagle
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: Slackware 13.37
Posts: 512

Rep: Reputation: 31
commands


I've installed Firefox in /usr/bin/firefox.

I want to be able to just give the command 'firefox' in a shell.
What's the best thing to do. Write a script that goes to the right directory or just put it in my $PATH variable?
 
Old 10-12-2004, 10:24 AM   #2
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
Now doesn't firefox load it already then?
 
Old 10-12-2004, 10:30 AM   #3
mirradric
Member
 
Registered: May 2004
Location: Singapore
Distribution: Debian woody and debian sarge
Posts: 188

Rep: Reputation: 31
Ya... /usr/bin should already be in your PATH.
If it's not then you probably want to add it to your PATH
 
Old 10-12-2004, 11:13 AM   #4
merchtemeagle
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: Slackware 13.37
Posts: 512

Original Poster
Rep: Reputation: 31
Yes, /usr/bin is in my path, but firefox is installed in a folder firefox in /usr/bin and it doenst load with the command 'firefox'.
I put /usr/bin/firefox in my PATH, but is this the cleanest way to do it?
 
Old 10-12-2004, 11:18 AM   #5
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
I think the cleanest way is use suse package system (they have one isn't it) and don't change the location.
 
Old 10-12-2004, 11:23 AM   #6
merchtemeagle
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: Slackware 13.37
Posts: 512

Original Poster
Rep: Reputation: 31
yes, they have one for rpm's: Yast.
But I downloaded the latest versions because of a security issue in 0.8 (the one I find in my Yast sources) and there doesn't seem to exist an rpm (yet?).
 
Old 10-12-2004, 11:38 AM   #7
Linux24
Member
 
Registered: Aug 2004
Distribution: Mandrake 10.1
Posts: 204

Rep: Reputation: 30
Best solution:

Put a symlink to firefox in /usr/bin

su -
*password*
ln -s targetlocation/firefox /usr/bin/firefox

Make sure the firefox file you are pointing to is the launcher shell script and not the binary.

All done.

Now when you type firefox at the command line, it launches the browser.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
commands scripttron75 Linux - General 4 10-03-2005 05:36 PM
Commands Instantly Linux - Newbie 3 01-12-2005 02:18 PM
commands tslinux Linux - Newbie 1 12-15-2004 07:54 AM
Help with commands! snowbaby Linux - Software 1 12-02-2001 03:15 PM
Commands Susan Linux - General 5 10-11-2001 03:40 AM


All times are GMT -5. The time now is 06:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration