Installation of squid practical session - PowerPoint PPT Presentation

1 / 13
About This Presentation
Title:

Installation of squid practical session

Description:

usr/local and /home are shared (NFS) Domain: hpcc.sztaki.hu ... usr/local/workshop/squid-2.3.STABLE1-src.tar.gz. 2. unpack the package. tar or gunzip tar ... – PowerPoint PPT presentation

Number of Views:48
Avg rating:3.0/5.0
Slides: 14
Provided by: tams5
Category:

less

Transcript and Presenter's Notes

Title: Installation of squid practical session


1
Installation of squid- practical session -
Tamás Máray ltmaray_at_fsz.bme.hugt 2nd DESIRE II Web
Cache Managers Workshop 2-3 March 2000, Budapest,
HUNGARY
2
The lab
  • Dual Pentium 350 PCs
  • 9 GB HDD, 128M RAM, FastEthernet interface
  • Cisco 2948 switch
  • Linux (RedHat 6.1)
  • gcc, perl, make, etc.
  • ssh, lynx, netscape, etc.
  • /usr/local and /home are shared (NFS)
  • Domain hpcc.sztaki.hu
  • Hostnames n1 ... n28 (workstations)
  • n0 is the file server and "firewall"

3
Connecting your laptop(only if you cant live
without it!)
  • There are no free UTP connectors
  • Laptops can be attached to the network in place
    of PC-s
  • Use the IP address of the detached PC
  • Default GW 193.224.187.129
  • DNS server 193.225.86.1
  • Subnet mask 255.255.255.192
  • Your domain name is any of nX.hpcc.sztaki.hu
  • where X is 1..28

4
What is squid?
  • squid is an Internet object cache software
  • it runs on UNIX
  • it is free
  • it is versatile, well configurable
  • it can be used for building cache systems
  • meshes, hierarchies
  • it performs well on cheap hardware
  • it is very popular and it has good references
  • JANET, SURFNET, DFN, SWITCH, and more

5
The linux accounts
  • Student accounts have been created
  • Yellow pages is used
  • use yppasswd when changing password
  • login names stud01 - stud24
  • Initial passwords login name x eg. stud01x
  • Distribution of accounts
  • Use studN where N is the number of the PC you sit
    at first time (in two digits, ie. 01-24)

6
Installation of squid
  • Steps
  • 1. download the source to your HOME/squid
    directory
  • You can find it here
  • /usr/local/workshop/squid-2.3.STABLE1-src.tar.gz
  • 2. unpack the package
  • tar or gunziptar
  • 3. cd to squid-2.3.STABLE1
  • 4. look around, read README, INSTALL at least

7
Installation of squid (cont.)
  • 5. compile the source
  • - configure
  • ./configure --prefixHOME/squidrun
  • - make all
  • - make install
  • 6. cd HOME/squidrun
  • 7. look around, look into the directories,
    identify the components
  • 8. cd HOME/squidrun/etc

8
Installation of squid (cont.)
  • 9. edit squid.conf
  • - This is the only configuration file of squid
  • - First we want a single, independent cache
  • no parents, no siblings, no specialities
  • - You must edit at least the following variables
  • cache_mgr
  • http_access
  • visible_hostname
  • - Review the other variables
  • It takes time, the squid.conf file is long!

9
Running squid
  • 1. First, you must initialize the cache swap
    space
  • HOME/squidrun/bin/squid -z
  • creating hundreds of dirs may take a while...
  • 2. Start your cache
  • HOME/squidrun/bin/squid
  • 3. Check your squid processes (2) with ps
  • 4. Check your cache logfile in
  • HOME/squidrun/logs/cache.log

10
Using squid
  • Configure netscape (or lynx) to use your cache
  • port no. 3128
  • Generate some traffic, surf the web
  • Watch the logfiles
  • HOME/squidrun/logs/.log
  • Play with the configuration, change squid.conf
  • Restart your cache
  • send HUP signal to your squid
  • (HOME/squidrun/logs/squid.pid

11
Using squid
  • Check and use the WWW cache manager interface
  • Don't forget to set the access rights in
    squid.conf
  • Try to use other caches
  • Follow the instructions, try to build and
    participate in a cache mesh, having parent and
    sibling caches
  • Play with your cache toy!

12
A possible cache hierarchy
cache.sztaki.hu
parent
n1
n2
n3
siblings
13
References
  • http//www.squid-cache.org/
  • http//www.squid-cache.org/Doc
  • http//www.squid-cache.org/Doc/FAQ
  • HAVE A NICE TIME
  • AND GOOD LUNCH
Write a Comment
User Comments (0)
About PowerShow.com