Dec
1
Faster Internet With an Old Laptop – Revisited
December 1, 2009 | By: UbuntuLinuxHelp | 1 Comment
Posted in Linux Projects - Hands On
- Build a Web Developer PC and Enable Most Media Playback Using Ubuntu Linux
- Installing Compass on Ubuntu
- Installing a Web Server on Your Old Laptop
- Building a Web Developer / Designer PC Using Ubuntu Linux – Revisited
- Faster Internet With an Old Laptop – Ubuntu and Squid
- Faster Internet With an Old Laptop – Revisited
One of my earlier posts, Faster Internet With an Old Laptop – Ubuntu and Squid, discussed how to install Squid and Webmin on an old laptop. The premise being that having a proxy server on the network helped speed up web browsing (because of the caching capabilities), reduced external bandwidth usage, etc.
In that post, I was careful to install Squid3 first, so that Webmin would use it (in the management interface) instead of the older Squid 2.x; and that the installation would be smoother. One thing I noticed was that webmin was using an older version of squid:
"...I noticed that webmin (for some strange reason) thought squid 2.6 was installed..."
One of our readers (atass) provided a useful comment in that post:
"The reason is that you have also installed squid3 AND 2.6. 2.6 was installed via webmin because it is not configured by default to find squid3
I think you should correct this procedure so that you correctly configure webmin to use squid3 by going to module configuration and changing to squid3 paths. Avoid installing Squid via webmin cause it will install Squid 2.6 regardless if you have squid 3 installed"
So this needed fixing, here are the settings (below) I changed to get Squid3 going. Above all, remember to back up data or settings before changing anything.
Log into your webmin interface and select "Squid Proxy Server" from the left side navigation menu.
At the top select "Module Config".
Change the following values:
Full path to squid config file: /etc/squid3/squid.conf
Squid executable: squid3
Full path to squid cache directory: /var/spool/squid3
Full path to squid log directory: /var/log/squid3
Now remember to stop squid and start squid3, via ssh (substituting for your IP address instead of mine):
ssh root@192.168.1.200
sudo /etc/init.d/squid3 restart
sudo /etc/init.d/squid stop
Now try surfing with your web browser configured to use the Squid3 proxy. If you get an error message (like I did):
--------------------------------------------------------------------------
The requested URL could not be retrieved
While trying to retrieve the URL: http://ubuntulinuxhelp.com/
The following error was encountered:
* Access Denied. Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.
Your cache administrator is xxxx@xxxx.com.
Generated Tue, 01 Dec 2009 17:44:31 GMT by squidbox (squid/3.0.STABLE1)
--------------------------------------------------------------------------
Double check your Access Control in the "Squid Proxy Server", Select the padlock icon that says "Access Control".
Mirror the original settings you had in the Access Control for the older version of Squid. Then select the "Proxy Restrictions" tab, and again mirror the settings.
Then I restarted Squid3
sudo /etc/init.d/squid3 restart
And tried to surf the web... and everything works!
Big thanks to the reader that pointed out the issue. That's appreciated! :)
Related posts:
- Faster Internet With an Old Laptop – Ubuntu and Squid
- Installing a Web Server on Your Old Laptop
- Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI – Installation of OpenSSH.
- Ubuntu Linux Plug ‘N Play Zone Revisited
- Building a Web Developer / Designer PC Using Ubuntu Linux – Revisited

(1 votes, average: 4.00 out of 5)
[...] Faster Internet With an Old Laptop – Revisited [...]