How do I set a system wide proxy with a username and password?
I'm trying to set a system wide proxy, and I'm specifically having difficulties with apt-get for installing applications on my Ubuntu. I'm in a university using a proxy server with username/password. I'm aware of setting a proxy with username and password in the following manner:
But it fails, as a critical example with apt-get. Username contains backslash( \ ) in it and I'm wondering whether that could be a problem for failing. I'd be grateful with any input on this.
03 Answers
Try escaping the backslash like this:
where '%5C' is the URL-encoded value for the backslash character. See this background.
0Historically, you could set up a proxy using environment variables likehttp_proxy=
So it might be possible to specify the username and password in the host field of the Network section like above, i.e.myuser:
- Open
Networkby pressing Alt + F2 and typing the same. - You should clearly see the
Network Proxytab. - After selecting the tab, select the
Methodto bemanualand set all the proxies. - Then, click
Apply system wide, it will ask for your password, and you're done.