View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 14 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: How do i set the time
PostPosted: Mon Feb 13, 2006 11:48 pm 
Offline
Joined: Mon Feb 13, 2006 11:38 pm
Posts: 7
I am running knoppmyth and i am trying to figure out how to set the time i have the date and timezone correct how do i set the time


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 14, 2006 12:03 am 
Offline
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location: Adelaide, Australia
Commands/services you might be interested in reading about:
date - if you just want to manually set the time
ntpdate - if you want to set it based on an ntp server
ntpd - if you want to keep your system in sync with an ntpserver
ntpq - if you mant to find out whats going on with ntpd


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 14, 2006 12:48 am 
Offline
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location: Nashville, TN
KnoppMyth-tz

_________________
Have a question search the forum and have a look at the KnoppMythWiki.

Xsecrets


Top
 Profile  
 
 Post subject: i am stuck again
PostPosted: Sun Mar 05, 2006 1:33 pm 
Offline
Joined: Mon Feb 13, 2006 11:38 pm
Posts: 7
I had to reinstall and i have time zone set but time is still way off how do i set it again


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 10, 2006 9:52 pm 
Offline
Joined: Sat Feb 11, 2006 10:27 pm
Posts: 44
Have you tried webmin? It lets you set this very easily (system and hardware) - and lets you set up a network time connection to update it automatically.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 18, 2006 2:35 pm 
Offline
Joined: Fri Mar 24, 2006 10:35 pm
Posts: 89
Location: Detroit, MI
I found tzconfig and hwclock were usefull to set TimeZone and Hardware Clock. --help on either of these will provide help. (find | grep -i tzconfig or find | grep -i hwclock; will locate these files on your drives.)


Top
 Profile  
 
 Post subject: Setting time
PostPosted: Fri May 05, 2006 3:59 pm 
Offline
Joined: Fri May 05, 2006 9:56 am
Posts: 6
I have the issue where my computer clock battery is slow, and usually falls back a minute or so from my Cable Box, so I just type

date --set hh:mm:ss

Done.

Course this is just the one time solution.


Top
 Profile  
 
PostPosted: Mon May 22, 2006 8:39 pm 
Offline
Joined: Tue Mar 28, 2006 8:26 pm
Posts: 804
Location: Minneapolis, MN
I tried to set the system time using ntpdate and it won't connect. The error is:
Code:
root@mythtv:~# ntpdate time.nist.gov
22 May 21:33:34 ntpdate[8585]: the NTP socket is in use, exiting
root@mythtv:~#


I looked around for an answer and some posts say to turn off ntpd.
I am not finding any directions for that on the KnoppMyth forum or wiki.

Help?
Eric

_________________
KnoppMyth R5.5, Asus A8N-VM CSM (nvidia 6150 onboard video), AMD Athlon 64 dual-core 4200+, two 1GB sticks DDR 400, HD-3000 HDTV card, PVR-150 card, Iguanaworks RS-232 IR receiver/transmitter, Pioneer DVR-110 DVD burner


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 22, 2006 8:47 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
You've already got an NTP daemon running which should be keeping you clock in sync. Is it not working? You can compare it to this - http://www.time.gov/


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 22, 2006 8:53 pm 
Offline
Joined: Tue Nov 22, 2005 7:57 pm
Posts: 295
Location: Auckland, New Zealand
Code:
ps -A | grep ntpd

will tell you the Process ID (PID) of the ntpd instance
then
Code:
kill XXXX

will stop ntpd (where XXXX is the PID)

I know there are nicer ways but it works for me :-)

_________________
HP VL400 (PIII 866), Skystar2 2.6D, PVR350, Nvidia FX5200, 384MB, 200GB, KnoppMyth R5.5


Top
 Profile  
 
 Post subject: already running?
PostPosted: Mon May 22, 2006 9:08 pm 
Offline
Joined: Tue Mar 28, 2006 8:26 pm
Posts: 804
Location: Minneapolis, MN
tjc wrote:
You've already got an NTP daemon running which should be keeping you clock in sync. Is it not working? You can compare it to this - http://www.time.gov/


Oh, already running? How often does it sync for us? And when is it set to sync for us?

I read the WIKI page http://knoppmythwiki.org/index.php?page ... onizeHowTo
and it it's very existance gave the impression that I needed to activate ntpdate/ntpd.

Is that page outdated? What versions of KnoppMyth does it apply to? It doesn't say.

I tried the ps command. Does this mean that I have 4 instances of ntpd running.
Code:
root@mythtv:/etc/init.d# ps -A | grep ntpd
 4378 ?        00:00:00 ntpd
 8597 ?        00:00:00 ntpd
 8600 ?        00:00:00 ntpd
 8602 ?        00:00:00 ntpd
 8604 ?        00:00:00 ntpd


Eric

_________________
KnoppMyth R5.5, Asus A8N-VM CSM (nvidia 6150 onboard video), AMD Athlon 64 dual-core 4200+, two 1GB sticks DDR 400, HD-3000 HDTV card, PVR-150 card, Iguanaworks RS-232 IR receiver/transmitter, Pioneer DVR-110 DVD burner


Top
 Profile  
 
 Post subject: Re: already running?
PostPosted: Mon May 22, 2006 9:21 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
neutron68 wrote:
Oh, already running? How often does it sync for us? And when is it set to sync for us?

It syncs from pool.ntp.org, see /etc/ntp.conf for details. It seems to be pretty regular and more than enough to keep my clock within one second of the NIST atomic clock I linked to above.

neutron68 wrote:
Is that page outdated?

Yes.

neutron68 wrote:
I tried the ps command. Does this mean that I have 4 instances of ntpd running.
Code:
root@mythtv:/etc/init.d# ps -A | grep ntpd
 4378 ?        00:00:00 ntpd
 8597 ?        00:00:00 ntpd
 8600 ?        00:00:00 ntpd
 8602 ?        00:00:00 ntpd
 8604 ?        00:00:00 ntpd

Looks more like 5 to me, which is not a normal state of affairs. Kill 'em all and restart it. As root:
Code:
pkill -9 ntpd
/etc/init.d/ntp-server start


Top
 Profile  
 
 Post subject: down to 1 ntp instance
PostPosted: Mon May 22, 2006 9:49 pm 
Offline
Joined: Tue Mar 28, 2006 8:26 pm
Posts: 804
Location: Minneapolis, MN
OK. That all worked. I rebooted after killing all the instances of ntp.
I'm down to 1.

I think the clock sync is working fine because my pc clock is less than 1 second different from the atomic clock on my wall. Good enough!

Man, those outdated wiki pages are really screwing me up!
Thanks for telling me.

Eric

_________________
KnoppMyth R5.5, Asus A8N-VM CSM (nvidia 6150 onboard video), AMD Athlon 64 dual-core 4200+, two 1GB sticks DDR 400, HD-3000 HDTV card, PVR-150 card, Iguanaworks RS-232 IR receiver/transmitter, Pioneer DVR-110 DVD burner


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 23, 2006 8:33 pm 
Offline
Joined: Sun Jun 12, 2005 10:55 pm
Posts: 3161
Location: Warwick, RI
Hi,

A good source of how to is the man pages. I get headaches reading them, eyes bleed also but a wealth of cryptic information :idea:

man ntpd

driftfile driftfile
This command specifies the name of the file use to record the
frequency offset of the local clock oscillator. If the file
exists, it is read at startup in order to set the initial fre-
quency offset and then updated once per hour with the current
frequency offset computed by the daemon. If the file does not
exist or this command is not given, the initial frequency offset
is assume zero. In this case, it may take some hours for the
frequency to stabilize and the residual timing errors to sub-
side.

less /var/lib/ntp/ntp.drift (mine is 43.809) good / bad ?

However it is obvious, cesman has his finger on the pulse :)
Mike


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 14 guests


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 post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu