News | About | Get Frugalware | Packages | Documentation | Discussion Forums | Bug Tracker | Wiki | Community | Development

Network Time Protocol

From FrugalWiki

Jump to: navigation, search



Chrony, an alternative NTP client and server that is dial-up friendly and designed specifically for systems that are not online all the time. Chrony is the default ntp client of Frugalware since 1.6.

Contents

Chrony

  • Install chrony
Root terminal 48px.png
# pacman-g2 -S chrony


  • Add and Start the service
Root terminal 48px.png
# systemctl enable chrony.service
Root terminal 48px.png
# systemctl start chrony.service


Alternatives

This part describes two different methods to synchronize the Linux software clock (system clock) to internet time servers. OpenNTPD (part of the OpenBSD project) is explained is explained first and then Traditional ntpd . Both daemons can sync the local clock and act as a time server if needed. OpenNTPD is designed to be simple and secure, while ntpd has a larger set of features.

OpenNTPD

  • Install openntpd
Root terminal 48px.png
# pacman-g2 -S openntpd


  • Add and Start the service
Root terminal 48px.png
# systemctl enable openntpd.service
Root terminal 48px.png
# systemctl enable openntpd.service


  • If you have an offset:
Root terminal 48px.png
# ntpd -ds


Ctrl + c to stop it .

NTP

  • Installation
Root terminal 48px.png
# pacman-g2 -S ntp


  • Choose your NTP server


See the ntp servers list here: http://www.pool.ntp.org/

Then choose one closer from your location, for example

Root terminal 48px.png
# ntpdate fr.pool.ntp.org


  • Ntpdate started at boot


Add this line to /etc/rc.d/rc.local

 ntpdate fr.pool.ntp.org &

See also

If you have a time problem when you reboot:

External links

Personal tools
Namespaces
Variants
Actions