mirror of
https://bitbucket.org/anguist/ntpa
synced 2025-10-05 18:41:13 +00:00
Updated documentation
This commit is contained in:
39
INSTALL
39
INSTALL
@ -1,21 +1,14 @@
|
||||
How to install NTP Analyzer
|
||||
===========================
|
||||
|
||||
FreeBSD
|
||||
-------
|
||||
|
||||
Run as root:
|
||||
# pkg install mono
|
||||
# pkg install gtk-sharp20 (only for GUI)
|
||||
# pkg install libgdiplus (only for graphs)
|
||||
# pkg install webfonts
|
||||
# pkg install mysql-server
|
||||
|
||||
Build a pure server version (no GTK) with:
|
||||
# make server
|
||||
|
||||
Install with:
|
||||
# make install
|
||||
# ./install-bsd.sh
|
||||
Find ntpa in the ports collection.
|
||||
|
||||
|
||||
Ubuntu
|
||||
------
|
||||
|
||||
Run:
|
||||
# sudo apt-get install mono-complete
|
||||
@ -25,6 +18,7 @@ Run:
|
||||
# sudo apt-get install ntp (use updated versions)
|
||||
|
||||
Build the solution with:
|
||||
# configure MYSQL PGSQL GRAPH
|
||||
# make
|
||||
|
||||
Build a pure server version (no GTK) with:
|
||||
@ -36,13 +30,15 @@ Install with:
|
||||
|
||||
|
||||
Windows
|
||||
-------
|
||||
|
||||
Download a copy of ntpq and ntpdc. Make sure .NET is installed and
|
||||
the required MySQL Server is accessible. Download and install MySQL
|
||||
if needed. Minor adjustments might be needed to get the code running.
|
||||
if needed. Minor adjustments is needed to get the code up and running.
|
||||
|
||||
|
||||
Configuration
|
||||
Usage
|
||||
-----
|
||||
|
||||
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.
|
||||
@ -51,10 +47,10 @@ auto generated values. Set Hostname to point at a name or an IP address
|
||||
reachable by ntpq.
|
||||
|
||||
Configuration can be validated with the validation tool:
|
||||
# mono ntpav.exe --validate /etc/ntpa.conf
|
||||
# ntpav --validate /etc/ntpa.conf
|
||||
|
||||
To start ntpa use:
|
||||
# mono ntpa.exe --config /etc/ntpa.conf
|
||||
# ntpa --config /etc/ntpa.conf
|
||||
|
||||
Look in the log file for errors and other clues when debugging.
|
||||
|
||||
@ -62,9 +58,7 @@ To stop ntpa use kill. Find the process id in the log file.
|
||||
# kill 72354
|
||||
|
||||
To start ntpa in daemon mode:
|
||||
# mono ntpa.exe --config /etc/ntpa.conf &
|
||||
|
||||
On FreeBSD use the rc.d script to start and stop the daemon.
|
||||
# ntpa --config /etc/ntpa.conf &
|
||||
|
||||
Connect to ntpa and get a list of available commands:
|
||||
# ntpac 127.0.0.1 9070 help
|
||||
@ -73,7 +67,4 @@ Ask ntpa how long time it has been running:
|
||||
# ntpac 127.0.0.1 9070 uptime
|
||||
|
||||
GTK GUI
|
||||
Run Ntp.Analyzer.Gui.exe and connect to ntpa with the port specified in
|
||||
the listener section. The GTK GUI is experimental as does not support
|
||||
SQL configuration and error handling. Use it at your own risk.
|
||||
|
||||
The GTK GUI is experimental and currently broke.
|
||||
|
Reference in New Issue
Block a user