Configurar proxy desde consola linux

Editar els seguents arxius canviant lo blau per lo vostre…

sudo nano /etc/bash.bashrc

Posar el seguent al final

export http_proxy=http://username:password@proxyserver.net:port/
export https_proxy=http://username:password@proxyserver.net:port/
export ftp_proxy=http://username:password@proxyserver.net:port/

Editar l’arxiu /etc/environment

sudo nano /etc/environment

Posar aixo al final

http_proxy=http://username:password@proxyserver.net:port/
https_proxy=http://username:password@proxyserver.net:port/
ftp_proxy=http://username:password@proxyserver.net:port/

Editar l’arxiu /etc/apt/apt.conf

sudo nano /etc/apt/apt.conf

Posar al final

Acquire::http::Proxy “http://username:password@proxyserver.net:port“;
Acquire::https::Proxy “http://username:password@proxyserver.net:port“;
Acquire::ftp::Proxy “http://username:password@proxyserver.net:port“;

Salut !!!

 

Share