WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline ferran

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

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

TC CorePlus v.11.1 i686 & lots of coffe

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11704
Re: [trick] get the time for your clock
« Reply #16 on: March 23, 2020, 08: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

  • Full Member
  • ***
  • Posts: 159
Re: [trick] get the time for your clock
« Reply #17 on: March 23, 2020, 09: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.1 i686 & lots of coffe

Offline ferran

  • Full Member
  • ***
  • Posts: 159
Re: [trick] get the time for your clock
« Reply #18 on: March 24, 2020, 06: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.1 i686 & lots of coffe

Offline ferran

  • Full Member
  • ***
  • Posts: 159
Re: [trick] get the time for your clock
« Reply #19 on: April 23, 2020, 04:34:02 AM »
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" ?
TC CorePlus v.11.1 i686 & lots of coffe

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11704
Re: [trick] get the time for your clock
« Reply #20 on: April 23, 2020, 10:07:18 AM »
Hi ferran
If you are running a GUI:
Code: [Select]
echo "sudo ntpd start" > ~/.X.d/StartNTP
If you are running in text mode:
Code: [Select]
echo "sudo ntpd start" >> ~/.profile

Offline ferran

  • Full Member
  • ***
  • Posts: 159
Re: [trick] get the time for your clock
« Reply #21 on: April 23, 2020, 01:17:03 PM »
Thank you again Rich. I'm sure that it will work when i restart the computer.
TC CorePlus v.11.1 i686 & lots of coffe

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: [trick] get the time for your clock
« Reply #22 on: April 23, 2020, 03:27:41 PM »
Actually, what the extension needs is a startup script in/usr/local/etc/init.d/. Even without it you should still be starting it as a system daemon in /opt/bootlocal.sh. The userspace login scripts are not intended to be the place to start system background processes that run listeners on restricted ports meant for use by everyone logged into (or who can connect to) the system.

Offline ferran

  • Full Member
  • ***
  • Posts: 159
Re: [trick] get the time for your clock
« Reply #23 on: April 23, 2020, 03:45:02 PM »
In my humble opinion (I've only been in TC 1 month) what has shocked me most about TC is that we don't have a configuration wizard (as in any other linux distribution) to detect your hardware and install everything you need to have a time zone, a clock server (if you don't have a clock battery in your PC) or the ALSA or if you want the Xvesa or the Xorg, if you have Nvidia, printers, usb, etc.etc.

Well... this is another history.
TC CorePlus v.11.1 i686 & lots of coffe

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: [trick] get the time for your clock
« Reply #24 on: April 23, 2020, 06:14:18 PM »
Maybe because you haven't written it yet? Not every distro has been around two decades and has scores of contributors. Sadly, this forum gets WAY more requests than offers.

Offline ferran

  • Full Member
  • ***
  • Posts: 159
Re: [trick] get the time for your clock
« Reply #25 on: April 23, 2020, 06:22:39 PM »
Time to time  ;D
TC CorePlus v.11.1 i686 & lots of coffe