Main Menu

Time synchronization

Started by saleem, Thu Jan 17 14:40:26 2019

Previous topic - Next topic

saleem

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

#1
try this;

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/

saleem

Quote from: overlock on Thu Jan 17 16:18:51 2019
try this;

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

Hum, strange because the last command is to save the configuration.in the last command did you see something wrong?

saleem

$  sudo hwclock -w
no errors but date and time both are wrong Sun Jan 8:53 am at moment on my laptop

overlock

Post the content of cat /etc/localtime Did you try the tips I passed on ntp?

saleem

Quote from: overlock on Fri Jan 18 17:31:16 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