Hello,
I discovered census by @unman apt-cacher-ng here
Does anyone have a tutorial for implementing this in Qubes 4.1?
+1 for a tutorial/guide, too.
whoami
August 16, 2022, 1:50pm
3
haha, I thought the same.
+2
unman
August 16, 2022, 4:49pm
4
I’ve updated my notes in to more of a tutorial -
# Using apt-cacher-ng as a caching proxy in Qubes.
## Why?
The standard tinyproxy is just a proxy. This ,means that as soon as you start to use more than a few templates you are wasting bandwidth (and time) in repeatedly downloading the same packages.
Using a caching proxy saves on both.
## How?
apt-cacher-ng is a caching proxy with support for Debian based distros out of the box, as well as Arch.
It can be configured to support Fedora, Suse, Gentoo, and \*BSD
### INSTALL
Create a new Debian based template -
`qvm-clone debian-11-minimal template-cacher`
In template-cacher install the software, by running as root:
```
apt-get install qubes-core-agent-networking apt-cacher-ng
systemctl mask apt-cacher-ng
```
Shut down template-cacher.
This file has been truncated. show original
If you want a salt approach look at https://github.com/unman/shaker ,
where there is a state for cacher.
If you want a turnkey solution, look at https://qubes.3isec.org/tasks.html .
Install qubes-task and then select the cacher package, which will
automatically install and configure your system to use the caching
proxy.
Hey, thanks a lot. I’m going to look into this!
enmus
August 16, 2022, 8:22pm
6
And, if someday you want to update all of your qubes the same way, over qrexec, this could help
I have set fully functional apt-cacher-ng qube and am updating all the templates and dom0 via it.
Now, in general I always try to install packages first in disposables to check whatever, but for obvious reasons I cannot do that. So, what I do, I have a backup of non-apt-cacher-ng yum.repos.d and sources.list 9and all other for different distros), so when I want to install something, I overwrite those in disposables with originals, then being able to download.
I tried to find persistent way for…
I’m using it because all of my VMs are offline by default, and if I want them online, I set their netVM manually upon their startup.
Can you re-format the part:
Edit /etc/apt-cacher-ng/acng.conf: Remap-qubes: http://fake.qubes ; file:backends_qubes
Then in /etc/yum/yum.repos.d, change the repository URL to http://fake.qubes/ …
What is the exact form of the remapped link? http://fake.qubes/... ?
Also the link in your guide leads to an empty document. I supposed you meant this link?
https://www.unix-ag.uni-kl.de/~bloch/acng/