Ubuntu proxy Internet access settings

Source: Internet
Author: User

The Internet proxy is required in the company, and Ubuntu is so lazy:

1. Firefox proxy for Internet access

Click Edit> preferences> advanced> network> Settings to enter the IP address of the proxy server.

2. synapitc Package Manager was created

This is the most commonly used method for installing software in Ubuntu. If he cannot use it, it will take a long time to install the software. However, it is easy to set it up, just set it in settings-> preferences, similar to the root Firefox.

3. Other proxy settings

1. temporarily use apt-Get through HTTP Proxy

Before using apt-Get, enter the following command in the terminal (replace yourproxyaddress and proxyport according to your actual situation ).
Export http_proxy = http: // yourproxyaddress: proxyport
Cancel proxy use
Export http_proxy = ""

2. Set apt-get to permanently use HTTP Proxy

Sudo gedit/etc/APT/apt. conf Add the following line to your apt. conf file (replace yourproxyaddress and proxyport according to your actual situation ).
Acquire: http: proxy "http: // yourproxyaddress: proxyport ";
Save the apt. conf file.

3. Set Global Proxy for Internet access (APT-Get, wget, etc)

Gedit ~ /. Bashrc Add the following content at the end of your. bashrc file (replace according to your actual situation)

Yourproxyaddress and proxyport ).
Export http_proxy = "http: // yourproxyaddress: proxyport"
Save the file and restart the terminal.

After the above settings, your Ubuntu will be OK!

Related Article

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.