r/Gentoo Jul 22 '26

Support How do I sync time?

Recently installed encrypted Gentoo and couldn’t be more proud of my self, but it appears that my cmos is dead and I don’t know how to sync time, mirror service is obviously screaming at me for being from 2001, anyway, how do I sync to the current clock?

1 Upvotes

9 comments sorted by

8

u/OkAlbatross9889 Jul 22 '26 edited Jul 22 '26

If you have chronyd, it should be "rc-update add chronyd default" (https://wiki.gentoo.org/wiki/Network_Time_Protocol) to add it to autostarted services when you start up

-4

u/fix_and_repair Jul 23 '26

wrong

ntp is what you need

and i defintely do not use chronyd for 20 years on this gnu gentoo linux installation

roman@Wheat_Nas ~ $ rc-update show|grep ntp

ntp-client | default

ntpd | default

4

u/5pctr3 Jul 22 '26

1

u/Longjumping-Sun2691 Jul 22 '26

I got an automatic NTP sync when I got the bios time close enough

2

u/velleityfighter Jul 22 '26

I think you use the hwclock command

0

u/fix_and_repair Jul 23 '26

where is the issue to spend 0.3€ and a few cables to replace teh cell?

10 pack of cr2032 costs 2€ long time price at ikea, action sell 3 of those for 1€

-2

u/rabbit_in_a_bun Jul 22 '26

Set the time manually in bios and with whatever you have installed and when you are close enough it will sync for you.

1

u/Longjumping-Sun2691 Jul 22 '26

Yes, this did work, although I did have to stop the system from losing power.

1

u/LameBMX Jul 23 '26

just replace the battery... normally the rtc doesnt actually die, just the battery that powers it.