[SOLVED] How to BYOI with different theme and custom rc.lua?

Post Reply
aw512
Crewman
Posts: 8
Joined: Wed Dec 12, 2018 1:49 pm

[SOLVED] How to BYOI with different theme and custom rc.lua?

Post by aw512 »

I am building an ISO and want to know if there is a way to change the default theme and rc.lua file that come pre-installed on the ISO?
I am using the copycat copland theme and have a custom rc.lua that has this theme set as the default theme along with awful.rules and awful.spawn modifications.

I know I can copy the theme folder and rc.lua file into the /home/user/.config/awesome/ folder and this will apply the theme, rules, and spawns.
But I would like to not have to manually have to do this and would prefer if the BYOI already had these changes applied.

Secondly, is there a way to have files placed in a specific folder in the ISO automatically?
I would like to place a chromium-flags.conf in the /home/user/.config/folder
I want to have chromium hardware acceleration working without any necessary user modifications.

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

Re: [OPEN] How to BYOI with different theme and custom rc.lua?

Post by erikdubois »

You need more knowledge from https://arcolinuxiso.com

There you can learn to make your personal repo.

You will learn to make a package for both your issues.

You will install them first to /etc/skel on your iso.

That will be copied over to the liveuser and later to the user.

Hence your theme and config will be applied.

The knowledge is online.
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.

aw512
Crewman
Posts: 8
Joined: Wed Dec 12, 2018 1:49 pm

Re: [OPEN] How to BYOI with different theme and custom rc.lua?

Post by aw512 »

I found the relevant guides. I will go over the information and use it to build my desired ISO.

Thanks for pointing me in the right direction.
Thanks for all the resources and guides you make available.
And lastly thanks for making it possible for everyday people to build an ISO to their heart's content.

I have tried various distros and never truly found one that I was fully satisfied with.
Now I can build the perfect ISO for me :D

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

Re: [OPEN] How to BYOI with different theme and custom rc.lua?

Post by erikdubois »

You have found the source to tons of hours of fun.

Pass on the message.
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.

aw512
Crewman
Posts: 8
Joined: Wed Dec 12, 2018 1:49 pm

Re: [SOLVED] How to BYOI with different theme and custom rc.lua?

Post by aw512 »

I created my repo that contains the awesome and chromium-flags.conf files in a .config folder which I copied to
/home/user/arcolinuxb-build/archiso/airootfs/etc/skel/

I built the ISO with the 40-build-the-iso-local-again.sh script.
Then I booted the ISO to test it out. The config files mentioned above were not successfully copied to the live user and as a result the desired changes were not applied.

How can I ensure the files are properly copied to the ISO?

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

Re: [SOLVED] How to BYOI with different theme and custom rc.lua?

Post by erikdubois »

Put them in a package and build the packge

put it on the package list.
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.

aw512
Crewman
Posts: 8
Joined: Wed Dec 12, 2018 1:49 pm

Re: [SOLVED] How to BYOI with different theme and custom rc.lua?

Post by aw512 »

I used this guide https://arcolinuxiso.com/how-to-add-you ... inuxb-iso/ to try adding my repo in the pacman.conf file but could not get it to work with the new build scripts as they are different from the ones in the guide.

To copy my pacman.conf with my repo included I added the following code in phase 4 to the 30-build-the-iso-the-first-time.sh prior to the replacing of the old packages.x86_64 with the new packages.x86_64.

echo "Removing the old pacman.conf file from build folder"
rm $buildFolder/archiso/pacman.conf
echo
echo "Copying the new pacman.conf file to the build folder"
cp -f /home/user/AwesomeArch/pacman.conf $buildFolder/archiso/pacman.conf


echo "Removing the old packages.x86_64 file from build folder"
rm $buildFolder/archiso/packages.x86_64

This is the output when running the build script
I believe the relevant errors are the ones below
Enter a selection (default=all):
error: target not found: mkinitcpio-openswap
error: target not found: arco-calamares
error: target not found: ckbcomp
error: target not found: arcob-calamares-config-awesome-git
==> ERROR: Failed to install packages to new root

The iso builds without my packages added. It is only when I alter the build script to add my packages that the build fails.
My repo is here.
Is there an updated method to add my repo in the build process with the new build scripts?

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

Re: [SOLVED] How to BYOI with different theme and custom rc.lua?

Post by erikdubois »

all pacman.conf need to include carli and your repo

better still make more pkgbuilds for the missing applications and put them on your repo

do not use Carli repo - become independent

that can be step 2
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 Awesome”