Skip to content

edX proxy instructions

xiangjf edited this page Jun 23, 2014 · 3 revisions

IMPORTANT NOTE: If using a proxy base network you need to complete the following steps:

  • Add the proxy setting to the /etc/enviroment file
sudo vi /etc/enviroment
  • 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"
  • 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"
  • 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

END IMPORTANT NOTE