INSTALL 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. Polipo installation instructions
  2. ================================
  3. 1. Building and running polipo
  4. ------------------------------
  5. $ make all
  6. $ su -c 'make install'
  7. $ man polipo
  8. $ polipo &
  9. If you want Polipo to put itself into the background, you may replace
  10. the last line with:
  11. $ polipo daemonise=true logFile="/var/log/polipo.log"
  12. On SVR4 systems (Solaris, HP/UX), you will need to use one of the
  13. following (whichever works):
  14. $ make PLATFORM_DEFINES=-DSVR4 all
  15. $ make PLATFORM_DEFINES=-DSVR4 LDLIBS='-lsocket -lnsl -lresolv' all
  16. You can also use Polipo without installing:
  17. $ make
  18. $ nroff -man polipo.man | more
  19. $ ./polipo &
  20. For information about building on Windows, please see the file README.Windows.
  21. 2. Configuring your user-agent
  22. ------------------------------
  23. Once polipo is running, configure your user-agent (web browser) to use
  24. the proxy on `http://localhost:8123/'. Depending on the user-agent,
  25. this is done either by setting the environment variable http_proxy,
  26. e.g.
  27. $ http_proxy=http://localhost:8123; export http_proxy
  28. or by using the browser's ``preferences'' menu.
  29. 3. Configuring polipo
  30. ---------------------
  31. If you want to use an on-disk cache, you will need to create its root
  32. directory:
  33. $ mkdir /var/cache/polipo/
  34. You should then arrange for cron to run the following on a regular
  35. basis:
  36. killall -USR1 polipo
  37. sleep 1
  38. polipo -x
  39. killall -USR2 polipo
  40. If you want to use a configuration file, you should put it in one of
  41. the locations `/etc/polipo/config' or `~/.polipo'; you can also use
  42. the `-c' flag to put it in a non-standard location. See the file
  43. `config.sample' for an example.
  44. You might also want to create a forbidden URLs file, which you should
  45. put either in one of `/etc/polipo/forbidden' or `~/.polipo-forbidden';
  46. you can set the variable `forbiddenFile' in your config file if you
  47. want to put it in a non-standard location. See `forbidden.sample' for
  48. an example.
  49. Juliusz Chroboczek
  50. <jch@pps.univ-paris-diderot.fr>