Word of advice : Do not use special characters (@,:,.,/) in passwords, because escaping may not work always :(
- In
/etc/environmentadd the following lines (62 for mtech)
HTTP_PROXY=http://10.10.78.62:3128
HTTPS_PROXY=https://10.10.78.62:3128
FTP_PROXY=http://10.10.78.62:3128
- In
/etc/apt/apt.confadd the line
Acquire::http::proxy "http://10.10.78.62:3128/";
- In
~/.bashrc, add lines
export HTTP_PROXY="http://10.10.78.62:3128/"
export HTTPS_PROXY="https://10.10.78.62:3128/"
export http_proxy=${HTTP_PROXY}
export https_proxy=${HTTPS_PROXY}
conda config --set proxy_servers.http http://id:pw@address:port
conda config --set proxy_servers.https https://id:pw@address:port
Using package url
pip install --ignore-installed --upgrade packageURL --proxy="http://10.10.78.62:3128/"
git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080
cmake use its curl for download which may not use proxy. So add --system-curl option after exporting proxy vars.
curl -x http://10.10.78.62:3128 http://url