gene_x 0 like s 12 view s
Tags: processing
https://askubuntu.com/questions/1046214/enable-system-clock-synchronization
Steps to Enable NTP Support 1. Check if systemd-timesyncd is Running
Ensure that the default time synchronization service is installed and active. Run:
sudo systemctl status systemd-timesyncd
If it’s inactive or not installed, enable and start it:
sudo systemctl enable systemd-timesyncd
sudo systemctl start systemd-timesyncd
If systemd-timesyncd is not available or you prefer using ntp, follow these steps:
Install the ntp package:
sudo apt update sudo apt install ntp
Ensure the ntp service is enabled and running:
sudo systemctl enable ntp
sudo systemctl start ntp
If you're using systemd-timesyncd, you can configure NTP servers in /etc/systemd/timesyncd.conf. Open the file:
sudo vim /etc/systemd/timesyncd.conf
Add or edit the following lines to include your preferred NTP servers:
[Time] NTP=time.google.com 1.de.pool.ntp.org 2.de.pool.ntp.org
Save the file and restart the service:
sudo systemctl restart systemd-timesyncd
After ensuring the service is running, you can force synchronization:
sudo timedatectl set-ntp false sudo timedatectl set-ntp true
Check the time status again:
timedatectl
Confirm that System clock synchronized: yes is displayed.
Steps to Resolve 1. Check for systemd-timesyncd Installation
Run the following command to see if systemd-timesyncd is installed:
sudo systemctl status systemd-timesyncd
If the service is not found, install and enable it:
sudo apt update
sudo apt install systemd-timesyncd
sudo systemctl enable systemd-timesyncd
sudo systemctl start systemd-timesyncd
Check if the configuration for NTP servers is correct. Open the file /etc/systemd/timesyncd.conf:
sudo nano /etc/systemd/timesyncd.conf
Ensure the [Time] section includes valid NTP servers:
[Time] NTP=time.google.com 1.de.pool.ntp.org 2.de.pool.ntp.org
Save the file and restart the service:
sudo systemctl restart systemd-timesyncd
If the service is installed and running but synchronization is still not active, force-enable NTP:
sudo timedatectl set-ntp true
If systemd-timesyncd is not sufficient or unavailable, you can install and use the ntp package:
sudo apt update sudo apt install ntp sudo systemctl enable ntp sudo systemctl start ntp
Recheck the time synchronization status:
timedatectl
Look for System clock synchronized: yes.
点赞本文的读者
还没有人对此文章表态
没有评论
RNA-seq Tam on CP059040.1 (Acinetobacter baumannii strain ATCC 19606)
Variant Calling for Herpes Simplex Virus 1 from Patient Sample Using Capture Probe Sequencing
Typing of 81 S. epidermidis samples (Luise)
Co-Authorship Network Generator using scraped data from Google Scholar via SerpAPI
© 2023 XGenes.com Impressum