[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Installing Debian from NFS



On Fri, Feb 04, 2011 at 10:19:06PM -0500, RR wrote:
> On Fri, Feb 4, 2011 at 4:58 PM, Freeman <hewho7@gmail.com> wrote:
> 
> > This may not help. I made on on-disk version for debs I build or scarf.
> > There are examples for creating package files and of a release file.
> >
> > http://www.debian.org/doc/manuals/repository-howto/repository-howto
> >
> > Of course apt-cacher-ng will do the same.
> >
> > P.S. Protocol here is to trim the quote and respond below.
> >
> 
> Thanks Freeman. yes, I discovered that just having the Release and
> Packages.gz etc. files in a directory isn't good enough to use. However, I'm
> not sure how this works when you use a DVD in the drive and have the
> packages install from it. Anyway, I found this script 'anonftpsync' that
> helps build one a local mirror. It's been going on for almost 20 hrs and
> it's downloaded 28GB so far after I used a LOT of EXCLUDEs but oh well. Was
> a Bad move in a way since Squeeze is going to be out soon and then I'll have
> to build a mirror for that as well. I'm probably stupid or impatient but I
> didn't understand the concept of apt-cacher-ng from a brief glimpse. It's a
> HTTP proxy to a local mirror or some other mirror or does it make an NFS
> partition accessible via HTTP? Since it uses the word "cache" in it, I'm
> assuming, it caches the packages so everytime you need something you get it
> locally than reaching out to the Internet mirror?
> 

It is a local mirror by http proxy--on port 3142 by default. It serves any
client that has an /etc/apt/apt.conf.d/02proxy like this:

Acquire::http { Proxy "http://server_name.network_name:3142";; };

OR, any client that has the proxy included in its sources lines:

deb http://server_name.network_name:3142/security.debian.org/ stable/updates
main contrib non-free

It downloads the latest version of a deb from a source once, recreates the
entire repository within its own directory if it hasn't already for a
previous deb from the same source, then servers any subsequent requests from
there.

I'm not a sys admin but I think sys admin is its purpose. You could serve
net installs on your 600 other machines.

The install is painless. 

Getting running host side requires 0 - 1 configs:

in /etc/apt-cacher-ng/acng.conf, edit the first line to identify the
directory to use for a mirror if you will not use the default of
/var/cache/apt-cacher-ng.  

Mine is under /srv/cache/apt-cacher-ng with about 4G.

I think I had to run

 # apt-cacher-ng -c /etc/apt-cacher-ng

to configure it to where I could get to the cool command and info html page,
http://europa.office:3142/acng-report.html . But maybe not.

You might want to comment out the URL remaping lines starting at 28 of acng.conf
until you have read up on it. Either way it will work fine. So too with all
else.

Just don't interfere with how it sets up owners, groups and permissions.

It is lean and fast, like it says.

-- 
Regards,
Freeman

"Microsoft is not the answer. Microsoft is the question. NO (or Linux) is the
answer." --Somebody


Reply to: