Post here if you are a new Porteus member and you're looking for some help.
-
brokenman
- Site Admin

- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Post#1
by brokenman » 03 Sep 2015, 03:56
It should work. It is probably permissions if you are copying as root.
Code: Select all
mkdir -p /mnt/sdxY/rootcopy/home/guest/
cp -a --parents /root/.config/* /mnt/sdxY/rootcopy/home/guest/.config/
## Just to be sure
chown -R guest:guest /mnt/sdxY/rootcopy/home/guest
How do i become super user?
Wear your underpants on the outside and put on a cape.
brokenman
-
Bogomips
- Full of knowledge

- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
Post#2
by Bogomips » 03 Sep 2015, 11:41
Maybe in the
porteus/rootcopy/etc/rc.d/rc.local script inserting:
Code: Select all
cp -a /mnt/sd**/porteus/rootcopy/root/.config /home/guest/.config
chown -R guest:guest /home/guest/.config
could work?
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
Bogomips
-
Bogomips
- Full of knowledge

- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
Post#3
by Bogomips » 03 Sep 2015, 12:20
Corrected previous post. Did not take into account .config being directory.
First try suggestion without wildcard. See if it works.

Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
Bogomips
-
Bogomips
- Full of knowledge

- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
Post#4
by Bogomips » 03 Sep 2015, 19:11
After a bit of experimentation with
cp -a, maybe this could work:
Code: Select all
rm -rf --one-file-system /home/guest/.config
cp -a /mnt/sd**/porteus/rootcopy/root/.config /home/guest
chown -R guest:guest /home/guest/.config
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
Bogomips
-
Bogomips
- Full of knowledge

- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
Post#5
by Bogomips » 03 Sep 2015, 20:36
^ This is not very clear. You should have got something if the above code was in rc.local script of rootcopy folder.
- The .config in /home/guest should have been deleted
- So, is .config different from /mnt/sd**/porteus/rootcopy/root/.config?
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
Bogomips
-
Bogomips
- Full of knowledge

- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
Post#6
by Bogomips » 03 Sep 2015, 22:01
In the start up screen you should have seen if .config was being deleted, unless it whizzes past you too fast. Then the next thing to investigate is to see what is in .config, and whether it is different from the /sd../../root/.config. Can you not see the contents of .config?
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
Bogomips
-
Bogomips
- Full of knowledge

- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
Post#7
by Bogomips » 03 Sep 2015, 23:42
So, ok, after rootcopy has been processed on startup, open a terminal and post the output of command, if not too long:
Code: Select all
diff -qr .config /mnt/sdb2/porteus/1508290631/rootcopy/root/.config
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
Bogomips
-
Bogomips
- Full of knowledge

- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
Post#8
by Bogomips » 04 Sep 2015, 01:06
OK then,
- make
Code: Select all
#!/bin/bash
rm -rf --one-file-system /home/guest/.config
cp -a /mnt/sdb2/porteus/1508290631/rootcopy/root/.config /home/guest
chown -R guest:guest /home/guest/.config
into script, say blue.sh.
- Then
- Boot parameter (cheatcode) cliexec=/home/guest/blue.sh
- Compare as before
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
Bogomips
-
Bogomips
- Full of knowledge

- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
Post#9
by Bogomips » 04 Sep 2015, 11:26
Log in as root, and then compare:
Code: Select all
diff -qr /home/guest/.config /mnt/sdb2/porteus/1508290631/rootcopy/root/.config
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
Bogomips
-
Bogomips
- Full of knowledge

- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
Post#10
by Bogomips » 04 Sep 2015, 14:22
Seems to be getting a bit closer. Next try,
- after doing comparison:
- Lastly instead of cliexec, use: guiexec=/home/guest/blue.sh
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
Bogomips
-
tome
- Contributor

- Posts: 686
- Joined: 26 Jun 2013, 14:03
- Distribution: x64 Openbox
- Location: Russia is causing the immense damage to humanity
-
Contact:
Post#11
by tome » 04 Sep 2015, 17:04
Why
Code: Select all
rm -rf --one-file-system /home/guest/.config
- it will delete all, even files that will not be copied from rootcopy so at this stage you can probably use
Another choice is to copy and point (symlink) guest/.config and root/.config to non posix filesystem, but it is not possible to share some configurable files (eg geany). Rootcopy is not universal - you can not overwrite directories with symlinks.
tome
-
Bogomips
- Full of knowledge

- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
Post#12
by Bogomips » 04 Sep 2015, 21:18
tome wrote:Why
Code: Select all
rm -rf --one-file-system /home/guest/.config
- it will delete all, even files that will not be copied from rootcopy so at this stage you can probably use
Because .config exists and is a directory:
Code: Select all
guest@porteus:~$ diff -qr apak tst/apak
Only in apak: cld
guest@porteus:~$ cp -a tst/apak /home/guest
guest@porteus:~$ diff -qr apak tst/apak
Only in apak: cld
blue4meridian wrote:
Why run level 4 (init)?.
Same result?
Good.
Starts X.
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
Bogomips
-
Bogomips
- Full of knowledge

- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
Post#13
by Bogomips » 05 Sep 2015, 12:54
blue4meridian wrote:Still booting to login... although I'm very anxious to see the end result.
I first encountered "changes" like approaches over 10 yrs ago (eg. DSL/cowloop).
Even then I felt default parameter "overwrite" was more pragmatic than "save".
Getting insufficient feedback to be of any meaningful help.
- Do you normaly have to log in?
blue4meridian wrote:Still booting to login
Where? In console (init3) or in X?- Did you try tome's suggestion? Along the lines of
Code: Select all
cp -a /mnt/sdb2/porteus/1508290631/rootcopy/root/.config /home/guest
chown -R guest:guest /home/guest/.config
in /etc/rc.d/rc.local - If you were in a console did you login as root and do init 4?
- Did you try booting with guiexec=/home/guest/blue.sh?
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
Bogomips
-
Bogomips
- Full of knowledge

- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
Post#14
by Bogomips » 05 Sep 2015, 15:05
Have you tried booting with guiexec=/home/guest/mirror.sh, and then logging in as guest?
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
Bogomips
-
Bogomips
- Full of knowledge

- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
Post#15
by Bogomips » 05 Sep 2015, 18:30
Any better if we remove first statement from
mirror.sh script, and just have:
Code: Select all
#!/bin/bash
cp -a /mnt/sdb2/porteus/1508290631/rootcopy/root/.config /home/guest
chown -R guest:guest /home/guest/.config
?
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
Bogomips