LinuxQuestions.org
Review your favorite Linux distribution.
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 05-26-2005, 10:40 AM   #1
dan653
LQ Newbie
 
Registered: May 2005
Location: Salisbury, Wilts, UK
Distribution: Foresight Linux
Posts: 4

Rep: Reputation: 0
How do i make an App be reconised in terminal?


since putting linux on my machine on tuesday, i've "./configure, make and make install" a couple of apps such as gMPlayer and gXiso.

to use these i have been currently typing:
Code:
/usr/local/bin/gmplayer
to run the app, what i want to know is how do i make it so that i can just run it by typing gmplayer in any directory, in the terminal?

i am using Foresight Linux with Gnome (dont know version), if that helps.

also how to i add an app to gnomes application menu rather than the panel?

thanks in adv
dan

Last edited by dan653; 05-26-2005 at 10:42 AM.
 
Old 05-26-2005, 10:54 AM   #2
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
What is in your $PATH? (To find out, type 'echo $PATH' in a terminal)
 
Old 05-26-2005, 11:18 AM   #3
Ynot Irucrem
Member
 
Registered: Apr 2005
Location: Perth, Western Australia
Distribution: Debian
Posts: 233

Rep: Reputation: 30
you can add an app to the gnome menu by opening up the menu and then right clicking on an entry that is in the menu you want to add to e.g. if you want to add to the "accessories" menu, hover over it so that the shortcuts already in there are shown, then right click on one of the items in the accessories menu i.e. right click "text editor", then choose "entire menu" -> add new item to this menu.
 
Old 05-26-2005, 12:26 PM   #4
dan653
LQ Newbie
 
Registered: May 2005
Location: Salisbury, Wilts, UK
Distribution: Foresight Linux
Posts: 4

Original Poster
Rep: Reputation: 0
$path contains:
Code:
/usr/kerberos/bin:/usr/local/sbin:/usr/sbin:/sbin:/bin:/usr/bin:/usr/X11R6/bin
do i add /usr/local/bin/ to this, and if so how?

edit:
would i add the line:
Code:
pathmunge /usr/local/bin
to the file: 'profile' in /etc/??

in response to Ynot Irucrem:

when i right click i get:

> Add this launcher panel
> Entire menu > Add this as drawer to panel
> Entire menu > Add this a menu to panel

and no other options. what do you suggest, could this be to do with my specific distro

Last edited by dan653; 05-26-2005 at 12:54 PM.
 
Old 05-26-2005, 02:54 PM   #5
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
in /etc/profile there is probably already a line setting your path, looking something like this:

# Set the default system $PATH:
PATH="/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games"

Add /usr/local/bin (if it's not already there, which apparently for you it isn't) to the end, using a ":" as the delimiter. No spaces, no ending "/". Once you've done that, relog in and you should be able to run apps from that directory w/o typing in the full path.
 
Old 05-26-2005, 09:57 PM   #6
dan653
LQ Newbie
 
Registered: May 2005
Location: Salisbury, Wilts, UK
Distribution: Foresight Linux
Posts: 4

Original Poster
Rep: Reputation: 0
fixed
added the line:
Code:
pathmunge /usr/local/bin
to the file: 'profile' in /etc

thanks for your help!
 
Old 05-28-2005, 05:11 AM   #7
Ynot Irucrem
Member
 
Registered: Apr 2005
Location: Perth, Western Australia
Distribution: Debian
Posts: 233

Rep: Reputation: 30
looks like it's something to do with your distro. maybe you could add files to the /usr/share/applications/ directory, using the existing files in there as a guide.
 
Old 05-28-2005, 03:45 PM   #8
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
Congrats! Glad you got it working
 
  


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
How to launch an app in terminal, & keep it running after I close terminal? kornerr Linux - General 7 06-24-2006 06:54 PM
Panel-like terminal app? Tylerious Linux - Software 3 12-06-2005 05:38 AM
3270/Terminal App wcboyd Linux - Software 1 12-17-2004 09:09 PM
start an app without virtual terminal peok Linux - Software 5 05-03-2004 11:55 AM
which terminal app? jimm17 Linux - Software 2 10-25-2003 04:53 PM

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

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