NuTyX user's Forum

CONFIGURE => Your examples => Topic started by: saleem on Thu Jan 17 14:40:26 2019

Title: Time synchronization
Post by: saleem 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
Title: Re: Time synchronization
Post by: overlock 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/
Title: Re: Time synchronization
Post by: saleem 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.
Title: Re: Time synchronization
Post by: overlock 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?
Title: Re: Time synchronization
Post by: saleem 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
Title: Re: Time synchronization
Post by: 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?
Title: Re: Time synchronization
Post by: saleem 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