wiki.allensmith.net

Personal "Rough Notes & Useful Links

User Tools

Site Tools


data:kb:linux:squiddebproxylts14lvm

14.04LTS Linux: Install Squid Deb Proxy

Install or Reinstall Squid-Deb-Proxy (server)

Create and Configure the LVM Volume

If the Linux OS was installed with /var on its own LVM Volume:

Terminal Commands ← to put the Squid Deb Proxy data on it's own LVM volume

  • create & configure squid-deb-proxy Logical Volume and Directories from the root command shell
    $ sudo -i
First Time (only) … creation of squid-deb-proxy data volume:
# lvcreate -L 50G -n debproxy lts14
# mkfs -t ext4 /dev/mapper/lts14-debproxy
  • Install what is needed to use the squid-deb-proxy Logical Volume
    # 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

  • again, create & configure squid-deb-proxy Directories from the root command shell
    $ sudo -i
First Time (only) … creation of squid-deb-proxy data directories:
# mkdir /mnt/squid-deb-proxy/log
# mkdir /mnt/squid-deb-proxy/cache
  • Finish configuring the LVM volume for the squid-deb-proxy install
    # 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

Install and Configure Squid-Deb-Proxy Server

$ 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
10-default
# /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

Install Squid-Deb-Proxy (client)

  • install the client package to enable this system using the squid-deb-proxy server
    $ sudo apt-get install squid-deb-proxy-client

RESTART SYSTEM

Workstation Install Squid-Deb-Proxy Client

Linux Mint uses .deb files to install packages and updates. So for any location that uses multiple Linux computers, downloading these .deb files once, then storing them locally on the network, can make a tremendous difference to how fast installing programs or doing updates happens. (Only the 1st computer has to waaait for the needed .deb files to download from the Internet.)
  • enable using a squid-deb-proxy server – if there is one on the local network
    $ sudo apt-get install squid-deb-proxy-client

    … Make certain “-client” is at the end of the above command! (Don't install a 2nd .deb server!)

Home Install Squid-Deb-Proxy Client

Linux Mint uses .deb files to install packages and updates. So for any location that uses multiple Linux computers, downloading these .deb files once, then storing them locally on the network, can make a tremendous difference to how fast installing programs or doing updates happens. (Must wait for a file to downoad only the 1st time it is needed.)

Note: Using a .deb proxy can make downloading the needed files amazingly quick – but then the installing part will happen at the same (slow) rate – with or without a .deb proxy.
  • enable using a squid-deb-proxy server – if there is one available on the local network
    → From the Terminal (“Menu” icon » Xfce Terminal) run (copy & paste) the following command:
    sudo apt-get install squid-deb-proxy-client

    … Make certain “-client” is at the end of the above command! (Don't install a 2nd .deb proxy server!)

data/kb/linux/squiddebproxylts14lvm.txt · Last modified: 2016/01/13 20:49 (external edit)