EdX Proxy Instructions
If using a proxy base network you need to complete the following steps:
Add the proxy setting to the /etc/environment file
sudo vi /etc/environment
Add the following lines, remember to change proxy.local.com for your url and PORT for the port used:
http_proxy=http://proxy.local.com:PORT
https_proxy=http://proxy.local.com:PORT
ftp_proxy=http://proxy.local.com:PORT
socks_proxy=http://proxy.local.com:PORT
no_proxy=localhost
JAVA_OPTS="-DproxyHost=proxy.local.com -DproxyPort=PORT"MAVEN_OPTS="-DsocksProxyHost=proxy.local.com -DsocksProxyPort=PORT"
Save the file.
Let's make the Proxy available every time that we use sudo
Edit the /ect/sudoers file
sudo vi /etc/sudoers
Find entry:
Defaults env_reset
Below add
Defaults env_keep += "http_proxy https_proxy ftp_proxy socks_proxy no_proxy JAVA_OPTS MAVEN_OPTS"
Edit the /etc/apt/apt.conf file
sudo vi /etc/apt/apt.conf
Add the following lines, remember to change proxy.local.com for your url and PORT for the port used
Acquire::http::proxy "http://proxy.local.com:PORT";
Acquire::https::proxy "http://proxy.local.com:PORT";
Logout