Keep your software clock up-to-date with ntpd

Recently I noticed that my system clock tends to run a little fast up to the point where it is 7 to 10 minutes ahead of the actual time. (I now know that hardware clocks in common computers are not very good. If you want to know more click here)

After a little research I found out that I did not use internet time synchronization yet. So I guess the hardware clock on my notebook is not a very accurate device.

Thankfully, there is ntpd, the network time protocol daemon, which synchronizes the software clock of linux systems with available sources on the internet.

After the installation via pacman -S ntp, you first need to select a source for your time signal. Available sources are listed here. Put them into your /etc/ntp.conf file and you’re good to go.

Next stop the hwclock daemon and start ntpd.

sudo /etc/rc.d/hwclock stop
sudo /etc/rc.d/ntpd start

The daemon will then periodically update your system clock.

To start the daemon at boot, add it to your DAEMONS list in /etc/rc.conf and make sure, hwclock is blacklisted.

This entry was posted in Arch Linux, Linux and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s