1
0
mirror of https://bitbucket.org/anguist/ntpa synced 2025-10-06 11:04:40 +00:00
Files
ntpa/INSTALL

70 lines
1.5 KiB
Plaintext
Raw Normal View History

2016-05-31 20:03:40 +02:00
How to install NTP Analyzer
===========================
2016-03-12 17:05:05 +01:00
FreeBSD
2016-05-31 20:03:40 +02:00
-------
2016-03-12 17:05:05 +01:00
2016-05-31 20:03:40 +02:00
Find ntpa in the ports collection.
2016-04-16 14:19:42 +02:00
2016-03-19 22:55:38 +01:00
2016-03-12 17:05:05 +01:00
Ubuntu
2016-05-31 20:03:40 +02:00
------
2016-03-12 17:05:05 +01:00
Run:
2016-03-15 21:08:01 +01:00
# sudo apt-get install mono-complete
2016-03-19 22:55:38 +01:00
# sudo apt-get install libgdiplus (only for graphs)
2016-08-11 19:32:27 +02:00
# sudo apt-get install mysql-server (only for hosting)
2016-03-22 19:27:32 +01:00
# sudo apt-get install ntp (use updated versions)
2016-03-12 17:05:05 +01:00
2016-08-11 19:32:27 +02:00
Build and install ntpa with:
2016-12-11 00:22:09 +01:00
# make -f Makefile.xbuild install-linux
2016-03-13 13:53:45 +01:00
2016-04-16 14:19:42 +02:00
2016-12-22 19:50:10 +01:00
Linux, BSD and others
---------------------
2017-07-22 22:10:30 +02:00
Make sure all of the above dependencies are satisfied.
2016-12-22 19:50:10 +01:00
Build and install with autotools:
# autoreconf
# automake --add-missing
# ./configure
# make install
2016-04-16 14:19:42 +02:00
Windows
2016-05-31 20:03:40 +02:00
-------
2016-04-16 14:19:42 +02:00
2016-08-11 19:32:27 +02:00
Download a copy of ntpq. An excellent NTP distribution is available from:
2016-08-06 22:49:34 +02:00
https://www.meinbergglobal.com/english/sw/ntp.htm
2016-03-19 22:55:38 +01:00
2016-08-20 14:24:05 +02:00
Make sure the required database is accessible. Download and install MySQL
if needed.
2016-08-11 19:32:27 +02:00
2016-05-31 20:03:40 +02:00
Usage
-----
2016-03-13 13:53:45 +01:00
2016-03-19 23:08:38 +01:00
Set database user name and password in the top of ntpa.conf. Leave the
Create setting to 1 if you want all tables and data created automatically.
2016-04-10 11:50:35 +02:00
Later you can use phpMyAdmin, MySQL Workbench or similar to adjust the
auto generated values. Set Hostname to point at a name or an IP address
reachable by ntpq.
2016-03-12 17:05:05 +01:00
2016-03-20 16:45:21 +01:00
Configuration can be validated with the validation tool:
2016-05-31 20:03:40 +02:00
# ntpav --validate /etc/ntpa.conf
2016-03-12 17:05:05 +01:00
2016-03-23 17:52:00 +01:00
To start ntpa use:
2016-05-31 20:03:40 +02:00
# ntpa --config /etc/ntpa.conf
2016-03-11 23:22:40 +01:00
2016-03-23 17:52:00 +01:00
Look in the log file for errors and other clues when debugging.
2016-03-11 23:22:40 +01:00
2016-03-19 22:55:38 +01:00
To start ntpa in daemon mode:
2016-05-31 20:03:40 +02:00
# ntpa --config /etc/ntpa.conf &
2016-03-22 19:17:12 +01:00
2016-03-12 17:27:03 +01:00
Connect to ntpa and get a list of available commands:
# ntpac 127.0.0.1 9070 help
Ask ntpa how long time it has been running:
2016-08-11 19:32:27 +02:00
# ntpac 127.0.0.1 9070 uptime