Results 1 to 4 of 4

Thread: Trouble w/ date and time automatic updating

  1. #1
    Join Date
    Nov 2008
    Location
    Southwestern U.S.
    Posts
    45

    Default 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?
    _____________
    openSUSE 11.3 / KDE 4.4.4

  2. #2
    Join Date
    Mar 2008
    Location
    Bochum, Germany
    Posts
    3,587

    Default Re: Trouble w/ date and time automatic updating

    * 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 ;-)

    HTH
    Uwe

  3. #3
    Join Date
    Nov 2008
    Location
    Southwestern U.S.
    Posts
    45

    Default Re: Trouble w/ date and time automatic updating

    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
    _____________
    openSUSE 11.3 / KDE 4.4.4

  4. #4
    Join Date
    Mar 2008
    Location
    Bochum, Germany
    Posts
    3,587

    Default Re: Trouble w/ date and time automatic updating

    * 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •