I installed NTP server on Ubuntu Server 10.04 using:
1 |
sudo apt-get install ntp |
The NTP daemon seems working and listening on the 123 port.
However, I was not able to get the time from another machine:
1 |
sudo ntpdate -u my_ntp_server |
–
Remove previous version
1 |
sudo aptitude remove ntpdate |
1 2 3 4 5 6 7 |
tail -f /var/log/syslog #------------------------------------------------- ntpq -c lpeer # Example output. -europium.canoni 193.79.237.14 2 u 63 64 37 97.375 71.020 1.875 -dtype.org 69.25.96.13 2 u 2 64 77 86.956 69.178 1.804 |
—
If you have ntpd installed on another machine, you can use your first server in the servers list of your ntp.conf file, or can synchronize one time with the -q option, as follows:
1 |
ntpd -q [IP address of your server] |