View previous topic :: View next topic |
Author |
Message |
Godsmacker777 Apprentice
Joined: 04 May 2004 Posts: 205 Location: Fenway area, Boston Massachusetts :O)
|
Posted: Sat Jun 11, 2005 5:27 am Post subject: your home directory vesus /home |
|
|
The *nix system sets all user-specific application data/settings in the particular user's home directory..where is this specified?
In other words..could I set the place where all of this "system" data is stored for user "jason" in a subdirectory of the user's home?
I know is sort of confusing so I will try to explain. I'm an organizational freak, and I would like to move all of the "application data" for my users (like .fbpanel .xchat .xinitrc, etc.) to another directory. I don't want to move my home directory..I want to keep /home/jason, but I want to put all of these files I am talking about in a subdir of /home/jason
so is there a way to set a system-wide default?
~thanks _________________ Why must we hear what system you're running gentoo on, especially if all you've got is a measly gig of ram or 3gHz processor?
I want to see signatures boasting 25 cpu clusters and blade severs, or a big 'ole onyx..anyone running gentoo on an onxy?? |
|
Back to top |
|
|
kabage Guru
Joined: 31 Jan 2005 Posts: 340
|
Posted: Sat Jun 11, 2005 5:55 am Post subject: Probably |
|
|
But wouldnt it be easier to leave all the configuraton, mail desktop files so you dont have to configure every application
that uses them.
And move the rest of your files to a subdirectory.
But then I'm disorganized so what do I know. _________________ The solutions are easy. Its finding them that is hard. |
|
Back to top |
|
|
falcon_za Tux's lil' helper
Joined: 31 Aug 2004 Posts: 136 Location: Nara - Japan
|
Posted: Sat Jun 11, 2005 6:48 am Post subject: |
|
|
I agree this would be a nice thing to do. but I also don't know. I actualy think it's not perfectly possible, since many applications might not follow the global setting, and just put things in your home, since it is the common practice. too bad.
as far as I am concerned, i'd like to have only the following subdir in my home:
~/settings
~/trash
~/documents
~/desktop
and possibly:
~/download. though it might as well be a subdir of documents
~/applications could be nice for user-installed software. would probably use this on a system where i wouldn't be administrator
~/data could also be nice to put things like emails, bookmarks, game saves, and other kind of application specific stuff that is not a setting or a preference, but actual user data, which does come in the shape of a document. |
|
Back to top |
|
|
BlackEdder Advocate
Joined: 26 Apr 2004 Posts: 2588 Location: Dutch enclave in Egham, UK
|
Posted: Sat Jun 11, 2005 11:23 am Post subject: |
|
|
Well you could set your home directory to /home/user/settings (by editting /etc/passwd). I think that way all setting should be created there. Downside is that ~ and $HOME will also point there, which will make moving around from the commandline a bit more painfull. |
|
Back to top |
|
|
Godsmacker777 Apprentice
Joined: 04 May 2004 Posts: 205 Location: Fenway area, Boston Massachusetts :O)
|
Posted: Sat Jun 11, 2005 3:52 pm Post subject: |
|
|
hmmm..
maybe I will edit /etc/password (set my user's home to /home/jason/settings), then I could edit my shell rc file to put me at /home/jason by default. That wouldn't be too bad.
Ideally I would like:
Code: |
/home/jason/
- settings
- temp
- trash
- MyFiles
|
All application settings would go to "settings"; I use "temp" for temporary storage (like when veiwing a pdf or something); "trash" is (as it implies) a trash bin that gets emptied twice a week; lastly.. "MyFiles" has all of the other files that I store in my home dir (docs downloads config files etc).
I put all of my "data" like mp3s, movies, backups, and the like on a "data" partition. This resides in /mnt/
:O)
Quote: |
But wouldnt it be easier to leave all the configuraton, mail desktop files so you dont have to configure every application that uses them.
|
I am not 100% sure about how this works..but I'd be willing to bet that it went something like this:
When you run an application as a user - say "jason" for instance - that process is being run by jason, and I believe that an application would use the variable $HOME for this user. Thus, the application would use /home/jason by default...I don't think this is set on an app by app basis. But maybe. _________________ Why must we hear what system you're running gentoo on, especially if all you've got is a measly gig of ram or 3gHz processor?
I want to see signatures boasting 25 cpu clusters and blade severs, or a big 'ole onyx..anyone running gentoo on an onxy?? |
|
Back to top |
|
|
limn l33t
Joined: 13 May 2005 Posts: 997
|
Posted: Sun Jun 12, 2005 2:40 pm Post subject: |
|
|
This is an interesting idea.
You might want to have your shell rc only reset $HOME for interactive shells.
If you proceed with this, please update this topic with your experience. |
|
Back to top |
|
|
Godsmacker777 Apprentice
Joined: 04 May 2004 Posts: 205 Location: Fenway area, Boston Massachusetts :O)
|
Posted: Mon Jun 13, 2005 12:32 am Post subject: |
|
|
I will definitely update as I go..
so far I haven't had such great luck.
I changed my user's home in /etc/passwd, then I moved all hidden files/folders into the new "settings" dir:
that was done from /home/jason/
so all of my application settings and what not were in /home/jason/settings
I relogged in and tested my work..unfortunately I had problems. Even worse..the fellas in the irc channels only replied with "why would you want to.."
I can't imagine even having that thought when using linux. Isn't "because I can" acceptable??
well anyway..I will work on this tonight and let you all know what's up. _________________ Why must we hear what system you're running gentoo on, especially if all you've got is a measly gig of ram or 3gHz processor?
I want to see signatures boasting 25 cpu clusters and blade severs, or a big 'ole onyx..anyone running gentoo on an onxy?? |
|
Back to top |
|
|
|