Template:Build Documentation apt-cache
When building in a virtual machine, builders can use their own http proxy (apt cache) on the host, which will greatly improve build speed when building several times in a row (debugging, development).
If you are interested, click on Expand on the right.
This isn't required when you are building virtual machine images, because then apt-cacher-ng is automatically set up for you. Only useful when using --install-to-root in a virtual machine.
Requires Whonix 184.108.40.206 or above.
On the host.
sudo apt-get install apt-cacher-ng
Be sure to have a firewall, so not the whole internet can use your apt-cacher-ng service.
Inside your Virtual Machine.
Don't forget to replace 192.168.0.1 with your host's internal IP (use "sudo ifconfig" on your host to find out what your internal IP is).
Don't forget to add -E to sudo, so environment variables are preserved. Examples.
sudo -E ./whonix_build --install-to-root --tor-gateway --build sudo -E ./build-steps.d/1100_prepare-build-machine --install-to-root --tor-gateway
Impressum | Datenschutz | Haftungsausschluss
Conditions for Contributions to Whonix, then Edit! IP addresses are scrubbed, but editing over Tor is recommended. Edits are held for moderation. Whonix (g+) is a licensee of the Open Invention Network. Unless otherwise noted above, content of this page is copyrighted and licensed under the same Free (as in speech) license as Whonix itself.