認証ありProxy経由で外部に接続する環境で苦労したので、設定したものをまとめておきます。
.barshrcに設定を追加
export http_proxy=http://username:password@proxy.example.com:8080/
export https_proxy=https://username:password@proxy.example.com:8080/
export no_proxy=localhost,192.168.1.*
/etc/apt/apt.confに設定を追加、もしくは/etc/apt/apt.conf.d/に80proxyを作成
Acquire::http::proxy "http://username:password@proxy.example.com:8080/";
/etc/yum.confに設定を追加
proxy=http://proxy.example.com:8080/
proxy_username=username
proxy_password=password
~/.wgetrcに設定を追加
http_proxy=http://proxy.example.com:8080/
proxy_user=username
proxy_passwd=password
~/.curlrcに設定を追加
proxy=http://username:password@proxy.example.com:8080/
.gitconfigに設定を追加(設定されたもの意外はダイレクトアクセスなのでno_proxy的なものは不要)
[http]
proxy=http://username:password@proxy.example.com:8080/
~/.gemrcに設定を追加
http_proxy: http://username:password@proxy.example.com:8080
~/.hgrcに設定を追加
[http_proxy]
host=http://proxy.example.com:8080
user=username
passwd=password