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. )

1)

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@10.0.0.21:3128";
Acquire::ftp::Proxy "http://user_name:password@10.0.0.21:3128";
Acquire::https::Proxy "http://user_name:password@10.0.0.21:3128";

http://i55.tinypic.com/8yi3j9.png


2)



After this enter:

gksudo gedit /etc/profile.d/proxy.sh



Enter the following things and save and close.

for example:

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

http://i54.tinypic.com/in4nye.png


3)


Then enter:

gksudo gedit /etc/wgetrc



The file will look like this...

http://i55.tinypic.com/34xgpd0.png


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

for example:

http_proxy=http://username:password@10.0.0.21:3128
ftp_proxy=http://username:password@10.0.0.21:3128
https_proxy=http://username:password@10.0.0.21:3128
no_proxy=localhost,127.0.0.1

http://i53.tinypic.com/1hctc8.png

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.



http://i52.tinypic.com/2wgyflj.png

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


http://i52.tinypic.com/v5h7wi.png

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


http://i56.tinypic.com/hv77mq.png

NOW RESTART THE SYSTEM..

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

Cheers...


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

  
pollcode.com free polls

6 comments:

  1. fantastic man, thanks; works for crunchbang!

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

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

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

    ReplyDelete
  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: info@nideindia.in / nidedirector@gmail.com

    Website : http://www.nideindia.in , Facebook : https://www.facebook.com/NIDEofficial/

    Twitter : https://twitter.com/nideindia , YouTube : https://www.youtube.com/channel/UCDvV-Fhx9Tz3jDmeZu4EOUw

    Android App : https://play.google.com/store/apps/details?id=com.ntss.nide

    ReplyDelete
  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.

    ReplyDelete