Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

 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"
  • 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

 

  • No labels