To use the proxy, Wolfbyte's answer worked for me. I work on Debian 7 (Wheezy).
How to upgrade Ruby Gems from behind a proxy server (ISA-NTLM)
I will also add his answer below:
I was not able to start my work from the command line, but I was able to do this simply by setting my HTTP_PROXY environment variable (note that this case seems important). I have a batch file with a line like this in it:
SET HTTP_PROXY=http://%USER%:%PASSWORD%@%SERVER%:%PORT%
I set four reference variables before I get this line, obviously. For example, if my username is wolfbyte, my password is secret, and my proxy is called pigsy and works on port 8080:
SET HTTP_PROXY=http://wolfbyte: secret@pigsy :8080
You might want to be careful how you handle this because it stores your password in text form in a machine session, but I don't think this should be too much of a problem.
In addition, there were funny characters in my password - the ones you have for URLEncode: http://www.cyberciti.biz/faq/unix-linux-export-variable-http_proxy-with-special-characters/
Hope this helps!
Colin
source share