networking - Proxy permission denied when executing wget command - Ask Ubuntu
i tried installing gfortran through command line. , result
premkr@premkr-lenovo-ideapad-100-15ibd:~$ sudo wget gfortran [sudo] password premkr: --2016-10-29 01:07:36-- http://gfortran/ connecting 10.10.78.21:3128... connected. proxy request sent, awaiting response... 503 service unavailable 2016-10-29 01:07:36 error 503: service unavailable.
does mean terminal has no internet access .my proxy works in firefox , there`s connection.
to have terminal , wget have internet access through proxy, must edit following files:
/etc/bash.bashrc /etc/environment /etc/wgetrc
which must contain these parameters:
/etc/bash.bashrc
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/
/etc/environment
http_proxy=http://username:password@proxyserver.net:port/ https_proxy=http://username:password@proxyserver.net:port/ ftp_proxy=http://username:password@proxyserver.net:port/
/etc/wgetrc:
http_proxy=http://username:password@proxyserver.net:port/ https_proxy=http://username:password@proxyserver.net:port/ ftp_proxy=http://username:password@proxyserver.net:port/ use_proxy = on
edited 08-11-2016
to edit files, not directories, must:
open terminal,
press ctrl+alt+t
run it:
exec sudo -i nano /etc/bash.bashrc nano /etc/environment nano /etc/wgetrc
in order add aforementioned lines where:
username = username proxy if exists password = password proxy if exists proxyserver.net = name or ip address of proxy port = port number of proxy
Comments
Post a Comment