Skip to content

Instantly share code, notes, and snippets.

@jansanchez
Forked from andru255/proxy-crunchbang
Last active December 29, 2015 17:49
Show Gist options
  • Save jansanchez/7706605 to your computer and use it in GitHub Desktop.
Save jansanchez/7706605 to your computer and use it in GitHub Desktop.
Se modifica el archivo en modo adminitrador:
~ sudo [nombre_editor] /etc/environment/
y se agregan estas líneas
no_proxy="127.0.0.1,localhost"
NO_PROXY="127.0.0.1,localhost"
all_proxy=socks://172.21.0.83:3128/
ALL_PROXY=socks://172.21.0.83:3128/
http_proxy=http://172.21.0.83:3128
HTTP_PROXY=http://172.21.0.83:3128
ftp_proxy=http://172.21.0.83:3128
FTP_PROXY=http://172.21.0.83:3128
https_proxy=http://172.21.0.83:3128
HTTPS_PROXY=http://172.21.0.83:3128
Para el apt-get se modifica el archivo en modo administrador:
~ sudo [nombre_editor] /etc/apt/apt.conf.d
y se agregan estas lineas
Acquire::http::Proxy "http://172.21.0.83:3128/";
Acquire::https::Proxy "https://172.21.0.83:3128/";
Acquire::ftp::Proxy "ftp://172.21.0.83:3128/";
y actualizar las variables environment
source /etc/environment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment