[OPEN] Automatic "personal" command possible? (or at least its effect)

User avatar
erikdubois
Captain
Posts: 5109
Joined: Tue Nov 07, 2017 3:45 pm
Location: Belgium
Contact:

Re: [OPEN] Automatic "personal" command possible? (or at least its effect)

Post by erikdubois »

Why don't you execute it at the very end of Calamares?

https://github.com/arcolinux/arco-calam ... .conf#L123

pointing to


https://github.com/arcolinux/arco-calam ... final.conf

pointing to

files in your /archiso folder

https://github.com/arcolinux/arcolinuxs ... /local/bin

Just before you stop Calamares - you can change anything on the users system.
Learn, have fun and enjoy.
But first use the power of the Arch Wiki
use the tutorials on https://www.youtube.com/erikdubois
then use the power of google
then use the power of our moderators.

vcaselli
Crewman
Posts: 48
Joined: Sat Dec 14, 2019 8:25 am
Location: Livorno
Contact:

Re: [OPEN] Automatic "personal" command possible? (or at least its effect)

Post by vcaselli »

So I should:

1) clone https://github.com/arcolinux/arco-calamares-config-xl

2) change content of

Code: Select all

calamares/modules/shellprocess-final.conf
But then how can I re-package the modified local repo
https://github.com/arcolinux/arco-calamares-config-xl
in order to make it become part of the iso creation process
( which I started it all from https://github.com/arcolinuxb/arco-plasma ) ?

User avatar
erikdubois
Captain
Posts: 5109
Joined: Tue Nov 07, 2017 3:45 pm
Location: Belgium
Contact:

Re: [OPEN] Automatic "personal" command possible? (or at least its effect)

Post by erikdubois »

Question needs clarification.
Learn, have fun and enjoy.
But first use the power of the Arch Wiki
use the tutorials on https://www.youtube.com/erikdubois
then use the power of google
then use the power of our moderators.

vcaselli
Crewman
Posts: 48
Joined: Sat Dec 14, 2019 8:25 am
Location: Livorno
Contact:

Re: [OPEN] Automatic "personal" command possible? (or at least its effect)

Post by vcaselli »

Yes sorry, a quick summary:

the final goal is to build an iso with Plasma and some custom changes in /etc/skel/.config/kdeglobals
(without any explicit command to be launched by the user)

I guessed the best option was to start from cloning repo
https://github.com/arcolinuxb/arco-plasma
and in fact, with some modifications, I was able to build an iso with most of my desired customization included!

The last missing thing is changing the content of /etc/skel/.config/kdeglobals, which could be performed if only I could automatically execute the following command at the end of the installation.

Code: Select all

sudo sed -i "s/LookAndFeelPackage=org.kde.breezetwilight-arcolinux.desktop/LookAndFeelPackage=OpenDesktop-Dark/g" /etc/skel/.config/kdeglobals
Then you suggested to change Calamares here
https://github.com/arcolinux/arco-calam ... .conf#L123
which sounds good.

However, although I can assure you that I tried to study over and over a significant amount of your videos, I still do not understand how I can make these changes in Calamares.
Should I clone https://github.com/arcolinux/arco-calamares-config-xl and make changes in it?
If that is the case, how can changes in this repo have an effect on the execution of the script
30-build-the-iso-the-first-time.sh
in the previouse repo ?

Is the link between the two repo the package
arcob-calamares-config-plasma-git
included in
arco-plasma/archiso/packages.x86_64
so that changing Calamares means making a custom package from arcob-calamares-config-plasma-git ?

If so, observing that https://github.com/arcolinux/arco-calamares-config-xl doesn't have a PKGBUILD inside, makes me think I am making wrong deductions about the entire process of customizing Calamares.
So, at the end, how can Calamares be changed in practice (by a newby and slow on the uptake like me :))?

User avatar
erikdubois
Captain
Posts: 5109
Joined: Tue Nov 07, 2017 3:45 pm
Location: Belgium
Contact:

Re: [OPEN] Automatic "personal" command possible? (or at least its effect)

Post by erikdubois »

Either make a package that contains the change

like our arcolinux-plasma-git

or

in Calamares just change a small thing at the end with

https://github.com/arcolinux/arco-calam ... final.conf

it will launch scripts

each script does something else
Learn, have fun and enjoy.
But first use the power of the Arch Wiki
use the tutorials on https://www.youtube.com/erikdubois
then use the power of google
then use the power of our moderators.

vcaselli
Crewman
Posts: 48
Joined: Sat Dec 14, 2019 8:25 am
Location: Livorno
Contact:

Re: [OPEN] Automatic "personal" command possible? (or at least its effect)

Post by vcaselli »

Ok, let's say I go for the second way
in Calamares just change a small thing at the end with
but, where is Calamares exactly located?
1) an absolute system folder (like /etc/..) into the machine used to build the iso
2) a (relative) folder+files to be added to cloned repo https://github.com/arcolinuxb/arco-plasma
3) another package to be copied and customized
4) other

User avatar
erikdubois
Captain
Posts: 5109
Joined: Tue Nov 07, 2017 3:45 pm
Location: Belgium
Contact:

Re: [OPEN] Automatic "personal" command possible? (or at least its effect)

Post by erikdubois »

You need to study more.

Study our calamares config

it will come in /etc/calamares

it will contain a module
the module will point to scripts
the scripts you make them
and put them in /usr/local/bin
and run them with Calamares
Learn, have fun and enjoy.
But first use the power of the Arch Wiki
use the tutorials on https://www.youtube.com/erikdubois
then use the power of google
then use the power of our moderators.

Post Reply

Return to “BYOI ArcoLinuxB Plasma”