Configure apt-get / git/ curl to use a proxy (Ubuntu)
http://technoblog.org/2009/07/configure-apt-get-to-use-a-proxy-ubuntu/
Open the following configuration file: /etc/apt/apt.conf.d/70debconf
And add:
Acquire::http::proxy “http://<IP_TO_PROXY>:<Proxy_Port_WEB>”;
Acquire::ftp::proxy “ftp://<IP_TO_PROXY>:<Proxy_Port_FTP>”;
If authentication is required, add this instead
Acquire::http::proxy “http://<username>:<password>@<IP_TO_PROXY>:<Proxy_Port_WEB>”;
Acquire::ftp::proxy “ftp://<username>:<password>@<IP_TO_PROXY>:<Proxy_Port_FTP>”;
<IP_TO_PROXY> = The IP address of the proxy, e.g.: 192.168.1.10
<Proxy_Port_WEB> = The proxy web port, e.g.: 8080
<Proxy_Port_FTP> = The proxy ftp port, e.g.: 2121
If authentication:
<username> and <password> (doh, no need to explain).
Done!
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
http://cms-sw.github.io/tutorial-proxy.html
git config --global http.proxy socks5://proxy.jf.intel.com:1080
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
set curl proxy
man curl
curl --proxy socks://proxy.jf.intel.com:1080/ -sSL https://golang.org/dl/go1.3.3.src.tar.gz | tar -v -xz
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
set go proxy
$ export http_proxy=127.0.0.1:8118 $ go get -v github.com/nf/stat
github.com/nf/stat (download)
github.com/nf/stat
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
gem proxy
gem install --http-proxy http://proxy.cd.intel.com:911/ json
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Configure apt-get / git/ curl to use a proxy (Ubuntu)的更多相关文章
- bash下自动重新运行git/curl等工具
在使用诸如git/curl等工具的时候,如果网络状况不佳,经常会产生出错中断的情况,于是我们就会发现晚上挂机的下载一些代码和工具包,早上再看已经中断. 为应对这种情况我们需要判断下载工具的运行结果,如 ...
- Git操作GitHub时的Proxy配置
无论是使用Android Studio中,VCS >> Git >> Clone, 还是直接Git Clone命令,clone GitHub项目时,出现错误提示:LibreSS ...
- git clone 设置临时的 proxy
export ALL_PROXY=socks5://127.0.0.1:1086 git clone --depth 1 https://github.com/xxx/xxx.git unset AL ...
- 简单备忘一下Linux下的wget和curl如何使用http proxy
简单备忘一下Linux下的wget和curl如何使用http proxywget -e "http_proxy=porxyhost:port" www.baidu.comcurl ...
- git和命令行 配置proxy请求
GIT中的操作 设置全局代理 git config --global http.proxy socks5://127.0.0.1:8088 git config --global http.proxy ...
- How To Configure Logging And Log Rotation In Apache On An Ubuntu VPS
Introduction The Apache web server can be configured to give the server administrator important info ...
- Ubuntu上配置SQL Server Always On Availability Group(Configure Always On Availability Group for SQL Server on Ubuntu)
下面简单介绍一下如何在Ubuntu上一步一步创建一个SQL Server AG(Always On Availability Group),以及配置过程中遇到的坑的填充方法. 目前在Linux上可以搭 ...
- Git学习系列之Debian或Ubuntu上安装Git详细步骤(图文详解)
前言 最早Git是在Linux上开发的,很长一段时间内,Git也只能在Linux和Unix系统上跑.不过,慢慢地有人把它移植到了Windows上.现在,Git可以在Linux.Unix.Mac和Win ...
- Configure Always On Availability Group for SQL Server on Ubuntu——Ubuntu上配置SQL Server Always On Availability Group
下面简单介绍一下如何在Ubuntu上一步一步创建一个SQL Server AG(Always On Availability Group),以及配置过程中遇到的坑的填充方法. 目前在Linux上可以搭 ...
随机推荐
- asp.net获取当前网址url的各种属性(文件名、参数、域名 等)的代码
用 asp.net获取当前网页地址的一些信息. 设当前页完整地址是:http://www.jb51.net/aaa/bbb.aspx?id=5&name=kelli "http:// ...
- 数字根(digital root)
来源:LeetCode 258 Add Dights Question:Given a non-negative integer num , repeatedly add all its digi ...
- ABP系列文章总目录:
转自:http://www.cnblogs.com/mienreal/p/4528470.html 1.ABP总体介绍 2.ASP.NET Boilerplate入门 3.ABP分层架构 4.ABP模 ...
- Call to undefined function bcscale()
参考官方文档发现zabbix需要bcmath函数库的支持,其中bcscale()就是该函数库中的函数之一. 因此,现在只需要让php支持bcmath即可. yum -y install php-bcm ...
- (转)jQuery禁止右键菜单,全选
本文转载自:http://www.cnblogs.com/lucker/archive/2012/09/21/2696464.html $("body").bind("c ...
- Spring实战2:装配bean—依赖注入的本质
主要内容 Spring的配置方法概览 自动装配bean 基于Java配置文件装配bean 控制bean的创建和销毁 任何一个成功的应用都是由多个为了实现某个业务目标而相互协作的组件构成的,这些组件必须 ...
- IntelliJ IDEA配置svn
Settings→Version Control→General 输入svn客户端命令所在的路径 来自为知笔记(Wiz)
- RHCE7.0练习题汇总[转]
RHCE7.0练习题汇总38 RHCSA部分 关于密码破解,在上午的考试中需要我们自己安装图形化界面和破解root密码,root的密码按照题目的要求来进行修改.可以使用单用户模式或者使用上课讲的re. ...
- 三星电视删除USB播放记录
当使用三星UA40系列电视机播放USB设备中的文件后,会将播放的历史记录存储在电视里.如果想要清除这些播放记录,需要将电视机复位,操作方法如下: 这里提醒您:复位后电视的所有设置都将恢复为出厂默认设置 ...
- 【log】logback.xml
<?xml version="1.0" encoding="UTF-8"?> <configuration> <!-- 控制台 - ...