Configuring proxy for ubuntu 12.04

apt utility configuration.
Add the following lines in /etc/apt/apt.conf
Acquire::http::proxy "http://<username>:<password>@<proxy>:<port>/";
Acquire::ftp::proxy "ftp://<username>:<password>@<proxy>:<port>/"; 
Acquire::https::proxy "https://<username>:<password>@<proxy>:<port>/";
Or you can add the following line in file /etc/apt/apt.conf.d/01proxy
For terminal configuration .
This will set the proxy for utilities that are run from the terminal  
export http_proxy=http://<username&gt;:<password>@<proxy>:<port>
export https_proxy=http://<username&gt;:<password>@<proxy>:<port>
If these settings are included in .bashrc or .profile these settings will be applied at the time of user login.
Synaptic package manager
The synaptic package manager has option for the proxy settings to be configured in Settings ->Preferences ->Network

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s