LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Time Syncronization on Slackware 9.1 (http://www.linuxquestions.org/questions/linux-software-2/time-syncronization-on-slackware-9-1-a-206550/)

IBall 07-18-2004 10:28 AM

Time Syncronization on Slackware 9.1
 
As the clock on my computer (Slack 9.1) runs slow, I was trying to make it syncronize with a ntp server.

When I execute the command "ntpdate nameOfServer" I get the following error:
Code:

18 Jul 15:33:26 ntpdate[3495]: no server suitable for synchronization found
where nameOfServer is a ntp server such as time.esec.com.au, or ntp.adelaide.edu.au.

This error occurs whether the ntp daemon is running of not, I am running as root, and I have an internet connection.

How do I get the ntpdate command to work correctly, as once it is working I can syncronize the clock at boot time.

Any help would be appreciated
--Ian

bigrigdriver 07-18-2004 10:51 AM

If I'm not mistaken, ntp is intended for network and permanent internet connection, such as DSL, etc. For intermittent (dialup) connection, I use chrony. It's easy to install and setup, with instructions on how to use the /etc/ppp/ip-up and ip-down scripts to automate the time sync.

Andrew Benton 07-18-2004 11:34 AM

ntpd -g is effectively the same as ntpdate. Find the bootscript that launches ntpd and add -g after the command. That way it will reset the time every time you boot even if it is more than 1000 seconds out. However, your error message says that it can't connect to the time server. Do the servers you have listed in /etc/ntp.conf work?

IBall 07-18-2004 11:07 PM

Thanks for your help.

After playing with it some more, it turns out that my firewall was blocking ntp. Opening my firewall for ntp solved the problem

--Ian


All times are GMT -5. The time now is 11:31 PM.