Live Chat!

setting up http proxy at console

0 votos Vota!!

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=''

10 Responses to “setting up http proxy at console”

  1. Cool!

  2. yep, but what about if the proxy requires authentication…. what would it be the workaround?

  3. export http_proxy=http://username:password@proxy.thing.com:8080/

  4. can u tell me how to view the http_proxy settings that already has been set ?

  5. echo $http_proxy

  6. how can I save the configuration in the console?

  7. Jaime Garcia Says:

    hi
    you can put the line in /etc/environment
    or
    you can add same line into your .bashrc, in your home directory

  8. hi
    thanks for nice article
    can you say me how can i encrypt my password ?

  9. 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 ?

  10. 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

Leave a Reply

Security Code: