Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have been using windows 7 and to update windows i configured netsh winhttp settings by using command: netsh winhttp set proxy 10.0.0.21:3128. That worked for windows update and many other softwares. Is there a way i can put proxy settings throughout the computer that would work for software center and other softwares?

share|improve this question
    
What Ubuntu release are you running? –  Mitch Apr 30 '13 at 17:06
add comment

2 Answers

Yes , Go to Settings -> Network -> Network Proxy -> Manual -> Apply System Wide

share|improve this answer
    
+1 because it makes the Software Center / Updates work over proxy. It's a pity that "Apply System Wide" doesn't do exactly what it says on the tin. I still can't ping www.google.com from my terminal, for example. –  TenLeftFingers Mar 10 at 12:21
1  
@TenLeftFingers: You can't ping when you are behind a proxy: superuser.com/questions/175428/how-to-ping-when-behind-a-proxy –  Jobin Mar 10 at 13:32
add comment

As Mahyar Pasarzangene said, you can set the proxy using System settings -> Network -> Network Proxy and then choosing "Manual" proxy and setting your host and port no. and then applying the settings system-wide.

However, if you are using authenticated proxy, i.e. you have a username and password for your proxy, you need to set it as follows:

Open a terminal(Ctrl+Alt+t) and then type the following:

sudo nano /etc/apt/apt.conf

and set your username and password as follows:

Acquire::http::proxy "http://username:password@host:port_no/";
Acquire::https::proxy "https://username:password@host:port_no/";
Acquire::ftp::proxy "ftp://username:password@host:port_no/";
Acquire::socks::proxy "socks://username:password@host:port_no/";

You will not have username@password when you open this document, but you should put your username and password as shown above, separated by a : and then separated by @ with the host.

If you have any special characters in your password, replace it with its HTML code.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.