Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
clock not showing the real time with ntp.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
v3rtigo
Apprentice
Apprentice


Joined: 15 Jun 2004
Posts: 179

PostPosted: Tue Nov 09, 2004 4:43 pm    Post subject: clock not showing the real time with ntp. Reply with quote

well when yesterday i finally fixed it and everything worked great, today it's even worse,
now my time is 6:40 pm, and computer clock showing 9:10pm.

I use ntp servers to sync the right time, but somehow it's not working, and yes /etc/localtime
point to my area.
what can be the problem?
Back to top
View user's profile Send private message
lynxnyl
Apprentice
Apprentice


Joined: 15 Aug 2004
Posts: 253
Location: Ljubljana, Slovenija

PostPosted: Tue Nov 09, 2004 5:46 pm    Post subject: Reply with quote

Not working as in it doesn't get set or as in it sets the wrong time?

I'd resync my time and if that was ok, set the hwclock to it too. Then add these commands in a cron job. (I have "rdate -s time.nist.gov && hwclock --systohc" executed weekly)
Back to top
View user's profile Send private message
v3rtigo
Apprentice
Apprentice


Joined: 15 Jun 2004
Posts: 179

PostPosted: Tue Nov 09, 2004 6:30 pm    Post subject: Reply with quote

lynxnyl wrote:
Not working as in it doesn't get set or as in it sets the wrong time?

I'd resync my time and if that was ok, set the hwclock to it too. Then add these commands in a cron job. (I have "rdate -s time.nist.gov && hwclock --systohc" executed weekly)


setiing wrong time.

and it showing me "command not found" on rdate, then tried with "date"
and
date: invalid date `time.nist.gov'.

but the thing, it was ok yesterday ;x
Back to top
View user's profile Send private message
lynxnyl
Apprentice
Apprentice


Joined: 15 Aug 2004
Posts: 253
Location: Ljubljana, Slovenija

PostPosted: Tue Nov 09, 2004 6:34 pm    Post subject: Reply with quote

you have to emerge rdate. ;)

If it's setting the wrong time, recheck your link. And with rdate, you can check which time it would set your time to (rdate time.server.addy).
Back to top
View user's profile Send private message
psyqil
Advocate
Advocate


Joined: 26 May 2003
Posts: 2767

PostPosted: Tue Nov 09, 2004 6:37 pm    Post subject: Reply with quote

Code:
rm /etc/adjtime
Back to top
View user's profile Send private message
v3rtigo
Apprentice
Apprentice


Joined: 15 Jun 2004
Posts: 179

PostPosted: Tue Nov 09, 2004 6:46 pm    Post subject: Reply with quote

psyqil wrote:
Code:
rm /etc/adjtime


allready tried to do it.
Back to top
View user's profile Send private message
v3rtigo
Apprentice
Apprentice


Joined: 15 Jun 2004
Posts: 179

PostPosted: Tue Nov 09, 2004 6:49 pm    Post subject: Reply with quote

lynxnyl wrote:
you have to emerge rdate. ;)

If it's setting the wrong time, recheck your link. And with rdate, you can check which time it would set your time to (rdate time.server.addy).


tnx, now it's working :)
Back to top
View user's profile Send private message
lynxnyl
Apprentice
Apprentice


Joined: 15 Aug 2004
Posts: 253
Location: Ljubljana, Slovenija

PostPosted: Tue Nov 09, 2004 7:08 pm    Post subject: Reply with quote

Great, hope it stays ok. :)
I'd make a cron job ...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum