How to Configure Ubuntu desktop to use your proxy server

If you are having ubuntu desktop/laptop in your office or home behind proxy this tutorial is for you.This tutorial will explain How to Configure Ubuntu desktop/laptop to use your proxy server.