Thursday, April 12, 2007

How to configure proxy for common linux apps

pear

to use a proxy with PEAR, you should use

 $ pear config-set http_proxy http://proxypc.localdomain 

yum

For yum to work you have to add these settings to /etc/yum.conf

 export http_proxy=http://192.168.65.253:8080
export ftp_proxy=http://192.168.65.253:8080

wget

For wget to work add this to ~./bash_profile

 export http_proxy=http://192.168.65.253:8080
export ftp_proxy=http://192.168.65.253:8080

then run command

 source ~./bash_profile

2 comments:

Sharad said...

thanks sujith

it helped for me for wget

efefer said...

Thanks before for your explanation, but what if the proxy need a login or password? How do I specified them in .bashrc, etc?

Installing SSLyze

SSLyze is a Python tool that can analyze the SSL configuration of a server by connecting to it. It is designed to be fast and comprehensive,...