Tom Nielsen wrote:
After a great amount of work, I managed to get ntp running...I think.
After configuring the IP address, I ran /etc/init.d/xntpd. I noticed it said "resetting time to IP ...." I tried to run 'ntpdate' and I got:
ntpdate: no servers can be used, exiting.
Do I need to run ntpdate? How and what do I setup to have my clock set itself on a monthly basis?
You don't need to run ntpdate. You enable xntp using yast, edit /etc/ntp.conf and make sure there is a line server fully.qualified.domain.name pointing to an NTP server. You should can find one using a google search. You can find NTP servers with a Google search. I don't know if you can restrict xntp to looking up the time once a month. I don't need to because on one machine I have an ethernet connection and on the other I use a different solution below. You might find the answer on the howto at http://tldp.org/ My home PC uses an ISDN connection; frequent time updates are not necessary, but I have to match my work PC reasonably closely for rsync. I don't start xntp, but rather putthe following in /etc/ppp/ip-up/local #!/usr/bin/perl #system( "/etc/init.d/squid reload" ); $max_diff = 86400; $touchfile = "/tmp/ntp-update"; $t_diff = $max_diff; $now = time; if( -e $touchfile ){ my @fileinfo = stat $touchfile; $t_diff = $now - $fileinfo[9]; } if( $t_diff ge $max_diff ){ system( "/usr/sbin/ntpdate ntp.cis.strath.ac.uk" ); system( "touch $touchfile" ); } This updates the clock at most once a day, but only when I connect. -- JDL Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.