Skip to content

Instantly share code, notes, and snippets.

@vinioliveira
Created March 25, 2011 18:35
Show Gist options
  • Save vinioliveira/887348 to your computer and use it in GitHub Desktop.
Save vinioliveira/887348 to your computer and use it in GitHub Desktop.
Configuring proxy to debian distro linux environment.
sudo echo "
https_proxy='http://10.0.0.1:3128'
http_proxy='http://10.0.0.1:3128'
ftp_proxy='10.0.0.1:3128'
Acquire {
HTTP::Proxy 10.0.0.1:3128;
FTP::Proxy 10.0.0.1:3128;
};
alias wget='wget -Y on'" >> /etc/environment
sudo echo 'Acquire{
HTTP::proxy "http://10.0.0.1:3128";
FTP::proxy "http://10.0.0.1:3128";
}
Acquire::https::proxy "http://10.0.0.1:3128"
" >> /etc/apt/apt.conf
sudo echo "export http_proxy ftp_proxy " >> /etc/profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment