setting up http proxy at console
December 30th, 2006 mysurface Posted in Admin, export | Hits: 39761 |
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