Thursday, July 20, 2006

Coments On Heroine Boobs

A proxy for APT


apt-proxy creates a local cache of packages, which saves bandwidth when installations and updates. With a slow connection, simply complete the installations on a single machine. The subsequent installations can be done quickly from the cache. Apt-proxy package for Ubuntu is in the universe archive:
# apt-get install apt-proxy side "server" configuration is done in / etc / apt-proxy / apt-proxy -v2.conf: cache_dir = / var / cache / apt-proxy

cleanup_freq = off = off

max_age

max_versions

= 3;; backend servers

[myubuntu] backends =


http://fr.archive.ubuntu.com/ubuntu
http://security .ubuntu.com / ubuntu


server side, / etc / apt / sources.list look like this: deb

http://localhost:9999/myubuntu dapper main restricted universe

Beware of bug: the new version of Ubuntu APT handles HTTP requests differently. Therefore edit / etc / apt / apt.conf and replace

Acquire:: http::Proxy false;

by

Acquire:::: Proxy "False";

server side, do not forget to (re) start / etc / init.d / apt-proxy after each change in the configuration file.

client side, it will also apply the small modification to / etc / apt / apt.conf. Then be edited sources.list like this: deb

http://192.168.1.1:9999/myubuntu dapper main restricted universe

Now, apt-get update will connect to the local server cache.


0 comments:

Post a Comment