目次
.bashrc
export https_proxy=”http://username:password@your.proxy.address:proxy.port/”
export http_proxy=”http://username:password@your.proxy.address:proxy.port/”
export ftp_proxy=”http://username:password@your.proxy.address:proxy.port/”
sudo
sudoは一般の環境変数を引き継がないので、-E を付加すれば、環境変数が引き継ぐ事ができます。
/etc/apt/apt.conf
Acquire::ftp::proxy “ftp://username:password@your.proxy.address:proxy.port/”;
Acquire::http::proxy “http://username:password@your.proxy.address:proxy.port/”;
Acquire::https::proxy “https://username:password@your.proxy.address:proxy.port/”;
/etc/wgetrc
https_proxy = http://username:password@your.proxy.address:proxy.port/
http_proxy = http://username:password@your.proxy.address:proxy.port/
ftp_proxy = http://username:password@your.proxy.address:proxy.port/
~/.gitconfig
[http] proxy = http://username:password@your.proxy.address:proxy.port/~/.curlrc
proxy-user = “username:password”
proxy = “http://your.proxy.address:proxy.port”
gem
gem install パッケージ名 -r -p http://username:password@your.proxy.address:proxy.port/
npm
npm config set proxy http://username:password@your.proxy.address:proxy.port/
npm config set https-proxy http://username:password@your.proxy.address:proxy.port/
~/.subversion/servers
[global] http-proxy-host = host ip addresshttp-proxy-port = port number
http-proxy-username = defaultusername
http-proxy-password = defaultpassword
~/.boto
[Boto] proxy = <ip address>proxy_port = <port>
proxy_user = <your proxy user name>
proxy_pass = <your proxy password>
~/.gradle/gradle.properties
systemProp.http.proxyHost=your.proxy.address
systemProp.http.proxyPort=proxy.port
systemProp.http.proxyUser=username
systemProp.http.proxyPassword=password
systemProp.https.proxyHost=your.proxy.address
systemProp.https.proxyPort=proxy.port
systemProp.https.proxyUser=username
systemProp.https.proxyPassword=password