Re: [qubes-users] Re: Injecting configuration files into appVM when it's created/started for the first time
Qubes wrote: Vít Šesták wrote: I sometimes need something similar, but I prefer a slightly different approach. I prefer the config files to be in the TemplateVM, so that I can easily update them for all the VMs. There is no general solution for all the cases, but you often can find a global file. For example: * /etc/xdg/xfce4/terminal/terminalrc for XFCE4 Terminal settings Thank you for the nice tip. Rather using a global config file is in fact more like I want it. I will definitely use the xfce4-terminal settings file global location. What is the best way to find other configuration files' global location. Is it just a matter of searching or is there a more sophisticated approach? For example I would also like to use global settings locations for, 1. global dark theme, currently I have it configured in `~/.config/gtk-3.0/settings.ini` The global path for the dark theme is `/usr/share/gtk-3.0/settings.ini`. 2. is there one for `~./.bashrc` 3. `~/.config/dconf/user` (the config file that gets created by executing `gsettings set org.gnome.desktop.interface color-scheme prefer-dark. A necessary setting with newer Gtk applications, like the latest evince, not following the dark theme setting in `~/.config/gtk-3.0/settings.ini` anymore. Some software is changing over to Handy StyleManager for theming. 4. Is there on for Krusader, currently it is in `~/.config/krusaderrc` -- You received this message because you are subscribed to the Google Groups "qubes-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/517b600b-89df-3d43-6dbe-9885c962298b%40ak47.co.za.
Re: [qubes-users] Re: Injecting configuration files into appVM when it's created/started for the first time
Cristian Margine wrote: That happens because bash will replace an alias only if it is is the first word. You can set the alias alias sudo='sudo '. Because it has a space at the end it will also check the parameter('l' in your situation) if it is an alias. Thank you kindly that works a treat. -- You received this message because you are subscribed to the Google Groups "qubes-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/f5352c2c-bff5-d147-231c-8b529d5f27cb%40ak47.co.za.
Re: [qubes-users] Re: Injecting configuration files into appVM when it's created/started for the first time
That happens because bash will replace an alias only if it is is the first word. You can set the alias alias sudo='sudo '. Because it has a space at the end it will also check the parameter('l' in your situation) if it is an alias. \ Original Message On May 1, 2023, 11:03 PM, Qubes < qubes...@ak47.co.za> wrote: > > > Vít Šesták wrote: > I have several ways: > > a. Google > b. ChatGPT, e.g. > > “Can I configure XFCE Terminal for all users?” (real > example copied from > > my history) > c. Try to find a file with the same name (maybe without > > initial dot) in > /usr, /etc, etc. Something like this: sudo find / -xdev > > -name zshrc > I have a question that I was hoping someone can shed some > > light on. I put an alias, now in /etc/bashrc to make it global, to alias > > l='ls -Ahl' This works everywhere but it does not work with sudo, > > \[user@fedora ~\]$ sudo l sudo: l: command not found > > \[user@fedora-37-m-default ~\]$ Why is that, can I make it comply? -- You > > received this message because you are subscribed to the Google Groups > > "qubes-users" group. To unsubscribe from this group and stop receiving > > emails from it, send an email to qubes-users+unsubscr...@googlegroups.com. > > To view this discussion on the web visit > > https://groups.google.com/d/msgid/qubes-users/0d57fe08-5556-cf45-7ab1-6fdc376281ef%40ak47.co.za. -- You received this message because you are subscribed to the Google Groups "qubes-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/fqO_IiJxnkI_1dPgRdYog0VY5gjcAtIaqbCBRWzykKL1rEB6nWhlm9nVUOFihwAT-SpshwjSouETjvdWJ1t2_ACOyeWdZBBh8HTb6L1jeXg%3D%40cristiioan.me. publickey - EmailAddress(s=cristiioan@cristiioan.me) - 0xDAC92D89.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature
Re: [qubes-users] Re: Injecting configuration files into appVM when it's created/started for the first time
Vít Šesták wrote: I have several ways: a. Google b. ChatGPT, e.g. “Can I configure XFCE Terminal for all users?” (real example copied from my history) c. Try to find a file with the same name (maybe without initial dot) in /usr, /etc, etc. Something like this: sudo find / -xdev -name zshrc I have a question that I was hoping someone can shed some light on. I put an alias, now in /etc/bashrc to make it global, to alias l='ls -Ahl' This works everywhere but it does not work with sudo, [user@fedora ~]$ sudo l sudo: l: command not found [user@fedora-37-m-default ~]$ Why is that, can I make it comply? -- You received this message because you are subscribed to the Google Groups "qubes-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/0d57fe08-5556-cf45-7ab1-6fdc376281ef%40ak47.co.za.
Re: [qubes-users] Re: Injecting configuration files into appVM when it's created/started for the first time
I have several ways: a. Google b. ChatGPT, e.g. “Can I configure XFCE Terminal for all users?” (real example copied from my history) c. Try to find a file with the same name (maybe without initial dot) in /usr, /etc, etc. Something like this: sudo find / -xdev -name zshrc Regards, Vít Šesták 'v6ak' -- You received this message because you are subscribed to the Google Groups "qubes-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/744da41a-f7a2-4764-9342-0bc82ae77c7dn%40googlegroups.com.
Re: [qubes-users] Re: Injecting configuration files into appVM when it's created/started for the first time
Qubes wrote: Vít Šesták wrote: I sometimes need something similar, but I prefer a slightly different approach. I prefer the config files to be in the TemplateVM, so that I can easily update them for all the VMs. There is no general solution for all the cases, but you often can find a global file. For example: * /etc/xdg/xfce4/terminal/terminalrc for XFCE4 Terminal settings Thank you for the nice tip. Rather using a global config file is in fact more like I want it. I will definitely use the xfce4-terminal settings file global location. What is the best way to find other configuration files' global location. Is it just a matter of searching or is there a more sophisticated approach? For example I would also like to use global settings locations for, 1. global dark theme, currently I have it configured in `~/.config/gtk-3.0/settings.ini` 2. is there one for `~./.bashrc` I see in my ~/.bashrc it gives the global location # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc 3. `~/.config/dconf/user` (the config file that gets created by executing `gsettings set org.gnome.desktop.interface color-scheme prefer-dark. A necessary setting with newer Gtk applications, like the latest evince, not following the dark theme setting in `~/.config/gtk-3.0/settings.ini` anymore. Some software is changing over to Handy StyleManager for theming. 4. Is there on for Krusader, currently it is in `~/.config/krusaderrc` -- You received this message because you are subscribed to the Google Groups "qubes-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/f8d4d62e-cfd5-80e1-a184-66cd3bb6c1cd%40ak47.co.za.
Re: [qubes-users] Re: Injecting configuration files into appVM when it's created/started for the first time
Vít Šesták wrote: I sometimes need something similar, but I prefer a slightly different approach. I prefer the config files to be in the TemplateVM, so that I can easily update them for all the VMs. There is no general solution for all the cases, but you often can find a global file. For example: * /etc/xdg/xfce4/terminal/terminalrc for XFCE4 Terminal settings Thank you for the nice tip. Rather using a global config file is in fact more like I want it. I will definitely use the xfce4-terminal settings file global location. What is the best way to find other configuration files' global location. Is it just a matter of searching or is there a more sophisticated approach? For example I would also like to use global settings locations for, 1. global dark theme, currently I have it configured in `~/.config/gtk-3.0/settings.ini` 2. is there one for `~./.bashrc` 3. `~/.config/dconf/user` (the config file that gets created by executing `gsettings set org.gnome.desktop.interface color-scheme prefer-dark. A necessary setting with newer Gtk applications, like the latest evince, not following the dark theme setting in `~/.config/gtk-3.0/settings.ini` anymore. Some software is changing over to Handy StyleManager for theming. 4. Is there on for Krusader, currently it is in `~/.config/krusaderrc` -- You received this message because you are subscribed to the Google Groups "qubes-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/fa15fb2e-5590-f803-7a15-62a05d44d81a%40ak47.co.za.