OpenNTPD vs NTPD on Raspberry Pi

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

OpenNTPD vs NTPD on Raspberry Pi

Postby xanmanning » Fri Jun 01, 2012 12:02 pm

Hi all!

First off, thanks a bunch for the great release of Arch on the Raspberry Pi, I love it!

This is probably going to be a trivial question, and I am only asking out of curiosity, but I was wondering why OpenNTPD was chosen over NTPD on the Raspberry Pi? Is there any benefit in terms of resources or is it merely a preference of the team developing for the Raspberry Pi?

The reason I ask is that I am trying to learn more about the ins-and-outs of the Linux OS and I have only ever used NTPD. I use NTPD on my old PPC G4 Mac Mini running Debian Squeeze which, has a depleted watch battery inside so doesn't keep the time (and it is a bugger to open the case). This works very successfully, especially so as I am using a USB WiFi "stick" to gain access to the internet.

Whilst using OpenNTPD on the Raspberry Pi I have found that it runs fine when using a wired connection, however after following the instructions (https://wiki.archlinux.org/index.php/OpenNTPD#Using_wicd) for wicd (starting the OpenNTP daemon on connection to a wireless network) I have not had much luck in getting the time to sync.

Is there anything I could be doing wrong? Something I maybe should look at?

I have tried uninstalling OpenNTPD and installed NTPD, replaced the wicd startup scripts to use NTPD, and this has been much more successful. Is this an OK solution to the problem?


Thanks for your time and patience.
Kind Regards,

Xan.
xanmanning
 
Posts: 2
Joined: Sun May 27, 2012 8:55 pm

Re: OpenNTPD vs NTPD on Raspberry Pi

Postby pepedog » Fri Jun 01, 2012 12:18 pm

There was a time ntpd didn't work, don't know if it applies to ntpd but openntpd didn't require configuring, think it's the same.
So try ntpd.
If it don't work try fakeclock before bringing up network
http://www.raspberrypi.org/phpBB3/viewt ... ock#p56170
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: OpenNTPD vs NTPD on Raspberry Pi

Postby xanmanning » Sun Jun 03, 2012 9:27 am

Thanks a lot :)

NTPD seems to be working OK. I shall continue to play and if I find anything changes I will let you know.
xanmanning
 
Posts: 2
Joined: Sun May 27, 2012 8:55 pm

Re: OpenNTPD vs NTPD on Raspberry Pi

Postby jecxjo » Tue Jun 05, 2012 9:05 pm

Semi on topic, I created the AUR for openrdate over in the x86 Arch distro, built it on my RPI and works great.
$this->bbcode_second_pass_code('', '# Maintainer: Jeff Parent <jecxjo@sdf.lonestar.org>
# Contributor: Jeff Parent <jecxjo@sdf.lonestar.org>

pkgname=openrdate
pkgver=1.2
pkgrel=1
pkgdesc="Open implementation of rdate."
license=("BSD")
source=("http://downloads.sourceforge.net/project/openrdate/openrdate/openrdate-1.2.tar.gz/${pkgname}-${pkgver}.tar.gz")
arch=('i686' 'x86_64' 'arm')
depends=('glibc')
url="http://sourceforge.net/projects/openrdate/"
build() {
cd "$srcdir/$pkgname-$pkgver"
./configure --prefix=/usr
make
}

package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
}

md5sums=('ad9bd58e1fb7babc74d0a0a16a1248a2')
')
jecxjo
 
Posts: 2
Joined: Tue Jun 05, 2012 8:18 pm

Re: OpenNTPD vs NTPD on Raspberry Pi

Postby WarheadsSE » Tue Jun 05, 2012 10:37 pm

Any of the AUR tools should pull this down just fine then.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 7 guests

cron