Difference between revisions of "Package:Ntp"

m (throw updates template)
m
Line 4: Line 4:
 
|Homepage=http://www.ntp.org/
 
|Homepage=http://www.ntp.org/
 
}}
 
}}
{{PageNeedsUpdates}}
 
  
 
=== Installation ===
 
=== Installation ===
Line 13: Line 12:
 
=== Configuration ===
 
=== Configuration ===
 
==== Client ====
 
==== Client ====
 +
The ntp-client command immediately synchronizes your clock, and has separate ntp sync settings from the daemon:
  
===== Hardware Clock =====
+
{{file|name=/etc/conf.d/ntp-client|lang=|desc=setting ntp-client upstream servers|body=
To write your NTP sync time to the hardware at shutdown, and read hw clock at start.
+
NTPCLIENT_OPTS="-s -b -u \
 
+
0.pool.ntp.org 1.pool.ntp.org \
{{console|body=
+
2.pool.ntp.org 3.pool.ntp.org"
###i## echo 'clock_hctosys="YES"' >> /etc/conf.d/hwclock
+
###i## echo 'clock_hctosys="YES"' >> /etc/conf.d/hwclock
+
###i## rc-service hwclock restart
+
###i## rc-update add hwclock boot
+
 
}}
 
}}
  
 
==== Server ====
 
==== Server ====
 +
The ntpd server is also an ntp-client of upstream servers.  Ntpd continuously, and gradually synchronizes the local clock.
 +
 +
{{file|name=/etc/ntp.conf|lang=|desc=setting ntpd upstream servers|body=
 +
# 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 ===
 
=== Runtime ===
Line 32: Line 37:
 
###i## rc
 
###i## rc
 
}}
 
}}
 +
 +
==== Hardware Clock ====
 +
To write your NTP sync time to the hardware at shutdown, and read hw clock at start.
 +
 +
{{console|body=
 +
###i## echo 'clock_hctosys="YES"' >> /etc/conf.d/hwclock
 +
###i## echo 'clock_hctosys="YES"' >> /etc/conf.d/hwclock
 +
###i## rc-service hwclock restart
 +
###i## rc-update add hwclock boot
 +
}}
 +
 +
=== External Resources ===
 +
http://keetweej.vanheusden.com/query_ntp.php
  
 
{{EbuildFooter}}
 
{{EbuildFooter}}

Revision as of 03:22, January 25, 2015

net-misc/ntp


Source Repository:Gentoo Portage Tree
Homepage

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

Pre-built kernels!

Funtoo stage3's are now starting to offer pre-built kernels for ease of install. read more....
12 May 2015 by Drobbins
Drobbins

Better Experiences: Ego and Vim

Info on Funtoo's new personality tool called 'ego', and user-focused updates to vim's defaults.
27 April 2015 by Drobbins
Drobbins

How We're Keeping You At the Center of the Funtoo Universe

Read about recent developments that keep you, our users, at the forefront of our focus as Funtoo moves forward.
10 April 2015 by Drobbins
View More News...

Ntp

Tip

This is a wiki page. To edit it, 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