Tiny Core Linux
Tiny Core Base => Raspberry Pi => Topic started by: fault-tolerant on January 31, 2016, 02:43:41 AM
-
Can't seem to find any means of getting time from NTP server in picore 7.0. In x86 tinycore I have the ntpclient. Should I compile it from source? Anyone did that already? I also noticed this function can be included in the busybox at compile time. Can I suggest that, especially for the Raspberry Pi?
-
BusyBox ntpd is included in base. It is used to setup time from ntp server during startup. Try.
-
Thank, @bmarkus, however I'm actually after a CLI tool to manually set the time rather than a daemon. I'm trying to port our java application to RaPi2 with piCore, and it manages the timekeeping by itself. On Ubuntu it used to work with ntpdate. If there's no other option, I will try to work with ntpd, of course.
By the way, I mentioned compiling - is there a compiletc.tcz for piCore to quickly set up the environment?
-
When used default network config, than the ntpd is automatically started just after dhcp execution.
When used static IP setup, you need to start it manually with:
# Set the time
/etc/init.d/settime.sh
From my practice, this build in ntpd is working much better than ntp, or ntpdate, even on highly secured networks.
By the way, I mentioned compiling - is there a compiletc.tcz for piCore to quickly set up the environment?
For sure, there is compile-essentials.tcz and other stuff for feature-rich compiling.
Hence you're newbie, please take a look around the forum for more info how this nice community works.
-
Thanks, @jgrulich! I will follow your advice. piCore is somewhat different indeed, but I shall catch up with it.
UPDATE:
Of course, ntpd has the -q option. And there are the helper scripts settime.sh and getTime.sh.
Thanks again.