PDA

View Full Version : How do I update time from the internet?



turbine
10-29-2006, 03:39 PM
Hope this is the right forum, didn't quite know where to put it. I'm looking for something akin to a bash script that will update my computer's time from some internet time source. Once I have such a script then I would set it up to run as a daily cron job.

OErjan
10-29-2006, 06:06 PM
quick and usually working answer is to open a console and do

sudo ntpdate ntp.nameoftimeserver.com
replace nameoftimeserver with one close to you, use google to find one or try this link
http://ntp.isc.org/bin/view/Servers/StratumOneTimeServers

as for script just make it a cronjob, here you have a consise tutorial,
http://floppix.com/cron.html
EDIT
you might want to know some about the texteditor vi
http://floppix.com/vi.html
/EDIT

turbine
10-29-2006, 07:58 PM
That's perfect! Thank you very much!