Re: how do you set your system clock from a remote time server?
Netstd is dead: there were issues with conflicting copyrights IIRC. rdate
is in its own package ATM.
On Sat, 22 Apr 2000, Pann McCuaig wrote:
> On Sat, Apr 22, 2000 at 10:54, Maury Merkin wrote:
> > I saw, just a few days ago, a post with a command to get the current
> > time and reset the system clock.
> >
> > I didn't pay much attention then 'cause I thought the script I used to
> > use with RH would work. They don't. (No 'rdate' and no 'clock').
>
> $ dpkg -S rdate
> netstd: /usr/man/man8/rdate.8.gz
> netstd: /usr/sbin/rdate
>
> $ dpkg -S hwclock
> sysvinit: /usr/doc/sysvinit/examples/hwclock.sh
> util-linux: /sbin/hwclock
> util-linux: /usr/man/man8/hwclock.8.gz
> util-linux: /etc/init.d/hwclock.sh
>
> $ cat /root/bin/setclock.sh
> #!/bin/sh
> /usr/sbin/rdate -s time.nist.gov
> /sbin/hwclock --systohc
>
> So, you need to have the netstd and util-linux packages installed, and
> use hwclock (as of libc6) instead of clock. No worries!
>
> Luck,
> Pann
> --
> geek by nature, Linux by choice L I N U X .~.
> The Choice /V\
> http://www.ourmanpann.com/linux/ of a GNU /( )\
> Generation ^^-^^
>
>
> --
> Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
>
When you are having a bad day, and it seems like everybody is trying to
tick you off, remember that it takes 42 muscles to produce a frown, but
only 4 muscles to work the trigger of a good sniper rifle.
Who is John galt? Galt@inconnu.isu.edu, that's who!
Reply to: