1
I have a problem with wget
and I've discover that my proxy settings is wrong:
$ env | grep "proxy"
http_proxy=http://213.181.73.145:80
https_proxy=http://213.181.73.145: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 /etc/profile
:
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://213.181.73.145:80
https_proxy=http://213.181.73.145: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 http_proxy
and https_proxy
are defined before loading /etc/profile
and why I don't see the "Hello" message when I open a common terminal.
But, the key of the question is that this variable is set before any configuration file is loaded. The question is where can a variable be setted before /etc/profile. – Peregring-lk – 2013-04-15T07:21:31.697