Word of advice : Do not use special characters (@,:,.,/) in passwords, because escaping may not work always :(
- In
/etc/environment
add 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.conf
add 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:[email protected]: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