brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: timedatectl shows whether your server clock is in sync

Linux
~/tips/tip-timedatectl-sync-status

timedatectl

Prints the local time, the time zone and whether the clock is synchronised with an NTP server.

Wrong clocks cause odd things: failing TLS, tokens that look expired, logs that do not line up.

timedatectl

Check the line System clock synchronized: yes. Set the zone for a Dutch server with:

sudo timedatectl set-timezone Europe/Amsterdam

The output also shows NTP service: active when automatic syncing is on. This is for systemd based distributions such as Debian and Ubuntu.

Further reading: timedatectl manual page

More Linux tips a2query -m rewrite renice -n 10 -p 4242 cat config.yml | xsel -ib xvfb-run -a your-program --some-flag dpkg --get-selections > packages.txt All Linux tips (261) All topics

Link