redirect apt to local repository
Matt Price
matt.price at utoronto.ca
Thu Apr 14 02:55:38 UTC 2005
On Wed, Apr 13, 2005 at 07:35:31PM -0500, Carl Karsten wrote:
> Matt Price wrote:
> >fine. The computers in the network, though, will at some point be
> >removed from the network and taken into people's homes. So I would
> >like to LEAVE sources.list POINTING TO http://archive.ubuntu.com , and
> >somehow use the router to fool the ocmputers into thinking that they
> >are connecting to ubuntu when in fact they're accessing my local
> >repository.
> >
> >
> >sooo... how would one do this? first guess:
> >
> >in /etc/hosts on the router add a line like:
> >
> >127.0.0.1 archive.ubuntu.com
> >
> >in /etc/apache/httpd.conf:
> >
> ><VirtualHost 127.0.0.1>
> > ServerName archive.ubuntu.com
> > DocumentRoot /path/to/archive/mirror
> ></VirtualHost>
> >
> >does that sound about right? I guess maybe the individual machines
> >have to be set to use the router as a DNS server... which means
> >probably the bit about /etc/hosts is far too simplistic...
> >
> >anyway any ideas anyone has are vvvveeeeerrry welcome.
> >
>
> Well, here are some ideas...
>
> First, if you arn't connected to the Net, you can do whatever you want
> with a name server and gateway - they don't have to play right like they
> would if they were connected to the net - and even if they were, you can
> still play games, it just gets extra confusing.
>
> Anyway, I am guessing your "dhcp/web/DNS/whatever server" will be the
> one "big box" that sits at the front of the class and all the boxes are
> hooked to it - hub, whatever.
yeah, that's what I'm thinking. there's a 24-port ethernet hub
between this "hub" or "router" and the rest of the class but I guess
you alread knew that.
>
> The student boxes will do dhcp - you don't even need a gateway, but I
> think the installer gets cranky if dhcp doesn't supply one.
ok, I'll set up dhcp to do a gateway -- is that what you mean? I
haven't even looked into dhcp yet so I don't really know what I need
to do there...
>
> Your DNS server just has to serve up one name:
> archive.ubuntu.com 192.168.1.1 - so setup bind to do that (I'll leave
> that one for your, cuz I don't know how.) You might even want to config
> the boxes for a mirror: like us.archive.ubuntu.com - that can be
> 192.168.1.1 too. I know some DNS's that will return a single IP for any
> request.
>
Is it really this simple? that'd be great. I'll try to work it out.
bind looks a little wierd to figure out, anyone who wants to tell me
how to do it is welcome...
> That is all you need.
>
> heh - I didn't think it was going to be this easy.
>
> So.. lets make it fun: Skip burning a stack of CD's and do
> https://www.ubuntulinux.org/wiki/LocalNetInstall
>
> Of course that doesn't give the students the same experience.
>
hey, supercool! unfortunately (well, fortunately, actually!) they've
already installed warty. I want them to dist-upgrade to hoary to see
how it's done.
thanks,
matt
-------------------------------------------
Matt Price matt.price at utoronto.ca
History Department, University of Toronto
(416) 978-2094
--------------------------------------------
The following addresses are for you if you're an evil spambot:
zeus at derailleur.org aardvark at derailleur.org
More information about the ubuntu-users
mailing list