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上可以搭 ...
随机推荐
- Transact-SQL 学习小结
1.把系统里所有用全局临时表的改成局部临时表,不然并发高时会引发对象已经存在的问题,不要用##要用#. 2.int 不能写成 id = '1',比如Select * from A where ID=' ...
- 剑指offer系列17---顺时针打印矩阵(不是很懂)
package com.exe4.offer; import java.util.ArrayList; /** * 17[题目]输入一个矩阵,按照从外向里以顺时针的顺序依次打印出每一个数字,例如,如果 ...
- android学习笔记29——Intent/IntentFilter
Intent/IntentFilter Intent封装android应用程序需要启动某个组件的“意图”,Intent还是应用程序组件之间通信的重要媒介. EG:Activity之间需要交换数据时,使 ...
- Samba配置文件常用参数详解-OK
Samba的主配置文件叫smb.conf,默认在/etc/samba/目录下. smb.conf含有多个段,每个段由段名开始,直到下个段名.每个段名放在方括号中间.每段的参数的格式是:名称=指.配置文 ...
- eclipse导入html、js、xml报错的问题
今天重新安装eclipse,在导入部分html.js.xml文件,报错,解决办法如下: eclipse->window->preferences->Team,点击validation ...
- eclipse常用插件安装
打开资源文件所在目录 EasyExplorer 下载:http://sourceforge.net/projects/easystruts/ 直接拷贝到%ECLIPSE_HOME%\plugins 或 ...
- Java heap dump触发和分析(转)
为了分析java应用的内存泄漏,使用thread dump往往解决不了问题.使用jstat[eg:jstat-gcutil pid 1000 5]工具查看运行的java应用的heap size,per ...
- DISPOSE_ON_CLOSE 和 EXIT_ON_CLOSE 的区别
If you have several JFrames open and you close one that has EXIT_ON_CLOSE it will close all the JFra ...
- JavaScript中文字符验证的函数/正则
/** * 中文字符验证 * @param {} str * @return {Boolean} */ function checkChinese(str) { var re = /[^\u4e00- ...
- html元素的显示和隐藏
div的visibility可以控制div的显示和隐藏,但是隐藏后页面显示空白: style="visibility: hidden;" document.getElementBy ...