红联Linux门户
Linux帮助

F7在企业局域网内如何使用YUM(就没人会吗)

发布时间:2007-11-12 13:30:30来源:红联作者:caixicheng
我在公司里面安装了F7.用的是虚拟机,现在能上网了,要设代理.
可能是我当时安装没有选择中文支持,现在的系统语言是英文的,但是在LANGUAGE里有选择了简体中文.结果还是那个样

我先说一下公司的网络情况.
用的是域管理.防火墙用的ISA2004
所以我上外网都是要域用户有上外网权限才有能上的,并且是通过ISA代理上的网

我现在的F7能浏览外网网页,也能访问局域网内的文件服务器.

记得以前用F6就是这个原因,大家也知道在LINUX下装一个软件要多久啊,像MPLAYER和VMWARE等
所以我也在网上查找了很多的方法!结果都是没办法搞定

希望各位老鸟帮忙解决一下,我很想学这个,因为我现在住的地方已经装了F7,昨晚搞到2点啊

[ 本帖最后由 caixicheng 于 2007-11-12 17:12 编辑 ]
文章评论

共有 12 条评论

  1. caixicheng 于 2007-11-14 14:39:17发表:

    没有啊。.
    里面都是英语.看得太吃力了

  2. marco.chan 于 2007-11-13 18:26:36发表:

    锟斤拷锟斤拷:
    原帖由 caixicheng 于 2007-11-13 17:20 发表
    都不行阿
    看来真的是过不了那个ISA的认证阿


    安装 NTLM 没有?!

  3. caixicheng 于 2007-11-13 17:20:36发表:

    都不行阿
    看来真的是过不了那个ISA的认证阿

  4. gxf 于 2007-11-13 16:59:04发表:

    在终端里设置好代理,看能不能Ping通,如果方便的话搞个透明代理算了,免去认证的麻烦

    试试这样设置:http_proxy="http://username:passwd@ip:port",记得开放相应端口

    [ 本帖最后由 gxf 于 2007-11-13 17:06 编辑 ]

  5. caixicheng 于 2007-11-13 16:16:17发表:

    是啊。..
    英语太差了,楼上的,有没有中文的啊

    帮帮忙啊!

  6. marco.chan 于 2007-11-13 15:39:00发表:

    http://ntlmaps.sourceforge.net/
    安装这个东东,估计能帮你解决问题~
    因为你说你的局域网是用MS ISA做proxy的~
    linux没有办法在你的ISA上h通过认证,所以被咔嚓了~

    前面就跟你说了,研究一下:http://wiki.linux.duke.edu/YumFaq
    最后一个Q就是说到NTLM的~

    干嘛用ISA这么无聊的东东呢。。。。
    还不如用iptables + squid~

    祝你好运。。。

    [ 本帖最后由 marco.chan 于 2007-11-13 15:40 编辑 ]

  7. caixicheng 于 2007-11-13 15:21:50发表:

    Loading "installonlyn" plugin
    Setting up Install Process
    Parsing package install arguments
    Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-7&arch=i386 error was
    [Errno 14] HTTP Error 407: Via: 1.1 ISA03
    Proxy-Authenticate: Negotiate
    Proxy-Authenticate: Kerberos
    Proxy-Authenticate: NTLM
    Connection: Keep-Alive
    Proxy-Connection: Keep-Alive
    Pragma: no-cache
    Cache-Control: no-cache
    Content-Type: text/html
    Content-Length: 4100

    Error: Cannot open/read repomd.xml file for repository: fedora


    上面是错误信息!

  8. marco.chan 于 2007-11-13 15:15:46发表:

    man yum.conf ,你查看一下具体的方式~其中有一段关于proxy的~[code]。。。以上省略
    proxy url to the proxy server that yum should use.

    proxy_username
    username to use for proxy

    proxy_password
    password for this proxy
    。。。以下省略[/code]楼主慢慢研究,我闪人先...
    0:w(5(

  9. caixicheng 于 2007-11-13 15:12:20发表:

    其实很简单啊,我现在用的企业局域网,如果你是在直接从网络运营商接的网,可以直接YUM了

    但是我现在是通过代理上的网,也就是内线了.需要输入用户名和密码后才能上外网

    像斑竹说的,通过修改YUM.CONF,我试了,以前也搞过,里面的几个方法也用过,
    有点变化,但是还是不行.是不是要在 里面加上一个参数,输入我的用户名和密码呢?

  10. marco.chan 于 2007-11-13 14:22:48发表:

    你可以针对你的网络环境研究一下这个:
    http://wiki.linux.duke.edu/YumFaq
    其中一个Q如下,不知道对你是否有帮助~
    Q. 5: I get an "[Errno -1] Header is not complete." error from yum - what the heck is going on?

    A. It's probably a proxy somewhere between you and the repository. You may not think that a proxy is in the way even though it really is.

    You can try doing a "trace" with this command:

    echo -e "TRACE / HTTP/1.1\nHost: yum-server.example.com\n\n" | nc yum-server.example.com 80

    Which should give you some more information about the network between you and the repository. Also, be sure to replace yum-server.example.com with whatever your yum repository server is.

    Another diagnosis step is to get the box off of that network (not always entirely possible, but port forwarding, VPN, or dialup can simulate the experience) and see if you still have the problem.

    The solutions to this problem are:

    1.

    Get your proxy software/firmware updated so that it properly implements HTTP 1.1
    2.

    Use an FTP repository, where byte ranges are more commonly supported by the proxy
    3.

    Create a local mirror with rsync and then point your yum.conf to that local mirror
    4.

    Don't use yum

  11. gxf 于 2007-11-13 14:18:30发表:

    我读这篇帖子都觉得有点吃力,首先我在VM下使用Linux经验不太多,我想你是想知道如何

    通过代理用yum吧!

    锟斤拷锟斤拷:
    1.可以在yum之前执行export http_proxy="proxyIP地址"

    2.修改 /etc/yum.conf
    http代理加入:
    http_proxy=http://IP地址:端口
    ftp代理加入:
    ftp_proxy=ftp://IP地址:端口

    3./在etc/profile.conf把相应的代理设置加上去

    然后#source /etc/profile.conf

    这个是全局的,只用于目前用户就加入主目录下.bashrc

  12. caixicheng 于 2007-11-13 14:14:25发表:

    你们回答一下啊。.
    很郁闷啊...
    没人会解决吗?