#!/bin/bash #sudo timedatectl set-local-rtc 1 #ntpdate ntp.ubuntu.com # only found this to work for 'clock is behind' after reboot x) sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"