HOWTO:Automatic synchronization of date and time after every reboot

From PardusWiki
Revision as of 21:01, 25 January 2011 by Atolboo (Talk | contribs)
Jump to: navigation, search

The problem of automatic synchronization of date and time after every reboot can be solved with the following crontab job.


1. Open a console (can be done with Alt+F2 and "konsole") and enter the following commands.

2. Make (for this session) KWrite the editor for this change of crontab.

for Pardus 2011

export EDITOR=/usr/bin/kwrite

for Pardus 2009

export EDITOR=/usr/kde/4/bin/kwrite

for Pardus 2008

export EDITOR=/usr/kde/3.5/bin/kwrite

3.Start editor for crontab

crontab -e

4 An empty Kwite screen will appear now and copy/paste the following line in this Kwite screen

@reboot ntpdate -u pool.ntp.org > /dev/null 2>&1

make sure that this line is terminated with a <enter> (otherwise this will not work).

5. Save and Close KWrite.

6. Check your modification by

crontab -l

You can check this by modifying the date/time in the BIOS of your computer and see what happens after the reboot.

Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox