Global Configuration... (/etc/skel/.config)

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
fullmoonremix

Global Configuration... (/etc/skel/.config)

Post#1 by fullmoonremix » 22 Jan 2016, 22:34

Salutations... :good:

I'm interested in using...

Code: Select all

userdel -r guest
useradd -r guest
So at startup I can load my default settings globally...
@ /etc/skel/.config
Instead of using "changes" (~/.config). :wall:
Is there a simple convenient way to do this? :unknown:

Best Regards... :beer:

aus9

Re: Global Configuration... (/etc/skel/.config)

Post#2 by aus9 » 22 Jan 2016, 22:48

Hi

Please don't delete guest account

when I first came here....I recommended they improve the FAQ as it should say ....have only guest and root
https://forum.porteus.org/viewtopic.php?f=53&t=5121

2) What is wrong with using a changes cheatcode....that is IMHO exactly what you need....what you want etc

fullmoonremix

Re: Global Default Configuration... (/etc/skel/.config)

Post#3 by fullmoonremix » 22 Jan 2016, 23:06

Salutations... :good:

I'm doing this for the custom derivative of Porteus that I've been working on for the last year and a half.
IMHO... for my goals the USM... the "changes" cheatcodes and saved modules... files and folders are counterproductive.
(I only use the USM now to edit modules and resolve dependencies that I later download by tunnel from slakfinder.org)

Like many things Porteus I prefer to go "rogue"... :evil: because I have a different vision of the potential of Porteus. :unknown:
Porteus uses glibc-solibs... I use musl. It uses perl... I use perl w/ libmce-perl (perl JIT?)
Porteus/LXQT uses Openbox... I use PekWM (my derivative tries to avoid Mesa... Qt/Gtk dependencies) and so on.
eg... viewtopic.php?f=39&t=5139

I have multiple partitions w/ stable versions of Porteus.
However... this version is my custom spin on it that is fully functional and 95% complete.

In order to use /etc/skel/.config... "userdel -r guest" and "useradd -r guest" must be run @ startup.
I just don't know how to set it up. With a global (default?) configuration my derivative will be complete.

Basically what I'm saying is... I help need to get over the 5 yard line to score the touchdown. :wink:

Best Regards... :beer:
Last edited by fullmoonremix on 23 Jan 2016, 13:54, edited 9 times in total.

roadie
Full of knowledge
Full of knowledge
Posts: 205
Joined: 02 Jan 2011, 18:41
Distribution: Porteus 3.5...with a twist
Location: In a hayfield

Re: Global Configuration... (/etc/skel/.config)

Post#4 by roadie » 23 Jan 2016, 00:00

I would think that since you apparently have an aversion to using Porteus changes along with related files and folders, you might have to hard code your needs in the base and rebuild it.

Or, use some other distro more suited to your purposes.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5456
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: Global Configuration... (/etc/skel/.config)

Post#5 by brokenman » 23 Jan 2016, 00:20

I think the best place would be inside initrd. Next best perhaps in the startup scripts like /etc/rc.d/rc.S or the last one run /etc/rc.d/rc.local
How do i become super user?
Wear your underpants on the outside and put on a cape.

fullmoonremix

Re: Global Configuration... (/etc/skel/.config)

Post#6 by fullmoonremix » 23 Jan 2016, 00:31

Salutations... :good:

Thanks... brokenman. :good: it looks like I can finally finish.
(For what it's worth... I prefer to use Porteus rather than build it).

Best Regards... :beer:
Last edited by fullmoonremix on 23 Jan 2016, 10:54, edited 2 times in total.

fullmoonremix

Re: Global Configuration... (/etc/skel/.config)

Post#7 by fullmoonremix » 23 Jan 2016, 10:10

Salutations... :good:

I haven't applied the startup commands yet... but as a more exotic variation...
would it also be feasable to symlink /root/.config to overwrite /etc/skel/.config?

So I everytime I reconfigure /root/.config and save it to ~/rootcopy/root/.config...
it updates /home/guest/.config. Or... is that too esoteric?

Basically... I want root (admin?) configuration to control guest (user?).

Best Regards... :beer:

roadie
Full of knowledge
Full of knowledge
Posts: 205
Joined: 02 Jan 2011, 18:41
Distribution: Porteus 3.5...with a twist
Location: In a hayfield

Re: Global Configuration... (/etc/skel/.config)

Post#8 by roadie » 23 Jan 2016, 19:04

brokenman wrote:I think the best place would be inside initrd. Next best perhaps in the startup scripts like /etc/rc.d/rc.S or the last one run /etc/rc.d/rc.local
I hadn't realized that files in the initrd would/could be carried over to the main system....I had thought that everything was passed to the system after starting init.....this opens up more possibilities.

Thanks

Post Reply