void-linux / void-mklive

The Void Linux live image maker
https://voidlinux.org
Other
328 stars 194 forks source link

How i can add a custom bashrc in the livecd? #303

Closed johna23-lab closed 1 year ago

johna23-lab commented 1 year ago

Hi! i want to add a custom bashrc and a custom gktrc in the LIVECD, it is possible?

Here is the bashrc https://pastebin.com/pnfhytkA

Here is the gktrc https://pastebin.com/4JrnsmFk

Thanks!

classabbyamp commented 1 year ago

https://github.com/void-linux/void-mklive/blob/master/mklive.sh.in#L80

do something like

somedir/home/anon/.bashrc
somedir/home/anon/.gtkrc

and

./mklive.sh -I somedir ...
johna23-lab commented 1 year ago

Thanks , the LIVECD worked well, but once installed the configuration is lost, how can i make it apply to the user of the installation?

classabbyamp commented 1 year ago

you would need to choose the local install method, but I'm not sure if it copies /home. either way you'd be better off using a dotfile manager for this, maybe something like stow or chezmoi

johna23-lab commented 1 year ago

I found a solution from this post https://askubuntu.com/questions/971836/at-what-point-is-the-bashrc-file-created

Before creating the iso, the .bashrc file in the /etc/skel directory must be overwritten

paper42 commented 1 year ago

This is not relevant to void-mklive anymore