Content Skeleton

This Page

Previous topic

Non-Root package management

Next topic


Network Time Protocol


Update the datetime

Time was back in 2000, the below ntpdate got back in the ballpark, but timezone was off:

[blyth@hfag blyth]$ sudo /usr/sbin/ntpdate -u
 8 Sep 20:23:22 ntpdate[2805]: step time server offset 429053400.504246 sec
[blyth@hfag blyth]$ date
Sun Sep  8 20:23:29 GMT+8 2013
[blyth@hfag blyth]$ sudo /usr/sbin/ntpdate -u
 8 Sep 20:23:53 ntpdate[2808]: adjust time server offset 0.000532 sec
[blyth@hfag blyth]$ date
Sun Sep  8 20:24:03 GMT+8 2013
[blyth@hfag blyth]

Timezone setup

Creating a symbolic link from /etc/localtime to the zoneinfo file succeeded to get it straight.:

[blyth@hfag blyth]$ sudo rm  /etc/localtime
[blyth@hfag blyth]$ sudo ln -s /usr/share/zoneinfo/Asia/Taipei /etc/localtime
[blyth@hfag blyth]$ date
Mon Sep  9 12:35:34 CST 2013


The ntp server to connect to was gleaned from the conf.

  • /etc/ntp.conf

For the docs etc..

[blyth@hfag blyth]$ rpm -ql ntp