Ubuntu/NTP

From Omnia
Jump to navigation Jump to search

NTP

systemctl status systemd-timesyncd
/etc/systemd/timesyncd.conf
 [Time]
 NTP=ntp.example.com
/etc/systemd/timesyncd.conf.d/
systemctl stop systemd-timesyncd
systemctl start systemd-timesyncd

---

One-shot sync:

chronyd -q

One-shot time check:

chronyd -Q

---

hints:

# chronyd -q
Command 'chronyd' not found, but can be installed with:
apt install chrony

# ntpdate
Command 'ntpdate' not found, but can be installed with:
apt install ntpsec-ntpdate
apt install chrony
apt install ntpsec-ntpdate
About time synchronisation | Ubuntu
https://ubuntu.com/server/docs/about-time-synchronisation

Dual Boot - Remember Last Choice

dual boot - How to get grub2 to remember last choice? - Ask Ubuntu - http://askubuntu.com/questions/148662/how-to-get-grub2-to-remember-last-choice

Ubuntu:

/etc/default/grub:

GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true

then run:

sudo update-grub

keywords