set HTTP_PROXY=http://proxy_userid:proxy_password@proxy_ip:proxy_port
set HTTPS_PROXY=%HTTP_PROXY%
set FTP_PROXY=%HTTP_PROXY%
You can set a proxy either from the GUI or from the command line. We will see how we can set a proxy from the command line. Open the /etc/environment file with your favorite text editor and add the following lines:
http_proxy="http://ip:port"
https_proxy="http://ip:port"
ftp_proxy="ip:port"
no_proxy="localhost"