How can i configure Debian Squeeze to work behind a proxy?| FAQs

Question :  How  can i configure Debian Squeeze to work behind a proxy?

Answer :


1-   Add network proxy  from   System>Preferences>Network Proxy

 

For  Browsers like Epiphany, itis  working  with  the  above  configuration. If  you are   using iceweasel  browser  , you  have  to add  manual proxy by editing:   Edit>Preferences>Network>Settings

 

2-Synaptic package manager

Open Synaptic –> Settings–>preferences–>Network and enter your  proxy  and port.

After  Close  and  reload. Find  new  packages  download  and  install.

3- Command  Line (wget /aptitute/apt-get)

To configure debian to work behind a proxy using command line, you need to edit apt.conf file:

vi /etc/apt/apt.conf

Then at the end of the file add the following line:

Acquire::http::Proxy "http://proxy-hotname:port/";
Acquire::ftp::Proxy  "http://proxy-host:port/";

if  you are using  proxy with a  password  the  config file  will  be (Don`t forget to chnage user:pass with you artual proxy usermane and password)

 Acquire::http::Proxy "http://user:pass@proxy-hotname:port/";
 Acquire::ftp::Proxy  "http://user:pass@proxy-host:port/";

 

Save and  exit