Size: 2151
Comment:
|
Size: 2190
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 20: | Line 20: |
* chmod 755 /etc/rc.d/rc.ntpd | {{{#!highlight sh chmod 755 /etc/rc.d/rc.ntpd }}} |
Line 23: | Line 25: |
* /etc/rc.d/rc.ntpd start * /etc/rc.d/rc.ntpd status |
{{{#!highlight sh /etc/rc.d/rc.ntpd start /etc/rc.d/rc.ntpd status }}} |
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
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