LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Set proxy on Ubuntu (https://www.linuxquestions.org/questions/linux-newbie-8/set-proxy-on-ubuntu-768762/)

targettl 11-12-2009 04:21 PM

Set proxy on Ubuntu
 
I would like to know how to set a system proxy. I did it ages ago but did not document how I did it and google hasn't helped me. I know you can stick an export line in /etc/profile but I know there is a better way of doing it because I have done it in the past. Can anybody help me?

tommcd 11-14-2009 05:13 AM

On Ubuntu 9.10 try going to: system > preferences > network_proxy. Then choose manual proxy configuration, and enter your details.
I have not tried this since I do not use a proxy. This would seem to be the place to do it though.

targettl 11-14-2009 03:26 PM

I am talking about a server. In other words there is no graphical user interface to do this. If somebody knew what file your technique edits that may be of some interest.

EricTRA 11-14-2009 03:42 PM

Hi,

Are you referring to this?
Code:

If you're trying to use apt-get from command line, you
can add this to your "/etc/apt/apt.conf"

Acquire::http::Proxy
"http://username:passwd@proxy.domain.com:8080";

Got that one from the Ubuntu lists archive. That's the one you could set for using apt, I'm sure you could do it the same for other apps, but don't know where to put it.

Kind regards,

Eric

targettl 11-15-2009 05:26 PM

I got my hands on some documentation and discovered that I put it in the apt file. It would be nice if there was a file that all network applications looked at to see if there was a proxy. This would save you having to specify the proxy settings for each applications and it is a better idea then putting it in the /etc/profile in my opinion. Maybe that is a good idea for future Linux products.

As I was saying you can also put it in /etc/profile. You may even be able to put it in rc.local so that the proxy is set for applications like lynx which I don't think have a configuration options for proxies.

targettl 11-15-2009 05:58 PM

frf


All times are GMT -5. The time now is 05:42 PM.