In Ubuntu, set the network proxy through the terminal so that apt-get and other commands can be used normally. You only need to set the http_proxy system variable in the terminal: [plain] exporthttp_proxy = http: // usr_name: usr_password @ ipaddress: portusr_name: username usr_password: User Password ipaddres
In Ubuntu, set the network proxy through the terminal so that apt-get and other commands can be used normally. You only need to set the http_proxy system variable in the terminal:
[Plain]
- Export http_proxy = http: // usr_name: usr_password @ ipaddress: port
Usr_name: User Name
Usr_password: User Password
Ipaddress: Proxy Server IP Address
Port: proxy server port number
In this way, the agent only takes effect temporarily and becomes invalid after the system is restarted. To set a global proxy to access the Internet, run the following statement:
[Plain]
- Gedit ~ /. Bashrc
Add the following content at the end of the. bashrc file:
[Plain]
- Export http_proxy = http: // proxyaddress: port
Proxyaddress: proxy IP Address
Port: port Number
Save the file, re-open the terminal, apt-get and other commands can be used normally, and use it in Ubuntu 11.10.