Quick Tips: Change System Proxy Settings via Command Line in Ubuntu Precise
If you are using computer installed any ubuntu version in your office or at home and connected internet, but your ubuntu computer behind proxy server. well, I’ll provide tutorial about How to Change System Proxy Settings Ubuntu Computer to use proxy server via command line or terminal.
Enable proxy setting via Command line in Ubuntu 12.04
In this case,IP Address proxy server is 192.168.1.5 and proxy server port number 3128. Now Open your terminal and run the following commands
gsettings set org.gnome.system.proxy.socks host '192.168.1.5' gsettings set org.gnome.system.proxy.socks port 3128 gsettings set org.gnome.system.proxy mode 'manual'
To remove/disable Proxy Setting via Command Line
If you wan to remove proxy setting via command line/Terminal you can use command below
gsettings set org.gnome.system.proxy mode 'none'