LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 06-19-2020, 02:23 PM   #1
linuxUser247
Member
 
Registered: Jan 2019
Posts: 80

Rep: Reputation: Disabled
some advice for clean personal folders


I am using nautilus and I have multiple hard drives.

The problem that I have with my "personal" folder is that it is full of unpersonal crap, like snap, Public and Templates. Also, it gets constantly polluted by software without asking for permission.

I want to have /home on my SSD and the media on my HDD. What I find repeatedly suggested is to create symlinks inside of $HOME that point to a data partition.

But, do I really have to use $HOME? How about using my symlinks on /mnt/home/$USER, to use in parallel to $HOME? (leaving $HOME for pollution, such as Dropbox or snap). This way I have my truly personal place on which I have full control over. I have never anyone suggesting this, it seems like everyone uses $HOME.

To integrate this with nautilus I'd make user-dirs.dirs point to my "other" personal folder. Most of the software, like Firefox, understand this modification. This also avoids nested mounts for my SSD / HDD division of $HOME, which is another benefit. To make it more clear, what I am suggesting is to create some personal folders, like "documents" and "projects" somewhere else, and integrate them conveniently in my Desktop Environment.


I found a commenter which made his $HOME readonly. This would most likely break some of my brain dead software I am relying on, though. I don't have the time and nerve to do this.


here are some of my references:

How can I stop Steam from polluting my home directory?
I'm tired of folders littering my home
Defending Home
Don't pollute user space
Bug report for snap in home


P.S.: I know that I can literally do anything I want on linux file system, but I am a little afraid of this much power.
P.P.S.: I really hope this goes through the spam filter with all these links!

Last edited by linuxUser247; 06-19-2020 at 03:59 PM.
 
Old 06-19-2020, 04:50 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,885
Blog Entries: 13

Rep: Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931
Rather than read and look for a bunch of technical solutions to this typical e of issue, instead what I've always done is set my APPLICATIONS to save to different locations, or done so manually as they perform save as operations. Same for my browser, I tell it to always ask me where to save files.

As far as all the hidden or other config/application support files, I just let them go where the application writers want and intend them to go.

In short, while I have a $HOME, I do not store my data there.
 
1 members found this post helpful.
Old 06-19-2020, 05:31 PM   #3
linuxUser247
Member
 
Registered: Jan 2019
Posts: 80

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rtmistler View Post
what I've always done is save to different locations, as they perform save as operations. Same for my browser, I tell it to always ask me where to save files.

As far as all the hidden or other config/application support files, I just let them go where the application writers want and intend them to go.

In short, while I have a $HOME, I do not store my data there.
Ok, so in general we have a division of application files and personal files. The goal is to define a place I completely own for my personal file structure. I want there to be those 5 root folders, which I created, and nothing else. (Documents, Projects, Media, etc, "homework" )

On many poorly written applications those application files go on places XDG never intended them to be. As for personal files, there is no doubt that these follow your own conventions and are stored wherever you tell them to.


Quote:
Originally Posted by rtmistler View Post
In short, while I have a $HOME, I do not store my data there.
where do you store them? What is your opinion on my suggestion of /mnt/home/$USER ?
 
Old 06-19-2020, 06:33 PM   #4
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,763

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
I tend to use $HOME for all personal files. On my systems, they’re at /home/$USER
You can of course set a user’s home directory to be anywhere you want it to be.

I do just the opposite. I make sure that source code is not stored in $HOME. I put them in /src, which is, of course, in the root partition. I’ve created $HOME/bin directories as needed, have added them to $PATH.

Having a consistent setup on a multi-user system is critical, of course. That may not be an issue in your case.
 
1 members found this post helpful.
Old 06-19-2020, 07:45 PM   #5
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,885
Blog Entries: 13

Rep: Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931
Quote:
Originally Posted by linuxUser247 View Post
where do you store them? What is your opinion on my suggestion of /mnt/home/$USER ?
I store them on a data drive. I do this by saving to a location. I don't look to reconfigure things I just save and store where I want to.

But technically it's a mounted drive. It's also the same name at each mount, I don't need a special alias or symbolic link to it. There already is a link to a mounted file system.

Last edited by rtmistler; 06-19-2020 at 07:47 PM.
 
Old 06-19-2020, 11:34 PM   #6
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,818

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by linuxUser247 View Post
I am using nautilus and I have multiple hard drives.

The problem that I have with my "personal" folder is that it is full of unpersonal crap, like snap, Public and Templates. Also, it gets constantly polluted by software without asking for permission.

I want to have /home on my SSD and the media on my HDD. What I find repeatedly suggested is to create symlinks inside of $HOME that point to a data partition.

But, do I really have to use $HOME? How about using my symlinks on /mnt/home/$USER, to use in parallel to $HOME? (leaving $HOME for pollution, such as Dropbox or snap). This way I have my truly personal place on which I have full control over. I have never anyone suggesting this, it seems like everyone uses $HOME.
I tend to delete all those Windowsy directories like Documents, Pictures, Templates, etc. and use my own directory structure.

I set up a dedicated disk that I have mounted on $HOME/Data. All of my project directories, documents, etc. are all created in that filesystem. $HOME has a lot of config files and config trees (with caches, etc.) but all my data resides in the the $HOME/Data filesystem. Some application config files that are normally in $HOME have been moved to $HOME/Data/etc/config_files and symbolic links created in $HOME to point to them (for example, my Emacs config is set up this way). A few frequently used directory trees (docs. devel, etc.) in $HOME/Data have symlinks in $HOME. One thing that makes this setup easier to use is to configure your file manager of choice to initially point to $HOME/Data---$HOME always seems to be available as a default selection in the "places" sidebar if you ever want to go there.

Making $HOME read-only? I cannot imagine how annoying that would be. I've heard of sites that make "/usr" read-only but never $HOME.

Cheers...
 
Old 06-20-2020, 03:26 AM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by linuxUser247 View Post
Interesting article.
I should try that sometimes.
Take those XDG specs seriously, make apps obey them as far as possible.

Where that fails, making $HOME read-only (not recursively!) could be helpful.

Many apps create folders and files willy-nilly for no good reason (meaning, you don't even change the configuration, it just stores window positions or some such cr*p).

But over the years (since $person wrote that article), this has gotten much better.

Quote:
Originally Posted by rtmistler View Post
In short, while I have a $HOME, I do not store my data there.
I must admit that I am personally just as responsible for a messy $HOME as are all these old applications that store dotfiles there.
 
1 members found this post helpful.
Old 06-20-2020, 05:21 AM   #8
linuxUser247
Member
 
Registered: Jan 2019
Posts: 80

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
I should try that sometimes.
Take those XDG specs seriously, make apps obey them as far as possible.
I came to the same conclusions. Abandoning $HOME and reinventing it is BS. Rather, I'll improve my knowledge about XDG and clean up $HOME.

Quote:
Originally Posted by ondoho View Post
Where that fails, making $HOME read-only (not recursively!) could be helpful.
I'm in and out on that one. I have to try out first. BTW it must be writable where that fails, and read-only in all other cases.

Quote:
Originally Posted by ondoho View Post
But over the years (since $person wrote that article), this has gotten much better.
Looking at my $HOME I cannot confirm. I'm on Ubuntu 20.04 and am seeing lots of folders that have been reported as fixed. Somehow I have the feeling I am dragging around lots of legacy files from older installations that are completely useless by now. I really have to cleanup my $HOME.


Quote:
Originally Posted by ondoho View Post
I must admit that I am personally just as responsible for a messy $HOME as are all these old applications that store dotfiles there.
Me, too.
 
Old 06-20-2020, 07:20 AM   #9
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,885
Blog Entries: 13

Rep: Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931
This also shouldn't be about a clean $HOME specifically.

To me it becomes 2 things.
  1. An awareness of where my data is in the event I need to move it or back it up.
  2. An understanding about which application settings and preferences I may wish to keep track of if I have to move to another system or restore things.
One can easily "put" data somewhere. There are obvious system locations which would be inadvisable. There are default locations for data and settings. Understanding them seems to be better than something else, in my opinion.
 
  


Reply



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
dnf clean all doesn't clean all mrmazda Fedora 3 11-13-2019 05:12 PM
Clean $PATH and clean python install iFunction Linux - General 1 10-12-2016 09:09 AM
LXer: Putting the Personal Back in Personal Computing LXer Syndicated Linux News 0 10-06-2016 07:41 PM
Shell Script to compare folders,Sub-Folders and Sub-Sub-Folders unix_72427 Programming 8 08-08-2012 02:51 PM
Selling a computer...how to clean ALL personal info? Daravon Linux - Security 8 10-01-2008 07:33 AM

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

All times are GMT -5. The time now is 02:55 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
Open Source Consulting | Domain Registration