プロキシ設定(bash、csh、tcsh、yum、apt-get、Solaris Update、wget)

■■bash
$ vi ~/.profile
——————————————————————————–
export http_proxy=”http://proxy.server.com:8000/”
export ftp_proxy=”http://proxy.server.com:8000/”
——————————————————————————–
■■csh/tcsh
——————————————————————————–
setenv HTTP_PROXY “http://proxy.server.com:8000/”
setenv FTP_PROXY “http://proxy.server.com:8000/”
——————————————————————————–
■■yum
# vi /etc/yum.conf
——————————————————————————–
proxy=http://proxy.server.com:8000/
——————————————————————————–
■■apt-get
# vi /etc/apt/apt.conf
——————————————————————————–
Acquire::http::Proxy “http://proxy.server.com:8000/”;
Acquire::ftp::Proxy “http://proxy.server.com:8000/”;
——————————————————————————–
■■Solaris Update
# smpatch set patchpro.proxy.host
Web Proxy Host Name: proxy.server.com
# smpatch set patchpro.proxy.port
Web Proxy Port Number: 8000
■■wget
シェルでproxy設定しておけば問題なく使えるが、この設定でもOK。
——————————————————————————–
vi /etc/wgetrc
http_proxy=http://proxy.server.com:8000/
ftp_proxy=http://proxy.server.com:8000/
use_proxy = on
——————————————————————————–


So, what do you think ?