找回密码
 注册
查看: 4799|回复: 5

emerge rsync如何设置代理的用户名和密码?谢谢!!

[复制链接]
发表于 2002-12-4 18:05:11 | 显示全部楼层 |阅读模式
我这儿通过代理上网是要用户名和密码。比如:用ie打开一个校外网址,那么
ie就会弹出一个窗口,要求输入用户名和密码。
所以,emerge rsync时,如果不设置代理服务器,那么这个命令就会很长时间
都没有反应。如果我在/etc/make.conf中设置代理如下:
RSYNC_PROXY="http://proxyname:port"
但没有设置(我也不知道如何设置)用户名和密码,那么,使用这个命令后就会
出现如下错误:
>>>starting rsync with rsync://8*****/gentoo-portage....
bad response from proxy - http/1.0 407 authentication required
rsync: fail to connect to 202.192.157.1(注:代理服务器ip):success
rsync error: error in socket io (code 10) at clientserver.c(97)

>>>Updating portage cache...

但是portage根本就没有更新。
不知道应该如何设置?谢谢!!
发表于 2002-12-4 18:26:50 | 显示全部楼层
设置 emerge 代理其实就是设置 wget 代理,修改 /etc/wget/wgetrc

修改这一段,把 [#] 号去掉就行了 :
# You can set the default proxies for Wget to use for http and ftp.
# They will override the value in the environment.
#http_proxy = http://proxy.yoyodyne.com:18023/
#ftp_proxy = http://proxy.yoyodyne.com:18023/

# If you do not want to use proxy at all, set this to off.
#use_proxy = on

简单吧?!

我不用代理,不能试验了,自己试验一下吧
回复

使用道具 举报

发表于 2002-12-4 18:33:09 | 显示全部楼层
用户名和密码好像可以这样:
如一个 http 代理: http://user_name:[email protected]_name.xxx:port
回复

使用道具 举报

 楼主| 发表于 2002-12-4 19:21:26 | 显示全部楼层
[quote:f9ce158410="Kuye"]设置 emerge 代理其实就是设置 wget 代理,修改 /etc/wget/wgetrc

修改这一段,把 [#] 号去掉就行了 :
# You can set the default proxies for Wget to use for http and ftp.
# They will override the value in the environment.
#http_proxy = http://proxy.yoyodyne.com:18023/
#ftp_proxy = http://proxy.yoyodyne.com:18023/

# If you do not want to use proxy at all, set this to off.
#use_proxy = on

简单吧?!

我不用代理,不能试验了,自己试验一下吧 [/quote]
emerge rsync 不能用这个方法。其他就可以。而你提到的:
http://usename:passwd@proxyname:port
的方法也行不通。
回复

使用道具 举报

 楼主| 发表于 2002-12-4 21:00:31 | 显示全部楼层
顺便说一下:
如果哪位老大愿意帮忙的话,请代为到gentoo的论坛上去发贴问问。不胜感激!!
==============================================
让人ft的是,学校的代理不支持国外的post权限!!真是FT啊。请各位帮帮忙。谢谢!!!
回复

使用道具 举报

发表于 2002-12-4 21:39:57 | 显示全部楼层
我刚才去搜索了一下 Gentoo 论坛以前的帖子,似乎真的只有修改 RSYNC_PROXY 这个变量,但是另一个人他也碰到了和你完全一样的问题,而无法解决(他更惨,没人回复他。。。)

[quote=ebrostig][quote=smigil]I want to install gentoo but when i type
[code]emerge sync
my machine cant connect to gentoo site, it seems like the rsync port is blocked.
Is there a way to connect to another port ( like SSL on GNU Savanah )[/qutote]
If your firewall has an http proxy (most firewalls do), you may be able to use. I do that at work.
You can try to set:
RSYNC_PROXY=www-proxy.domain.com:80 (Replace www-proxy.domain.com with the hostname of your firewall)

Erik[/quote]

[quote=Atreillou]Vla-li etc # export RSYNC_PROXY="my.proxy:3128S"

vla-li etc # emerge rsync
>>>starting rsync with rsync://rsync.gentoo.org/gentoo-portage...
bad response from proxy - HTTP/1.0 403 Forbidden
rsync: failed to cnnect to my.proxy: Success
rsync: error: error in socket IO (code 10) at clientserver.c (97)

>>>Updating Portage cache...

vla-li etc#[/quote]
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-2-5 22:55 , Processed in 0.022608 second(s), 15 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表