Difference between pages "Install/ru/Partitioning" and "Package:Ntp"
Jump to navigation
Jump to search
Threesixes (talk | contribs) m (hw clock info from gentoo) |
|||
Line 1: | Line 1: | ||
{{Ebuild | |||
{{ | |Summary=Network Time Protocol suite/programs | ||
|CatPkg=net-misc/ntp | |||
= | |Homepage=http://www.ntp.org/ | ||
}} | |||
=== Installation === | |||
{{console|body= | |||
###i## emerge net-misc/ntp | |||
}} | |||
==== | === Configuration === | ||
==== Client ==== | |||
===== 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 | |||
}} | |||
{{ | |||
# ##i## | |||
# ##i## | |||
' | |||
# ##i## | |||
==== Server ==== | |||
=== Runtime === | |||
{{console|body= | |||
###i## rc-update add ntpd | |||
###i## rc-update add ntp-client | |||
###i## rc | |||
=== | |||
{{ | |||
# ##i## | |||
# ##i## | |||
# ##i## | |||
}} | }} | ||
{{EbuildFooter}} | |||
Revision as of 10:04, January 6, 2015
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
root # emerge net-misc/ntp
Configuration
Client
Hardware Clock
To write your NTP sync time to the hardware at shutdown, and read hw clock at start.
root # echo 'clock_hctosys="YES"' >> /etc/conf.d/hwclock root # echo 'clock_hctosys="YES"' >> /etc/conf.d/hwclock root # rc-service hwclock restart root # rc-update add hwclock boot
Server
Runtime
root # rc-update add ntpd root # rc-update add ntp-client root # rc