求教:ubuntu9.10用代理换源的问题

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
garycpim
帖子: 12
注册时间: 2010-01-21 10:03

Re: 求教:ubuntu9.10用代理换源的问题

#16

帖子 garycpim » 2010-01-21 15:15

NT_HOSTNAME可以空着不填
NT_DOMAIN是域名
wrg2010
帖子: 24
注册时间: 2010-01-20 16:24

Re: 求教:ubuntu9.10用代理换源的问题

#17

帖子 wrg2010 » 2010-01-21 15:29

我下载了ntlmaps-0.9.9.0.1.tar.gz,放在下载里面,我双击ntlmaps-0.9.9.0.1.tar.gz,然后再双击ntlmaps-0.9.9.0.1,这个里面有main.py和server.cfg.那我在终端输的命令该怎么写?小弟刚开始用ubuntu
wrg2010
帖子: 24
注册时间: 2010-01-20 16:24

Re: 求教:ubuntu9.10用代理换源的问题

#18

帖子 wrg2010 » 2010-01-21 15:32

这个文件路经的问题有点迷,不是很清出
garycpim
帖子: 12
注册时间: 2010-01-21 10:03

Re: 求教:ubuntu9.10用代理换源的问题

#19

帖子 garycpim » 2010-01-21 15:35

我也是初学者 :em03
你要把ntlmaps解压缩到一个文件夹,将server.cfg配置好以后, 在终端里进到这个文件夹里,运行 python main.py后,终端会显示“Now listening at [你的电脑名] on port 5865”
然后再开一个终端, 输入命令 export http_proxy=http://127.0.0.1:5865
wrg2010
帖子: 24
注册时间: 2010-01-20 16:24

Re: 求教:ubuntu9.10用代理换源的问题

#20

帖子 wrg2010 » 2010-01-21 15:38

怎么解压?主要是这个文件路经不知道怎么写?
garycpim
帖子: 12
注册时间: 2010-01-21 10:03

Re: 求教:ubuntu9.10用代理换源的问题

#21

帖子 garycpim » 2010-01-21 15:44

wrg2010 写了:怎么解压?主要是这个文件路经不知道怎么写?
这个这个 :em06 看来你初学只有几天啊
路径 /home/你的用户名/Downloads(或者下载,看你是中文还是英文的系统了)/ntlmaps文件夹/main.py
解压你就用右键用Archive Manager打开后拖出来,和Windows里面的差不多。
wrg2010
帖子: 24
注册时间: 2010-01-20 16:24

Re: 求教:ubuntu9.10用代理换源的问题

#22

帖子 wrg2010 » 2010-01-21 15:48

打开后,拖出来,这么简单啊,我还上网查了半天的命令.晕
ubuntu里打字真不爽,慢死了
garycpim
帖子: 12
注册时间: 2010-01-21 10:03

Re: 求教:ubuntu9.10用代理换源的问题

#23

帖子 garycpim » 2010-01-21 15:51

命令也可以的,初学者先从简单的开始,不然太难了用两天就不敢用了 :em01
wrg2010
帖子: 24
注册时间: 2010-01-20 16:24

Re: 求教:ubuntu9.10用代理换源的问题

#24

帖子 wrg2010 » 2010-01-21 16:12

不行啊,大哥.

wrg@wrg-laptop:~$ python /home/wrg/下载/ntlmaps-0.9.9.0.1/main.py
NTLM authorization Proxy Server v0.9.9.0.1
Copyright (C) 2001-2004 by Dmitry Rozmanov and others.
------------------------
Your NT password to be used:
Now listening at wrg-laptop on port 5865


wrg@wrg-laptop:~$ export http_proxy=http://127.0.0.1:5865
wrg@wrg-laptop:~$ sudo apt-get update
忽略 http://cn.archive.ubuntu.com karmic-updates/multiverse Sources
错误 http://security.ubuntu.com karmic-security/universe Sources
407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. )
忽略 http://cn.archive.ubuntu.com karmic/main Packages
错误 http://security.ubuntu.com karmic-security/multiverse Packages
407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. )
garycpim
帖子: 12
注册时间: 2010-01-21 10:03

Re: 求教:ubuntu9.10用代理换源的问题

#25

帖子 garycpim » 2010-01-21 16:17

wrg2010 写了:不行啊,大哥.

wrg@wrg-laptop:~$ python /home/wrg/下载/ntlmaps-0.9.9.0.1/main.py
NTLM authorization Proxy Server v0.9.9.0.1
Copyright (C) 2001-2004 by Dmitry Rozmanov and others.
------------------------
Your NT password to be used:
Now listening at wrg-laptop on port 5865


wrg@wrg-laptop:~$ export http_proxy=http://127.0.0.1:5865
wrg@wrg-laptop:~$ sudo apt-get update
忽略 http://cn.archive.ubuntu.com karmic-updates/multiverse Sources
错误 http://security.ubuntu.com karmic-security/universe Sources
407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. )
忽略 http://cn.archive.ubuntu.com karmic/main Packages
错误 http://security.ubuntu.com karmic-security/multiverse Packages
407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. )
你试试Firefox的代理改成127.0.0.1,5865 能用吗?如果firefox也不行的话,配置可能有问题。
如果firefox能上网,你可能还要在server.cfg里把NT_HOSTNAME加上(必须是域里已经有的电脑名字)。如果还是不行我也没辙了,因为我也是菜鸟 :em03
wrg2010
帖子: 24
注册时间: 2010-01-20 16:24

Re: 求教:ubuntu9.10用代理换源的问题

#26

帖子 wrg2010 » 2010-01-21 16:23

Firefox的代理改成127.0.0.1,5865 之后,就不能上网了
garycpim
帖子: 12
注册时间: 2010-01-21 10:03

#27

帖子 garycpim » 2010-01-21 16:58

那你加NTHOSTNAME试过了吗?
wrg2010
帖子: 24
注册时间: 2010-01-20 16:24

Re: 求教:ubuntu9.10用代理换源的问题

#28

帖子 wrg2010 » 2010-01-21 17:05

还是不行,搞的我都有强迫症了,总觉的是那个字母或者是数字写错了,难受啊
wrg2010
帖子: 24
注册时间: 2010-01-20 16:24

Re: 求教:ubuntu9.10用代理换源的问题

#29

帖子 wrg2010 » 2010-01-21 17:07

garycpim,能把你的QQ或者是msn留一下吗?
wrg2010
帖子: 24
注册时间: 2010-01-20 16:24

Re: 求教:ubuntu9.10用代理换源的问题

#30

帖子 wrg2010 » 2010-01-22 15:16

我发现了一件有趣的事情, 在xp中,我下了一个ntlmaps-setup-0.9.9.6.exe,双击安装之后,再对server.cfg进行相应的修改,最后运行ntlmaps.cmd。并且把ie浏览器的代理换成了127.0.0.1:5865,居然可以正常上网的,就是网速慢了些。呵呵
回复