Ubuntu_set proxy

Posted tlfox_2006

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Ubuntu_set proxy相关的知识,希望对你有一定的参考价值。

Setting proxy from terminal

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

  1. Acquire::http::proxy "http://username:[email protected]:port/";
  2. Acquire::ftp::proxy "ftp://username:[email protected]:port/";
  3. Acquire::https::proxy "https://username:[email protected]:port/";
  4.  

3. Environment variables

edit the file /etc/environment

And then add the following lines after PATH="something here"

  1. http_proxy=http://username:[email protected]:port/
  2. ftp_proxy=ftp://username:[email protected]:port/
  3. https_proxy=https://username:[email protected]:port/

以上是关于Ubuntu_set proxy的主要内容,如果未能解决你的问题,请参考以下文章

zabbix proxy配置文件不能把DBhost设置成远程数据库?

Extjs使用商店代理api; CRUD

Mac git代理proxy引起上传代码失败解决办法

接收 npm ERR!安装 http-proxy-middleware 后的代码 ELIFECYCLE

Android源代码之DeskClock Proxy/Delegate Application 框架应用

微信小程序代码片段