Quantcast
Channel: LinkSprite Learning Center
Viewing all articles
Browse latest Browse all 562

How to do clock update on pcDuino8 Uno

$
0
0

pcDuino8 Uno doesn’t have an onboard RTC. So if you power it up, the clock and date will be lost. Once you get network connection,  you can force a time update using the following command:

$sudo ntpdate -s time.nist.gov

If you want that it happens automatically every time it reboots,

 

<code>( /etc/init.d/ntp stop
until ping -nq -c3 8.8.8.8; do
   echo "Waiting for network..."
done
ntpdate -s time.nist.gov
/etc/init.d/ntp start )

</code>

We can change the time zone by:

$sudo dpkg-reconfigure tzdata


Viewing all articles
Browse latest Browse all 562

Trending Articles