export http_proxy=http://10.203.0.1:5187/ export https_proxy=$http_proxy export ftp_proxy=$http_proxy export rsync_proxy=$http_proxy export no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com"
export PROXY_SERVER=192.168.0.222 export PROXY_USER=foo export PROXY_PASS=bar cat <<EOF>> /etc/environment export http_proxy="http://${PROXY_USER}:${PROXY_PASS}@${PROXY_SERVER}:8080" export https_proxy="http://${PROXY_USER}:${PROXY_PASS}@${PROXY_SERVER}:8080" export no_proxy="localhost,127.0.0.1,foo.example.com" EOF cat <<EOF> /etc/apt/apt.conf.d/12proxy Acquire::http::Proxy "http://${PROXY_USER}:${PROXY_PASS}@${PROXY_SERVER}:8080"; Acquire::https::Proxy "http://${PROXY_USER}:${PROXY_PASS}@${PROXY_SERVER}:8080"; EOF