Forum archive
Suggested modification to Turnkey Core (for installations) support for proxy servers
Hi,
I am hoping someone can point me in the right direction to modify the Turnkey - Core appliance installation to allow for the input of a proxy server.
In my test environment I have setup a number of servers based on the Turnkey - Core platform to test and develop ideas. As part of this environment I have setup one of the boxes with apt-cacher and have configured each client to use it as the central hub for apt-get packages.
Is there an easy way to modify the install system to allow for the input of a proxy server?
Thanks,
Peter.
Please correct me if I'm wrong, but are you after an easy way to use your apt-cacher as a proxy for updates?
If so the easiest way I've found is to tell apt to use your apt-cacher server as an update proxy. This is acheived by adding a 01proxy file to the /etc/apt/apt.conf.d/ directory. Thus all your updates go via the apt-cacher server, but nothing else goes through the proxy.
In a terminal, type:
Inside your new file, add a line that says:
You can add this file to any Ubuntu/Ubuntu based system on your network. Please note it is not advisable to simultaneously use apt-cacher with Debian/other Debian based distros because packages from different distros may interfere with one another.
Also I have read that apt-cacher-ng uses a slightly different entry in the 01proxy file (but I can't confirm this as I only have apt-cacher). What I've read suggest you use this instead:
Acquire::http { Proxy “http://<IP address or hostname of the apt-cacher server>:3142″; };