NTP

NTP is a TCP/IP protocol for synchronizing time over a network.

Slackware

Update clock

Run the command as superuser:

   1 ntpdate pool.ntp.org
   2 sudo ntpdate pool.ntp.org

Date and time should be stored in UTC.

Info on slack docs:

Enable the service:

Start the service manually:

Add ntp server

   1 server  127.127.1.0     # local clock                                           
   2 fudge   127.127.1.0 stratum 10
   3 server pt.pool.ntp.org
   4 driftfile /etc/ntp/drift
   5 # Don't serve time or stats to anyone else by default (more secure)             
   6 restrict default noquery nomodify
   7 # Trust ourselves.  :-)                                                         
   8 restrict 127.0.0.1

Check the offset in seconds

CentOS

Ubuntu / Debian

FreeBSD 9.0

Run the command:

Check the UTC date:

Edit the file /etc/rc.conf:

Start and check the NTPD service status:

Sync summer time Slackware

Windows

NTP (last edited 2022-11-17 20:51:03 by localhost)