Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.6: Run Privoxy 3.0.16 on Snow Leopard Internet
Snow Leopard only hintI really like browsing without all the flashy ads around, so I've been using the filtering-proxy Privoxy now for many years. But there is no longer support for Mac OS X, as there isn't a maintainer for the Mac OS X port any more. MacPorts still has 3.0.12, which has some major bugs (timeouts), so I decided to build from source. Here's how to get it run...

First, get the source for Privoxy 3.0.16 from SourceForge (1.7MB direct download). Unpack the download somewhere, and make sure you have Xcode installed somewhere.

Open Terminal and change to the directory where you expanded Privoxy: cd ~/Downloads/privoxy-3.0.16-stable (or wherever you put it). You can drag the folder to the Terminal to complete the path, if you wish.

Next, build the app with these commands:
$ autoheader
$ autoconf
$ ./configure
$ sudo make install
If you had Privoxy installed before, you should already have the user privoxy, otherwise you need to create it:
$ /usr/bin/dscl /Local/Default -create /Groups/_privoxy
$ /usr/bin/dscl /Local/Default -append /Groups/_privoxy RecordName privoxy
$ /usr/bin/dscl /Local/Default -create /Groups/_privoxy Password *
$ /usr/bin/dscl /Local/Default -create /Groups/_privoxy PrimaryGroupID 601
$ /usr/bin/dscl /Local/Default -create /Groups/_privoxy RealName "privoxy users"

$ /usr/bin/dscl /Local/Default -create /Users/_privoxy
$ /usr/bin/dscl /Local/Default -append /Users/_privoxy RecordName privoxy
$ /usr/bin/dscl /Local/Default -create /Users/_privoxy NFSHomeDirectory /var/empty
$ /usr/bin/dscl /Local/Default -create /Users/_privoxy Password *
$ /usr/bin/dscl /Local/Default -create /Users/_privoxy PrimaryGroupID 601
$ /usr/bin/dscl /Local/Default -create /Users/_privoxy RealName "privoxy server"
$ /usr/bin/dscl /Local/Default -create /Users/_privoxy UniqueID 601
$ /usr/bin/dscl /Local/Default -create /Users/_privoxy UserShell /usr/bin/false
You could start privoxy by hand now, but it's easier to let launchd do the job. Create a textfile called org.privoxy.plist in /Library/LaunchDaemons, with these contents:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Label</key>
	<string>org.privoxy.launchd.privoxy</string>
	<key>ProgramArguments</key>
	<array>
		<string>/usr/local/sbin/privoxy</string>
		<string>--user</string>
		<string>privoxy</string>
		<string>--pidfile</string>
		<string>/var/run/privoxy.pid</string>
		<string>/usr/local/etc/privoxy/config</string>
	</array>
	<key>RunAtLoad</key>
	<true/>
</dict>
</plist>
Change owner of the file in Terminal:
$ sudo chown root:wheel /Library/LaunchDaemons/org.privoxy.plist
Then start the app using launchctl:
$ sudo launchctl load /Library/LaunchDaemons/org.privoxy.plist
I use Firefox with privoxy, so tell Firefox to use a local proxy in the network setting, port 8118, and test if privoxy is running by opening the Privoxy status page. You should see the status page of your proxy now.

[robg adds: I haven't tested this one.]
    •    
  • Currently 2.91 / 5
  You rated: 4 / 5 (23 votes cast)
 
[25,179 views]  

10.6: Run Privoxy 3.0.16 on Snow Leopard | 26 comments | Create New Account
Click here to return to the '10.6: Run Privoxy 3.0.16 on Snow Leopard' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Alternative to Privoxy: GlimmerBlocker
Authored by: simondorfman on Mar 03, '10 07:50:14AM
GlimmerBlocker can block ads too and is easier to install. Not sure if it can do everything else that Privoxy can...
Edited on Mar 03, '10 07:50:41AM by simondorfman


[ Reply to This | # ]
Alternative to Privoxy: GlimmerBlocker
Authored by: auco on Mar 03, '10 10:56:28AM

AdBlock proxies are nice as long as you can configure single applications to use the proxy.
However, everyone should be aware of the fact, that a general proxy setup (in network prefs; eg to use it with Safari), will render Firewalls like Little Snitch useless!



[ Reply to This | # ]
Alternative to Privoxy: GlimmerBlocker
Authored by: solitario on Mar 03, '10 12:03:26PM

That's not an issue with privoxy or whatever general proxy you use, but an issue with the firewall it should be able to filter connections to the proxy as well, even if it is on the same host.



[ Reply to This | # ]
Alternative to Privoxy: GlimmerBlocker
Authored by: etresoft on Mar 03, '10 12:42:56PM

Not, it won't. Little Snitch works just fine GlimmerBlocker. It is true that Little Snitch no longer knows who is accessing the internet as all requests come from GlimmerBlocker. But why does it matter who is trying to connect to the ad servers? Block 'em all.



[ Reply to This | # ]
10.6: Run Privoxy 3.0.16 on Snow Leopard
Authored by: etresoft on Mar 03, '10 08:30:17AM

I second the GlimmerBlocker suggestion. Privoxy has zero support for the Macintosh. They used to have an old, obsolete installer but eventually removed it. GlimmerBlocker is Mac-only and has a very easy-to-use Preference Pane.



[ Reply to This | # ]
10.6: Run Privoxy 3.0.16 on Snow Leopard
Authored by: mzimmer on Mar 03, '10 10:07:59AM

What's with this?

Installing privoxy executable to /usr/local/sbin
/usr/bin/install -c -m 0755 privoxy /usr/local/sbin
install: privoxy: No such file or directory
make: *** [install] Error 71



[ Reply to This | # ]
10.6: Run Privoxy 3.0.16 on Snow Leopard
Authored by: mzimmer on Mar 03, '10 07:22:19PM

Macports will install the 3.0.16 version of privoxy as of this evening!



[ Reply to This | # ]
10.6: Run Privoxy 3.0.16 on Snow Leopard
Authored by: Zeitkind on Mar 07, '10 12:13:02AM

About 1 week ago, it only had 3.0.12 to offer, so well, seems they updated it now.
MacPorts use "their own" way to install it in /opt, keep that in mind if you look for the configs.

I tried others like GlimmerBlocker too, but I missed some stuff I was really used to, so privoxy is still my favorit proxy around. And "GlimmerBlocker is Mac-only" is not a good argument, I prefer platform independent stuff. Another thing: Tor & Privoxy is a good and often used combination to bypass interent censorship.



[ Reply to This | # ]
Glimmerblocker and ClickToFlash
Authored by: jeffde on Mar 04, '10 01:17:01AM

I second the glimmerblocker idea; best software I've installed in three years. That and ClickToFlash have completely revolutionized my browsing experience. Couldn't live without them today if I wanted to (make sure you click adds anyway, gotta support those you love (*command-clicks GoToAsisst express ad on macosxhints page)).



[ Reply to This | # ]
10.6: Run Privoxy 3.0.16 on Snow Leopard
Authored by: Jonsi on Mar 04, '10 02:05:47PM

I use "userContent.css" style sheet (can't remember where I got it) together with "ClickToFlash" -> no ads



[ Reply to This | # ]
10.6: Run Privoxy 3.0.16 on Snow Leopard
Authored by: kankei71 on Mar 07, '10 01:10:04AM

Glad to find this how-to. Unfortunately both my attempts to install Privoxy 3.0.16 failed. Installation with MacPorts failed and installation following this how-to gave me this:

[...]
Creating directories, and preparing Privoxy 3.0.16 stable installation
Installing privoxy executable to /usr/local/sbin
install: privoxy: No such file or directory
make: *** [install] Error 71
mbp:privoxy-3.0.16-stable xxxxxxx$

Why is that?

For info, I'm running Privoxy 3.0.10 on Snow Leopard, installed with the .dmg Mac instaler.



[ Reply to This | # ]
10.6: Run Privoxy 3.0.16 on Snow Leopard
Authored by: Zeitkind on Mar 18, '10 04:57:05PM

The path /usr/local/sbin and simular under /usr/local are common on other *nixes - but not on OS X. I guess the folder(s) are missing.



[ Reply to This | # ]
10.6: Run Privoxy 3.0.16 on Snow Leopard
Authored by: shemp9999 on Mar 19, '10 12:55:32AM
Actaully, the hint is missing the 'make' command which makes the privoxy binary.

The build steps should be:

$ autoheader
$ autoconf
$ ./configure
$ make
$ sudo make install

In an abundance of caution, I used a bit more in the final 'make install' command as well (found at macupdate):

$ sudo make -s install USER=privoxy GROUP=privoxy

Also, the dscl commands need to be run as root.

Now I have privoxy running! hopefully no more ads with audio will wake my girlfriend.

[ Reply to This | # ]

10.6: Run Privoxy 3.0.16 on Snow Leopard
Authored by: kankei71 on Mar 19, '10 05:27:38AM

Finally I found a way to install Privoxy 3.0.16 through MacPorts.
Installed and working fine.



[ Reply to This | # ]
10.6: Run Privoxy 3.0.16 on Snow Leopard
Authored by: Zeitkind on Jan 10, '11 05:02:44AM
Works with 3.0.17
in _short_: (READ the original hint!)
user@mac:/ # sudo bash
(password)
root@mac:/ # cd /Users/username/Downloads/privoxy-3.0.17-stable 
root@mac:~/Downloads/privoxy-3.0.17-stable # autoheader
root@mac:~/Downloads/privoxy-3.0.17-stable # autoconf
root@mac:~/Downloads/privoxy-3.0.17-stable # ./configure

## As already noted, the make command was missing in hint:
root@mac:~/Downloads/privoxy-3.0.17-stable # make

## Kill the prob. running version or install will fail!
root@mac:~/Downloads/privoxy-3.0.17-stable # killall privoxy

root@mac:~/Downloads/privoxy-3.0.17-stable # make install
root@mac:~/Downloads/privoxy-3.0.17-stable # launchctl load /Library/LaunchDaemons/org.privoxy.plist
Comment: Done as root, you can use sudo if you like. Needs to have 3.0.16 be installed before (update!), otherwise create the plist and user as in original hint.

[ Reply to This | # ]
10.6: Run Privoxy 3.0.16 on Snow Leopard
Authored by: davedgd on Jul 13, '11 01:51:26PM

I've put the shell commands from this thread into a simple script that works with privoxy 3.0.17 on 10.7 Lion:

http://db.tt/D38ntt9



[ Reply to This | # ]
10.6: Run Privoxy 3.0.16 on Snow Leopard
Authored by: jimsander on Jul 22, '11 08:14:26PM

Any chance for some quick troubleshooting help on this?

Had everything installed and working under Snow Leopard. Upgraded to Lion and it all went away. Re-installed and everything works except the launchd control... but I can start manually via "/usr/local/sbin/privoxy /usr/local/etc/privoxy/config"

Before I start manually (and after actually) 'launchctl list' shows this...
"- 1 org.privoxy.launchd.privoxy"
No PID, so (surprise) it's not actually running.

Checked the console messages and not seeing anything.

Where should I look next?



[ Reply to This | # ]
10.6: Run Privoxy 3.0.16 on Snow Leopard
Authored by: kankei71 on Sep 02, '11 11:55:16PM

I have a similar problem with the launchctl command

I followed the instructions here to install Privoxy 3.0.17 on a macbookpro one year ago and all went fine. I am now trying to do exactly the same to install 3.0.17 on a new iMac. When trying to run the launchctl command, it doesn't work.

The last step of the hint doesn't work, Privoxy will not load. When entering "sudo launchctl load /Library/LaunchDaemons/org.privoxy.plist"


I got the following message:

*************************************************
launchctl: Dubious permissions on file (skipping): /Library/LaunchDaemons/org.privoxy.plist
nothing found to load
*************************************************

I still can start Privoxy manually using "/usr/local/sbin/privoxy /usr/local/etc/privoxy/config"

Is there a permission problem ?
Can anyone help ?

Thank you

(Running Mac os x 10.6.8)



[ Reply to This | # ]
10.6: Run Privoxy 3.0.16 on Snow Leopard
Authored by: Zeitkind on Dec 23, '11 10:20:39AM

Quite sure, check the permissions and make them the same as the other plists. If you simply copy the plists as a user, it will be owned by you and not by root etc.



[ Reply to This | # ]
10.6: Run Privoxy 3.0.16 on Snow Leopard
Authored by: kankei71 on Sep 03, '11 04:54:28AM

sudo chmod 644 <filename>

Then

sudo launchctl load /Library/LaunchDaemons/org.privoxy.plist

Problem fixed



[ Reply to This | # ]
10.6: Run Privoxy 3.0.16 on Snow Leopard
Authored by: Redback on Oct 27, '11 09:22:02PM

I have created a mac installer Privoxy for Snow Leopard and Leopard.
Privoxy 3.0.17
http://db.tt/r1a60ZIC



[ Reply to This | # ]
10.6: Run Privoxy 3.0.16 on Snow Leopard
Authored by: fredcy on Nov 22, '11 11:26:05AM

I had to add the "--no-daemon" command line option into the ProgramArguments section of the /Library/LaunchDaemons/org.privoxy.plist file. Otherwise launchctl would quietly fail to start the privoxy service.



[ Reply to This | # ]
10.6: Run Privoxy 3.0.16 on Snow Leopard
Authored by: andytothemax on Dec 02, '11 08:31:20AM
I've created a tutorial on how to set up Privoxy on Lion. It's also less complicated than this version, which I couldn't get to work. View the tutorial.

[ Reply to This | # ]
10.6: Run Privoxy 3.0.16 on Snow Leopard
Authored by: Zeitkind on Dec 24, '11 12:43:30PM

Beware! If you create the user with the GUI like that, the user privoxy has a shell - which might be a security risk. Be sure to remove the users shell with dscl. The better way is to create the user with appropriate settings with dscl.



[ Reply to This | # ]
OS X installer now available from the Privoxy team
Authored by: Ian Silvester on Feb 27, '12 01:20:42PM

Hi all,

Starting today the Privoxy team once again provide installers for Macintosh OS X. From now on, a new version of Privoxy's source code will be followed shortly afterwards by binaries for OS X. Download them here:

https://sourceforge.net/projects/ijbswa/files/Macintosh%20%28OS%20X%29/3.0.19%20%28stable%29/

Cheers,

Ian



[ Reply to This | # ]
OS X installer now available from the Privoxy team
Authored by: kyleharry on Feb 29, '12 02:52:05PM

Yeh, but it doesn't install anything worthwhile as the configuration Utility is missing.



[ Reply to This | # ]