NTP
NTP is a TCP/IP protocol for synchronizing time over a network.
Slackware
Update clock
Run the command as superuser:
Date and time should be stored in UTC.
Info on slack docs:
Enable the service:
1 chmod 755 /etc/rc.d/rc.ntpd
Start the service manually:
Add ntp server
- Edit /etc/ntp.conf
add server pt.pool.ntp.org
Check the offset in seconds
CentOS
Ubuntu / Debian
1 apt-get install ntp
2 ntpdate -q pt.pool.ntp.org
3 service ntp stop
4 ntpdate pt.pool.ntp.org
5 service ntp start
6 ntpq -pn
7 #
8 apt install -y ntp ntpsec-ntpdate ntpdate
9 /sbin/ntpdate pt.pool.ntp.org
10 /sbin/service ntp stop
11 timedatectl set-timezone Europe/Lisbon
12 /sbin/service ntp start
FreeBSD 9.0
Run the command:
1 ntpdate pool.ntp.org
Check the UTC date:
1 date -u
Edit the file /etc/rc.conf:
1 ntpd_enabled="YES"
Start and check the NTPD service status:
Sync summer time Slackware
Windows
- net start w32time
- w32tm /config /manualpeerlist:pt.pool.ntp.org
- w32tm /resync /force