[Tech] [Discussion] Intro / notes on the new Ascend setup

Steven Z qwarlock at qwarlock.com
Tue May 26 19:06:25 PDT 2015


If you just want to get what you have allowiing bigger files to be cached
then can I get you to check your current squid-conf against this one? The
section on allowing cached filess up to 4G is most interesting. I am very
curious if there is a match in there.

#!/bin/bash
#
# Installs Squid proxy / cache and points Apt to it.
# Cached packages are located at: /var/spool/squid

# Install Squid
apt-get install -y squid

# Change this to the subnet your box runs on
echo "acl localnet src 10.0.0.0/16" >> /etc/squid/squid.conf

# Cache files up to 4GB
echo "maximum_object_size 4000 MB" >> /etc/squid/squid.conf

# Allow a total cache size of 10GB
echo "cache_dir ufs /var/spool/squid 10000 16 256" >> /etc/squid/squid.conf

service squid restart

# Point apt to Squid cache
echo "Acquire { Retries \"0\"; HTTP { Proxy \"http://localhost:3128\"; }; };" >> /etc/apt/apt.conf  


from
steveZ





On Tue, May 26, 2015 at 06:55:31PM -0700, Elizabeth K. Joseph wrote:
> On Tue, May 26, 2015 at 6:47 PM, Steven Z <qwarlock at qwarlock.com> wrote:
> > There is one other tool that is interesting.  squid-deb-proxy looks interesting
> > and has a minimal setup.  Chef and Ruppet have a little setup over head.  There
> > is one other project that has very little setup and looks easy to use.  it also
> > has a web front end.  It is called Apt-Cacher NG.  I will read up a  little  on
> > which is easiest on the user.  I think both look pretty easy  on  the  ultimate
> > user.
> 
> I did an evaluation of these tools a few years back, I wish I had kept
> my notes. The one thing I did learn in general was that many of them
> had you change your /etc/apt/sources.list on each desktop on the
> network to point to the proxy server, so it wasn't a transparent proxy
> (squid is transparent). I've always sought to avoid using these
> non-transparent proxies in case the proxy server went away/was down
> for whatever reason, leaving the desktops without a way to update
> until the /etc/apt/sources.list was changed back to point at the
> Ubuntu repositories directly.
> 
> Just something to keep in mind during your evaluation, thanks for your
> work on this! :)
> 
> -- 
> Elizabeth Krumbach Joseph || Lyz || pleia2
> http://www.partimus.org



More information about the Tech mailing list