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 10-28-2004, 10:38 AM   #1
e11
Member
 
Registered: Oct 2004
Distribution: Debian
Posts: 84

Rep: Reputation: 15
Simple Questions Regarding Application Installations


Hi, Just a few simple questions related to application installations...

What does it mean to have a dot-slash (./) before a command. For e.g., after I installed firefox, i got into the directory, and typing "firefox" didn't work, but "./firefox" did. Why? What does the dot-slash mean?

How do u add a add a directory to PATH? (i.e., which file should I modify so that I can run firefox from anywhere, not just from within the firefox directory)

Finally, where do you guys normally install applications to?


Thanks and Regards,

Edwin
 
Old 10-28-2004, 11:01 AM   #2
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
Run 'echo $PATH' to see the PATH. As a regular user, '.' usually will be in the list ('.' == current directory). As root user, '.' is not in the list so you won't be tricked into running a malicious program as root. Thus as root you must type './firefox' to explicitly indicate you want to run something in the current directory.
To set the PATH (to /opt/firefox/bin for example), you run ' set PATH=$PATH:/opt/firefox/bin '. This sets the PATH to what it was before plus the new directory.
The firefox binary is unusual, the usual way of installing is by using your distro's package management system (depends on which linux you have) or by compiling from source.
 
Old 10-28-2004, 11:13 AM   #3
treehead
LQ Newbie
 
Registered: Oct 2004
Location: USA
Distribution: Slackware
Posts: 18

Rep: Reputation: 1
uninstall/reinstall firefox...?

;good questions.

;i just installed firefox on a linux box for the first time yesterday, and completely filled my /home dir with its files by accident.

;on windows, the installation routine (which i have run tens of times) presents the "standard/custom" options before the option to customize the path that the program is going to install to. on linux, this was not the case, and i completely missed the directory location and the bottom of the "standard/custom" dialog.

;is there any way to move the firefox install files to another location, or must i uninstall and reinstall?

;treehead
 
Old 10-28-2004, 11:13 AM   #4
e11
Member
 
Registered: Oct 2004
Distribution: Debian
Posts: 84

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by aaa
Run 'echo $PATH' to see the PATH. As a regular user, '.' usually will be in the list ('.' == current directory). As root user, '.' is not in the list so you won't be tricked into running a malicious program as root. Thus as root you must type './firefox' to explicitly indicate you want to run something in the current directory.
icic... that certainly explains it... thanks! but even as normal user, i had to type "./firefox", so i guess i have to add . to the PATH?

Quote:
To set the PATH (to /opt/firefox/bin for example), you run ' set PATH=$PATH:/opt/firefox/bin '. This sets the PATH to what it was before plus the new directory.
if i installed firefox in /etc/mozilla-firefox, then i should "set PATH=$PATH:/etc/mozilla-firefox" right?
Will this be permanent? As in, if I do this, will this PATH be set the next time i boot up?

Quote:
The firefox binary is unusual, the usual way of installing is by using your distro's package management system (depends on which linux you have) or by compiling from source.
hmm... i'm using debian, but the installation was pretty straightforward... just had to untar, and then run firefox-installer, and a window comes up prompting for installation path and all that...

Thanks!!


Regards,

Edwin
 
Old 10-29-2004, 12:12 PM   #5
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
The command will need to be run every time the the computer starts up. One place to put it is in /etc/profile, this is where the rest of the stuff like '/bin' get set.
 
Old 10-29-2004, 07:24 PM   #6
e11
Member
 
Registered: Oct 2004
Distribution: Debian
Posts: 84

Original Poster
Rep: Reputation: 15
Hi,

I did an alternative instead... i realised that many applications can be run anywhere even though their directory weren't set in PATH, so i looked around and found that they had a link in /usr/bin, which is in PATH.

So i did the same, creating a link to firefox, i.e.
Code:
ln -s /etc/mozilla-firefox/firefox /usr/bin/firefox
Is is the right/good way to go about doing things?


Thanks and Regards,

Edwin
 
Old 10-29-2004, 10:33 PM   #7
shazam75
Member
 
Registered: Oct 2004
Location: Australia, Brisbane
Distribution: Gentoo
Posts: 296

Rep: Reputation: 30
hi Edwin

Yes thats is OK, now you can run firefox from anywhere since that path /use/bin is in your path.

Regards
 
  


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
Linux Noob writing simple application that needs to query SQLServer radikaled Linux - Newbie 1 01-18-2005 12:26 PM
Simple Questions...Hopfully Simple Answers. caps_phisto Linux - General 3 12-21-2004 01:40 PM
Writing a simple KDE application yapp Programming 1 12-10-2003 04:39 PM
Simple Streaming Video application? Digiital Linux - Software 3 06-14-2002 10:10 AM
Couple KDE Application Questions lethalstatic Linux - Newbie 1 12-07-2001 07:00 PM


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