Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zyga/apt-proxy-setup
Use the local apt proxy when at home, use the public mirror while on the road
https://github.com/zyga/apt-proxy-setup
Last synced: 2 days ago
JSON representation
Use the local apt proxy when at home, use the public mirror while on the road
- Host: GitHub
- URL: https://github.com/zyga/apt-proxy-setup
- Owner: zyga
- License: other
- Created: 2013-10-03T11:31:33.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-10-03T11:35:16.000Z (about 11 years ago)
- Last Synced: 2024-04-16T03:39:37.108Z (7 months ago)
- Size: 105 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
apt-proxy-setup
===============APT proxy setup is a method of automatically configuring APT proxy depending on
network location. It can be used to have access to fast / local mirror at home
or at the office but default to the public archive while on the road.Usage
=====Currently apt-proxy-setup can only track one network location, the one where
you have access to a local apt proxy (such as apt-cacher-ng). To identify that
location apt-proxy-setup probes a configured URL each time your network
connection changes. For the setup to work you need to add a small text file
somewhere in your local network. It can be an existing file or a new, dedicated
file, just for apt-proxy-setup. Keep in mind that apt-proxy-setup will try to
download that file so make sure that the URL is not reachable from the public
network. When the network location is determined a pre-configured APT proxy
will be set in /etc/apt/apt.conf.d/00apt-proxy-setup. That's it.Configuration
=============Start with the example configuration file, apt-proxy-setup.example, tweak it to
your liking and copy it to /etc/default/apt-proxy-setup. That's it, you're
done. Whenever you change that configuration (or remove it) apt-proxy-setup
will update the proxy configuration automatically.Installation
============Installation requires you to copy two upstart jobs to /etc/init, this is
facilitated by the embedded makefile.$ sudo make install