Thursday, October 12, 2023

How to Check your RPI/ubuntu boards time and set the correct time?

Preparation:
install Adopisoft terminal plugin or connect to your device using SSH

To check for your current time:

timedatectl

To set your timezone to Asia/Manila:

timedatectl set-timezone Asia/Manila


To change your time:
sudo date -s "yyyy-mm-dd hh:mm:ss"

replace with  your current date and time

example: sudo date -s "2023-10-13 09:16:59"
Note:Time format is 24hour format so if it is 1:00PM, It tmeans 13:00

sudo date -s "2023-10-13 09:16:59"


Make sure the system clock is synchronized:



try the following command to fix it:

sudo timedatectl set-ntp yes

or,

sudo timedatectl set-ntp true


sudo timedatectl set-local-rtc 0 --adjust-system-clock


sudo systemctl status systemd-timesyncd


timedatectl set-local-rtc 0

NOTE:
repeat these 2 terminal commands several times:

sudo systemctl status systemd-timesyncd 

sudo timedatectl set-local-rtc 0 --adjust-system-clock

until system clock synchronized becomes "yes"

The next step requires putty apps.It will not work in Adopisoft terminal plugin:

Peparation:
1. search for putty on google chrome browser.Download it and install it.
Putty Here: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
2. Enable SSH on adopisoft

Steps: 
1. Open putty via ssh then type 10.0.0.1

Use the following login credentials:

For other board:
user:adopisoft
pass:asdf@12345

For RPI
user:pi
pass:raspberry

For OPI5/OPI ONE/OPI PC
user:username: root
passwd: asdf@12345 or asdf@123 or Asdf@12345

For Generic machine/Ubunto server
user:adoadmin
pass:AdoPiSoft

Note: Typing password has no display response.Just make sure you type it correctly then ENTER.

2. Once you successfully login to terminal via putty, if  system clock synchronized is still "No" 

Open timesyncd.conf file then edit its content

To open, type this in the terminal:

sudo nano /etc/systemd/timesyncd.conf
then press ENTER
You should see this file content:

Please remove the comment (#) after [Time] then add this NTP server in the list:
NTP=ph.pool.ntp.org
NTP=0.asia.pool.ntp.org
NTP=1.asia.pool.ntp.org
NTP=2.asia.pool.ntp.org
NTP=3.asia.pool.ntp.org

The result should be look like this



To edit, use arrow up and down, arrow left and right,backspace and ENTER key.
When you are done editing, save it. 
To save press CTRL+O then ENTER
To exit file press CTRL+X
To close putty type exit but do not close it, because you're not done yet.

Next 

  • Restart the systemd-timesyncd service:
    To restart type this command then press ENTER:

    sudo systemctl restart systemd-timesyncd.service

    Wait for a few minutes then check if system clock synchronized becomes "Yes"
    Once you've followed these steps, your Raspberry Pi's/OPI's clock should be synchronized with the network, ensuring accurate timekeeping.

How to Upgrade from Lite to Business without reflashing?

 1. Revoke your LITE license. This is required.Login to your vendor machines admin portal 10.0.0.1/admin then under Device Information, revo...