AuthorTopic: HOWTO make and automate Time changes (Read 2984 times)

[This is a rehash (with some additions) of an older HOWTO from the original forum.]

VectorLinux and Slackware do not, by default, automatically change your computer clock at daylight savings time change periods. But it is simple enough to do. Below are some scenarios for dealing with TimeZones, Dates and Time under VL:

4) to automate time changes and to syncronize your hardware clock daily:

-download "rdate" from linuxpackages.net-install rdate using "installpkg rdate" in a terminal as root-ensure you have the crond daemon running by checking "ps aux" and see if it is there. If not, VASM, SUPER, (root password), SERVICE, SRVSET, 4, enable cron-with any text editor create a file called "time_update.sh". Add these lines and save the file: #!/bin/sh rdate time.nrc.ca && hwclock --systohc-make that file executable: #chmod u+x time_update.sh-copy that file to /etc/cron.daily-(the time server "time.nrc.ca" should be substituted for the nearest Internet time server to your location. That info is found at: http://www.pool.ntp.org/ ).-if your computer is not turned on all the time you will need to then install anacron (because cron assumes your computer will do things at very specific times and will not perform its tasks if off at that exact time): -install anacron from linuxpackages.net - edit /etc/rc.d/rc.local and add "anacron" to the last line in that file.

« Last Edit: March 11, 2007, 10:09:41 am by lagagnon »

Logged

"As people become more intelligent they care less for preachers and more for teachers". Robert G. Ingersoll