1) I want to have hwclock set to UTC and
2) system clock to localtime
I commented local time from porteus.cfg.
Linked time zone to /etc/localtime.
/mnt/sdb1/porteus/changes/etc/hardwareclock is set to UTC
but after boot something changes /etc/hardwareclock to localetime
I also want to disable NTP synchronization.
How to disable NTP synchronization and set hwclock to UTC
-
- White ninja
- Posts: 20
- Joined: 29 Mar 2023, 16:12
- Distribution: Voidlinux, Poerteus
How to disable NTP synchronization and set hwclock to UTC
Last edited by baloontravel on 03 Oct 2023, 16:03, edited 1 time in total.
- Blaze
- DEV Team
- Posts: 3885
- Joined: 28 Dec 2010, 11:31
- Distribution: ⟰ Porteus current ☯ all DEs ☯
- Location: ☭ Russian Federation, Lipetsk region, Dankov
- Contact:
How to disable NTP synchronization and set hwclock to UTC
Hi baloontravel,
how about open terminal and run:
?
how about open terminal and run:
Code: Select all
su
toor
cp /etc/localtime{,.bak} && rm /etc/localtime && ln -sf /usr/share/zoneinfo/UTC /etc/localtime && ntpdate pool.ntp.org && hwclock -lw
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
-
- White ninja
- Posts: 20
- Joined: 29 Mar 2023, 16:12
- Distribution: Voidlinux, Poerteus
How to disable NTP synchronization and set hwclock to UTC
I executed commands with linking localetime to zoneinfo/UTC.
Did dump-session to save changes.
All clocks were set to UTC at this point.
But after reboot still hwclock and date shows my local time.
Is there any way to prevent system from changing hwclock?
Did dump-session to save changes.
All clocks were set to UTC at this point.
But after reboot still hwclock and date shows my local time.
Is there any way to prevent system from changing hwclock?
-
- White ninja
- Posts: 20
- Joined: 29 Mar 2023, 16:12
- Distribution: Voidlinux, Poerteus
How to disable NTP synchronization and set hwclock to UTC
I used barbaric solution and just replaced ntpdate with empty script.