LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 5188|回复: 26

在局域网里,gentoo安装过程中怎么设置代理服务器?

[复制链接]
发表于 2003-6-20 09:22:05 | 显示全部楼层 |阅读模式
在局域网里,gentoo安装过程中怎么设置代理服务器?

还有,怎么把默认的镜像站点改到国内,比如清华的那个?

watson / # emerge sync
>>> Note: /etc/make.profile/make.defaults isn't available.
          an 'emerge sync' will probably fix this.
>>> starting rsync with rsync://rsync.gentoo.org/gentoo-portage...
rsync: failed to connect to rsync.gentoo.org: Network is unreachable
rsync error: error in socket IO (code 10) at clientserver.c(83)


>>> Starting retry 1 of 3
rsync: failed to connect to rsync.gentoo.org: Network is unreachable
rsync error: error in socket IO (code 10) at clientserver.c(83)


>>> Starting retry 2 of 3
rsync: failed to connect to rsync.gentoo.org: Network is unreachable
rsync error: error in socket IO (code 10) at clientserver.c(83)


>>> Starting retry 3 of 3
rsync: failed to connect to rsync.gentoo.org: Network is unreachable
rsync error: error in socket IO (code 10) at clientserver.c(83)

!!! Rsync has not successfully finished. It is recommended that you keep
!!! trying or that you use the 'emerge-webrsync' option if you are unable
!!! to use rsync due to firewall or other restrictions. This should be a
!!! temporary problem unless complications exist with your network
!!! (and possibly your system's filesystem) configuration.

watson / #

我想是因为没设置代理的缘故。
谁能帮帮我!!
发表于 2003-6-20 12:55:33 | 显示全部楼层
原来设置过,好久没用,都有点忘了。
好象是需要设置HTTP_PROXY或FTP_PROXY变量,根据你自己的代理服务齐情况,自己调整吧。
发表于 2003-6-20 13:10:54 | 显示全部楼层
你直接改镜像地址吧
在/etc/make.global里面

sync的proxy支持有点麻烦
发表于 2003-6-20 15:01:46 | 显示全部楼层
你的lan里面没有代理的话,就不需要设置...只要设置你的Ip,网关就可以了...adsl无需设置...
 楼主| 发表于 2003-6-20 17:37:57 | 显示全部楼层
我的IP,网关等都设置好了,能ping通网关和代理服务器,就是没法emerge sync!emerge emerge rsync也不行,总之没法emerge,过不了代理服务器这一关!!

另外,
watson / # emerge sync
>>> Note: /etc/make.profile/make.defaults isn't available.
an 'emerge sync' will probably fix this.
这几行说/etc/make.profile/make.defaults不可用,这正不正常?

我改怎么办??!
 楼主| 发表于 2003-6-21 18:35:27 | 显示全部楼层
怎么没人回答我呀。

我的具体情况是这样的:
在学校里(教育网),IP跟网卡地址绑定,
IP地址为:
172.16.80.136
网关为:
172.16.80.1
DNS解析服务器为:
202.116.129.1
202.116.129.2
广播地址:
172.16.83.255
代理服务器地址为:
61.143.16.21    端口:3128
211.56.138.33   端口:3128
211.56.138.34   端口:3128
(其中61.143.16.21是学校办理的收费代理,可以出国,不过需要帐号和密码,211.56.138.*是学校代理,在教育网内不能出国,但是不需要帐号和密码)

有没有人能帮我设置一下,最好具体一点。
谢谢!
发表于 2003-6-22 14:37:13 | 显示全部楼层
呵呵,你是中大的吧,看你的 IP

sync 必须使用 socks 代理才出得去的

你可以使用 dante 或 socksv5r11,前者好找,推荐使用前者, 可以简单的 emerge 的

安装完了dante,修改一下 etc 下的配置文件,指定你的socks 代理, 如  61.143.16.21 端口是 1080, 不是 3128, 也可以在配置文件中设置用户名和密码的,当然你也可以用 211.56.138.33 的 1080
发表于 2003-6-22 14:40:26 | 显示全部楼层
修改默认的服务器如下:

修改 /etc/make.conf,增加以下行:
SYNC="rsync://ftp.tsinghua.edu.cn/gentoo/gentoo-portage"

修改 mirror,将下面这个变量改为如下: GENTOO_MIRRORS="ftp://ftp.tsinghua.edu.cn/mirror/gentoo"
发表于 2003-6-22 14:45:50 | 显示全部楼层
使用 export http_proxy="211.56.138.33:3128"
和 export ftp_proxy="211.56.138.33:3128"
来指定使用的 http 和 ftp 代理,注意, 不是 1080了,这次
 楼主| 发表于 2003-6-22 16:44:16 | 显示全部楼层
啊啊,非常感谢楼上兄台。对了,你是中大的?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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