I have a problem with
wget and I've discover that my proxy settings is wrong:
$ env | grep "proxy" http_proxy=http://188.8.131.52:80 https_proxy=http://184.108.40.206:80
So, when I try to download something with
wget, it fails trying to connect to the proxy, and not trying to connect to the web resource that I need to download.
But in superuser mode all is correct:
$ sudo su $ env | grep "proxy" $
(empty output, no proxy)
I want to know where this variables are settings, and I found a lots of problems. I added the next line to the beginning of my
env | grep "proxy" echo "Hello"
And for me surprise, both variables are settings with that same values before any configuration file is loaded (/etc/bashrc, ~/.bashrc, etc):
(new terminal) http_proxy=http://220.127.116.11:80 https_proxy=http://18.104.22.168:80 Hello $
Moreover, I work with
guake. So, I tried the same with a common terminal, and for me surprise, (I think) the file
/etc/profile isn't loaded, since I don't see nor the proxy lines but neither the
echo "Hello" message.
So, I would like to know how is possible that
https_proxy are defined before loading
/etc/profile and why I don't see the "Hello" message when I open a common terminal.