Home and office have different network configuration, most lies in proxy setup. A simple script as follow is used to switch configuration. Hope it is useful for someone else too.
echo "Usage: $prog <home|work>"
if [ $# -ne 1 ]; then
if [ $tnet != "home" -a $tnet != "work" ]; then
if [ "$tnet" == "work" ]; then
sudo cp /etc/apt/apt.conf.avail/99proxy /etc/apt/apt.conf.d
gconftool-2 -s -t string /system/proxy/mode auto
sudo rm -f /etc/apt/apt.conf.d/99proxy
gconftool-2 -s -t string /system/proxy/mode none