On 02/06/2018 07:24 PM, David Hobach wrote:
Dear all,does anyone have a good solution for offline firefox addon installation & regular updates to template VMs?If so, I'd be delighted if you shared your idea or code.Otherwise I'd probably write a few lines to download the addons in a separate VM, pass it to the offline template via qvm-copy and update the respective firefox folders there. [1][1] https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Alternative_distribution_options/Sideloading_add-ons#Installation_using_the_standard_extension_folders
I attached my own solution for idea sharing. If you want to use it, I'd suggest an intensive code review (it's dom0 code after all) and even then you'll have to use it at your own risk!
It probably only works with 4.0rc4. The download part might work with any OS.
----------------------qFirefoxUpdate [options] [download VM] [target VM] [firefox path] [firefox profile path] [qFirefoxDownload parameter 1] ... [qFirefoxDownload param n]
Dom0 script to update firefox and its plugins in an offline Qubes VM by downloading the updates in an online VM.
SECURITY NOTE: A compromised [download VM] of course adds a lot of new attack vectors for your [target VM]. Thus please use a fresh disposable [download VM] from a trusted template.
[download VM]: Online VM to use to download updates. [target VM]: Offline VM which is meant to be updated.[firefox path]: Path to the firefox installation in the [target VM]. A binary file named updater must reside there. [firefox profile path]: Path to the firefox profile in the [target VM] for which to update the addons. [qFirefoxDownload parameters]: Arbitrary number of qFirefoxDownload parameters in the syntax of the qFirefoxDownload script. Usually you'll want at least to put the addon names here. Execute it to get further help.
Example:qFirefoxUpdate disp233 debian-9 /usr/share/firefox /usr/share/.mozilla/firefox/mwztm3a.default umatrix Update firefox in the VM named debian-9 (folder: /usr/share/firefox) as well as the add-on named umatrix in the profile folder mwztm3a.default. Use disp233 to download the necessary updates.
KR David
-- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/d3008f29-4b68-2981-56e3-94e9026bfdb5%40hackingthe.net. For more options, visit https://groups.google.com/d/optout.
qFirefoxUpdate.tar.gz
Description: application/gzip
smime.p7s
Description: S/MIME Cryptographic Signature
