LinHES Forums
http://forums.linhes.org/

How to Change time
http://forums.linhes.org/viewtopic.php?f=11&t=85
Page 1 of 1

Author:  spam01 [ Thu Nov 06, 2003 11:28 pm ]
Post subject:  How to Change time

I installed it flawlessly but due to the poor video settings until I could get the nvidia drivers up, somewhere I missed setting the time. I have tried setting the time from the command line but as soon as I start myth back up it resets the time.

Author:  cesman [ Fri Nov 07, 2003 12:46 am ]
Post subject: 

Myth has nothing to do with setting the time. I suggest the following as root:
date 11062239(be sure you enter the right info ;)
/etc/init.d/mysql restart
/etc/init.d/mythtv-backend restart
exit

Start the frontend...
If the program data is off. Exit the frontend.
rm -fr .mythtv/*.xmltv .mythtv/channels
Run mythtv-setup and reconfigure source
Once complete as root
/etc/cron.daily/mythtv-backend
/etc/init.d/mysql restart
/etc/init.d/mythtv-backend restart

cesman

Author:  Dale [ Fri Nov 07, 2003 11:04 pm ]
Post subject: 

Whats wrong with KnoppMyth-tz ??
run it as root.

Author:  Elliott [ Tue Nov 11, 2003 4:51 pm ]
Post subject: 

Knoppmyth-tz will set a timezone. But, what is missing is setting the current date and time accurately. To do it once, (as root)
ntpdate pool.ntp.org

And it's output will look something like
root@video:/home/mythtv# ntpdate pool.ntp.org
11 Nov 16:36:25 ntpdate[2267]: step time server 130.60.7.52 offset 9.017712 sec

At that point, you will be synced to real time with subsecond accuracy. While this improves the chance that your recordings will start on time, some TV networks seem to not pay attention to real time and will start fast or slow.

To have it start and run continuously automatically,
1) add "server pool.ntp.org" to /etc/ntp.conf
2) cd /etc/rc5.d/ ; ln -s /etc/init.d/ntp S21ntp

To have it run once at boot,
1) set NTPSERVERS="pool.ntp.org" in /etc/default/ntp-servers
2) cd /etc/rc5.d/ ; ln -s /etc/init.d/ntpdate S21ntpdate

:!: An NTPSERVER should be chosen by what your ISP gives you. (NTP = time, NNTP = news) Since their logging should be slaved to real time, they should have an ntpserver available for themselves and their clients. If your ISP does not have one, buy them a Networking 101 book and send that to them in lieu of your monthly bill. Use of "pool.ntp.org" or any of the more famous clocks should be used only as a last resort.

Author:  pwood999 [ Fri Nov 21, 2003 1:09 pm ]
Post subject: 

I can't find S21ntp on my system. What should it contain ?

Pete

Author:  Elliott [ Fri Nov 21, 2003 3:48 pm ]
Post subject: 

pwood999 wrote:
I can't find S21ntp on my system. What should it contain ?

It doesn't exist in that directory. The ln -s is creating a symbolic link to an original file of /etc/init.d/ntp. In other words, it is a shortcut copy. All the files in /etc/rc5.d/ are run at boot if the init level is 5. The S21 prefix was chosen to set the order in which things were run.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/