Pages

Monday, September 19, 2011

PROXY SETTINGS IN UBUNTU TERMINAL

First let us set proxy settings in GUI and later we will set proxy in "Terminal", k!

If you are having ubuntu desktop/laptop in your office or home behind proxy this tutorial is for you.This tutorial will explain How to Configure Ubuntu desktop/laptop to use your proxy server.

Network Proxy
Ubuntu has a setting in gnome for the Network Proxy, which should set gnome’s proxy.
First go to System--->Preferences--->Network Proxy


 Once it opens click on “Proxy Configuration” and enter your proxy server,port number details click Close.



Synaptic Package Manager
Synaptic Package Manager must have the proxy set, in order to update your installation using the in-built Update Manager or Synaptic GUI.
Go to System--->Administration--->Synaptic Package Manager


Once Synaptic Package Manager opens click on Settings--->Preferences


 Click on Network tab select Manual Proxy Configuration option and enter your proxy server,port details.If you have username,password click on Authentication to enter these details click on ok


Firefox proxy Configuration
Open your firefox browser go to Edit--->Preferences



Click on Advanced and select Network tab


Select Settings option


Now select Manual Proxy Configuration and enter your proxy server,port details click on ok



Terminal Proxy Settings

If you want to configure proxy for apt-get in terminal, use the following procedure

Step1: Open terminal and go to Super user (root) using the command


$su -


Step2: now open the file bash.bashrc in gedit or any editor which is in etc/ directory



$gedit /etc/bash.bashrc

and Add your proxy server details in the following format
export http_proxy=http://username:password@proxyhost:port/
export ftp_proxy=http://username:password@proxyhost:port/

Step3: Also  modify the following file

$gedit /etc/apt/apt.conf

Acquire::http::proxy "http://username:password@proxyhost:port/";
Acquire::ftp::proxy "ftp://
username:password@proxyhost:port/";
Acquire::https::proxy "https://
username:password@proxyhost:port/";



and save it.

Its done!!
Good luck!!