如何将Bazaar与HTTP代理一起使用?

时间:2021-04-15 07:37:52

How do I use Bazaar with a HTTP proxy? I can't find anything in their documentation.

如何将Bazaar与HTTP代理一起使用?我在他们的文档中找不到任何内容。

3 个解决方案

#1


Set the http_proxy environment variable to point to your proxy, eg. (on Windows):

将http_proxy环境变量设置为指向您的代理,例如。 (在Windows上):

set http_proxy=http://webcache.mycompany.com:3128/

See the "Environment variables" section of http://bazaar-vcs.org/ConfiguringBzr

请参阅http://bazaar-vcs.org/ConfiguringBzr的“环境变量”部分

#2


Also do not forget to set HTTPS_PROXY environment variable.

另外不要忘记设置HTTPS_PROXY环境变量。

set https_proxy=http://my.proxy.com:3128/

#3


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.

如果在尝试所有其他方法后仍然遇到代理连接问题,请尝试使用dconf和gconf编辑器设置代理设置。

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.

最新程序预期使用的设置是DConf设置,但是一些旧程序可能仍然使用GConf设置,因此在两者中设置代理设置是明智的。

If not already installed, you can easily install dconf and gconf editors from synaptic or the package manager of your distribution.

如果尚未安装,则可以从synaptic或分发包管理器轻松安装dconf和gconf编辑器。

Proxy Settings:

In your Conf dconf editor traverse to

在Conf dconf编辑器中遍历

system > proxy

系统>代理

There you should see the options for setting your ftp, http, https, socks proxy settings.

在那里你应该看到设置你的ftp,http,https,socks代理设置的选项。

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.

如果您的代理需要身份验证,并且您的密码包含特殊字符,例如@,您现在就知道了(经过艰苦的搜索),您应该在配置代理设置时将@替换为%40(@的HTML字符编码),例如。在〜/ .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.

现在,在gconf编辑器的情况下,代理设置的路径是相同的,但选项可能有点不同。但是,我相信你能做到。

#1


Set the http_proxy environment variable to point to your proxy, eg. (on Windows):

将http_proxy环境变量设置为指向您的代理,例如。 (在Windows上):

set http_proxy=http://webcache.mycompany.com:3128/

See the "Environment variables" section of http://bazaar-vcs.org/ConfiguringBzr

请参阅http://bazaar-vcs.org/ConfiguringBzr的“环境变量”部分

#2


Also do not forget to set HTTPS_PROXY environment variable.

另外不要忘记设置HTTPS_PROXY环境变量。

set https_proxy=http://my.proxy.com:3128/

#3


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.

如果在尝试所有其他方法后仍然遇到代理连接问题,请尝试使用dconf和gconf编辑器设置代理设置。

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.

最新程序预期使用的设置是DConf设置,但是一些旧程序可能仍然使用GConf设置,因此在两者中设置代理设置是明智的。

If not already installed, you can easily install dconf and gconf editors from synaptic or the package manager of your distribution.

如果尚未安装,则可以从synaptic或分发包管理器轻松安装dconf和gconf编辑器。

Proxy Settings:

In your Conf dconf editor traverse to

在Conf dconf编辑器中遍历

system > proxy

系统>代理

There you should see the options for setting your ftp, http, https, socks proxy settings.

在那里你应该看到设置你的ftp,http,https,socks代理设置的选项。

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.

如果您的代理需要身份验证,并且您的密码包含特殊字符,例如@,您现在就知道了(经过艰苦的搜索),您应该在配置代理设置时将@替换为%40(@的HTML字符编码),例如。在〜/ .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.

现在,在gconf编辑器的情况下,代理设置的路径是相同的,但选项可能有点不同。但是,我相信你能做到。