You are not logged in.
Pages: 1
i have two installs of devuan daedalus+kde: qemu VM and bare-metal.
the VM was updated over existing install going back to ascii. the bare-metal
devuan was a fresh install.
i cannot find any timekeeping service running on either: no ntpd, ntpsec,
chrony, timedatectl. nothing
how is timekeeping done?
what is standard practice (if any) for timekeeping?
my thought is to install chrony+timedatectl but maybe something else is preferred?
Offline
Hi, look at your services for hwclock.sh will take your bios time and use it to convert to your locale.
I found that the bios time needed to be set UTC so the locale would represent the correct time here...
If you have no network connection it may remember the time from a setting during the OS installation.
I used to try and set the correct date & time in the bios, but every OS wants to change it, putting my file-access time forward and generally making a mess.
So, set the bios to UTC and let the locales and hwclock will make the adjustment for you.
btw, using Open-Rc, rc-update (as root) lists the services.
I hope this helps.
pic from 1993, new guitar day.
Offline
i cannot find any timekeeping service running on either: no ntpd, ntpsec,
chrony, timedatectl. nothing
Open Synaptic Package Manager and see if they are installed.
Offline
ntpdate and ntpsec are not installed by default in Daedalus, has to be done afterwards. With ntpsec the conf dir has moved to /etc/ntpsec.
BTW: timedatectl is a systemd tool, afaik not present on Devuan.
Offline
chrony is a possible choice for a ntp daemon. Just install it and you're good to go.
Remarks:
The meta-package ntp (or ntpd) will installs the default time-sync daemon.
I do not know timedatectl. In general, it's a bad idea to install two services for one issue.
In case of a VM: The time comes from the host, so ntp is probably not needed.
Offline
Chrony has one drawback - there are no letters “ntp” in the name and the synaptic does not shows it unless specifically specified.
Offline
ntpsec is the "default" time daemon that will be installed if you run 'apt install ntp'. There's also the aforementioned chrony, as well as openntpd, which comes from OpenBSD. I just install with ntpsec on my systems since it's the default, and I didn't have a pressing reason to use one of the others. IIRC setup was entirely automatic; I didn't need to edit any init scripts or config files. However, I did run 'dpkg-reconfigure tzdata' to set my correct time zone.
Offline
thanks for the help/advise everyone! i got it sorted now. i only need a NTP client as there is
an NTP server on my lan. chrony installed without issue. added "-4" flag to /etc/default/chrony
and the server ip to /etc/chrony/chrony.conf and rebooted. 'chronyc tracking' shows things
as working as desired.
the first time chrony started-up and did a sync it adjusted the system clock by 30 seconds!
my mobo realtime clock must drift a lot.
Offline
i got it sorted now. i only need a NTP client ... chrony installed...
added -4 flag to /etc/default/chrony and the server ip to /etc/chrony/chrony.conf
chronyc tracking shows things
Thanks grunchy, I wanted a quick ntp client without having to think, chrony installed without mucking around thanks to your pointers. I might come back to it at some point and specify NTP servers later (country specific). I don't actually want to be thinking about this as I'm focused on something else.
and rebooted
fyi you don't need to reboot for that, you can just do:
/etc/init.d/chrony restart
Last edited by tux2bsd (2024-05-26 09:16:17)
Offline
Pages: 1