Related Posts Plugin for WordPress, Blogger...

Tuesday, December 21, 2010

Proxy settings in Linux Ubuntu and Debian for apt-get wget

A proxy server, also known as a "proxy" or "application level gateway", is a computer that acts as a gateway between a local network (e.g., all the computers at one company or in one building) and a larger-scale network such as the Internet. Proxy servers provide increased performance and security. In some cases, they monitor employees' use of outside resources.

One can do proxy settings graphically from System --> Preferences --> Proxy Settings
and apply "System wide" But if there is an authenticated proxy, It was unable to apply properly. That's why it is better to apply manually all the settings.

Proxy settings has to be done in 3 areas...

(Don't Use System --> Preferences --> Network Proxy after making the following settings. )


Open a terminal and typein the following command.

gksudo gedit /etc/apt/apt.conf

Enter the following details as it is, then save and close.
Here user ---> is proxy user name
password ---> is your password for network access.

Acquire::http::Proxy "http://user_name:password@";
Acquire::ftp::Proxy "http://user_name:password@";
Acquire::https::Proxy "http://user_name:password@";


After this enter:

gksudo gedit /etc/profile.d/

Enter the following things and save and close.

for example:

export http_proxy=http://username:password@
export ftp_proxy=http://username:password@
export all_proxy=http://username:password@
export https_proxy=http://username:password@
export no_proxy=localhost,


Then enter:

gksudo gedit /etc/wgetrc

The file will look like this...

Now enter the following things at the end of the file and save and close.

for example:


Now one need to edit the software sources list

using the following command

gksudo gedit /etc/apt/sources.list

The file will look like this.

Search for #deb and #deb-src and delete the # symbol before deb
Don't delete the # symbol before deb cdrom

The final file should look like this. You may need to remove two times # symbol. Now save it and close.


Now one can install "flashplugin-nonfree" directly from System --> Administration --> Synaptic.

For details, follow the instructions in the post:

under the head: Installing new softwares :-

Otherwise open the terminal and enter the following commands:

sudo apt-get update
sudo apt-get install flashplugin-nonfree


Is this post useful?
Working well!
Not working...
Needs some modifications.. free polls


  1. fantastic man, thanks; works for crunchbang!

  2. How does one escape special characters like "@" and ":" in the username and password?

    1. Ah - nevermind. Found the answer! Use URL encoding, e.g. "@" => "%40".

  3. It is truly a great and helpful piece of information and nice collection.
    it support fort lauderdale

  4. NATIONAL INSTITUTE OF DIGITAL EDUCATION established in 2010 with the mission of delivering training to professionals in Computer Training. We offer a wide range of quality computer training.

    All our training courses are taught by professionals in the field, allowing you the chance to learn from experts within their respected industry, which provides you with a quality computer training that will help you take your knowledge and career to new heights. We have different courses to shoot-up the requirement of the general youths of West Bengal. The duration of the courses are segregated in Six Months, One Year & 18 Months. Students are awarded by CERTIFICATE which will accept all over India.
    Email: /

    Website : , Facebook :

    Twitter : , YouTube :

    Android App :

  5. Great tips on how i can conquer my computer. these are like life saving computer hacks! so easy and simple to understand. thanks for sharing and i love your content.