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:
PostPosted: Sat Feb 11, 2006 6:35 pm 
Offline
Joined: Sat Feb 11, 2006 2:21 pm
Posts: 3
After many hours, I finally got it installed and running. But When I went to recording programs, I realized I had set the clock 12 hours behind.

How do I adjust it with out reinstalling everything?

Thanks
jwittman

fyi: running r5alpha30.2


Top
 Profile  
 
 Post subject: system time
PostPosted: Sat Feb 11, 2006 6:58 pm 
Offline
Joined: Mon Jan 30, 2006 1:11 am
Posts: 12
To make sure that the time is always correct, the following is what I have done in my KnoppMyth and it works fine.

1. I have defined my timezone in /etc/timezone to "US/Pacific". The list of available timezones can be found in /usr/share/zoneinfo/.

2. I have a cronjob that syncs the system time with a NTP server. However, if the ntp-server is running, ntpdate would be unable to set the time because the NTP socket is in use. To create the cronjob, edit the root crontab (# crontab -e) and add the following line:

0 * * * * /etc/init.d/ntp-server stop &>/dev/null; /usr/sbin/ntpdate ntp.ucsd.edu &>/dev/null; /usr/sbin/ntpdate time.windows.com &>/dev/null

3. then you will need to restart all services to force them to pick the new time. You can also reboot.


I hope this helps.



Delyan


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 11, 2006 7:25 pm 
Offline
Joined: Sat Feb 11, 2006 2:21 pm
Posts: 3
Thankyou, but I am even less than a novice, and so I am not ready to do that yet.

Is there a quick fix to my problem?

jawittman


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 11, 2006 8:11 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Run ether tzconfig or tzsetup. If you've got webmin enbled (see the webmin howto on the wiki) that's an even easier way to do it.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 11, 2006 11:59 pm 
Offline
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location: Nashville, TN
also Knoppmyth-tz works.

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

Xsecrets


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 12, 2006 2:18 am 
Offline
Joined: Tue Sep 13, 2005 10:48 am
Posts: 852
Location: London, UK
Or if your using dvb in a country that has it:
edit your crontab (crontab -e) and type

* * * * * dvbdate -s

and save.

Oh the asterisks are the 'when' you want to run the command. Each asterisk refers to a time slot, an asterisk is a wildcard and needs to be there, for example:

3 * * * * would be every three seconds every minute, every day, every month, every year (range 1-59)

* 45 * * * would be every 45 mins (range 1 - 59 - I think from the hour too )

* * 2 * * would be every 2 hours (range 0 - 23)

* * * 3 * would be every tuesday (range 1 -7)

and * * * * 1 would be every january (range 1-12 I think... once a year which isn't particularly useful for this purpose)

Combination commands work

eg: * * 2/4/8/23 * * dvbdate -s would run on those hours everyday

also, crontabs can be run to do anything at a set time.

thinking about it I put the full path for my dvbdate -s command, but I don't think it's necessary.
And you don't need to reboot or anyhitng once you exit nano.


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: No registered users 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:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu