On Tue, 09 May 2000, Ram Kumar wrote about, Help needed : ntp configure:
> I want to synchronize my PC time with my server. So i downloaded the
> ntp4 distribution from the net and i installed in my PC. I installed all
> files ( ntpd, ntpdc, ntptime, ntptrace, ntpdate, ntpq, ntptimeset ) in
> /usr/local/bin. Can anybody please help me in configuring the ntp for
> synchorinizing two pc's time in LAN. I did not find good documentation. Can
> anyone point me to a good documetation site or just tell me how to
> configure. All my PC's are loaded with slackware.
I have no knowlage iof those programs However;;
Slackware comes with 'rdate' so there was no real need to get another
program to get the date from a remote server.
rdate -s server.name
after getting the time from the remote server you can then syncronise the
cmos clock with;
clock -w
You possably want to sync the clock everyday or even 2 or 3 times a day.
The best way is to create a script;
#!/bin/sh
# Call it rc.time and place it in /etc/rc.d
#
# Set the system time from a remote server.
/usr/bin/rdate -s server.name
sleep 3
clock -w
# done
Change permissions of the file with;
chmod a+x /etc/rc.d/rc.time
Use crond to do all the work for you, i belive the example given underneath
should work ok for you.
Edit crontab with;
crontab -e
add
0 */12 * * * /etc/rc.d/rc.time 1> /dev/null 2> /dev/null
restart the crond process.
All done.
> Thanks in advance.
>
>
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to [EMAIL PROTECTED]
> Please read the FAQ at http://www.linux-learn.org/faqs
--
Regards Richard
[EMAIL PROTECTED]
http://people.zeelandnet.nl/pa3gcu/
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs