patrick-motard / dotfiles

My dotfiles
The Unlicense
19 stars 8 forks source link

Add ntp and networkmanager-dispatcher-ntpd #56

Closed amasover closed 6 years ago

amasover commented 6 years ago

When Arch runs as a guest under a Windows host the time seems to get out of sync pretty frequently. Using ntp should help with that. These packages will ensure that the ntpd service runs, but only when there is actually a network connection (see the Arch wiki page on ntp for more details).

patrick-motard commented 6 years ago

I've never seen time get out of sink on my vm, but I have seen my windows install on a dual boot get out of sync when booting windows after having been booted into linux. I'll test this out.

If it fixes the dual boot bug, this is good to go. If not, then these packages belong in the "virtualbox_packages" list instead. That list is for vm specific packages.

patrick-motard commented 6 years ago

@amasover how do you use this package? if it requires starting a daemon would you mind including instructions in the readme as part of this PR?

amasover commented 6 years ago

@patrick-motard Nothing special is required to use this. From the arch wiki:

The ntpd daemon can be brought up/down along with a network connection through the use of NetworkManager's dispatcher scripts. The networkmanager-dispatcher-ntpd package installs one, pre-configured to start and stop the ntpd service with a connection.

Everything should work automagically as long as ntp and networkmanager-dispatcher-ntpd are installed.