I am using Ubuntu 18.04. I want to set up a proxy server for all users. Here's what I have:
$ cat /etc/environment > http_proxy="http://proxy.foo.com:8080" > https_proxy="http://proxy.foo.com:8080" > no_proxy="localhost, 127.0.0.1, *.foo.com"
If I now open e.g. Firefox, I'm not able to access any website. When I go to the Network Settings, I still see "Network Proxy" ass "Off". After setting it to "Manual" and typing the proxy settings from above, I can connect to the internet with Firefox.
How can I set up a proxy in the Network Settings from the command line?