1
0
mirror of https://bitbucket.org/anguist/ntpa synced 2025-10-05 18:41:13 +00:00

Updated documentation

This commit is contained in:
Carsten
2016-03-15 21:08:01 +01:00
parent 2e1766d029
commit 97fd187f4b

29
INSTALL
View File

@ -14,7 +14,8 @@ Ubuntu
------
Run:
# sudo apt-get install mono-runtime
# sudo apt-get install mono-complete
# sudo apt-get install gtk-sharp2
# sudo apt-get install libgdiplus
# sudo apt-get install mysql-server
# sudo apt-get install ntp
@ -40,20 +41,20 @@ Add the bin folders to path variable or make symlinks in /usr/local/sbin etc.
Configure ntpa
--------------
Copy ntp.conf from NTP host to the machine running ntpa and then add
timeserver ID from support.ntp.org. Search using google.com with f.x.
"ntp1.innolan.net" site:support.ntp.org
For servers not registered on support.ntp.org just add 10000 and above.
See ntp.conf in example on how to add time server IDs.
Copy ntpa.stat.conf from example to /etc/ntpa.conf
In ntpa.conf Hostname must point to a name or IP reachable by ntpq.
ConfigFile must must point to ntp.conf.
Adjust the values of HostName and ConfigFile settings accordingly.
Validate ntpa.conf file with ntpav using:
Finally validate ntpa.conf file with ntpav using:
# ntpav /etc/ntpa.conf
Copy ntp.conf from NTP host to the machine running ntpa and then add
timeserver ID from support.ntp.org. Search using google.com with f.x.
"ntp1.innolan.net" site:support.ntp.org
For servers not registered on support.ntp.org just add 10000 and above.
See ntp.conf in example on how to add time server IDs.
Configure database
------------------
@ -61,12 +62,14 @@ Configure database
Now adjust create_data.sql with real values. For host rows:
name is name used to query with ntpdc. Must match name/ip in ntpa.conf
ip is IP address as shown in generated web pages
orgId is ID from support.ntp.org. Use 10000 or above for non registered servers
orgId is ID from support.ntp.org. Use 10000 or above for non-registered
servers
For peer rows:
name is name shown in generated web pages
ip is IP address as received from ntpq -pn
orgId is ID from support.ntp.org. Use 10000 or above for non registered servers
orgId is ID from support.ntp.org. Use 10000 or above for non-registered
servers
Run:
# mysql < run create_tables.sql
@ -81,12 +84,12 @@ Now start ntpa and watch the data arriving in MySQL tables.
Also watch the logfile for errors and other debugging activities.
Now start ntpa in daemon mode with:
# mono ntpa.exe &
To stop ntpa use kill. Find ntpa pid in log file.
# kill 77342
Start ntpa in daemon mode with:
# mono ntpa.exe &
GTK GUI
Run Ntp.Analyzer.Gui.exe and connect to ntpa with the a port specified
in the listener section.