Thursday, February 23, 2012

Setting a proxy for linux terminal

This is mainly for my reference. I have been trying to get Ubuntu's terminal to accept a proxy setting. The following is the format that is required probably very obvious for linux users.

export http_proxy=http://DOMAIN\USERNAME:PASSWORD@SERVER:PORT/
export ftp_proxy=http://DOMAIN\USERNAME:PASSWORD@SERVER:PORT/ 


See this link for details. 


I also used the following command to add the proxy to the .bashrc as specified here.

gksudo gedit /etc/bash.bashrc
 
and also to the apt.config.

sudo gedit /etc/apt/apt.conf







No comments:

Post a Comment