From Funtoo
(Difference between pages)
Jump to navigation
Jump to search
|
|
Line 1: |
Line 1: |
| {{Ebuild | | {{Person |
| |Summary=Network Time Protocol suite/programs | | |Geoloc=42.331427, -83.0457538 |
| |CatPkg=net-misc/ntp | | |Location name=Detroit |
| |Homepage=http://www.ntp.org/ | | |Blogs= |
| }} | | }} |
|
| |
| === Installation ===
| |
| {{console|body=
| |
| ###i## emerge net-misc/ntp
| |
| }}
| |
|
| |
| === Configuration ===
| |
| ==== Client ====
| |
| The ntp-client command immediately synchronizes your clock, and has separate ntp sync settings from the daemon:
| |
|
| |
| {{file|name=/etc/conf.d/ntp-client|lang=|desc=setting ntp-client upstream servers|body=
| |
| 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.
| |
|
| |
| {{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 ===
| |
| {{console|body=
| |
| ###i## rc-update add ntpd
| |
| ###i## rc-update add ntp-client
| |
| ###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}}
| |
Latest revision as of 06:15, February 15, 2015
Location
Loading map...
{"minzoom":false,"maxzoom":false,"mappingservice":"leaflet","width":"100%","height":"350px","centre":false,"title":"","label":"","icon":"","lines":[],"polygons":[],"circles":[],"rectangles":[],"copycoords":false,"static":false,"zoom":5,"defzoom":14,"layers":["OpenStreetMap"],"image layers":[],"overlays":[],"resizable":false,"fullscreen":false,"scrollwheelzoom":true,"cluster":false,"clustermaxzoom":20,"clusterzoomonclick":true,"clustermaxradius":80,"clusterspiderfy":true,"geojson":"","clicktarget":"","imageLayers":[],"locations":[{"text":"","title":"","link":"","lat":42.331427,"lon":-83.0457538,"icon":""}],"imageoverlays":null}
Detroit