How do I use Bazaar with a HTTP proxy? I can't find anything in their documentation.
Set the http_proxy
environment variable to point to your proxy, eg. (on Windows):
set http_proxy=http://webcache.mycompany.com:3128/
See the "Environment variables" section of http://bazaar-vcs.org/ConfiguringBzr
Also do not forget to set HTTPS_PROXY
environment variable.
set https_proxy=http://my.proxy.com:3128/
I post this answer as a reference for those who may later visit this page.
If you still have trouble with proxy connection after trying all the other methods, try setting your proxy settings using dconf and gconf editors.
Note:
The settings that the latest programs are expected to use are the DConf settings but some old programs might still use GConf settings, so it is wise to set your proxy settings in both.
If not already installed, you can easily install dconf and gconf editors from synaptic or the package manager of your distribution.
Proxy Settings:
In your Conf dconf editor traverse to
system > proxy
There you should see the options for setting your ftp, http, https, socks proxy settings.
Note:
In case your proxy needs authentication, and your password contains special characters like@
you would know by now (after painstaking searches), that you should replace your @
with %40 (the HTML character encoding for @
) while configuring your proxy settings, eg. in ~/.bashrc.
Do not follow this practice in the configuration editor. Type your password as it is.
Now, in case of gconf editor, the path to the proxy settings is same, but the options might be a bit different. But, I am sure you can make it out.
© 2022 - 2024 — McMap. All rights reserved.