terrencegf's Avatar
Posts: 221 | Thanked: 182 times | Joined on Jul 2007 @ Central Illinois
#1
This is my attempt at building privoxy 3.0.8 for the NIT. I compiled v.3.0.8 just for my own use, but then decided that others may want it as well. So here you go!

Caveats:

This is very quick-and-dirty packaging job. (I created the .deb 'by hand' using control files I found in the old 3.0.6 version.) I compiled the program in a chinook scratchbox (i.e. OS2008). I have tested it on chinook and diablo on my N800. I have no idea if it will run on any other machine or OS. I have no idea if it will crash your machine. As always, YMMV.

The binary is a straight compilation of the source tarball. However, I have customized the "/etc/privoxy/config" file to allow for enable-remote-toggle (so you can turn privoxy on/off via the web interface), enable-edit-actions (so you can edit the rules/filters via the web interface), and actionsfile neilvandyke.action (for a bunch of extra blocking rules). Feel free to edit the config file and undo any of these customizations.

The program seems to consume a lot of memory. I think that is a result of the many enhancements in v.3.0.8. You can slightly reduce memory usage by commenting out the "actionsfile neilvandyke.action" in the "/etc/privoxy/config" file. If this version of privoxy runs on a 770 (I have no idea if it will or not), you may be forced to disable the neilvandyke.action file due to high memory use.

Installation:

Okay, so with all that out of the way, if you STILL want to try it out, download the .deb file (attached) and install it. You can either enable Red Pill mode and install it with the Application Manager, or save the .deb to disk and install it via an xterm (shown here):
Code:
sudo gainroot
cd /home/user/MyDocs/.documents    (or wherever you saved the .deb)
dpkg -i privoxy_3.0.8-1_armel.deb
Configuration:

Once you have privoxy installed, you have to configure your internet connection to actually use it. Otherwise, it's just a program running in the background for no reason.

AFAICT, you have to set up each individual internet connection to use it. I don't know if there is a "global" method. So if you have a connection for your home wireless router and one for your work wireless router (my situation), you have to do the following for BOTH connections.

Note, you must be disconnected from the connection in question. Otherwise, you'll get the message "Unable to edit while connected to the internet". Open the Control Panel and select "Connectivity". Click the "Connections" button. Select the connection you want for privoxy and click the "Edit" button. Click the "Next" button until you get to the "Connection setup: Complete" screen. There you should see an "Advanced" button. Click the "Advanced" button and select the "Proxies" tab. Click the "Use proxy" checkbox. Then enter the following settings:
Code:
HTTP proxy: localhost
Port number: 8118
HTTPS proxy: localhost
Port number: 8118
Then click the "OK" button. Then click the "Finish" button. Then click the "Done" button. Then click the "OK" button.

Now, open the web browser and navigate to any web page. If things aren't working, you may have to replace the "localhost" entries above with "127.0.0.1". If you can successfully browse, enter the following web address:
Code:
http://p.p/
Note, you should be able to omit "http://" and simply enter "p.p" (much quicker that way). At this point you should see that privoxy 3.0.8 is running on your computer. Click on the "Toggle Privoxy on or off" link and scroll down to the section on "Bookmarklets". By bookmarking those links, you can easy toggle privoxy on/off.

Whew!!! I hope it works for others out there. I'm sorry if it doesn't work for your setup. If I get enough interest, I might be willing to start a garage project for it.
Attached Files
File Type: deb privoxy_3.0.8-1_armel.deb (290.7 KB, 294 views)

Last edited by terrencegf; 2008-07-04 at 22:29.
 

The Following 5 Users Say Thank You to terrencegf For This Useful Post:
terrencegf's Avatar
Posts: 221 | Thanked: 182 times | Joined on Jul 2007 @ Central Illinois
#2
Now also avaiable, privoxy 3.0.9-beta!

For those of you who like to live on the "bleeding edge", I have compiled the latest CVS version (as of July 4, 2008) of privoxy 3.0.9-beta. The list of the features/changes to date can be found here. Memory usage seems to be slightly less than with 3.0.8. As always, YMMV.
Attached Files
File Type: deb privoxy_3.0.9-beta-1_armel.deb (285.8 KB, 209 views)

Last edited by terrencegf; 2008-07-04 at 23:01.
 

The Following 2 Users Say Thank You to terrencegf For This Useful Post:
terrencegf's Avatar
Posts: 221 | Thanked: 182 times | Joined on Jul 2007 @ Central Illinois
#3
I just discovered one problem with using privoxy. It doesn't support internet radio in the Media Player. Due to the way the NIT specifies a system-wide proxy (rather than just a broswer-specific proxy like on a desktop machine), streaming audio gets clobbered since privoxy doesn't handle protocols other than HTTP/HTTPS. If you get the error message "Media stream not found at given address" when trying to play an internet radio station, then you are experiencing the problem.

The only way around this is to figure out the servers used by your internet radio stations and add them to the "Do not use proxy for:" field (on the same tab where you enter "localhost" and "8118").

For example, I like the radio stations at soma.fm. By looking at the values in their .pls files for the various radio streams, I found that most use two sets of servers. So I entered the following values.
Code:
Do not use proxy for: *.stream.aol.com,*.somafm.com
I know it's a pain to find all of the streaming hosts and enter them this way, but I don't know of another way around the problem.

You might consider simply UN-checking the "Use proxy" checkbox when you want to listen to internet radio only. But I discovered that this no longer works correctly in diablo. If you have non-blank/non-zero entries in the HTTP/port fields, Media Player won't play internet radio EVEN WHEN the "Use proxy" checkbox is UN-checked. This worked fine with chinook, but not diablo. I have filed a bug.

Last edited by terrencegf; 2008-07-05 at 08:54.
 
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#4
Interesting point about the proxy interfering with internet radio streams. What I'm curious about is why I don't seem to experience that kind of problems on my N800/OS2007 with privoxy 3.0.6-2 -- I'm always connected to the work network with privoxy enabled and everything works. I wonder if that version of privoxy was somehow set up with that in mind?
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 
allnameswereout's Avatar
Posts: 3,397 | Thanked: 1,212 times | Joined on Jul 2008 @ Netherlands
#5
Probably it was configured to be used as transparent proxy. BTW, there are some 'download accelerator' proxies which were used on dial-up links. My ISP had one running for people who were using GPRS, UMTS, and such but they never enabled it for the WiFi hotspots. It could be neat to run such a proxy, lowering the quality of JPEGs, and so on. But the proxy has to run not on your NIT, but elsewhere on a faster host.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 16:50.