This is how I install a Squid-Deb-Proxy Server on an Ubuntu 14.04 LTS based Workstation, using a separate LVM Volume. That by using a separate data Volume for the .deb file cache and log files, I am able to retain the already downloaded .deb proxy files when it becomes necessary to reload my Workstation.
At my Home Office, my Web Development Workstation is the the one “Production” system that I constantly depend upon . So it had better be the most infrequently reloaded system I have. That– together with how having a local Squid-Deb-Proxy server really makes a noticeable difference when working with Linux systems– is why I installed this on my Workstation PC. This includes that VirtualBox and any Linux Containers can easily make use of the squid-deb-proxy server– when they are running on the same system.
lts14
as the LVM Volume Group, with the following Volumes:/
← the file system root directory/home
← the user home directorieslts14
has the necessary free or unused space to do that.
/var
on its own LVM Volume:Terminal Commands ← to put the Squid Deb Proxy data on it's own LVM volume
$ sudo -i
# lvcreate -L 50G -n debproxy lts14 # mkfs -t ext4 /dev/mapper/lts14-debproxy
# mkdir /mnt/squid-deb-proxy # chown proxy:proxy /mnt/squid-deb-proxy # nano /etc/fstab # add the following line to this file
/dev/mapper/lts14-debproxy /mnt/squid-deb-proxy ext4 defaults 0 2
# exit
RESTART SYSTEM
$ sudo -i
# mkdir /mnt/squid-deb-proxy/log # mkdir /mnt/squid-deb-proxy/cache
# ln -s /mnt/squid-deb-proxy/log /var/log/squid-deb-proxy # ln -s /mnt/squid-deb-proxy/cache /var/cache/squid-deb-proxy # exit
$ sudo apt-get install squid-deb-proxy $ cd /etc/squid-deb-proxy/mirror-dstdomain.acl.d $ sudo mv 10-default 10-default.old $ sudo nano 10-default # copy & paste the following into this empty file
# /etc/squid-deb-proxy/mirror-dstdomain.acl.d/10-default # # network destinations that are allowed by this cache # linux distro archives .linuxmint.com uberstudent.net archive.ubuntustudio.org repo.linuxliteos.com packages.medibuntu.org # Medibuntu repository no longer exits ... permit Internet DNS error # launchpad personal package archives ppa.launchpad.net # system & development package archives .mate-desktop.org download.bitdefender.com download.virtualbox.org dlc-cdn.sun.com download.opensuse.org nginx.org dl.hhvm.com # additional mirror domains mega.nz mega.co.nz linux.dropbox.com deb.torproject.org dl.google.com deb.opera.com repo.steampowered.com archive.getdeb.net mirrors.dotsrc.org