WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [trick] get the time for your clock  (Read 314 times)

Offline ferran

  • Newbie
  • *
  • Posts: 44
Re: [trick] get the time for your clock
« Reply #15 on: March 23, 2020, 05:20:20 PM »
Rich done! I did

Code: [Select]
sudo echo "etc/ntp.conf" >> /opt/.filetool.lst

TC CorePlus v.11.0 Default | Kernel 5.4.3-tinycore | CPU Intel 1.66 Ghz & lots of coffe

Offline Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 7328
Re: [trick] get the time for your clock
« Reply #16 on: March 23, 2020, 05:29:27 PM »
Hi ferran
You also need to run a backup. You can do that from the command line if you wish:
Code: [Select]
filetool.sh -b

Offline ferran

  • Newbie
  • *
  • Posts: 44
Re: [trick] get the time for your clock
« Reply #17 on: March 23, 2020, 06:26:55 PM »
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: [Select]
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


TC CorePlus v.11.0 Default | Kernel 5.4.3-tinycore | CPU Intel 1.66 Ghz & lots of coffe

Offline ferran

  • Newbie
  • *
  • Posts: 44
Re: [trick] get the time for your clock
« Reply #18 on: March 24, 2020, 03:47:04 AM »
Today is Twe Mar 24 11:35:19 UTC 2020 since I wrote

Code: [Select]
sudo
ntpd start

It's allright !
TC CorePlus v.11.0 Default | Kernel 5.4.3-tinycore | CPU Intel 1.66 Ghz & lots of coffe