View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 6 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: How to Change time
PostPosted: Thu Nov 06, 2003 11:28 pm 
Offline
Joined: Thu Nov 06, 2003 11:21 pm
Posts: 12
Location: Mpls, MN
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.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 07, 2003 12:46 am 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 07, 2003 11:04 pm 
Offline
Site Admin
Joined: Fri Oct 31, 2003 11:40 pm
Posts: 357
Location: Irvine, Ca
Whats wrong with KnoppMyth-tz ??
run it as root.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 11, 2003 4:51 pm 
Offline
Joined: Fri Oct 31, 2003 2:00 pm
Posts: 15
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.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 21, 2003 1:09 pm 
Offline
Joined: Tue Nov 04, 2003 8:29 pm
Posts: 45
Location: London, UK
I can't find S21ntp on my system. What should it contain ?

Pete


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 21, 2003 3:48 pm 
Offline
Joined: Fri Oct 31, 2003 2:00 pm
Posts: 15
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.


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

Users browsing this forum: Google [Bot] and 11 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