NTP problems in Slackware 13.1
Hi, I use Slackware64 13.1 and this Sunday the hour change and ntp daemon don't start automatically and my clock is an hour late.
It's normal or a bug? |
What version of glibc-zoneinfo do you have? Is your timezone set correctly?
Quote:
|
Quote:
I have ntp running in rc.ntp. |
you have to update the /etc/ntp.conf with the correct NTP Server or else it won't get any updates at all
|
Quote:
Until the change in hour was working well. I ran ntpq -p and see connected to peers. Now says Code:
ntpq: read: Connection refused |
My timezone is WEST and since I'm in Portugal I think is correct.
|
To set your local time zone run, as root, 'timeconfig'.
To get ntp to run automatically, /etc/rc.d/rc.ntpd needs to be executable. Use 'ntpd -q' for one off time updates. A properly configured ntp setup will handle daylight saving changes. Perhaps you could post your /etc/ntp.conf file. |
My ntp.conf
Quote:
|
Quote:
Code:
ls /var/log/packages/glibc-zoneinfo* Code:
strings /etc/localtime | tail -1l willysr brought up a good point about configuring ntpd. Here's what my configuration (/etc/ntp.conf) looks like: Code:
restrict default notrust nomodify noquery |
Quote:
|
Are you by any chance dual booting into Windows? AFAIK, Windows stores localtime in system clock, while Linux can be configured to store localtime or UTC. What's inside /etc/hardwareclock file?
|
I'm trying commenting that line now.
|
Comment multicast is not doing anything special...
|
What do you see if you do, as root, '/etc/rc.d/rc.ntpd stop' and then 'ntpd -gq'?
|
Quote:
That command gives Code:
bash-4.1# ntpd -gq |
All times are GMT -5. The time now is 07:57 AM. |