LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


View Poll Results: Wich would be the best choice to get the Opera Turbo efect, system-wide?
Ziproxy 1 100.00%
Polipo 0 0%
Varnish-cache 0 0%
Voters: 1. You may not vote on this poll

Reply
  Search this Thread
Old 11-07-2010, 03:12 PM   #1
pkramerruiz
LQ Newbie
 
Registered: Jan 2010
Distribution: Ubuntu
Posts: 19

Rep: Reputation: Disabled
Question Using Ziproxy


I had no problem installing Ziproxy, as its in the main packages…
But how to use it?
I mean, so far I could find out, to start it, I musst run:ziproxy --daemon (http://programminglinuxblog.blogspot...-internet.html)

My /etc/ziproxy/ziproxy.conf is full of stuff I've found on internet:

Code:
Address = 0.0.0.0
Port = 9900
NextProxy="127.0.0.1"
NextPort=8118
RunAsUser = "nobody"
RunAsGroup = "nobody"
PreemptNameRes = true
URLReplaceDataCT = "/etc/ziproxy/replace_ct.list"
URLReplaceDataCTList = {"image/jpeg", "image/gif", "image/png", "application/x-shockwave-flash"}
NetdTimeout = 0
TransparentProxy = true
ZiproxyTimeout = 120
MaxSize = 4194304
UseContentLength = false
Compressible = {
        "shockwave", "msword", "foo", "msexcel", "mspowerpoint", "rtf", "postscript",
        "java", "javascript", "staroffice", "vnd.", "futuresplash",
        "asp", "class", "font", "truetype-font", "php", "cgi", "executable",
        "shellscript", "perl", "python", "awk", "dvi"
}
ProcessJPG = true
ProcessPNG = true
ProcessGIF = false
ProcessJS=true
ProcessCSS=true
ProcessHTML=true
ProcessHTML_CSS=true
ProcessHTML_JS=true
ProcessHTML_tags=true
ProcessHTML_text=true
ProcessJP2 = false
ProcessToJP2 = true
ForceOutputNoJP2 = false
AnnounceJP2Capability = true
ImageQuality={-15,20,25,0}
JP2ImageQuality = {5,5,5,5}
But when I run it, and set the Firefox port to:9900 it fails to load any website.

The goal is to compress to the maximum the images, and other stuff that uses too much bandwich (like Opera Turbo).
I really dont care if a picture is full of pixels, or not.

I do not want to use Opera, just to enjoy a fast Internet.
I will not install Midori, Iron, Chrome, eLink or Arora. I want to continue with my usual Firefox and opera. The advantage is that in Firefox, I have NoScript, and other several improvements/extensions, which I cant enjoy in Opera.

I think the fault is, to include four different parameters (Address,Port,NextProxy,NextPort) that are probably for the same thing.

Can someone explain for what is each one, please? And wich is exactly this one I must put into Firefox.

Also had thought that perhaps there is some way to apply the proxy system-wide, not only in the Firefox settings. Maybe by editing the configuration of Networkmanager?

I've also read about Polipo and Varnish-cache… But I think the more accurate solution would be, Ziproxy.
 
Old 11-17-2010, 01:43 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by pkramerruiz View Post
My /etc/ziproxy/ziproxy.conf is full of stuff I've found on internet:
Code:
NextProxy="127.0.0.1"
NextPort=8118
If you don't use ziproxy behind another proxy then those two items should be commented out.


Quote:
Originally Posted by pkramerruiz View Post
My /etc/ziproxy/ziproxy.conf is full of stuff I've found on internet:
Code:
Compressible = {
        "shockwave", "msword", "foo", "msexcel", "mspowerpoint", "rtf", "postscript",
        "java", "javascript", "staroffice", "vnd.", "futuresplash",
        "asp", "class", "font", "truetype-font", "php", "cgi", "executable",
        "shellscript", "perl", "python", "awk", "dvi"
}
...I also wonder if you're going to get much out of this list because 0) some formats can not be compressed (much) more or 1) are already compressed or 2) are not encountered that often. Also most browsers already advertise compression.


Quote:
Originally Posted by pkramerruiz View Post
Can someone explain for what is each one
The ziproxy "README" file already explains what you need.


Quote:
Originally Posted by pkramerruiz View Post
Also had thought that perhaps there is some way to apply the proxy system-wide, not only in the Firefox settings.
Some Desktop Environments include a configuration UI to set proxies (for instance 'gnome-network-preferences') or there may be a command line tool ('gconftool-2 --type int --set /system/http_proxy/port 8118') or else exporting "${protocol}_proxy" variables from a suitable location, say /etc/profile.d/proxy.sh, may work.


Quote:
Originally Posted by pkramerruiz View Post
I've also read about Polipo and Varnish-cache… But I think the more accurate solution would be, Ziproxy.
If you're on a slow line then I wonder if caching requests (beyond the browsers cache) isn't much more effective than compressing things. A client asking for repetitive requests stops at your caching proxy server, which doesn't result in a remote network response, while compressing responses happens at your endpoint, not at the server, and has to be done each and every time.

//NTLB
 
1 members found this post helpful.
  


Reply

Tags
cache, network manager, proxy



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Faster Web page load times for mobile devices with Ziproxy LXer Syndicated Linux News 0 09-24-2008 03:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration