Author Topic: Time synchronization  (Read 301 times)

saleem

  • Newbie
  • *
  • Posts: 16
  • Karma: +0/-0
Time synchronization
« on: Thu Jan 17 14:40:26 2019 »
I have installed ntp and executed commands

# ln -sf /usr/share/zoneinfo/Asia/Karachi /etc/localtime
# hwclock --systohc --localtime

but time is not synchronized on my openbox nutyx installation.

Help is needed here please

overlock

  • Newbie
  • *
  • Posts: 15
  • Karma: +0/-0
Re: Time synchronization
« Reply #1 on: Thu Jan 17 16:18:51 2019 »
try this;

Code: [Select]
sudo date +%T%p -s "03:53:13PM"
          sudo hclock -w

For help man date

https://www.vivaolinux.com.br/etc/ntp-(ou-ntpd).conf/
« Last Edit: Thu Jan 17 18:10:49 2019 by overlock »

saleem

  • Newbie
  • *
  • Posts: 16
  • Karma: +0/-0
Re: Time synchronization
« Reply #2 on: Fri Jan 18 12:35:56 2019 »
try this;

Code: [Select]
sudo date +%T%p -s "03:53:13PM"
          sudo hclock -w

For help man date

https://www.vivaolinux.com.br/etc/ntp-(ou-ntpd).conf/

Thanks , these commands fix time but on reboot time is out of synchronizations once again.

overlock

  • Newbie
  • *
  • Posts: 15
  • Karma: +0/-0
Re: Time synchronization
« Reply #3 on: Fri Jan 18 12:49:00 2019 »
Hum, strange because the last command is to save the configuration.in the last command did you see something wrong?

saleem

  • Newbie
  • *
  • Posts: 16
  • Karma: +0/-0
Re: Time synchronization
« Reply #4 on: Fri Jan 18 12:53:26 2019 »
$  sudo hwclock -w
no errors but date and time both are wrong Sun Jan 8:53 am at moment on my laptop

overlock

  • Newbie
  • *
  • Posts: 15
  • Karma: +0/-0
Re: Time synchronization
« Reply #5 on: Fri Jan 18 17:31:16 2019 »
Post the content of cat /etc/localtime Did you try the tips I passed on ntp?

saleem

  • Newbie
  • *
  • Posts: 16
  • Karma: +0/-0
Re: Time synchronization
« Reply #6 on: Mon Feb 18 18:24:35 2019 »
Post the content of cat /etc/localtime Did you try the tips I passed on ntp?

Sorry for delayed reply

$ cat /etc/localtime
TZif2
     ��~��̕2��t�ݨ�O�0<�E�=�(�HA�0I
                                 G�I��0J�{ >�MX[h
FPT`FPLMT+0530+0630+05PKSTPKTTZif2
                                  ������~������̕2������t�����ݨ�O�0<�E�=�(�HA�0I
                                                                              G�I��0J�{ >�MX[h
FPT`FPLMT+0530+0630+05PKSTPKT
PKT-5

This output is distorted