Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I remove proxy from System/Network and apply it system wide it still remains when working in console. When I run:

env | grep proxy

it prints:

http_proxy=http://proxy.studnet.lan:8080
ftp_proxy=ftp://proxy.studnet.lan:8080
socks_proxy=socks://proxy.studnet.lan:8080
https_proxy=https://proxy.studnet.lan:8080

I could remove it with:

unset http_proxy
unset ftp_proxy
unset socks_proxy
unset https_proxy

but it's not permanent, when I reopen terminal these proxy variables are again setted.

How to remove them permanently?

share|improve this question
    
"When I remove proxy from System/Network" Do you mean emptying the text boxes or changing the dropdown menu to "none"? –  jackweirdy Feb 3 '13 at 19:57
    
@jackweirdy, changing dropdown menu to none. –  Иван Бишевац Feb 3 '13 at 21:46
add comment

2 Answers 2

up vote 2 down vote accepted

Be sure to change the method dropdown from "manual" to "none". This will erase everything - you may need to restart the machine after doing this.

share|improve this answer
1  
You are right, it removes. Even better I don't need to restart computer, just to log off and then log on. –  Иван Бишевац Feb 4 '13 at 22:05
    
Very handy. My proxy settings from Charles Proxy seemed to get "stuck" even after i closed the session and quit the program. I did this (using gsettings on the command line instead of the Network Manager proxy gui: gsettings set org.gnome.system.proxy mode 'none' , logged off and on and the http_proxy variable was unset for good. Thanks! –  yuvilio Jan 28 at 3:08
add comment

Make sure that those variables are not declared in any of the below files:

  • ~/.bashrc
  • /etc/bash.bashrc
  • /etc/environment

If they are, it'd be better if you remove those lines.

However, if you're unable to find them, then put the unset lines you've mentioned in your ~/.bashrc file.

share|improve this answer
    
You are right, they are in /etc/environment. I found solution for another problem I had with proxy. It's username and password for proxy. I couldn't use wget or ruby gem installing through proxy, because of authentication error. I just wrote settings in format: username:password@proxy.example.com for http_proxy, https_proxy and it works now. Thanks man, you saved me a lot of nerves :) –  Иван Бишевац Feb 4 '13 at 22:25
    
Glad it worked. :) –  green7 Feb 5 '13 at 11:33
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.