首页 > 系统服务 > 详细

Ubuntu_set proxy

时间:2017-12-10 10:14:47      阅读:223      评论:0      收藏:0      [点我收藏+]

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:password@host:port/";
  2. Acquire::ftp::proxy "ftp://username:password@host:port/";
  3. Acquire::https::proxy "https://username:password@host: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:password@host:port/
  2. ftp_proxy=ftp://username:password@host:port/
  3. https_proxy=https://username:password@host:port/

Ubuntu_set proxy

原文:http://www.cnblogs.com/tlfox2006/p/8013224.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!