LinHES Forums http://forum.linhes.org/ |
|
How do I adjust the time? http://forum.linhes.org/viewtopic.php?f=6&t=8442 |
Page 1 of 1 |
Author: | jawittman [ Sat Feb 11, 2006 6:35 pm ] |
Post subject: | How do I adjust the time? |
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 |
Author: | nonanone [ Sat Feb 11, 2006 6:58 pm ] |
Post subject: | system time |
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 |
Author: | jawittman [ Sat Feb 11, 2006 7:25 pm ] |
Post subject: | |
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 |
Author: | tjc [ Sat Feb 11, 2006 8:11 pm ] |
Post subject: | |
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. |
Author: | Xsecrets [ Sat Feb 11, 2006 11:59 pm ] |
Post subject: | |
also Knoppmyth-tz works. |
Author: | tophee [ Sun Feb 12, 2006 2:18 am ] |
Post subject: | |
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. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |