2

I'm in a lab and have to use proxy for Internet access. I can set proxy on firefor/chrome (8080) and use the proxy to access Internet. But when I set the proxy on system setting of ubuntu(http://www.ubuntugeek.com/how-to-configure-ubuntu-desktop-to-use-your-proxy-server.html), it doesn't work. WHy?

I tried export http_proxy=[the proxy ip]:8080 on terminal, trying to connect Internet via my terminal, but it doesnt work.

lily
  • 401

1 Answers1

0

I guess you are looking for system wide proxy. Edit the following file:

sudo nano /etc/environment

Set/Add: http_proxy="http://yourproxyserver:8080" (if you have password "http://user_name:password@yourproxyserver.com:8080/") Same for https_proxy, ftp_proxy etc.

If you want exceptions (e.g. you want to use your localhost server): no_proxy="localhost,127.0.0.1"

You need to restart to apply changes.

If you want to apply it for apt-get and some other tools, check this tutorial: How do I set systemwide proxy servers in Xubuntu, Lubuntu or Ubuntu Studio?

guyromb
  • 433