Installing the Squid HTTP Proxy
Before we can set up an HTTP Proxy on our Linux Server, we need to install the Squid software using the following command:
sudo apt-get install squid squid-common
The output will be something like the following:
$ sudo apt-get install squid squid-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
squidclient squid-cgi logcheck-database resolvconf
The following NEW packages will be installed:
squid squid-common squid-langpack
0 upgraded, 3 newly installed, 0 to remove and 102 not upgraded.
Need to get 1,397kB of archives.
After this operation, 8,442kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://gb.archive.ubuntu.com/ubuntu/ maverick/main squid-langpack all 20100527-1 [224kB]
Get:2 http://gb.archive.ubuntu.com/ubuntu/ maverick/main squid-common all 2.7.STABLE9-2ubuntu5 [355kB]
Get:3 http://gb.archive.ubuntu.com/ubuntu/ maverick/main squid amd64 2.7.STABLE9-2ubuntu5 [818kB]
Fetched 1,397kB in 2s (540kB/s)
Preconfiguring packages ...
Selecting previously deselected package squid-langpack.
(Reading database ... 44549 files and directories currently installed.)
Unpacking squid-langpack (from .../squid-langpack_20100527-1_all.deb) ...
Selecting previously deselected package squid-common.
Unpacking squid-common (from .../squid-common_2.7.STABLE9-2ubuntu5_all.deb) ...
Selecting previously deselected package squid.
Unpacking squid (from .../squid_2.7.STABLE9-2ubuntu5_amd64.deb) ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for ufw ...
Processing triggers for man-db ...
Setting up squid-langpack (20100527-1) ...
Setting up squid-common (2.7.STABLE9-2ubuntu5) ...
Setting up squid (2.7.STABLE9-2ubuntu5) ...
Creating squid spool directory structure
2011/02/21 17:21:14| Creating Swap Directories
Adding user proxy to group winbindd_priv
squid start/running, process 2869
squid start/running, process 2882
Note: if this fails, try again after running sudo apt-get update