|
LinuxProxyConfig
Proxy Configuration details for Linux
linux IntroductionChromium on Linux has several possible sources of proxy info: GNOME/KDE settings, command-line flags, and environment variables. DetailsGNOME and KDEWhen Chromium detects that it is running in GNOME or KDE, it will automatically use the appropriate standard proxy settings. You can configure these proxy settings from the options dialog (the "Change proxy settings" button in the "Under the Hood" tab), which will launch the GNOME or KDE proxy settings applications, or by launching those applications directly. Flags and environment variablesFor other desktop environments, Chromium's proxy settings can be configured using command-line flags or environment variables. These are documented on the man page (man google-chrome or man chromium-browser). |
► Sign in to add a comment
The "Change proxy settings" button opens this webpage? (And btw, bookmark syncing isn't working too, button is grey)
Yes. Quite a few people have alternate managers, Or don't have KDE/Gnome at all. Why are you not letting up a dialogue for us to enter? it's not intuitive if a specific proxy is needed, without a full network reboot to change the port.
Isn't this similar arrogance some of us dislike about Microsoft?
I do not use Gnome/KDE... setting http_proxy=... is not workable when i need to access localhost !!!
This is so stupid. You can't just make a dialog that pops up? God.. Just because I'm running xmonad doesn't call for discrimination!
I've tried setting the environment variable too & it doesn't work either. This is BS. I want to use my installation of google chrome with proxystrike http://www.edge-security.com/proxystrike.php
Setting http_proxy i somewhat acceptable now when the linux chrome is in alpha stage.
However: I need to configure Chrome to NOT use the proxy for a given list of hosts. The use case is: at work we have a proxy that needs to be used for accessing the public internet websites. But we also have internal web servers that must be accessed directly by the browser (the proxy only handles external websites).
Use the Proxy Switchy extension - it'll do everything you want.
cheers,
setting the environment variable can't work. proxy switchy can't either.
exporting http_proxy doesn't work at all. This reminds me of the "wonderful" management of chromium certificates on Linux. Thumbs down.
Wonderful... so, to get this working, you need to run:
/usr/bin/env http_proxy="http://127.0.0.1:8118" no_proxy="localhost,127.0.0.1,192.168.0.0/24" /usr/bin/chromium
or whatever matches your paths and needs. Forget about exporting http_proxy, no_proxy etc. in .bashrc, no effect at all (it works for wget etc. of course, checked in privoxy logs). Personally I find it less clumsy to use iptables to do the redirect job that setting some weirdo aliases for this. Blah.
'google-chrome --proxy-pac-url=file:///...' works perfectly. There's no need to use http_proxy this no_proxy that. If you've got a pac file for use with firefox it'll work fine here. If you need help writing a .pac file google is your friend...
@dclinger: Should I have the urge to write pac/wpad files, I'd take care of serving them globally to clients via DHCP server. Alas, that won't work with chrome on Linux either. Wrt http_proxy/no_proxy, not honoring those env variables and having to explicitely specify it with is clearly a bug - worse even when it's the recommended way to set proxy for Chromium on Linux.
how can i change ENV without restarting chromium? i'm not using gnome or kde - just awesome wm
I dont use Gnome/KDE (but it's both installed!) and even with the Proxy Switchy extension its doesnt work. It always tell me only works with Gnome/KDE, thats VERY annoying! I think if KDE is installed it should work even i use only my favorite Openbox Window Manager.
@notordoktor: chrome should be unable to tell the difference between separately exported http_proxy etc. vs. env http_proxy=... chrome. If you experience otherwise, it is because of how you are starting it. When you run wget you obviously do so from a command line -- which will be carrying env settings from your .bashrc. If you start chrome from some sort of window manager icon then it will carry those settings only if the WM had them in its env (and chose to pass them on).
If you create a couple of scripts:
-- you should find that both of these work equally well from either command line or WM icon. Stress it by making sure no proxy stuff is set in your shell or WM environments (or any Gnome- or KDE-stored settings).
@taartaar: when I'm running my normal window manager, icewm, "Change proxy settings" opens this page. If I run Gnome then it opens up the Gnome network proxy settings window is intuitively named `gnome-network-properties` :-(?
I assume it brings up some sort of KDE settings applet if you're running that.
I experimented with trying to use gnome-network-properties under icewm, with frustrating results. There might be a way; it might involve running a gaggle of Gnome daemons like gnome-settings-daemon, 73 gvfs processes, etc. Bleah.
My peers and I frequently use multiple browsers on a system, one of which (usually Firefox) is our main browser, and our secondary browser might be proxied through a specific proxy. This type of proxy configuration option doesn't make it easy for us to do that. I like a browser to allow specific (ideally, multiple) proxies to be defined, completely separate from the proxies defined at the OS/Networking level. Ideally, something like FoxyProxy? which allows us to quickly change proxies.
what if I don't want to use the proxy for some websites but I'm not in a KDE/Gnome environment?
Using --proxy-pac-url works, but setting the same PAC file in KDE proxy configuration (rachable using the button in Chrome options page), does not.
"Chromium on Linux has several possible sources of proxy info" - that a BAD sign right there! Any time you have "several possible" of anything, you also have several possible problems, confusions, and annoyances. It's good that Chromium tries to work out your proxy settings when you run it for the first time, but it should just use the data it finds to auto-populate a setting and then forever after let you adjust the setting as you see fit. I want control over how my browser behaves and it shouldn't be as complicated as using any of the workarounds from this page.
Apart from that, it's an excellent browser. I'm glad I was finally able to get it to work, but it took a lot of effort!
http proxy serverv
Please let us set the proxy in a box in Chrome, not with environment variables. I use several different proxies for different purposes.
Otherwise, Chrome is blazingly fast, congrats =)
come on... just allow changing some env vars from the browser...
Pretty please, with sugar on top, add a proxy dialog and save our settings to our profile. :)
Chromium is an excellent browser, far better than Firefox IMHO, but it's proxy handling in Linux is next to idiotic!!! There should be three main options within Settings > Proxy: 1) disable proxy 2) manual setting 3) use desktop settings; AND they should work without restarting Chromium.
A personal experience: in my laptop I use Chromium via privoxy, but the bookmark sync does not work via privoxy, so in order to sync bookmarks I need to 1) close Chromium 2) stop privoxy (disabling proxy via Gnome settings or starting Chromium with --no-proxy-server does not work, Chromium seems to pick up privoxy anyway) 3) restart Chromium 4) sync bookmarks 5) close Chromium 6) restart privoxy 7) restart Chromium...
This is possibly the shortest period of time I've ever used a Google product.
Chrome is worthless to me without a way to specify independent socks proxy setting.
I can't continue using Chromium because of this proxy deal. It is obvious that this should be a directive set in the browser itself. I use XMonad so the desktop-based solution is worth less. I refuse to change something in my environment variables for a web browser that tries to do everything else itself. I am sure the team behind this are good people and will eventually get around to correct this. Until then I am rocking with Opera 10.5. Maybe V8's will catch up speedwise by the time we get this feature.
Firefox has such a nice way of dealing with socks5 proxy all by itself. The main reason I don't use Chrome or Opera, is because neither of them handle socks5 proxy the way firefox does. In Firefox->Options->Advanced->Network->Settings... socks5Host=localhost port=1337, then on commandline for linux, ssh -ND 1337 homeacct@homelinuxip... or in Windows, plink.exe -N -D 1337 homeacct@homelinuxip. Done, and to really hide things from corporate firewall&filters, firefox's "about:config" -> set network.proxy.socks_remote_dns=true, and you're golden, surfing any site you want without any fear of corporate-detection(assuming you're not streaming GIGs of encrypted traffic slowing everyone else down).
Chrome does not properly support no_proxy setting with CIDR format?
My no_proxy setting is:
localhost,127.0.0.0/8,.local,192.168.1.0/24
But Chrome used a proxy server to connect to 192.168.1.2.
how does chrome detect GNOME/KDE? In other words what is the minimum thing that will trick it into thinking it is running under GNOME or KDE?
answering myself, turns out that chrome reads GNOME_DESKTOP_SESSION_ID environment variable to detect GNOME, thus
GNOME_DESKTOP_SESSION_ID=Default google-chrome
is enough, of course you'd like to have at least gconfd running
I prefer PER APPLICATION PROXY SETINGS. This one-setting-for-the-desktop foolishness is something I strongly dislike in most KDE and GNOME applications too and I've opened several bugs about it. Some developers actually realize that it is NOT THAT HARD to have a dialog box with a) Use desktop proxy settings, b) Use custom (enter here) settings or c) don't (ab)use the proxy. I see l33tmmx above also realizes this.
tried chromium, broken, will check back later too see if this proxy bug is fixed in a few months
very nice, but all you people need to shut the hell up, they obviously know. chromium is still in the development stage, let them do their job. and you people that sound like you're raging, well, news for ya -- these people are making this shit for free, for you. why don't you go ahead and code your own browser, or shut up and use another. obviously fgiunchedi found a way to get chromium to pop up the dialog in his.
have fun being sad, sadistic people.
@acesx91
We're just providing feedback. If you open source something then you open to debate. Try adding something positive next time so I don't have to read your counterproductive insults.
Use case: I'm running Ubuntu. I want to use Chrome with a specific proxy. I don't want that proxy to be magically, and WITHOUT WARNING, exported to Pidgin, Synaptic, and everything else that queries the GNOME proxy settings, which Chrome uses without warning.
Fail. Please fix this, it's broken.
I don't use GNOME or KDE and I use Chromium on a laptop which I move between multiple networks that need different proxies. What's the reasonable solution for a normal user to do this automatically?
Is the solution "Manually restart Chromium every time I change networks, and start it using a script that detects the current network and passes the appropriate command-line arguments to make the browser work"?
I'll continue to use Chromium because it's an otherwise awesome browser. But this is pretty annoying.
Also, it's just stupid that trying to change proxy settings in Linux directs you to this web page. If you're changing proxy settings, you're almost certainly doing it because you can't open web pages. Replace it with something stored locally describing how the proxy settings work.
I'm all with gordon.morehouse. Some apps, like RhythmBox? will not even work with a proxy... well, why should they... but that thing about Chrome setting the proxy for all just is not right.
Besides, there is also something weird about it... when you want to apply the proxy settings from the dialog kindly provided by GNOME (or whoever does that), it asks if you want to 'Apply System-Wide', to which I always answer 'Close', which to me seems to say "Nah, just Close"... Yet magically, OTHER apps start using the settings, which seems to mean that 'Close' and 'Apply System-Wide' have the same results in a way. This will probably not change proxy settings for apt and such, which in itself requires you to sudo, but it certainly does so for RhythmBox? and who knows what else...
well, maybe RhythmBox?? does work with a proxy (SOCKS maybe), just not with the proxy I use... just for the sake of clarity here...
You should star these issues (which are all the same issue, no chrome-specific proxy option) if you want the devs to start working on this:
http://code.google.com/p/chromium/issues/detail?id=266 http://code.google.com/p/chromium/issues/detail?id=24577 http://code.google.com/p/chromium/issues/detail?id=25769
Add your voice - be heard!
This is also interesting, at least one dev sees that users are clamoring for this.
http://dev.chromium.org/developers/design-documents/network-settings
the chromium-browser man page says the browser will start with the proxy setting on the command-line. with icewm I use a menu item that stores the proxy setting. The shortcut starts "chromium-browser --proxy-server=xxx.xxx.xxx.xxx:xx" I presume this would also work on a gnome/kde desktop shortcut.
@darrin.gorski: You are right. But now the issue is tracked here:
http://code.google.com/p/chromium/issues/detail?id=48930
(Anyone affected by this issue can go to this URL and click to the star to be heard.)
It seems that working on this feature is actively on progress. So I guess we should only wait a little more.
I am on Ubuntu Linux, but i don't use GNOME/KDE (use FVWM), then what to do?!
We need a possibility to setup proxy by Google Chrome settings...
Please correct!
awesome but ugly make some style which can be it icon. Not just a ugly peice of chrome.I am leaving it .It not what i hope.
Yet another reason to use firefox. Chrome still fails.
setting http_proxy doesn't work for me, nor does running with --proxy-server. I'm running OpenBox? under Peppermint. Proxy Switchy doesn't work since I have neither Gnome nor KDE on this system.
www.youtube.com
Please add a proxy dialog.
For now, try putting the 2 lines below
into /etc/profile
.bashrc will not work as well as compared to the system-wide one.
I find the best way to get Chrome to run for me (in puppy linux) is using a pacfile along with the --proxy-pac-url="xxx" switch. For me it's a case of use no proxy for SSL and use a proxy for all other browsing.
If you're uncomfortable setting up a pac file you can get examples and create your own pacfiles here.
I am a chinese . Cloud in china is impossible. Too slow!
the ProxySwitchy? extension doesn't work since ~chromium 10.0.648 :(
confused ..im ath 1`st time on Chromus OS
Hi folks I'm getting below error with my chrome browser ,can some one please help me on this
Error 111 (net::ERR_TUNNEL_CONNECTION_FAILED): Unknown error.
Wow! This pretty neat! I have the Google cr-48 and wanted to make my Lenovo S10 (no dash) as similar to the cr--48 as possible. While not yet up to "daily" use standards, it is FUN to play with!!
Wow! This pretty neat! I have the Google cr-48 and wanted to make my Lenovo S10 (no dash) as similar to the cr--48 as possible. While not yet up to "daily" use standards, it is FUN to play with!!
Apparently google-chrome STILL has no way of accessing the proxy settings in the UI. The Goobuntu/Chrome config examples are useless, because clicking on the "Change proxy settings" button in the under-the-hood page just tells me:
When running Google Chrome under a supported desktop environment, the system proxy settings will be used. However, either your system is not supported or there was a problem launching your system configuration.
But you can still configure via the command line. Please see man google-chrome for more information on flags and environment variables.
This is so stupefyingly lame I have trouble believing we are distributing this to the outside world. What is so terribly wrong about simply allowing the proxy config page to open?
"man google-chrome" is only an option for tech-savvy masochists.
"man google-chrome" is only an option for tech-savvy masochists. )))
http://ubuntulyb.blogspot.com/2011/08/chromium-proxy.html
So I take it other Linux distros (I use Lubuntu) aren't supported for changing the proxy without fiddling under the hood???
I have hit this issue too. It picks up up my proxy settings from Gnome 3 but there is no way to specify no proxy list in gnome 3 gui. When i go to chrome://config it is trying to use the proxy server. Doh! Chrome should be smart enough to know that chrome://config is not a network location.