LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] anyone using TCD's annoying proxy setup?

[ILUG] anyone using TCD's annoying proxy setup?

Colm MacCarthaigh colm at stdlib.net
Mon Oct 11 22:51:51 IST 2004


On Mon, Oct 11, 2004 at 02:20:09PM -0700, gabriel gryffyn wrote:
> right, that works perfectly well in the web browsers, but i've no idea
> how to configure apt or other non-browser programs to work with it.

That's slightly more difficult. Presumably TCD use automatic
configuration so that they may arbitrarily change the details of their
proxy service, right now if I fetch that file I get:

  function FindProxyForURL(url, host)
  {
  return "PROXY proxy1.tcd.ie:8002; PROXY proxy4.tcd.ie:8002; DIRECT";
  }

but next week, it could be proxy2 and proxy3, or maybe even next minute
- it might be some form of load balancing, I really have no idea and
only used it for the first time today :)

So, you have two choices, you can hardcode the proxy details and if they
ever stop working - wget a new version of proxy.cgi's output and change
appropriately, or you can write some fancy init script that wget's on
startup or from /etc/network/interfaces to detect what network your on
and sets variables in /etc/profile accordingly.  

apt respects the http_proxy and ftp_proxy environment variables, just
use the "http://username:password@proxy:port" format :)

-- 
Colm MacCárthaigh                        Public Key: colm+pgp at stdlib.net



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell