Background
The company network uses the domain account management mechanism. The specified Machine name and domain name must be used to access the Internet, and a password is required. when accessing the website, the window for entering the user name and password is often displayed. Many software cannot be upgraded automatically, in the Console mode, Apt-Get cannot be used. The above problem can be solved by using cntlm. The procedure is as follows:
Configure IT environment in the agent environment 1. First, install the cntlm Tool)
Software Official Website: http://cntlm.sourceforge.net
# Directly download the Deb installation package for Installation
Sudo dpkg-I cntlm_0.92.3_amd64.deb
2. modify the configuration file cntlm. conf.
$ Sudo VI/etc/cntlm. conf
Username: San. Zhang # change it to the employee's own Internet account
Domain: Company. Domain # enter the Internet domain name
Password: 123456 # change the password of the employee's account
Search for this line of proxy 10.0.0.19: 8080 # change it to the IP address and port of the company's proxy server.
Other Default values
Pay special attention to the cntlm listening port number "Listen3128"
3. Restart the cntlm service $ sudo killall cntlm # disable the cntlm Service
$ Sudo cntlm # enable the cntlm Service
4. Change the proxy server address and port $ sudo apt-Get update # Check whether the proxy can connect to the Internet
$ Sudo VI/etc/profile # Check the proxy server port and set the port
3128
1) Add the following statement:
Export http_proxy = "http: // 127.0.0.1: 3128"
Export https_proxy = "http: // 127.0.0.1: 3128"
Export ftp_proxy = "http: // 127.0.0.1: 3128"
$ Source/etc/profile application proxy server settings
5. Modify the Firefox agent. 1) Open the Firefox browser and click Edit -- preferences -- Advanced-Network -- settings in the browser menu.
2) Select manual proxy configuration -- HTTP proxy, enter the proxy server address 127.0.0.1 port: 3128, and check use this proxy server for all protocols.
6. modify the system network proxy (or modify the chromium browser proxy). 1. Click the icon "system settings-hardware-network" in the upper-right corner of the desktop and double-click it.
2) Click network proxy-method and enter the proxy server 127.0.0.1, Port: 3128 or proxy server: IP address, and port: xxxx in HTTP proxy.