Ubuntu_set proxy
Posted tlfox_2006
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Ubuntu_set proxy相关的知识,希望对你有一定的参考价值。
1. For gtk3 programs such as rhythmbox and online accounts:
First you need to enter proxy settings in network settings (along with authentication):
Then apply system wide.
2. For apt,software center etc
edit the file /etc/apt/apt.conf
And then replace all the existing text by the following lines
- Acquire::http::proxy "http://username:[email protected]:port/";
- Acquire::ftp::proxy "ftp://username:[email protected]:port/";
- Acquire::https::proxy "https://username:[email protected]:port/";
3. Environment variables
edit the file /etc/environment
And then add the following lines after PATH="something here"
- http_proxy=http://username:[email protected]:port/
- ftp_proxy=ftp://username:[email protected]:port/
- https_proxy=https://username:[email protected]:port/
以上是关于Ubuntu_set proxy的主要内容,如果未能解决你的问题,请参考以下文章
zabbix proxy配置文件不能把DBhost设置成远程数据库?
接收 npm ERR!安装 http-proxy-middleware 后的代码 ELIFECYCLE