Tiny Core Base > TCB Tips & Tricks

[trick] get the time for your clock

<< < (4/6) > >>

ferran:
Rich done! I did


--- Code: ---sudo echo "etc/ntp.conf" >> /opt/.filetool.lst

--- End code ---

Rich:
Hi ferran
You also need to run a backup. You can do that from the command line if you wish:

--- Code: ---filetool.sh -b
--- End code ---

ferran:
Rich

Done. But before I added to ntp.conf three lines for security that i checked in this site:

https://www.garron.me/en/linux/set-time-date-timezone-ntp-linux-shell-gnome-command-line.html

So i did

--- Code: ---sudo echo "restrict defult noquery nopeer" >> /etc/ntp.conf
sudo echo "restrict 127.0.0.1" >> /etc/ntp.conf
sudo echo "restrict ::1" >> /etc/ntp.conf

--- End code ---


ferran:
Today is Twe Mar 24 11:35:19 UTC 2020 since I wrote


--- Code: ---sudo
ntpd start

--- End code ---

It's allright !

ferran:
I will rescue this theme. Since my last TC crashes i forget several simple configurations, in this case with the date/time

I remember I had "sudo ntpd start" line into a file. In each restart i did (and once connected to internet) the clock updates automatically at current date/time.

What is the file that i need append the line "sudo ntpd start" ?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version