LinHES Forums http://forum.linhes.org/ |
|
How do i set the time http://forum.linhes.org/viewtopic.php?f=11&t=8485 |
Page 1 of 1 |
Author: | chofstetter [ Mon Feb 13, 2006 11:48 pm ] |
Post subject: | How do i set the time |
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 |
Author: | Greg Frost [ Tue Feb 14, 2006 12:03 am ] |
Post subject: | |
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 |
Author: | Xsecrets [ Tue Feb 14, 2006 12:48 am ] |
Post subject: | |
KnoppMyth-tz |
Author: | chofstetter [ Sun Mar 05, 2006 1:33 pm ] |
Post subject: | i am stuck again |
I had to reinstall and i have time zone set but time is still way off how do i set it again |
Author: | aa1979 [ Fri Mar 10, 2006 9:52 pm ] |
Post subject: | |
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. |
Author: | myth19kirt [ Tue Apr 18, 2006 2:35 pm ] |
Post subject: | |
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.) |
Author: | icefyre [ Fri May 05, 2006 3:59 pm ] |
Post subject: | Setting time |
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. |
Author: | neutron68 [ Mon May 22, 2006 8:39 pm ] |
Post subject: | ntpdate gives me an error |
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 |
Author: | tjc [ Mon May 22, 2006 8:47 pm ] |
Post subject: | |
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/ |
Author: | nickread [ Mon May 22, 2006 8:53 pm ] |
Post subject: | |
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 ![]() |
Author: | neutron68 [ Mon May 22, 2006 9:08 pm ] |
Post subject: | already running? |
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 |
Author: | tjc [ Mon May 22, 2006 9:21 pm ] |
Post subject: | Re: already running? |
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 |
Author: | neutron68 [ Mon May 22, 2006 9:49 pm ] |
Post subject: | down to 1 ntp instance |
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 |
Author: | mjl [ Tue May 23, 2006 8:33 pm ] |
Post subject: | |
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 ![]() 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 |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |