View Full Version : How To Connect To Internet Using Lan in Terminal/console?

10-05-2005, 08:43 AM
I connect to high speed internet thru a proxy server on lan.In firefox/konqueror I am prompted for a username and password to connect to the proxy server.
I want to use this connection to do "apt-get" from the console but it always says "proxy authentication failed" which is obvious as I have not entered the username and password in the console.How I will be able to do that I have no idea.
Please help.

10-05-2005, 10:08 AM
You need to set the http_proxy environment variable in you shell session before invoking apt-get or friends, eg:

export http_proxy=user:password@proxy_host:portnumber

10-05-2005, 10:29 AM
ok I'll try that.thanks

10-16-2005, 09:43 AM
Did not work.
Should be
export http_proxy='http://user:password@host com:port'