分页: 1 / 1

请教上网: web能用,终端不能用??

发表于 : 2007-11-22 18:39
charmingzuo
在公司的机器上装了一个Utuntu 7.04(以前装的),
公司上网时依靠一个公共的出口,浏览器里的设置
Connection > LAN settings > Use automatic configuration script
把公司的代理地址写到 Address , Firefox 浏览器就可以上网了,
但是终端Gnome 里好像不行, 终端wget 下载不行, 但这个下载地址在web里点右键另存是可以的。
因此,这样搞得 apt-get 都不能用了。

我不知道还要在哪里设置网络 ?

发表于 : 2007-11-22 18:44
eexpress
搜索下http_proxy

发表于 : 2007-11-22 18:59
charmingzuo
eexpress 写了:搜索下http_proxy
感谢你的回复!
基本上
about58624.html&highlight=&sid=9216163d ... ccdd9c7c3b
里提到的两种方法我都试过了,还是不行。
我不知道还有什么测试的方法。

发表于 : 2007-11-22 19:16
qqttdh
用附件里的脚本试试

发表于 : 2007-11-23 9:40
charmingzuo
qqttdh 写了:用附件里的脚本试试
刚才试了一下,果然可以!
高手,能不能详细解释一下啊?
我看你的脚本里好像跟直接在 apt.conf 设置 Acquire 或者 .bashrc 里设置 http_proxy 差不多啊,
有什么差别不? 按理说, 在执行 apt 的时候,上面两个文件都是要自动调用的啊?

Re: 请教上网: web能用,终端不能用??

发表于 : 2007-11-27 12:03
charmingzuo
charmingzuo 写了:在公司的机器上装了一个Utuntu 7.04(以前装的),
公司上网时依靠一个公共的出口,浏览器里的设置
Connection > LAN settings > Use automatic configuration script
把公司的代理地址写到 Address , Firefox 浏览器就可以上网了,
但是终端Gnome 里好像不行, 终端wget 下载不行, 但这个下载地址在web里点右键另存是可以的。
因此,这样搞得 apt-get 都不能用了。

我不知道还要在哪里设置网络 ?
Sorry, SCIM died....

Set the following in Firefox
Use automatic configuration script :
http://gazproxy.sg.kodak.com:81/proxy.pac

How can I set apt-get's network configuration ?
The two ways below can't work.
One way:
/etc/apt/apt.config
acquire::http::proxy "http://gazproxy.sg.kodak.com:81"
It doesn't work, neither attached by "/proxy.pac";

The other way:
~/.bashrc
http_proxy=http://gazproxy.sg.kodak.com:81
export http_proxy

It can't either when replace its URL by IP , http://192.232.119.192:81.

Re: 请教上网: web能用,终端不能用??

发表于 : 2007-11-30 10:20
charmingzuo
[quote="charmingzuo"][quote="charmingzuo"]在公司的机器上装了一个Utuntu 7.04(以前装的),
公司上网时依靠一个公共的出口,浏览器里的设置
Connection > LAN settings > Use automatic configuration script
把公司的代理地址写到 Address , Firefox 浏览器就可以上网了,
但是终端Gnome 里好像不行, 终端wget 下载不行, 但这个下载地址在web里点右键另存是可以的。
因此,这样搞得 apt-get 都不能用了。

我不知道还要在哪里设置网络 ?[/quote]

Sorry, SCIM died....

Set the following in Firefox
Use automatic configuration script :
http://gazproxy.sg.kodak.com:81/proxy.pac

How can I set apt-get's network configuration ?
The two ways below can't work.
One way:
/etc/apt/apt.config
acquire::http::proxy "http://gazproxy.sg.kodak.com:81"
It doesn't work, neither attached by "/proxy.pac";

The other way:
~/.bashrc
http_proxy=http://gazproxy.sg.kodak.com:81
export http_proxy

It can't either when replace its URL by IP , http://192.232.119.192:81.[/quote]

感谢上述兄弟们的回复!问题已经搞定。

我后来咨询了我们网管,那个proxy.pac文件就是告诉公司的所有分公司非别用什么代理,然后找到我们前所在部门的代理,用那个具体的代理就可以了。

再次感谢大家的帮助!