HOWTO:Automatic synchronization of date and time after every reboot

From PardusWiki
(Difference between revisions)
Jump to: navigation, search
(Created page with '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 "konso…')
 
 
(One intermediate revision by one user not shown)
Line 6: Line 6:
 
2. Make (for this session) KWrite the editor for this change of crontab.
 
2. Make (for this session) KWrite the editor for this change of crontab.
  
for KDE4 = Pardus 2009 and higher
+
for Pardus 2011
 +
export EDITOR=/usr/bin/kwrite
 +
for Pardus 2009
 
  export EDITOR=/usr/kde/4/bin/kwrite
 
  export EDITOR=/usr/kde/4/bin/kwrite
for KDE3 = Pardus 2008  
+
for Pardus 2008  
 
  export EDITOR=/usr/kde/3.5/bin/kwrite
 
  export EDITOR=/usr/kde/3.5/bin/kwrite
3.Start editor for crontab
+
3.Start the editor for crontab
 
  crontab -e
 
  crontab -e
 
4 An empty Kwite screen will appear now and copy/paste the following line in this Kwite screen
 
4 An empty Kwite screen will appear now and copy/paste the following line in this Kwite screen

Latest revision as of 21:03, 25 January 2011

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 the 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