LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-16-2004, 09:47 AM   #1
mr_a_ali
Member
 
Registered: Aug 2004
Location: USA
Distribution: SuSE 9.1 (Personal)
Posts: 49

Rep: Reputation: 15
directory for applications (and directories in general)


Hi, I've been downloading and installing some applications, and was wondering what directory was best to install them to.

For example, I downloaded Mozilla Firefox, and installed it in:

/home/MY_USERNAME/Mozilla Firefox

I named the directory "Mozilla Firefox" myself. The program works fine.

However, now as I would like to add more users to my local machine aside from myself, I was wondering where the best place would be to put this folder or program so that people under different user names may access it.

In general, when you install a program on Linux, is all of the program data stored inside a single directory, making that directory portable, or is the program and its supporting files permanently confined to that directory?

If anyone can tell me if I can
a) move my existing programs like Firefox safely
b) a good directory to place such apps in
c) if I need to modify the permissions on these things so that everyone can use it

ALSO, another separate issue... I want to change my username, from say, "bsmith" to "bob". What is the safest way to make both my login AND my home directory "bob" (ie: /home/bsmith --> /home/bob). Can I just rename my home directory manually, and modify the login name in YaST, end of story? Or will this mess something up?

Thanks!!

Last edited by mr_a_ali; 08-16-2004 at 09:51 AM.
 
Old 08-17-2004, 08:02 AM   #2
gunter
Member
 
Registered: Jan 2003
Distribution: Gentoo
Posts: 65

Rep: Reputation: 15
Here is one answer:

Apps are usually not kept in one directory. Typically the binary, or executable goes into /usr/bin, the libraries go into /usr/lib, the docs go into /usr/share/doc/<appname>, and the man pages go into /usr/share/man/. That is a rough overview. If you want the nitty gritty, read this: http://www.pathname.com/fhs/


How did you install firefox? (ie, compile from source?)
 
Old 08-17-2004, 08:11 AM   #3
mr_a_ali
Member
 
Registered: Aug 2004
Location: USA
Distribution: SuSE 9.1 (Personal)
Posts: 49

Original Poster
Rep: Reputation: 15
It was a GUI installer, and I just chose the default place for putting the files which was my home directory.

I moved it to /usr/ and it didn't work. But I also moved a program NVU to /usr/ and it does work, even on different usernames.

I'm just looking for a safe place to put apps that can be used by everyone.
 
Old 08-17-2004, 08:37 AM   #4
mi6
Member
 
Registered: Jun 2003
Distribution: Fedora 9 64bit, RHEL 4.6
Posts: 96

Rep: Reputation: 15
when I install firefox and thunderbird I make directories for them in /usr/share and then symlink their executables to /usr/bin that way all users can open them.
 
Old 08-17-2004, 09:01 AM   #5
gunter
Member
 
Registered: Jan 2003
Distribution: Gentoo
Posts: 65

Rep: Reputation: 15
If you want minimal fuss when it comes to installing apps and making them available to users, you should use package management. If Suse doesn't provide one, I would switch to a distro that does; life will be easier. I personally prefer Gentoo. To install firefox, all I had to do was type 'emerge mozilla-firefox' ...done. And now everyone can use it.
 
Old 08-17-2004, 01:29 PM   #6
mr_a_ali
Member
 
Registered: Aug 2004
Location: USA
Distribution: SuSE 9.1 (Personal)
Posts: 49

Original Poster
Rep: Reputation: 15
mi6, you mean like this?:

ln -fs /usr/bin/ /usr/share/Mozilla Firefox/firefox ?

because I did that and now I have no idea where my firefox went...
 
Old 08-17-2004, 05:04 PM   #7
mi6
Member
 
Registered: Jun 2003
Distribution: Fedora 9 64bit, RHEL 4.6
Posts: 96

Rep: Reputation: 15
I do this:

Code:
#cd /usr/bin
#ln -s /usr/share/firefox/firefox firefox
replace /usr/share/firefox with the actual path to your install directory. Mine is obviously /usr/share/firefox
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
General question about directory structure.... Lordandmaker Linux - Newbie 7 11-20-2005 02:57 AM
shell script: delete all directories named directory.# except directory.N brian0918 Programming 3 07-13-2005 06:54 PM
Remove directory and sub directories newuser455 Linux - Newbie 5 06-01-2005 12:31 AM
Firefox and applications in general vswr31 Linux - Software 3 10-03-2004 03:43 PM
General Applications Micah Linux - Software 2 06-27-2002 08:41 AM


All times are GMT -5. The time now is 07:30 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration