Add Comment
|
Related Links
|
TrackBack
the NTP socket is in useI'm trying to get my Mac OS X to automatically sync time with NTP. However, I keep getting an error message. Here is the command and the output: $ sudo ntpdate pool.ntp.org Anyone has an idea what is happening here? I use the same command on my Ubuntu computers and it works fine. Chieh Cheng OS X has built-in NTP synchronization, I guess it is conflicting with your command. Go to System Preferences > Date and Time and there you can set up NTP. atv Why do you have to set it up this way? I thought if you have configured it in System Preferences, it should automatically sync up with whatever NTP server that you have specified? I guess you can try the ntptimeset command. The ntptimeset command reads your ntp.conf file to determine which NTP server to sync up with. I believe this is how you run it: ntptimeset -c -s sets the system clock Paul Y. Thanks. Didn't realize "Set date & time automatically" in System Preferences is the same as NTP. I guess that answers why NTP client couldn't bind the socket. I guess I've been using the UNIX shell too long . . . I still use "Terminal" 90% of the time on Mac OS X. I couldn't find ntptimeset. I am using Mac OS X 10.5.4. Is that an utility on newer or order version of Mac OS X? Chieh Cheng I have 10.5.6. Apple must have removed it in Leopard. Paul Y. u'r using ntp so u can't run ntpdate, kill ntpd and retry ^^ dat OS X uses ntpd instead of ntpdate. You can learn how OS X sets/adjusts time by looking at these Apple Developer pages: http://developer.apple.com/mac/library/documentation/Darwin/ . . . In short, you can specify multiple NTP time-servers in your /etc/ntp.conf like this: driftfile /var/lib/ntp/ntp.drift On my Mac, the /var/lib/ntp/ntp.drift file didn't exist, so I created the "ntp" folder and then the file mkdir /var/lib/ntp A reading of the above-listed Apple dev pages will give a bit of insight into my settings. David Allie
Add Comment
|
Related Links
|
TrackBack
Did your message disappear? Read the Forums FAQ. Add CommentSpam Control | * indicates required field TrackBackTrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites. Send Ping | TrackBack URL | Spam Control No TrackBacks yet. TrackBack can be used to link this thread to your weblog, or link your weblog to this thread. In addition, TrackBack can be used as a form of remote commenting. Rather than posting the comment directly on this thread, you can posts it on your own weblog. Then have your weblog sends a TrackBack ping to the TrackBack URL, so that your post would show up here. Messages, files, and images copyright by respective owners. |
Articles
|
Wiki
97 Users Online
|
Copyright © 2004 - 2024. All Rights Reserved. |