Centralized Scripts

Hello

I have some personal scripts that I use on multiple VMs, so I have a copy of each script on each VM. But when I want to modify one of them, I have to make the changes on each VM.

Is there a way to have scripts in a central location and be able to use them on different VMs?

Or what would be the best way to manage this?

Thank you.

2 Likes

H
You could put the script in the template if it’s common to all VMs. If not, you should use salt to distribute the script to all the VMs you want.

2 Likes

Hi

The problem is that I’m using different templates. I’ll try salt.

Thank you

1 Like

unman has some notes on salt, the note 8 explains how to manage files:

2 Likes

Thank you. I appreciate your information.

I also wrote a guide, in case extra material can help you understand how the salt thing work within Qubes OS

2 Likes

Hi, I might have a simple solution for you. Check out my bash script for setting up dom0 after a fresh install. In the end you will find my little script-injector I use to run scripts from dom0 in any given VM. After execution it will be erased from the VM again.
This way you can store and maintain all your scripts in a folder in dom0.

https://forum.qubes-os.org/t/setting-up-dom0-after-fresh-install-onionizing-repos-and-other-little-things/32671

It is not very sophisticated but it is doing the job and saves me a lot of hustle.

1 Like

I have a problem with your guide.

When I try the link, I get an error in my browser saying:
Secure Connection Failed

Error code: MOZILLA_PKIX_ERROR_OCSP_RESPONSE_FOR_CERT_MISSING

  • The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
  • Please contact the website owners to inform them of this problem.

Hmm, I’ll report this to the admin :thinking:

If you have tor, it’s available at http://ljnw7gt274nguqm24clsqi6ksjm2zrwaqhig4ynjzscvbymnv2mjjayd.onion/~solene/2023-06-02-reproducible-config-mgmt-qubes-os.html

https link should be fixed by now

2 Likes

Yes, the link works now.
Thank you very much