Tuesday, July 14, 2009

HOWTO: Use wget,lynx and apt-get trough Proxy UBUNTU

HOWTO: Use wget,lynx and apt-get trough Proxy UBUNTU

OPTION 1: Set up and environment variable, type:
export http_proxy="http://myproxy.mydomain.com:8080"
Or (with user/pass)
export http_proxy="http://username:pasword@myproxy.mydomain.com:8080"

Where:
myproxy.mydomain.com : IP or name of the Proxy server
8080 : Proxy Port
username : User name
pasword : Password

OPTION 2: Edit environment file:

a.- add this lines to your /etc/environment
wmunguiam@server:~$ vim /etc/environment
Lines:
http_proxy="http://myproxy.mydomain.com:8080"
ftp_proxy="http://myproxy.mydomain.com:8080"
Or: (with user/pass)
http_proxy="http://username:pasword@myproxy.mydomain.com:8080"
ftp_proxy="http://username:pasword@myproxy.mydomain.com:8080"

c.- Apply changes:
wmunguiam@server:~$ sudo source /etc/environment

No comments:

Post a Comment