Wednesday 26 October 2016

Restore the missing date Unity panel -UBUNTU

After reaching to office when I started the system in morning, time and date was not getting displayed.
The following command solved the problem for me.

  • Restart unity
    • sudo killall unity-panel-service

Resolve pg_dump version mismatch

I was getting an error of "pg_dump: server version: 9.4.7; pg_dump version: 9.3.9 ubuntu" while taking backup from server to my machine. I rectified the error using the following steps

  1. Check the version of psql and pg_dump
    1. pg_dump --version
    2. psql --version
  2. Install postgresql version 9.4
    1. cd /etc/apt/sources.list.d/
    2.  sudo vi pgdg.list
      1. Add the following line
        1. deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main
    3.   wget --quiet -O - \ https://www.postgresql.org/media/keys/ACCC4CF8.asc |  sudo apt-key add -
    4.   sudo apt-get install postgresql-9.4
    5.  sudo apt-get install pgadmin3
    6. sudo /etc/init.d/postgresql restart
  3.  sudo rm /usr/bin/pg_dump
  4. sudo ln -s /usr/lib/postgresql/9.4/bin/pg_dump /usr/bin/pg_dump

References

1-http://stackoverflow.com/questions/23793774/psql-and-pg-dump-version-mismatch