Onefinity out of the box automatic time/date setup

We need a way to have time/date ajust for our timezone in order to have right ETA in the UI.

Temporary solution:

# SSH to your cnc using user and password.

sudo -i                                                 # enter same password

############
# MOUNT OS RW
############
sudo mount -o remount,rw /boot                          # makes the file system writable
sudo apt-mark hold hostapd                              # prevent update to hostapd  

############
# UPDATE OS
############
sudo apt-get update -y                                  # update
sudo apt-get upgrade -y                                 # upgrade 

############
# SETUP NTP
############
# REF https://www.digitalocean.com/community/tutorials/how-to-set-up-timezone-and-ntp-synchronization-on-ubuntu-14-04-quickstart
TZ='America/Toronto'; export TZ                         # run this and also add it to line 1 of .profile
sudo nano .profile                                      # save it by pressing CTRL + X then Y followed by ENTER.

sudo timedatectl set-timezone America/Toronto           # adjust timezone to your region (see REF above)
sudo apt-get update -y                                  # update
sudo apt-get install ntp                                # install ntp

############
# MOUNT OS RO
############
sudo mount -o remount,ro /boot                          # makes the file system read-only

############
# RESTART SYSTEM
############
sudo reboot
2 Likes