Change default user $HOME location folders paths?
Hi guys.
Cloud you plese help me how to change the default paths of the default user folders (Documents, Downloads, Music, Pictures, Screenhots, Videos) to my location on diferent /dev/sda with ntfs? After instalation 4Mlinux v34.2 from LiveCD to PC hdd I'd like to set my own default folders paths for all system and applications. my MBR hdd is: /dev/sda1 ntfs winboot 100 MB /dev/sda2 ntfs win7x64 100 GB /dev/sda3 ntfs dataall 300 GB /dev/sda4 extended lba /dev/sda5 ext4 4mlinux 25 GB So after installation the default paths are all to /dev/sda5/root/: Documents Downloads Music Pictures Screenshots Videos How or where can I please set all these defaults to the diferent new default path - onto diferent device /dev/sda3/ (which is ntfs)? By the internet info I was looking for config files simular to: /etc/fstab.local /etc/default/user /etc/gconf/gconf.xml /etc/user.conf /root/.config/user-dirs.dirs or for files with settings: XDG_DOCUMENTS_DIR or $HOME/Documents ... but didn't find any of it Or should I - instead of changing paths - erase those folders and just do-set symlinks rather so system and all applications will recognize it? |
Sorry, is 4MLinux a "run as root" type distro?
In any case, I'd look at Code:
$HOME/.config/user-dirs.defaults After editing these files, either the folders change automagically, or you rename them once and for all. Everything else you wrote does not appear to be relevant to your question. |
Hi,
I understand that you want to make this change in 4MLinux. The default root's home is defined in the /etc/passwd file. You can try to edit this file. You should also remove the /etc/lang folder and reboot. . PS. During each startup 4MLinux checks if the /etc/lang folder exists. If the folder is missing, 4MLinux "thinks" that this a new installation and it starts to configure the system (e.g. it creates the Desktop folder, the Downloads folder and the like). |
Thank you both guys of you for the tips :-).
Yes it is about "run as root" and 4MLinux please. I'm sorry for everything which I wrote abowe does not appear to be relevant to the question. I was trying to give right away as many info as need 'cos - of course I did not find answers on the internet before I wrote here. There's no such a files (or similar to any as abowe): user-dirs.defaults user-dirs.dirs in whole installed system. The /etc/passwd file shows me the "Home directory" - the absolute path to the user’s home directory. OK, I dis some web search and I will try to add in it: Documents:x:0:0:Documents:/dev/sda3/Documents:/usr/sbin/nologin Downloads:x:0:0:Downloads:/dev/sda3/Documents/Downloads:/usr/sbin/nologin Music:x:0:0:Music:/dev/sda3/Documents/Music:/usr/sbin/nologin Pictures:x:0:0:Pictures:/dev/sda3/Documents/Pictures:/usr/sbin/nologin Screenshots:x:0:0:Screenshots:/dev/sda3/Documents/Pictures:/usr/sbin/nologin Videos:x:0:0:Videos:/dev/sda3/Documents/Videos:/usr/sbin/nologin I don't wanna change USER or HOME directory - I just wanna set default folders: Documents Downloads Music Pictures Screenshots Videos ... to another disk (sda3, ntfs). Or should I - instead of changing defaulth paths - erase those folders and just do-set symlinks which will leads to another /disk/folder? |
Yes, as far as I know you can create a symbolic to a /disk/folder on an NTFS filesystem assuming your mounting it with the correct permissions and its mounted at boot time via /etc/fstab.
|
OK, done, it works well now:
So I just erased those directories & replaced them with symlinks which leads to another disk (sda3, ntfs). Thank you guys for your help. [SOLVED] |
All times are GMT -5. The time now is 11:57 AM. |