ubuntu terminal use proxy

For apt-get
modify /etc/apt/apt.conf
$ cat /etc/apt/apt.conf
Acquire::http::proxy "http://username:passowrd@proxy:proxy_port";
Acquire::ftp::proxy "ftp://username:password@proxy:proxy_port";
Acquire::https::proxy "https://username:password@proxy:proxy_port";


For other
modify ~/.bashrc
export http_proxy=http://username:passowrd@proxy:proxy_port
export ftp_proxy=ftp://username:passowrd@proxy:proxy_port

export https_proxy=https://username:passowrd@proxy:proxy_port



【ubuntu terminal use proxy】

    推荐阅读