miércoles 25 de abril de 2007

Navigate from console on Internet, being in a net behind a proxy

This trick was taught by a guy who asisted at a chat we did with a friend about JabRef and Zotero, and is useful to navigate from console, for example, to download package, being behind a proxy server.

On Gnome, go to personal folder (/home/USER), menu SHOW -> SHOW HIDDEN FILES (Or something like that - sorry, I have spanish version of that).

Then, edit .bashrc and in the last line add the following lines (just change USUARIO for your username, CONTRASEÑA for your proxy password, DIRECCIONPROXY for proxy's URL, and PUERTO for the port you're connecting):

http_proxy="http://USUARIO:CONTRASEÑA@DIRECCIONPROXY:PUERTO"
ftp_proxy="http://USUARIO:CONTRASEÑA@DIRECCIONPROXY:PUERTO"

export http_proxy
export ftp_proxy
For my particular case, an student of UNIVERSIDAD NACIONAL DE COLOMBIA, the data would be:
http_proxy="http://USUARIO:CONTRASEÑA@proxy.unal.edu.co:8080"
ftp_proxy="http://USUARIO:CONTRASEÑA@proxyftp.unal.edu.co:8080"

export http_proxy
export ftp_proxy