February 17, 2009

syncing the time on linux debian

Nikolai Kordulla

0 comments >>

To sync the time on a linux system, with every reboot. Just install ntpdate
>apt-get install ntpdate
>crontab -e
add the following line to the crontab
@reboot ntpdate ntp.ubuntu.com
if you want to sync once a day just add the following line to the crontab via >crontab -e
36 4 * * * ntpdate ntp.ubuntu.com
so every da at 4:36 am the time will be synced.

Comments

 

Leave a Reply

Don't enter anything here:
Name (required) Invalid name
Mail (will not be published) (required) Invalid mail
Website Invalid url

Content couldnt be empty.