1 hints/bsdi 2 3 Author: Bdale Garbee, bdale (a] gag.com 4 Last revision: 27Oct94 (Paul Vixie) 5 6 Included in this distribution of XNTP is a configuration file suitable 7 for use with BSDI's BSD/OS 1.1 (formerly BSD/386 1.1). On this system, 8 the "cc" command is GCC 1.4x rather than PCC or GCC 2.x. It is imperative 9 that "cc" be used since it predefines the symbol __bsdi__; if you want to 10 use another compiler you will need to add -D__bsdi__ to catch the various 11 #ifdef's required for this system. 12 13 The Kinemetrics/Truetime GPS-TM/TMD driver is known to work on this system. 14 The GPS-805 and GOES should also work fine. Hell, they should all work fine 15 but it's hard to test very many locally. 16 17 Due to BNR2's strict interpretation of POSIX and XNTP's use of SIGIO, BSD/OS 18 can only handle one refclock per daemon. We're working this out with the 19 system architects. 20 21 The config file is machine/bsdi, and the following steps should be all that 22 are required to install and use the bits. 23 24 Note that you will need GNU sed; the version supplied with BSD/OS 1.1 loops 25 endlessly during "make refconf". Likewise you should get GNU make, which 26 the instructions below assume that you have put in /usr/local/bin/gnumake. 27 28 To build the software: 29 30 rm -f Config.local 31 gnumake refconf 32 gnumake MAKE=gnumake 33 34 To install the software: 35 36 gnumake install 37 38 This will place all of the executables in /usr/local/etc. The config 39 file is expected to be /usr/local/etc/xntp.conf and the key file for 40 the optional authentication is /etc/ntp.keys. 41 42 Craft a config file and a key file, and put them in the right places. 43 There is information on how to do this elsewhere in the documentation, 44 the only thing I'll mention is that I put the drift file in 45 /var/log/ntp.drift, and the authdelay on my 486DX/50 system is 46 0.000064. Your mileage will vary, learn to use the authspeed tools 47 if you're going to authenticate. 48 49 In the file /etc/rc.local, make sure that the invocation of ntpd is 50 commented out, and add an invocation of xntpd. Here's what I'm using: 51 52 echo -n 'starting local daemons:' 53 54 if [ -f /etc/ntp.keys -a -f /usr/local/etc/xntp.conf ]; then 55 echo -n ' xntpd'; /usr/local/etc/xntpd 56 fi 57 58 #XXX# echo -n ' ntpd'; /usr/libexec/ntpd -t 59 60 At this point, you should be good to go. Try running /usr/local/etc/xntpd and 61 using ntpq or xntpdc to see if things are working, then pay attention the next 62 time you reboot to make sure that xntpd is being invoked, and use ntpq or 63 xntpdc again to make sure all is well. 64 65 Enjoy! 66