Managing lots of ubuntu workstations
Zach
uid000 at gmail.com
Sun Oct 16 20:04:32 UTC 2005
If just managing updates is what you need, then this is probably fine.
But if you want to set up a local repository for automated installs
and other cool stuff, here's an article i've been saving in my "things
to try" list for a while.
Part 1:
http://www.linuxplanet.com/linuxplanet/tutorials/5667/1/
Part 2:
http://linuxplanet.com/linuxplanet/tutorials/5675/1/
I've been dying to give this a try.
On 10/16/05, Niki Kovacs <contact at kikinovak.net> wrote:
> Le samedi 15 octobre 2005 à 23:14 -0500, Rich Duzenbury a écrit :
> > Hi again ubuntu-ers,
>
> Detailed explanation of how to setup apt-proxy in 5 minutes: Server-side
> apt-proxy.conf:
>
> -----------------------
> [DEFAULT]
> ;; All times are in seconds, but you can add a suffix
> ;; for minutes(m), hours(h) or days(d)
>
> ;; Server IP to listen on
> ;address = 192.168.1.1
>
> ;; Server port to listen on
> port = 9999
>
> ;; Control files (Packages/Sources/Contents) refresh rate
> ;;
> ;; Minimum time between attempts to refresh a file
> min_refresh_delay = 1h
>
> ;; Minimum age of a file before attempting an update (NOT YET
> IMPLEMENTED)
> ;min_age = 23h
>
> ;; Uncomment to make apt-proxy continue downloading even if all
> ;; clients disconnect. This is probably not a good idea on a
> ;; dial up line.
> ;; complete_clientless_downloads = 1
>
> ;; Debugging settings.
> ;; for all debug information use this:
> ;; debug = all:9
> debug = all:4 db:0
>
> ;; Debugging remote python console
> ;; Do not enable in an untrusted environment
> ;telnet_port = 9998
> ;telnet_user = apt-proxy
> ;telnet_password = secret
>
> ;; Network timeout when retrieving from backend servers
> timeout = 15
>
> ;; Cache directory for apt-proxy
> cache_dir = /var/cache/apt-proxy
>
> ;; Use passive FTP? (default=on)
> passive_ftp = on
>
> ;; Use HTTP proxy?
> ;http_proxy = host:port
>
> ;; Enable HTTP pipelining within apt-proxy (for test purposes)
> ;disable_pipelining=0
>
> ;;--------------------------------------------------------------
> ;; Cache housekeeping
>
> ;; Time to perform periodic housekeeping:
> ;; - delete files that have not been accessed in max_age
> ;; - scan cache directories and update internal tables
> cleanup_freq = off
>
> ;; Maximum age of files before deletion from the cache (seconds)
> max_age = off
>
> ;; Maximum number of versions of a .deb to keep per distribution
> max_versions = 4
>
> ;; Add HTTP backends dynamicaly if not already defined? (default=on)
> ;dynamic_backends = on
>
> ;;---------------------------------------------------------------
> ;;---------------------------------------------------------------
> ;; Backend servers
> ;;
> ;; Place each server in its own [section]
>
> [myubuntu]
> ;; The main Debian archive
> ;; You can override the default timeout like this:
> ;timeout = 30
>
> ;; Rsync server used to rsync the Packages file (NOT YET IMPLEMENTED)
> ;;rsyncpackages = rsync://ftp.de.debian.org/debian
>
> ;; Backend servers, in order of preference
> backends =
> http://fr.archive.ubuntu.com/ubuntu
> http://security.ubuntu.com/ubuntu
> http://archive.ubuntu.com/ubuntu
>
> [marillat]
> backends =
> ftp://ftp.nerim.net/debian-marillat
>
> ---------------------------------------------
>
> So much for the server side. (/etc/init.d/apt-proxy start)
>
> On the client side, I have this in each /etc/apt/sources.list:
>
> deb http://192.168.1.1:9999/myubuntu breezy main restricted universe
> multiverse
> deb http://192.168.1.1:9999/myubuntu breezy-security main restricted
> universe multiverse
> deb http://192.168.1.1:9999/myubuntu breezy-updates main restricted
> universe multiverse
>
> deb http://192.168.1.1:9999/marillat sarge main
>
>
>
> 192.168.1.1 being the gateway / proxy IP, of course. change that to your
> needs, as well as the mirror urls (mine is France).
>
> ...
>
> apt-get install apt-proxy
> man apt-proxy
>
> Works like a charm, and took me 5 minutes to setup.
>
> Cheers,
>
> Niki Kovacs
>
>
>
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>
More information about the ubuntu-users
mailing list