顯示具有 Ubuntu 標籤的文章。 顯示所有文章
顯示具有 Ubuntu 標籤的文章。 顯示所有文章

Ubuntu apt的Proxy設定

Ubuntu apt的Proxy設定

設定了使用者環境變數的Proxy後,apt-get仍然不能用,必須去編輯(新增)/etc/apt/apt.conf,加入以下設定.

#Export proxy
Acquire::http::proxy "http://proxy-ip:proxy-port/"
Acquire::https::proxy "http://proxy-ip:proxy-port/"     
Acquire::ftp::proxy "http://proxy-ip:proxy-port/"

如果是windows網域的認證

#Export proxy
Acquire::http::proxy "http://domain\username@password:proxy-ip:proxy-port/"
Acquire::https::proxy "http://domain\username@password:proxy-ip:proxy-port/"    
Acquire::ftp::proxy "http://domain\username@password:proxy-ip:proxy-port/"      
Posted in  on 12月 24, 2013 by Kevin |  

Ubuntu使用者環境變數的Proxy設定

Ubuntu使用者環境變數的Proxy設定

使用者環境變數的Proxy設定,在home目錄下,編輯.profile,加入以下設定.

#Export proxy
export http_proxy=http://proxy-ip:proxy-port
export https_proxy=http://proxy-ip:proxy-port       
export ftp_proxy=http://proxy-ip:proxy-port

如果是windows網域的認證

#Export proxy
export http_proxy=http://domain\\username:password@proxy-ip:proxy-port
export https_proxy=http://domain\\username:password@proxy-ip:proxy-port     
export ftp_proxy=http://domain\\username:password@proxy-ip:proxy-port       

重新載入.profile.

ubuntu:~$. ~/.profile
Posted in  on 12月 24, 2013 by Kevin |  

關閉Ubuntu的IPv6

關閉Ubuntu的IPv6

  1. 編輯/etc/sysctl.conf新增下面的資料:

    # Disable IPv6 configuration
    net.ipv6.conf.all.disable_ipv6 = 1
    net.ipv6.conf.default.disable_ipv6 = 1
    net.ipv6.conf.lo.disable_ipv6 = 1
    
  2. 重新載入/etc/sysctl.conf

    sudo sysctl -p
    

3.用ifconfig確認沒有IPv6 ip address

Posted in  on 12月 24, 2013 by Kevin |