Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Time Sync
28-03-2014, 04:10 PM,
#1
Time Sync
Is there any way to have the kernel connect to NTP upon bootup?
because the Pi has no hardware clock. it never has the correct time shown.

also, whats the password for the RPITC id that the Pi normally runs with or can i SUDO the date command with another ID.

Thank you for such a great system!!!!
Reply
13-05-2014, 11:03 AM,
#2
RE: Time Sync
You can add some specific ntpd command to update the time/date when board is booting up, but it will slow the boot process.
Something like:
sudo service ntp stop
sudo ntpdate -s time.nist.gov (or de.pool.ntp.org or your local ntp server)
sudo service ntp start
will update the time/date, network must be up!
Password is raspberry
Reply
16-05-2014, 01:17 PM,
#3
RE: Time Sync
Hello,

why you don't Change the NTP Server manually ?
/etc/ntp.conf

enter your local ntp-Server f.e.:
Server 192.168.1.1
Reply
16-05-2014, 05:55 PM,
#4
RE: Time Sync
(13-05-2014, 11:03 AM)admin Wrote: You can add some specific ntpd command to update the time/date when board is booting up, but it will slow the boot process.
Something like:
sudo service ntp stop
sudo ntpdate -s time.nist.gov (or de.pool.ntp.org or your local ntp server)
sudo service ntp start
will update the time/date, network must be up!
Password is raspberry

where would i put this script?

thank you
Reply
23-05-2014, 06:06 PM,
#5
RE: Time Sync
There are probably better ways to do this...but I've created customized scripts and made them executable then added the path to run my script to my autostart in rpitc. It runs after the boot (which in this case will ensure your network is up).

Just my two cents.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)