How To Use Proxy On Linux Command Line?
www.linuxandubuntu.com › home › how-to-use-proxy-onMay 04, 2017 · If you want to set a proxy you need to edit the file /etc/environment sudo nano /etc/environment and then put these lines - http_proxy=http://10.1.1.1:3128/ https_proxy=http://10.1.1.1:3128/ ftp_proxy=http://10.1.1.1:3128/ no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com" HTTP_PROXY=http://10.1.1.1:3128/ HTTPS_PROXY=10.1.1.1:3128/ FTP_PROXY=10.1.1.1:3128/ NO_PROXY="localhost,127.0.0.1,localaddress,.localdomain.com" If you also want to use a proxy to apt-get you need to add this ...