LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   atomic clock sync (https://www.linuxquestions.org/questions/slackware-14/atomic-clock-sync-294807/)

salviadud 02-25-2005 12:47 PM

atomic clock sync
 
is there a slackware package or in this case, a package for linux that can sync your clock?

my system clock is a mess. it always gets out of sync. is there an easy way to sync it?

High-Hopes 02-25-2005 01:06 PM

I believe Slack comes with a utility called "Netdate" that is made for this purpose. You can find more info here: http://www.beaglesoft.com/clwamixplatform.htm

Okie 02-25-2005 01:09 PM

http://www.ntp.org/

Network TIme Protocol

I never used it so i can not say how good it works, but some distros include it with their packages so it should work good in slackware too...

ringwraith 02-25-2005 03:52 PM

I always set mine up following the directions here:
http://members.cox.net/laitcg/new/time.html

I do look up a nearby timeserver and add its ip address instead.
http://ntp.isc.org/bin/view/Servers/WebHome

davidsrsb 02-26-2005 05:22 AM

The syntax is ntpdate pool.ntp.org
This requires root privileges.

spes_hominis 02-27-2005 01:32 PM

When you mentioned that your clock was never in sync, I immediately thought that it sounded like a motherboard problem. Sometimes, the battery powering the memory that stores your system's settings starts to go flat and a sign of this is the clock running slow.

salviadud 02-28-2005 10:22 AM

here's the whole page

Slackware Tips & Tricks by Jack S. Lai
Last Updated: Thu, 14 Nov 2002 17:35:15 GMT
Time synchronization
Why do we want to ensure proper time? When investigating a security issue or reporting an issue, we want our logs to match our ISP's.

Create /etc/cron.daily/timecheck (Check and update the time from AOL.com which is close to me)

#!/bin/sh
/usr/sbin/ntpdate 205.188.185.33 && /sbin/hwclock --systohc

question

How do I create /etc/cron.daily/timecheck ?

is timecheck a conf file?

Mr-Imbroglio 02-28-2005 11:47 AM

why not just su, then 'ntpdate -b time.nist.gov'

this will give you your current time according to the location of your ip add, and it works like a champ, i especially love the >7 day uptimes, after running this your screensaver will kick in because it thinks like 15 minutes has past during the time update

salviadud 02-28-2005 11:28 PM

my clock sync works great for minutes, but now it thinks i'm set at GMT, and i live in central time mexico. how do i fix this??

plus, i can't get another user to sync the clock because the only one who can is root... any ideas on permissions???


All times are GMT -5. The time now is 12:38 PM.