Sealyu

          --- 博客已遷移至: http://www.sealyu.com/blog

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            618 隨筆 :: 87 文章 :: 225 評論 :: 0 Trackbacks
          更新:遇到這個問題的朋友,不用往下面看了,請直接使用 cntlm 吧,比ntlmaps 好用些!

          在 公司里面,網絡訪問都是通過ISA Server的(Microsoft® Internet Security and Acceleration Server),在使用Windows的時候不會出現任何問題,可是前兩天裝了Ubuntu Linux,遇到了些問題。

          我使用firefox訪問網絡沒有問題,只需要設好代理服務器地址,瀏覽網站時輸入相應的用戶名和密碼即可,但在console下面使用apt-get更新系統時有問題。

          開始我覺得應該這樣設置代理:
          export http_proxy=http://domaindomainuser:password@proxy.corpnet.com:8080

          可是總會出現這個錯誤:
          407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. )

          后來在網上搜索了一下,找到方法解決這個問題了:

          Download ntlmaps-0.9.9.0.1 from here

          $ tar -zxvf ntlmaps-0.9.9.0.1

          $ vim ntlmaps-0.9.9.0.1/server.cfg

          Edit PARENT_PROXY,PARENT_PROXY_PORT,USER,PASSWORD to match your preferences, then run main.py

          $ ./ntlmaps-0.9.9.0.1/main.py &

          $ export http_proxy="http://127.0.0.1:5865 "

          $ sudo apt-get update

          Now, everything is OK.
          posted on 2009-10-14 14:55 seal 閱讀(1235) 評論(0)  編輯  收藏 所屬分類: Linux
          主站蜘蛛池模板: 深州市| 稻城县| 湖南省| 邵武市| 扶风县| 甘孜县| 名山县| 屏山县| 临沭县| 灵武市| 辉县市| 康保县| 海林市| 南通市| 阳信县| 游戏| 镇江市| 赤峰市| 土默特左旗| 安新县| 中卫市| 醴陵市| 凤城市| 英超| 华池县| 巴林右旗| 习水县| 沽源县| 加查县| 惠州市| 溧水县| 尼玛县| 浦北县| 通辽市| 兴业县| 惠州市| 安顺市| 长寿区| 宣武区| 交城县| 万源市|