I. APT-Get proxy settings
Because the company accessed the Internet via proxy, Firefox's proxy settings were easy to handle, but the installation of software via apt-Get still failed, so I checked a lot of information, the most common method is the three methods circulating on the Internet. I tried it and failed it. I finally succeeded after reading the apt-get man in detail and shared it with you.
You can run the following command to install the software each time.
- Sudo apt-Get install software_name-O acquire: http: proxy = "http: // your_proxy_address: Port Number /"
Of course, Apt-Get also has a-C option, which can be used to specify which proxy configuration file to use. Therefore, you can also write all the proxy configurations in the file, and then execute:
- Sudo apt-get-C ~ /Apt_proxy.conf
The configuration file format is as follows:
- Acquire: http: proxy "http: // your_proxy_adress1: Port Number /";
- Acquire: ftp: proxy "ftp: // your_proxy_adress2: Port Number /";
- Acquire: https: proxy "https: // your_proxy_adress3: Port Number /";
It is convenient to add multiple proxy addresses to the configuration file. However, I suggest the first method. After all, there are few proxies!
Ii. wget proxy settings
- Wget-e http-proxy.satwe.com: 8080
-Proxy = on-proxy-user = hamo-proxy-passwd = 8888-C
Http://www.satwe.com
3. Gem proxy settings
- Sudo gem install -- http-proxy http: // localhost: 8888
$ Gem_name