Tag Archives: dconf

Too good to #0005

Prioritizing own NTP servers for systemd-timesyncd

1
2
3
# cat /etc/systemd/timesyncd.conf.d/timesyncd-corporate.conf
[Time]
NTP=ntp1.example.com ntp2.example.com ntp.ubuntu.com

Test if text is empty (even if it does contain a linebreak)

Good job by: https://unix.stackexchange.com/q/386499/2028

1
if ! grep -q '[^[:space:]]' "${file}"; then echo "Text is empty"; fi

Watch for changes in the Gnome registry

(To reproduce manual changes, for configuration management.)

1
dconf watch / # (Sorry, thats all)

Trigger Debian/Ubuntu unattended-upgrade

(For testing configuration changes)

1
2
3
rm /var/lib/apt/periodic/*
systemctl start apt-daily.service
systemctl start apt-daily-upgrade.service

And remember:

1
tail -f /var/log/unattended-upgrades/*log