Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add service file for NTP service #168

Closed
UriHerrera opened this issue Apr 30, 2024 · 2 comments
Closed

Add service file for NTP service #168

UriHerrera opened this issue Apr 30, 2024 · 2 comments
Labels
feature-request Issues to discuss future features to be added to this software.

Comments

@UriHerrera
Copy link
Member

Issue Description

Describe the bug

When booting the distribution, the date and time have to be manually adjusted; otherwise, various problems can occur, primarily when the user connects to the Internet.

Steps to reproduce the bug

  1. Boot Nitrux
  2. Use software like wget or Firefox
  3. SSL certificate errors will be displayed

Expected behavior

No certificate errors are displayed.

Additional context

Debian has replaced ntpupdate with the NTPsec version of NTP; however, as usual, they don't provide a service script, only a Systemd service unit. So, we need to add a service script for OpenRC to start an NTP daemon and adjust the date and time automatically.

@UriHerrera UriHerrera added the feature-request Issues to discuss future features to be added to this software. label Apr 30, 2024
@UriHerrera
Copy link
Member Author

UriHerrera commented May 7, 2024

Service file added to OpenRC in Nitrux/openrc-config@722098c and working when booting the Live session.

Captura de pantalla de 2024-05-07 15-59-31

However, as noted in #66, Plasma will continue to display an error because it relies on timedated, a component of systemd. Plasma doesn't use /usr/bin/ntpupdate as a fallback because it is deprecated; now, it uses /sbin/ntpdate.

Captura de pantalla de 2024-05-07 15-57-14

Nonetheless, checking "Set date and time automatically" and then searching for the desired timezone will automatically adjust the time despite the error message, which was the previously lost functionality.

@UriHerrera
Copy link
Member Author

UriHerrera commented May 8, 2024

I have updated the service script to run ntpd directly instead of using the wrapper that the Systemd unit file executes by default in Debian.

It does seem to work better since the time in Plasma was automatically changed to my timezone once the graphical session started, whereas before, it defaulted to UTC.


I have further updated the service script. The service script will display the command output to the boot log.

Captura de pantalla de 2024-05-20 19-23-12

To select a timezone in the Live session, right-click the clock and select Adjust date and time. Then click on the Time Zone tab, search for the desired timezone, and click Apply. The Live session will default to UTC because that is the default timezone.

Since the user is expected to be connected to the Internet during installation, Calamares will automatically select the appropriate timezone. The correct timezone will be used upon booting the installed system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Issues to discuss future features to be added to this software.
Projects
None yet
Development

No branches or pull requests

1 participant