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
For other board:
user:adopisoft
user:pi
user:username: root
user:adoadmin
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:
You should see this file content:
NTP=0.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.