Saturday, March 10, 2012

Setting Proxy in Ubuntu

In Ubuntu we have to set Proxy at four different Places



1=> In Network Proxy Setting 
        ( System Menu -> Preferences -> Network Proxy)

figure showing the configuration of proxy in ubuntu

      Select Manual Proxy configuration
       Enter the IP of proxy server  as shown in figure
  

Adding user name and password if provided by network administrator


       Click the details button and enter your username and password if provided by Network Administrator



2=> In apt.conf file
        ( /etc/apt/apt.conf)

 if this file is there in the directory then edit as shown below otherwise create one.

  Type the following in the apt.conf file


 Acquire::http::proxy "http://username:password@192.168.1.103:3128/";
 Acquire::ftp::proxy "ftp://username:password@192.168.1.103:3128/";
 Acquire::https::proxy "https://username:password@192.168.1.103:3128/";


Here the IP address is the address of the proxy server and 3128 is the port number of the proxy.





3=> In Mozilla Firefox


  In Firefox go to Edit->Preferences->Advanced->Network->Setting
  Enter the Proxy server address and Port Number. 





4=> In Synaptic Package Manager

    Go to Setting-> Preferences -> Network
Enter the proxy server address and Port Number.






     Thank You.