(Solved) [3.2.2] [x64] placing /root/.config using symlink

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
Oracle
White ninja
White ninja
Posts: 27
Joined: 16 Jan 2017, 21:27
Distribution: Windows
Location: Mars

(Solved) [3.2.2] [x64] placing /root/.config using symlink

Post#1 by Oracle » 16 Jan 2017, 23:19

I intended to place .config using symbolic link to /mnt/sda1/personalization/root/.config

So all the personalization changes will be saved automatically,

I copied all 001,002 and 003 /root/.config files to /mnt/sda1/personalization/root/.config,
replace .config folder in 001,002,and 003 with absolute symbolic link to /mnt/sda1/personalization/root/.config
xzm them, reboot

But too bad, it doesn't works :%) could anyone help me?

001-core /root
=====
.bash_profile
.bashrc
.config/
...mc/
......ini
002-xorg /root
=====
.config/
...gnome-mplayer/
......gnome-mplayer.conf
003-xfce4 /root
=====
.cache/
.config/
...Thunar/
...autostart/
...dconf/
...gecko-mediaplayer/
...gnome-player
...mimeapps.list
...xfce4/
.local/
.mplayer/
Last edited by Oracle on 17 Jan 2017, 22:08, edited 1 time in total.

tome
Contributor
Contributor
Posts: 615
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: Poland
Contact:

Re: [3.2.2] [x64] placing /root/.config using symbolic link

Post#2 by tome » 17 Jan 2017, 08:11

You don't need rebuild all modules, add only one module https://www.dropbox.com/s/irrquelyxwk00 ... 7.xzm?dl=1 to your base or modules directory inside porteus folder. This module should be loaded as last, therefore 9999-... in name, and you can't use old changes if they contain /root/.config.

BTW, why only /root/.config and not whole /root symlink, another root subdirectories and files are also important for keeping changes.
No intelligence, no life and no information can exist without prior intelligence, life or information (in place where things change and time is running).

Oracle
White ninja
White ninja
Posts: 27
Joined: 16 Jan 2017, 21:27
Distribution: Windows
Location: Mars

Re: [3.2.2] [x64] placing /root/.config using symbolic link

Post#3 by Oracle » 17 Jan 2017, 09:02

Thank you tome, :Bravo: :Bravo: :Bravo: :Bravo: :Bravo:
This is very cool, I gonna try create it later, now I could symbolic link anything I wish to preserve.

Where to read about the 9999 stuff module numbering load order?

Oracle
White ninja
White ninja
Posts: 27
Joined: 16 Jan 2017, 21:27
Distribution: Windows
Location: Mars

Re: [3.2.2] [x64] placing /root/.config using symbolic link

Post#4 by Oracle » 17 Jan 2017, 16:05

I just tried it, the desktop become totally different,

After you logon, it produces a choice to use default or empty panel,

Use Default
Image

Use Empty Panel
Image

All the pre-configured settings from official ISO gone :%)

Oracle
White ninja
White ninja
Posts: 27
Joined: 16 Jan 2017, 21:27
Distribution: Windows
Location: Mars

Re: [3.2.2] [x64] placing /root/.config using symbolic link

Post#5 by Oracle » 17 Jan 2017, 16:07

Could I use 000 xzm for symbolic link purpose? Create folders? For personalization? :fool:

Oracle
White ninja
White ninja
Posts: 27
Joined: 16 Jan 2017, 21:27
Distribution: Windows
Location: Mars

Re: (Solved) [3.2.2] [x64] placing /root/.config using symli

Post#6 by Oracle » 17 Jan 2017, 22:12

Just figured out how stupid I am, :wall:

Thanks tome, your solution work flawlessly, :D :D :D :D :D

To others who want to use such method of personalization, you must copy all the files & directories from booted /root/.config to /mnt/sda1/personalization/root/.config first :Yahoo!:

After reboot, changes will link to your personalize folder.

Oracle
White ninja
White ninja
Posts: 27
Joined: 16 Jan 2017, 21:27
Distribution: Windows
Location: Mars

Re: (Solved) [3.2.2] [x64] placing /root/.config using symli

Post#7 by Oracle » 18 Jan 2017, 00:26

I created the following to have permanent updatable USM support. :D
root@porteus:/mnt/sda1/098-usm# find . -ls
786433 4 drwxr-xr-x 5 root root 4096 Jan 18 06:17 .
786436 4 drwxr-xr-x 4 root root 4096 Jan 18 06:22 ./usr
786438 4 drwxr-xr-x 2 root root 4096 Jan 18 06:23 ./usr/share
655407 0 lrwxrwxrwx 1 root root 39 Jan 18 06:22 ./usr/share/usm -> /mnt/sda1/personalization/usr/share/usm
786437 4 drwxr-xr-x 2 root root 4096 Jan 18 06:22 ./usr/bin
655510 0 lrwxrwxrwx 1 root root 40 Jan 18 06:22 ./usr/bin/usmgui -> /mnt/sda1/personalization/usr/bin/usmgui
655509 0 lrwxrwxrwx 1 root root 37 Jan 18 06:22 ./usr/bin/usm -> /mnt/sda1/personalization/usr/bin/usm
786434 4 drwxr-xr-x 2 root root 4096 Jan 18 06:17 ./var
655511 0 lrwxrwxrwx 1 root root 33 Jan 18 06:16 ./var/usm -> /mnt/sda1/personalization/var/usm
786435 4 drwxr-xr-x 2 root root 4096 Jan 18 06:15 ./etc
655397 0 lrwxrwxrwx 1 root root 33 Jan 18 06:15 ./etc/usm -> /mnt/sda1/personalization/etc/usm

Post Reply