If you are having ubuntu desktop/laptop in your office or at home behind proxy aerver this tutorial is for you.This tutorial will explain How to Configure Ubuntu desktop/laptop to use your proxy server from terminal.
Enable proxy setting from terminal in ubuntu 12.04
Open the terminal and run the following commands
Important Note:- Host IP and port setting will be different please check with your proxy administrator
gsettings set org.gnome.system.proxy.socks host ‘192.168.1.1'
gsettings set org.gnome.system.proxy.socks port 8080
gsettings set org.gnome.system.proxy mode ‘manual'
Disable proxy setting from terminal in ubuntu 12.04
gsettings set org.gnome.system.proxy mode ‘none'