DreamCat 发表于 2004-12-19 22:44:31

我这里一直没有平台编译,没机器了。麻烦你给CL编译一下。OpenNTPD 具有客户端和服务器,同时在一起的。原始是openbsd的,现在也有linux的。

QUOTE
OpenNTPD is a FREE, easy to use implementation of the Network Time Protocol. It provides the ability to sync the local clock to remote NTP servers and can act as NTP server itself, redistributing the local clock
主页:http://www.openntpd.org/openbsd only:http://openbsd.md5.com.ar/pub/OpenBSD/Open...nntpd-3.6.1.tgzPortable OpenNTPD: 这个是需要编译的。http://openbsd.md5.com.ar/pub/OpenBSD/Open...-3.6.1p1.tar.gz不知道是否支持ulibc。

DreamCat 发表于 2004-12-19 22:49:05

如果可行的话,我会给它做个web页面,可以选择多个时间服务器做基准。

心想事成 发表于 2004-12-19 23:16:30

编译出来了.时间太晚了,明天要上班,没有仔细做.两个文件,一个ntpd你放到/usr/sbin/目录下另外一个放在/usr/local/etc/目录下.

DreamCat 发表于 2004-12-19 23:28:12

我试验下。哈~~

DreamCat 发表于 2004-12-20 00:03:37

chmod 755 ntpd 后无法启动 ntpd

QUOTE
can't load library 'libcrypto.so.0.9.7'
真晕了,难道要open ssl?郁闷,软盘没空间了~~!!!!

DreamCat 发表于 2004-12-20 10:03:45

QUOTE
On Mon, 20 Dec 2004 09:34:21 +1100, Darren Tuckerwrote:OpenNTPD will compile with uclibc (I use it with uclibc-0.9.20 on alittle embedded system of mine).The only thing that doesn't work is the "listen on *" directive, sinceuclibc doesn't have the getifaddrs function.If you want it to listenyou need to use "listen on ".

DreamCat 发表于 2004-12-20 11:31:53

QUOTE
It uses some crypto functions to generate random numbers.If you don'thave libcrypto on your target then configure OpenNTPD with "./configure--with-builtin-arc4random".> it too big,the file size rathor than 120K.strip ntpd, by default it builds with debugging symbols.For minimalsize try something like this:$ CC=/usr/i386-linux-uclibc/usr/bin/gcc CFLAGS=-Os \       ./configure --with-builtin-arc4random$ strip -s --remove-section=.note --remove-section=.comment ntpd$ ls -l ntpd-rwxrwxr-x    1 dtuckerdtucker   30420 Dec 20 14:28 ntpd$ ldd ntpd      libc.so.0 => /lib/libc.so.0 (0x40007000)      ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x40000000)If your target is Linux and you want to correct for drift too you maywant to look at:http://www.zip.com.au/~dtucker/openntpd/pa...-adjtimex.patch

DreamCat 发表于 2004-12-20 13:20:28

QUOTE
No, their libcrypt and libcrypto (note the trailing "o") are completelydifferent libraries and are not compatible.You will still need to use "./configure --with-builtin-arc4random".
我还以为是一个库呢,居然为这个问题问了半天感谢 Darren Tucker

DreamCat 发表于 2004-12-21 11:07:10

老大哎~~如何啦?

DreamCat 发表于 2005-1-21 19:12:11

终于完成了第一步:编译成功,就是大了点 311K,过几天继续弄,可以弄小点的。我用的远程时间服务器:rdate.darkorb.net 很稳定的。建议使用。国外还有很多地址池可以选择。不过网络不是太好。国内的时间服务器几乎都是给学校用的。气愤~~~~~?!!?#具体使用参照上面的贴子。这里只有一个文件。有兴趣的可以先用。等我全部弄完了再发个完整的包。

easehu 发表于 2005-1-21 22:07:00

QUOTE (哈啤猫 @ Jan 21 2005, 07:12 PM)
终于完成了第一步:编译成功,就是大了点 311K,过几天继续弄,可以弄小点的。我用的远程时间服务器:rdate.darkorb.net 很稳定的。建议使用。国外还有很多地址池可以选择。不过网络不是太好。国内的时间服务器几乎都是给学校用的。气愤~~~~~?!!?#具体使用参照上面的贴子。这里只有一个文件。有兴趣的可以先用。等我全部弄完了再发个完整的包。
            这个东西你也搞的时间太长了点吧。

DreamCat 发表于 2005-1-22 13:39:15

没平台啊,还是昨天用EMP老兄的机器弄的呢,网络还不好,终端回显一个字符得1-2秒呢,后半夜还不错。不过我都知足了哦。

bow 发表于 2005-1-22 14:27:45

做个虚拟机啊

DreamCat 发表于 2005-1-22 14:39:24

虚拟机?我的系统不知道为什么装不上VMWARE,郁闷呢,装个softice机器都没法启动。哎~~

easehu 发表于 2005-1-22 17:45:01

。。。你不是 P4 的计算机么。。。估计你把服务给关了。
页: [1] 2
查看完整版本: 关于时间服务器。