lunes, 7 de mayo de 2012

Configure sudo to install applications behind a proxy

To use a proxy from the linux shell you need to configure the http_proxy environment variable with

 http_proxy="http://username:password@host:port"  
 export http_proxy  

To maintain this environment variable when using the sudo command do the following:

 sudo visudo  

Add this lines to the end of the file:

 Defaults    env_reset  
 Defaults    env_keep = "http_proxy"  

Save and exit and that's all.

viernes, 4 de mayo de 2012

Eclipse proxy configuration

This simple tutorial explains how configure Eclipse Indigo behind a proxy that requires authentication.

First open Eclipse and go to Window / Preferences. Type proxy on the search box.




Change the active provider to Manual, select the HTTP entry and click the Edit button.

Fill the Host and Port fields with the required info.

Enable the Requires Authentication check and type the user / password.


Leave blank the HTTPS and  SOCKS entries.

Go to help / Install new software to check that all is working.