My hands pass through your black hair -- use squid to solve ADT's problem of installing and updating through Authentication Proxy Server

Source: Internet
Author: User

I admit that my title is too powerful. When I solve the problem mentioned in this article, I did think of this song again and again.

This is the case: I use an iMac on the Intranet and access the Internet through the proxy server. In other words, this machine is newly purchased and requires the development environment to be installed. After you download and install eclipse and ADT (Android development tools), the next step is to install platforms and other software packages required for Android development in the ADT. The problem is that the Intranet proxy server requires authentication, and the ADT can only set the proxy server address and port, but cannot set the user name and password.

Solution: Install squid locally and act as an agent to deal with the proxy server. The user authentication information is sent to the proxy server to traverse the proxy.

Squid for Mac: Squid Mac OS X-Project page

InstallProgramVery considerate. I just started it on my own. Of course, this is annoying.

Edit squid. conf in the ETC subdirectory of the squid installation directory. The content is as follows:

 

Http_port your defined local port

ACL all SRC 0.0.0.0/0.0.0.0

Http_access allow all

Icp_access allow all

 

Cache_peer Intranet proxy server address parent Intranet proxy server port 0 proxy-only Default Login = Username: Password

Never_direct allow all

 

Then start squid on the terminal:

 

Sudu/applications/squid/sbin/squid-z

Sudu/applications/squid/sbin/squid

 

After successful, set the proxy server to localhost in the settings Tab Of the ADT, set the port to the port specified in the first line above, and refresh.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.