Install NTP

From MiOS
(Difference between revisions)
Jump to: navigation, search
m
m (Instructions)
 
(3 intermediate revisions by 2 users not shown)
Line 8: Line 8:
  
 
==Introduction==
 
==Introduction==
Heres a short manual on how to install NTP to your Vera 2. Out of the box your new Vera 2 does not use NTP (Network Time Protocol) for its timer updates, but uses the less commonly used Rdate. However, NTP support and personalisation can be added after market. Here is how:
+
Heres a short manual on how to install NTP to your Vera 2. Out of the box your new Vera 2 does not use NTP (Network Time Protocol) for its timer updates, but uses the less commonly used Rdate. However, NTP support and personalisation can be added after market. Here is how:<br>
 +
Note:
 +
<br>1) this is not fully supported by MiCasaVerde firmware and you should also leave rdate installed and configured
 +
<br>2) this is not required if everything is working fine with your Vera unit
 +
<br>3) if your unit time is with X hours (or X*30minutes for Australia) before/after your correct time, the issue is related to your TIMEZONE and not to the sync time client. Check if your timezone is correctly stored in /etc/TZ.
  
 
==Instructions==
 
==Instructions==
01.Gain ssh access to your vera2 (root) and use the password that is provided on the bottom of your vera2. More info on how to can be found here:[http://wiki.micasaverde.com/index.php/Logon_Vera_SSH]<br />
+
01. Gain ssh access to your vera2 (root) and use the password that is provided on the bottom of your vera2. More info on how to can be found here:[http://wiki.micasaverde.com/index.php/Logon_Vera_SSH]<br />
 
02. Then run the following commands:<br />
 
02. Then run the following commands:<br />
  
Line 22: Line 26:
 
  ''/etc/init.d/ntpd start''
 
  ''/etc/init.d/ntpd start''
  
03. To edit the ntp.conf file without using and editor like VI use the echo command like this;<br />
+
03. To edit the ntp.conf file without using an editor like VI, use the echo command like this (important to remove ONLY the quotes before and after your and name): <br />
 
  ''echo "server "your servers ip or dns name" prefer" >> /etc/ntp.conf''
 
  ''echo "server "your servers ip or dns name" prefer" >> /etc/ntp.conf''
  
04. (important to remove ONLY the quotes before and after your and name) To view the current entries in your ntp.conf type:<br />
+
04. To view the current entries in your ntp.conf type:<br />
 
  ''cat /etc/ntp.conf''
 
  ''cat /etc/ntp.conf''
  

Latest revision as of 19:53, 9 January 2012

HOWTO install NTP on your Vera.

Contents

[edit] Prerequisites

  • Vera 2 hardware
  • Root acces to your OpenWRT

[edit] Introduction

Heres a short manual on how to install NTP to your Vera 2. Out of the box your new Vera 2 does not use NTP (Network Time Protocol) for its timer updates, but uses the less commonly used Rdate. However, NTP support and personalisation can be added after market. Here is how:
Note:
1) this is not fully supported by MiCasaVerde firmware and you should also leave rdate installed and configured
2) this is not required if everything is working fine with your Vera unit
3) if your unit time is with X hours (or X*30minutes for Australia) before/after your correct time, the issue is related to your TIMEZONE and not to the sync time client. Check if your timezone is correctly stored in /etc/TZ.

[edit] Instructions

01. Gain ssh access to your vera2 (root) and use the password that is provided on the bottom of your vera2. More info on how to can be found here:[1]
02. Then run the following commands:

opkg update
opkg install ntpd
/etc/init.d/ntpd enable
/etc/init.d/ntpd start

03. To edit the ntp.conf file without using an editor like VI, use the echo command like this (important to remove ONLY the quotes before and after your and name):

echo "server "your servers ip or dns name" prefer" >> /etc/ntp.conf

04. To view the current entries in your ntp.conf type:

cat /etc/ntp.conf

05. To remove obsolete IP's or server names from the ntp.conf files type:

cat /etc/ntp.conf | grep -v "lines to remove" > /etc/ntp.conf.new

06. Check the newly created file using this command:

cat /etc/ntp.conf.new

07. Overwrite the existing file if all checks out using:

mv /etc/ntp.conf.new /etc/ntp.conf

08. Double check the newly created ntp.conf file by typing:

cat /etc/ntp.conf

09. Restart the NTP service

/etc/init.d/ntpd restart

10. OR reboot/powercycle your vera

[edit] References

please find more info here: http://forum.micasaverde.com/index.php?topic=5591.0
For logging on to your Vera using SSH read this [2]

Personal tools