Trouble w/ date and time automatic updating

I’m using openSuse 11.0 w/ KDE 3.5 and would like to have the date and time automatically updated. Internet access is through dialup. When attempting to set time and date automatically, there’s a warning that the NTP daemon should be used only with a permanent connection because of long load times and possible errors.

I keep forgetting to update the time manually and can end up with time stamps that are wildly inaccurate. Is there another way to do this automatically for those of us on dialup?

  • azmarkz,

here’s what I’d do. Configure NTP through Yast, but don’t start it upon boot.
Now become root and edit /etc/sudoers:

su
visudo

Enter a line like
yourusername yourhostname = NOPASSWD /usr/sbin/ntpd
and save.

Now write a small containing not much more than the line
sudo /usr/sbin/ntpd -q

This will launch the NTP demon, set the time and quit.

Put this script somewhere where it is executed after your network is being started. Dunno, I use wicd, Network Manager has something similar, I think, or it could go somewhere to /etc/sysconfig/network (I’m too lazy right now to search :wink:

HTH
Uwe

Thanks for the suggestion, Uwe.

Will this still work if there’s no network? It’s just my little old computer with dialup and me.

TIA,
Mark

  • azmarkz wrote, On 08/28/2009 03:36 PM:
    > Thanks for the suggestion, Uwe.
    >
    > Will this still work if there’s no network? It’s just my little old
    > computer with dialup and me.

That’s why I suggested you place the script somewhere where it will be run after the network is coming up.

Uwe