LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-09-2004, 09:37 PM   #1
Kilahchris
Member
 
Registered: Jan 2003
Location: NY
Distribution: Suse 9.0
Posts: 202

Rep: Reputation: 30
silly question


Im not entirely new to the world of linux i have tried two distros (RedHat 8 and 9 and now Suse 9) for a couple of years now.

however , i want to know why certain programs that i compile and install can be simply started by calling the name of the program in a terminal window. I want to know what in linux controls this feature.


for example i recently installed Avidemux, to start the program in a terminal i do not need to cd /opt/gnome/bin/avidemux2 and open the binary . I can just call avidemux2 from any directory inside the terminal.


Howevver I recently installed Mozilla 1.7.2 binary and the only way to start Mozilla is to double click on the binary file or in termincal cd /opt/mozilla/mozilla and then type mozilla.?

or in another program might open a link in the mozilla browser with mozilla %S, i want to know which configure file or what in linux controls these dyanmic loading of programs.
 
Old 09-09-2004, 09:50 PM   #2
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
sounds like /opt/mozilla is not in your path.
type 'export PATH=$PATH:/opt/mozilla/mozilla' at the bash prompt
 
Old 09-09-2004, 10:03 PM   #3
Kilahchris
Member
 
Registered: Jan 2003
Location: NY
Distribution: Suse 9.0
Posts: 202

Original Poster
Rep: Reputation: 30
Quote:
sounds like /opt/mozilla is not in your path.
type 'export PATH=$PATH:/opt/mozilla/mozilla' at the bash prompt

it turns out echo $PATH shows that it was not included thank you for you advice.

could /opt/mozilla not being in the path also effect programs like evolution and gaim from opening links with mozilla with the call mozilla %S????
 
Old 09-09-2004, 10:06 PM   #4
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
yip, and create a file ' .bash_profile ' in you home-dir.
and put that line in there. ( ..or if the file exists, just add the line )

egag
 
Old 09-09-2004, 10:53 PM   #5
Kilahchris
Member
 
Registered: Jan 2003
Location: NY
Distribution: Suse 9.0
Posts: 202

Original Poster
Rep: Reputation: 30
i created bash_profile and added that line in there

I also added /opt/mozilla/mozilla in the /etc/profile.
however when i type open a new termincal and run echo $PATH
i no longer see /opt/mozilla/mozilla listed
 
Old 09-09-2004, 11:15 PM   #6
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian + kde 4 / 5
Posts: 6,837

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
An easier (and commonly practiced) way to do it than creating a new entry in your path is simply to create a symlink from the application to a location that's already in your path, like /usr/bin. It keeps you from needing to have a long, confusing path set up.

ln -s /opt/mozilla/mozilla /usr/bin
 
  


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
Silly question huble General 5 02-17-2005 03:03 AM
Silly Question koodoo Linux - Newbie 2 02-14-2005 08:20 AM
silly question bruj3w Slackware 3 08-20-2004 01:51 PM
Silly question? pudhiyavan Linux - Networking 1 12-09-2003 04:44 AM
Silly Question MattB Linux - Software 1 06-06-2002 12:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:14 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