Sometimes compilation instructions require prerequisites and it will be something that will pull something remotely and then execute a script and the script will want internet access and then the script will do the installation.
for example I could be supposed to run setup-install.sh and I would run that and if the template were connected, it would download lots of things, compile them, and then install them. some of these scripts are not that simple for someone with only a small understanding of linux or programming. is the only solution for something like this to open up the sh file and read it and run some of it in the disposable and some in the template?
would there be a way to temporarily give a template access to the internet for certain downloads or domains but have it go through the same process as when the template is updating? this would break the qubes security model however?
This is too hard. I am going to clone the template and attach it directly to the Internet. I know this is bad and a way for the template to be attacked but this is too hard and taking too long and the instructions are not easy.
The idea is simple, there is a local proxy http://127.0.0.1:8082 available in a template that you can use to access the internet.
But you need to configure the software to use this proxy and this depends on the software that you want to use.
I guess for faster-whisper you need to set proxy for pip like this:
It won’t help you install your specific software in the template. You can use it to install one of the available packages that it provides, not any arbitrary package: https://qubes.3isec.org/tasks.html
For git to use proxy you need to configure it like this:
curl -o sdkman.sh https://get.sdkman.io/
chmod +x sdkman.sh
export http_proxy=http://127.0.0.1:8082
export https_proxy=http://127.0.0.1:8082
./sdkman.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0curl: (6) Could not resolve host: get.sdkman.io
zsh: exit 6 curl -o sdkman.sh https://get.sdkman.io/
chmod: cannot access ‘sdkman.sh’: No such file or directory
zsh: exit 1 chmod +x sdkman.sh
zsh: no such file or directory: ./sdkman.sh
zsh: exit 127 ./sdkman.sh
Is this because whonix is my update proxy? I could change it to a more accepted IP?
Looking for a previous installation of SDKMAN…
SDKMAN found.
======================================================================================================
You already have SDKMAN installed.
SDKMAN was found at:
/home/user/.sdkman
Please consider running the following if you need to upgrade.
Well, it looks like it was installed?
I don’t see the zsh command not found here.
If it’s not working then you can try to update the installed sdk using this command: