The nightview needs a http server with CGI support to run over Internet (for local clients only is not required). You can use any http server but I strongly recommends a small and a fast server like thttpd thttpd by Jef Poskanzer or boa. boa by L. Doolittle and J. Nelson Use it in standalone mode (run as own process not lunched from the inetd, moreover both boa or thttpd don't support the inetd, but wn wn by J. Franks for example supports it) for a shorter response.
The scripts nightview-thttpd and nightview-boa runs the http server as system user. They are located at /ysr/sbin directory and can be used as start-up scripts. Check its and modify to fit your purposes.
If, we use the thttpd server. There is a script can be used for a lunch this server in a chroot environment in tmp directory, where the server create a log file and some temporary files.
# mkdir /tmp/thttpd # ln -s /usr/bin/nightview.cgi /tmp/thttpd # thttpd -d /tmp/thttpd -p 7666 -r -c *.cgi -l /tmp/thttpd/thttpd.log
The thttpd server listen on 7666 port (you can use 80 also, but the another non-nightview http server can run on this port, if you can use #80 use -host "name:80" option for clients). The all network traffic on this server will be logged to the thttp.log file.
To testing of the server use usual web browser. Copy the nightview.html file to the /tmp/thttpd directory and look at:
lynx http://localhost:7666/nightview.html
after a little bit of time appears the page:
This is a simple tester for nightview web interface. If you don't know how use it, type "login" to some entry. TELESCOPE: ________________________________________ CAMERA: ________________________________________ Click ...
Type "login" and the server send you a some message. My lynx runs the mozilla when I send the login message to the server due to sending XML back.