LinuxQuestions.org
Visit Jeremy's Blog.
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-24-2004, 05:33 AM   #1
BRoscoL
LQ Newbie
 
Registered: May 2004
Location: Pittsburgh Pennsylvania
Distribution: Mandrake and Fedora
Posts: 7

Rep: Reputation: 0
Question about installing and running programs


I just recently installed Mozilla Firefox on Mandrake 9.2 and I moved the firefox directory into /usr/local/lib . My Question is, is there a way to be able to type in "firefox" into a console command line like I would type "mozilla" and get firefox to pop up? Thanks in advance.
 
Old 05-24-2004, 05:44 AM   #2
muxman
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 203

Rep: Reputation: 32
Make sure the directory containing the firefox binary is in your PATH variable. If not you need to add it to your PATH.

Type:

echo $PATH

This will show you the current users PATH. If you need to edit your PATH that may be different from one distribution to another. I'm using Debian and it's in my .profile file in the current users home directory.
 
Old 05-24-2004, 05:49 AM   #3
BRoscoL
LQ Newbie
 
Registered: May 2004
Location: Pittsburgh Pennsylvania
Distribution: Mandrake and Fedora
Posts: 7

Original Poster
Rep: Reputation: 0
I did the echo $PATH command and this was the output:

root@localhost tmp]# echo $PATH
/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin

Any tips on where to go from here? My firefox directory is contained in /usr/local/lib. Should I move the whole directory over to /usr/local/bin or is there another way?
 
Old 05-24-2004, 06:30 AM   #4
BRoscoL
LQ Newbie
 
Registered: May 2004
Location: Pittsburgh Pennsylvania
Distribution: Mandrake and Fedora
Posts: 7

Original Poster
Rep: Reputation: 0
Ahh, Finally figured it out. So I am not a "complete" moron... Emphasis on the complete :-)
 
Old 05-24-2004, 10:44 AM   #5
eeried
Member
 
Registered: Jan 2004
Distribution: Xubuntu Dapper - Debian Etch - Puppy Linux
Posts: 136

Rep: Reputation: 15
Er, Im quite interested by this thread.

How do you get mozilla (or firefox) to run by simply typing mozilla or firefox?

I've installed both Mozilla 1.6 and firefox0.8 from the .tar.gz files into /usr/local.
To run mozilla i type (as a user) :
/usr/local/mozilla/mozilla

Thanks in advance fo your help!
 
Old 05-24-2004, 10:51 AM   #6
or1onas
Member
 
Registered: Mar 2004
Location: Athens,Greece
Distribution: Debian,Ubuntu
Posts: 181

Rep: Reputation: 32
You could also create a symbolic link to one of your $PATH directories by typing:
'ln -s /usr/local/lib/mozilla /usr/bin'.
The first path is the application's real path and the second one is where the link is to be created. Because /usr/bin is included in your $PATH, you can just run 'mozilla' from KDE's run command...
 
Old 05-24-2004, 02:56 PM   #7
eeried
Member
 
Registered: Jan 2004
Distribution: Xubuntu Dapper - Debian Etch - Puppy Linux
Posts: 136

Rep: Reputation: 15
Ah, okay, thanks or1onas.

What I did before reading your mail was create a sym link to my home directory, and it works fine with mozilla -- it doesn't with firefox, I must have done someting wrong.

I don't often use KDE, and simply typing mozilla in the console did the trick.

Cheers
 
  


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
Question about running programs with ./ bbohl Linux - Newbie 5 04-20-2005 08:13 PM
Style Question: Installing New Programs ihop Linux - Newbie 3 11-18-2004 02:02 AM
Installing new programs question rhodan Slackware 9 05-17-2004 04:29 PM
Choppy sound when other programs running + mouse and login question (tm) Linux - Newbie 6 03-24-2004 10:57 AM
Running Linux & Installing Programs ineedacookie Linux - Newbie 1 11-19-2002 04:24 AM


All times are GMT -5. The time now is 06:51 AM.

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