Set the date in Begalebone Black using ntp Debian 8.9 -


i've been trying set correct date in beaglebone black solutions i've tried not permanent, everytime poweroff beagle , power on later, date wrong again. looks like:

root@beaglebone:~# date sat may 21 17:48:28 cdt 2016 

then installed ntp , ntpdate

root@beaglebone:~# apt-get install ntp ntpdate reading package lists... done building dependency tree reading state information... done ntp newest version. ntpdate newest version. 0 upgraded, 0 newly installed, 0 remove , 1 not upgraded. 

after edit ntp.conf file this

# pool.ntp.org maps 1000 low-stratum ntp servers.  server # pick different set every time starts up.  please consider joining # pool: <http://www.pool.ntp.org/join.html> server 0.north-america.pool.ntp.org server 1.north-america.pool.ntp.org server 2.north-america.pool.ntp.org server 3.north-america.pool.ntp.org ... # clients (example!) subnet have unlimited access, if # cryptographically authenticated. #restrict 192.168.123.0 mask 255.255.255.0 notrust restrict 192.168.0.11 mask 255.255.255.0 nomodify notrap 

the next step was

root@beaglebone:~# rm /etc/localtime root@beaglebone:~# ln -s /usr/share/zoneinfo/america/mexico_city /etc/localtime 

after supposed enable ntp service with

root@beaglebone:~# systemctl enable ntpdate.service failed enable unit: no such file or directory  or  root@beaglebone:~# service ntpdate start failed start ntpdate.service: unit ntpdate.service not found. 

i couldn't continue thas because don't have ntp.service file tried this

root@beaglebone:~# timedatectl set-ntp true root@beaglebone:~# timedatectl status       local time: sat 2016-05-21 18:16:10 cdt   universal time: sat 2016-05-21 23:16:10 utc         rtc time: sat 2016-05-21 23:16:11        time zone: america/mexico_city (cdt, -0500)  network time on: yes ntp synchronized: yes  rtc in local tz: no  root@beaglebone:~# nano /etc/systemd/timesyncd.conf [time] ntp=0.north-america.pool.ntp.org 1.north-america.pool.ntp.org 2.north-america.pool.ntp.org 3.north-america.pool.ntp.org fallbackntp=0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 3.debian.pool.ntp.org 

finally reboot , seems work

root@beaglebone:~# timedatectl status       local time: sun 2017-09-10 23:32:28 cdt   universal time: mon 2017-09-11 04:32:28 utc         rtc time: mon 2017-09-11 04:32:28        time zone: america/mexico_city (cdt, -0500)  network time on: yes ntp synchronized: yes  rtc in local tz: no 

but again, after poweroff time sets may 21st, 2016. tried set , sync clock manually hwclock --set --date "date" --localtime , systohc after poweroff result same.

am missing or doing wrong?

i change 'utc' 'local' in /etc/adjtime , time goes may 2016.

thanks.

try this:

dpkg-reconfigure tzdata

this should work. prompt appears , can configure graphical interface. easy america , enter. , then, can pick time zone, too.

seth


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -