You can easily install Squid as usual from the Ubuntu software repositories, where it is called
squid3. After Squid is installed, it is automatically enabled for each boot. You can check this by running
ps aux |
grep squid when the machine boots. If you see nothing there, run
sudo start squid.