wbond / package_control

The Sublime Text package manager
https://packagecontrol.io
4.79k stars 815 forks source link

Question: proxy? #16

Closed jdeyla closed 13 years ago

jdeyla commented 13 years ago

Hi is there a way to install on sublime text 2,
behind my company proxy that require my authentication?

(searched in your documentation but did not find the right command to use) thank you

wbond commented 13 years ago

There is no proxy functionality right at the moment, but I noticed someone forked the repository last night and made a commit that mentioned proxies. I'll check it out later tonight to see what state it is in.

wbond commented 13 years ago

Version 1.2.0 (5b02620f) now supports proxies via the http_proxy and https_proxy settings.

jdeyla commented 13 years ago

great! incredible! _I'll test it immediately...

tooshay commented 12 years ago

Can you help me out with this? How would I set this up? I have the same problem.

wbond commented 12 years ago

Please go to the Preferences > Package Settings > Package Control > Settings – Default and copy the proxy settings into Settings – User file and customize them to your needs.

tooshay commented 12 years ago

I don't have "Package Settings" under Preferences. Is this because installing Package Control failed for me, too?

On Thu, Oct 27, 2011 at 4:42 PM, Will Bond < reply@reply.github.com>wrote:

Please go to the Preferences > Package Settings > Package Control > Settings Default and copy the proxy settings into Settings User file and customize them to your needs.

Reply to this email directly or view it on GitHub:

https://github.com/wbond/sublime_package_control/issues/16#issuecomment-2545114

wbond commented 12 years ago

Yes, that makes sense. You can install Package Control manually by downloading http://sublime.wbond.net/Package%20Control.sublime-package and placing it in your "Installed Packages" directory. This can be found by going to Preferences > Browse Packages… and then browsing up one folder.

Once you've placed the file in "Installed Packages" be sure to restart ST2. Once Package Control is installed, you can customize the proxy settings.

tooshay commented 12 years ago

It works!!

Thank you so much. That was completely awesome.

On Thu, Oct 27, 2011 at 4:48 PM, Will Bond < reply@reply.github.com>wrote:

Yes, that makes sense. You can install Package Control manually by downloading http://sublime.wbond.net/Package%20Control.sublime-package and placing it in your "Installed Packages" directory. This can be found by going to Preferences > Browse Packages and then browsing up one folder.

Once you've placed the file in "Installed Packages" be sure to restart ST2. Once Package Control is installed, you can customize the proxy settings.

Reply to this email directly or view it on GitHub:

https://github.com/wbond/sublime_package_control/issues/16#issuecomment-2545223

ghost commented 12 years ago

hi sir, how to set the proxy settings if the proxy requires authentication.. the settings only asked for proxy server.. thanks..

khuevu commented 12 years ago

Can you try: http_proxy=http://username:password@proxy-server:port

ghost commented 12 years ago

thanks.. i will try this settings.. ^^

On Sat, Dec 17, 2011 at 11:32 AM, khuevu < reply@reply.github.com

wrote:

Can you try: http_proxy=http://username:password@proxy-server:port


Reply to this email directly or view it on GitHub:

https://github.com/wbond/sublime_package_control/issues/16#issuecomment-3187521

ghost commented 12 years ago

it works.. thank you very much..

lefevrep commented 12 years ago

I tried this. It does not work for me. May-be because our proxy is a NTLM one ?

in the file Package Control.sublime-setting for user, I have

{ "auto_upgrade_last_run": 1336635727 , "http_proxy": "myuser:mypassword@myproxyFQN:80" }

when trying to install a packahge, I receve message "Package Control: There are no packages available for installation"

lefevrep commented 12 years ago

In the console windows, I get this:

Package Control: Error downloading channel. URL error _ssl.c:480: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol downloading https://sublime.wbond.net/repositories.json. error: Package Control: There are no packages available for installation.

ghost commented 12 years ago

hi lefevrep, try adding the protocol on http_proxy ie "http://myuser:mypassword@myproxyFQN:80" also try to add a proxy settings for secured http: "https_proxy" : "https://myuser:mypassword@myproxyFQN:80"

lefevrep commented 12 years ago

Same error .. :-/

NB: I receive this error immediately, so it seems that package control does not even try to connect.

khuevu commented 12 years ago

Hi, if you are behind a NTLM proxy, you need to setup up a ntlm authorization proxy and direct your request through that proxy. U can search for ntlmaps or cntlmaps. Set up the proxy with ur authentication info, and set the http_proxy to that proxy instead.

mannyishere commented 12 years ago

Am using cntlm successfully for other programs. Doesn't work for package control.

schlamar commented 12 years ago

@mannyishere Don't comment in multiple threads because of the same issue, please continue discussion in #151