From Funtoo
Jump to: navigation, search



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.


To install the NTP client and server, run the following command:

root # emerge net-misc/ntp



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 \ \"


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


If you are interested only in synchronizing your local clock against servers, then only add ntp-client to your list of services to start at boot:

root # rc-update add ntp-client

After adding the ntp-client service to the default runlevel, the service can be started by executing the rc command as root:

root # rc
root ##g##* ##!g##Setting the clock via the NTP client 'ntpdate' ...   [ OK ]

Executing the above command normally takes several seconds

If you are instead interested in running an NTP server, add ntpd to your list of services to execute at boot:

root # rc-update add ntpd

ntpd serves as both a client and a server

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_systohc="YES"' >> /etc/conf.d/hwclock
root # rc-service hwclock restart
root # rc-update add hwclock boot

External Resources