码迷,mamicode.com
首页 > 系统相关 > 详细

Ubuntu_set proxy

时间:2017-12-10 11:32:52      阅读:255      评论:0      收藏:0      [点我收藏+]

标签:env   system   https   kubuntu   ubuntu   nal   target   setting   settings   

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

标签:env   system   https   kubuntu   ubuntu   nal   target   setting   settings   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!