HIP:PMP:ntpdate

From Earlham Cluster Department

Revision as of 01:16, 31 October 2006 by Copelco (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Download NTP

[NTP: The Network Time Protocol]

(the version i got)
wget http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2.2p4.tar.gz

Configure with -static, run make

cd ntp-4.2.2p4/
./configure CFLAGS="-static"
make

Copy ntpdate to PMP

cd to ntpdate/
scp ntpdate root@pmp2:/usr/local/bin

Set time zone

scp /usr/share/zoneinfo/EST5EDT root@pmp2:/usr/share/zoneinfo/
cd /etc
ln -l /usr/share/zoneinfo/EST5EDT localtime

Run at startup

touch /etc/init.d/sync_time
vi /etc/init.d/sync_time
...
#!/bin/sh
/usr/local/bin/ntpdate cs.earlham.edu
echo Syncing with cs.earlham.edu
cd /etc/rc.d/rc3.d/
ln -s ../../init.d/sync_time S73SYNCTIME
Personal tools
Namespaces
Variants
Actions
websites
wiki
this semester
Toolbox