You are not logged in.

#1 2017-05-05 17:43:46

9acca9
Member
Registered: 2017-02-03
Posts: 51

Keep config files out of /home/user

Hi.
I want to know if it is possible dosent have the config files on /home/user
because if i re install, sometimes i dont want keep the old configuration, etc. just keep my personal files.
It's possible?
Thanks

(i dont speak english)

Offline

#2 2017-05-05 18:32:48

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Keep config files out of /home/user

I think it is impossible. sad

But... you can try this!

Create "/personal/user/" for your personal files. Use "/home/user/" for your config files. Then, "bind mount" the directories you want to use.

mount --bind /personal/user/Desktop /home/user/Desktop
mount --bind /personal/user/Music /home/user/Music
mount --bind /personal/user/Pictures /home/user/Pictures
mount --bind /personal/user/Projects /home/user/Projects
mount --bind /personal/user/Videos /home/user/Videos

smile

Last edited by drcouzelis (2017-05-06 01:54:00)

Offline

#3 2017-05-05 18:35:48

chr0mag
Member
From: Vancouver, Canada
Registered: 2017-02-02
Posts: 94

Re: Keep config files out of /home/user

Why not simply delete the configuration files you don't want to keep?  User configuration is stored in files and folders starting with a dot/period character '.' -- so just use

ls -la

...to list all config files in your home directory and delete the ones you don't want to keep when you re-install (or any other time).

Last edited by chr0mag (2017-05-09 02:40:46)

Offline

#4 2017-05-05 18:41:10

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Keep config files out of /home/user

chr0mag wrote:

Why not simply delete the configuration files you don't want to keep?  User configuration is stored in files and folders starting with a dot/period character '.' -- so just use

ls -la

...to list all config files in your home directory and delete the ones you don't want to keep when your re-install (or any other time).

That's a good idea too. Here is a tip, to make it easier:

mkdir ~/old_configs
mv ~/.??* ~/old_configs

The ".??*" will only move the files and directories that begin with a dot.

Offline

#5 2017-05-05 21:23:04

9acca9
Member
Registered: 2017-02-03
Posts: 51

Re: Keep config files out of /home/user

Thanks! That's great!

Offline

Board footer

Powered by FluxBB