26
December
2024
17:46

Solving the problem with the incorrect display of time in antix

26 December 2024 17:46

If the time in the system watches is displayed, the minutes are normal, and the clock is behind for many hours. You need to fix the hourly belt.

Note

This article is valid for the SystemD service management system, the most common in Linux operating systems.
If your OS uses the runit service initialization system, see article.

Cause

The lack of the Internet when starting a computer (for example, a laptop is turned off the Wi -Fi adapter) and the wrong choice in the starting menu "Hourly Belt - Auto".

Solution

The first team will allow you to choose an hour -long waver for use by the operating systemantiX / MX Linux:

sudo dpkg-reconfigure tzdata
  • where to choose your time zone

The second command activates the work of the NTPD service:

timedatectl set-ntp true

Examination:

timedatectl

After rebooting, there is no problem - the clock show local time.

Advice

In the initial launch menu with LiveUSB in the "F2" menu, instead of "Auto", it is advisable to immediately set the time zone of your city, for example, for Moscow time - "Moscow" and select "F8 - Save" (save). The time zone along with the built -in clocks (RTC) will set the correct time.

Note

I have been using the version latelyantiX runit, которая более легкая. В которой (название образа antiX-23.2-runit_x64-full.iso) нет привычных команд для управления службами, таких как systemctl status ntp, однако время синхронизируется по сети с серверами NTP в runit тоже. Команда для проверки состояния службы другая: sv staTUS Name of the Service