Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


centos7_privoxy

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
centos7_privoxy [2016/04/21 13:43] – [Sources] admincentos7_privoxy [2016/04/21 14:47] – [Sources] admin
Line 11: Line 11:
   * Download the latest [[http://www.privoxy.org/|source code]].   * Download the latest [[http://www.privoxy.org/|source code]].
   * Install development tools:<code>yum groupinstall development tools</code>   * Install development tools:<code>yum groupinstall development tools</code>
-  * Install required packages:<code>yum install zlib-devel w3m</code>+  * Install required packages:<code>yum install zlib-devel pcre-devel w3m</code>
   * Extract the archive:<code>tar zxvf privoxy-3.0.24-stable-src.tar.gz</code>   * Extract the archive:<code>tar zxvf privoxy-3.0.24-stable-src.tar.gz</code>
   * Create a privoxy user:<code>groupadd -g 1984 privoxy   * Create a privoxy user:<code>groupadd -g 1984 privoxy
Line 22: Line 22:
 make -s install  USER=privoxy GROUP=privoxy make -s install  USER=privoxy GROUP=privoxy
 </code> </code>
 +  * Privoxy only includes a SysV service, enable this service:<code>cp privoxy-generic.init /etc/init.d/privoxy
 +# Edit /etc/init.d/privoxy and change the paths to /opt/privoxy...
 +# PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/xpg4/bin:/usr/bin:/sbin:/bin:/opt/privoxy/sbin
 +# P_CONF_FILE=/opt/privoxy/etc/config
 +# P_PIDFILE=/opt/privoxy/var/run/privoxy.pid
 +
 +chkconfig --add privoxy
 +chkconfig privoxy on</code>
 +  * Start privoxy:<code>service privoxy start</code>
 +====Post configuration====
 +  * Change listen-address.
 +  * Open firewall port.
 +  * Check if Privoxy works: http://config.privoxy.org/ or http://p.p
centos7_privoxy.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1