I want to make a script that sets and unsets SYSTEM WIDE proxy just as what happens through the network settings.

I tried this answers gsettings part but it does not work in 14.04

Could Anyone please help? Its FRUSTRATING to open the network settings every time!

  • Tried askubuntu.com/a/526900/158442 ? – muru Nov 4 '14 at 6:32
  • @muru Its not working! :( – Nirmik Nov 4 '14 at 6:46
  • "Its not working!" is meaningless. How is it not working? What errors do you get? – muru Nov 4 '14 at 6:48
  • @muru No errors... but thge proxies are not picked up by any browsers nor reflected in the network manager – Nirmik Nov 4 '14 at 7:07
  • How are you running it? What's the output of gsettings get org.gnome.system.proxy mode? – muru Nov 4 '14 at 7:10


Here is what i did...

I just needed a 'Proxy Mode Changer'... Setting the proxies , i did through gui... Now i just needed changing mode...

Here is the script i made... SIMPLE as anything ->


state=$(gsettings get org.gnome.system.proxy mode)

if [ $state == "'none'" ]; then
        gsettings set org.gnome.system.proxy mode 'manual'
elif [ $state == "'manual'" ]; then
        gsettings set org.gnome.system.proxy mode 'none'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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