Speed up Internet Browser Using Squid On Ubuntu


We often complain about the slow internet connections, .Although we like in the browser settings more quickly, for example, for a firefox "about:config "but the connection still running slowly ....!!!

What are we do not get ubuntu slowly time browsing ..??? after I googling in the google search, I found article but I forgot that...!! to the point: to speed up web browsing connection on ubuntu, this time using squid, its is useful to store the cache on the website that the visit by us, now we take live update it from the server, no need load-script web script,
Step installation and configuration squid.

1. Install Squid

Sources.list sure I have a ...??? just using Terminal

$ apt-get install squid

2. Create log files and cache directory


$ mkdir/usr/local/squid
$ mkdir /usr/local/squid/cache
$ touch /usr/local/squid/cache.log
$ touch /usr/local/squid/access.log
$ sudo adduser squid
$ chown-squid.squid rf/usr/local/squid

3. Configuring Squid


$ sudo chown squid.squid/var/spool/squid-RF
$ sudo chown squid.squid-rf/etc/squid
$ sudo-u squid mv /etc/squid/squid.conf/etc/squid/squid.conf.original
$ sudo-u squid touch /etc/squid/squid.conf
$ sudo-u squid cat /etc/squid/ squid.conf.original | sed '/ * # / d; / ^ * $ / d'> /etc/squid/squid.conf

One of the items you need to customize the squid's config file is a variable that contains the log files and cache direktory refers to the so we have prepared previously.

UFS cache_dir /usr/local/squid/cache 1024 16 256
access_log /usr/local/squid/access.log
cache_log /usr/local/squid/cache.log
cache_store_log none


UFS cache_dir /usr/local/squid/cache 1024 16 256
access_log /usr/local/squid/access.log
cache_log /usr/local/squid/cache.log
cache_store_log none

Then, create a squid as a cache server

http_port 3128 transparent
cache_mem 1024 MB
cache_swap_low 94
cache_swap_high 96
maximum_object_size 16384 KB
minimum_object_size 4 KB
maximum_object_size_in_memory 2048 KB
fqdncache_size 1024
cache_replacement_policy heap GDSF
memory_replacement_policy heap GDSF

visible_hostname localhost
cache_mgr admin @ localhost
cache_effective_user squid
cache_effective_group squid

4. Create cache directory structure.

Run squid with the command below


$ sudo-u squid squid-z

5. Test squid


$ squid-d 1-D

What error, just running


$ squid-k reconfigure

To recovery I changed the squid.conf

6. Running Squid


$ squid-SYD

After finish, setting your browser to use proxy on localhost port 3128
Happy Testing.....!!!

3 comments:

  1. I am actually grateful to the holder of this web page who has shared this fantastic piece of writing at at this place.



    My blog post: cccam server zip

    ReplyDelete
  2. Hey there, You have done a great job. I'll certainly digg it and personally suggest to my friends. I'm confident they will be benefited from this
    website.

    Feel free to visit my page Hd Cccam server

    ReplyDelete
  3. Hi everyone, it's my first pay a visit at this web page, and piece of writing is really fruitful designed for me, keep up posting such articles.

    Check out my page: sat receiver

    ReplyDelete

Please Comment...!!