setting up http proxy at console
December 30th, 2006 mysurface Posted in Admin, export | Hits: 52316 |
Setting up proxy at Firefox do not have effects at console, which means your wget, ssh, apt-get, yum etc do not access through the proxy you set at Firfox browser. To setup http proxy at console, you can do as bellow, assume the proxy IP is 219.93.2.113 and port 3128.
export http_proxy='http://219.93.2.113:3128/'
Remember, you have to specified http://, and to know more about export, check out HERE.
To clear your http proxy and use back yours, do this:
export http_proxy=''
Live Chat!







January 3rd, 2008 at 10:35 pm
Cool!
May 28th, 2009 at 7:39 pm
yep, but what about if the proxy requires authentication…. what would it be the workaround?
May 29th, 2009 at 5:45 pm
export http_proxy=http://username:password@proxy.thing.com:8080/
December 2nd, 2009 at 6:13 pm
can u tell me how to view the http_proxy settings that already has been set ?
December 2nd, 2009 at 10:15 pm
echo $http_proxy
January 20th, 2010 at 11:34 am
how can I save the configuration in the console?
March 4th, 2010 at 10:45 am
hi
you can put the line in /etc/environment
or
you can add same line into your .bashrc, in your home directory
April 18th, 2010 at 8:43 pm
hi
thanks for nice article
can you say me how can i encrypt my password ?
July 30th, 2010 at 4:51 pm
This doesnt work with Ubuntu 10.04. wget,apt-get dont respond even on setting appropriate proxy . For apt-get proxy has to be specifically set in /etc/apt/apt.conf … How to get it working with wget ?
August 4th, 2010 at 7:14 pm
I agree with Balkrishna, this is not working in Ubuntu 10.04. I have tried setting in /etc/environment and ~/.bashrc , but no use.
As mentioned apt-get is working after setting the /etc/apt/apt.conf