Ntp

Revision as of 03:22, January 25, 2015 by Threesixes (Talk | contribs)

net-misc/ntp


Source Repository:Repository:Gentoo Portage Tree

http://www.ntp.org/

Summary: Network Time Protocol suite/programs

Use Flags

openntpd
Allow ntp to be installed alongside openntpd
parse-clocks
Add support for PARSE clocks
samba
Provide support for Samba's signing daemon (needed for Active Directory domain controllers)

News

Drobbins

Perl Updates

Gentoo has bumped perl from 5.20 to 5.22. Be sure to run perl-cleaner --all after the upgrade.
2015-07-25 by Drobbins
Drobbins

ARM Rebuild

ARM systems will use new stage3's that are not compatible with earlier versions.
2015-06-27 by Drobbins
Drobbins

ABI X86 64 and 32

Funtoo Linux has new 32-bit compatibility libraries inherited from Gentoo. Learn about them here.
2015-06-18 by Drobbins
More...

Ntp

Tip

We welcome improvements to this page. To edit this page, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.


Installation

# emerge net-misc/ntp


Configuration

Client

The ntp-client command immediately synchronizes your clock, and has separate ntp sync settings from the daemon:

/etc/conf.d/ntp-client - setting ntp-client upstream servers
NTPCLIENT_OPTS="-s -b -u \
	0.pool.ntp.org 1.pool.ntp.org \
	2.pool.ntp.org 3.pool.ntp.org"

Server

The ntpd server is also an ntp-client of upstream servers. Ntpd continuously, and gradually synchronizes the local clock.

/etc/ntp.conf - setting ntpd upstream servers
# Pools for Gentoo users
server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org
server 3.pool.ntp.org

Runtime

# rc-update add ntpd
# rc-update add ntp-client
# rc


Hardware Clock

To write your NTP sync time to the hardware at shutdown, and read hw clock at start.

# echo 'clock_hctosys="YES"' >> /etc/conf.d/hwclock
# echo 'clock_hctosys="YES"' >> /etc/conf.d/hwclock
# rc-service hwclock restart
# rc-update add hwclock boot


External Resources

http://keetweej.vanheusden.com/query_ntp.php