|
|
|
|
|
|
May 13, 2008 |
|
|
|
|
|||||
|
Home |
About This Site |
Contact |
Access Statistics |
|||||
|
|
|
|
|
|
|
|
Email Me Résumé HTMLPerlSETI Remote Controls Home Theater For Sale Public Links Private Links |
HTMLPerlSETI
09/02/2002 version 0.17
Windows NT : HTMLPerlSETI Note: This information applies to HTMLPerlSETI v0.13. It hasn't been updated yet for the latest release of HTMLPerlSETI, in which the most notable changes are the separate configuration files, htmlperlseti.hosts, and htmlperlseti.conf. You should still be able to following along with this documentation, just realize some changes might be applied to the conf files rather than the base script itself. The following explains how to run htmlperlseti.pl on a UNIX box and have it collect SETI@home statistics from an NT box. Further down there is a section on how to install HTMLPerlSETI on an NT box and run it from there. I have successfully gotten HTMLPerlSETI to collect SETI@home statistics from my Windows NT box. The htmlperlseti.pl script is running on a Linux box. But it is able to rsh to the NT box and get its stats. There are three programs you need to install on your Windows NT box. The first one is an rsh daemon. There is a free rshd from Silviu Marghescu available at http://home.us.net/~silviu/. I am running version 1.6 of his rsh as improved by Ilya Evseev at http://www.csa.ru/~il/rsh/. I installed it as a service by doing 'rshd -install'. I made a .rhosts in my Windows directory (i.e. C:\Winnt4) and added the following line: darius.mobius-soft.com + That lets anyone from darius.mobius-soft.com (where my web server and cgi scripts run) rsh to my Windows NT box. (You might want to change the '+' to a specific user.) Then in the Windows NT Control Panel for Services, I made the RSHD Daemon service start automatically (in the Startup properties) and then I started the service. The other two programs are Win32 ports of the uname and cat commands. There is a free package of Unix utilities for Win32 available from Karl M. Syring at http://unxutils.sourceforge.net/. I downloaded the UnxUtils.zip file and extracted just the uname.exe and cat.exe files. I copied these exe files to my System32 directory (i.e. C:\Winnt4\System32). I added my NT box to the %netlist hash in htmlperlseti.pl, like this: macleod => [ 'C:\seti', "/home/seti/setiathome/setistats_data", "rsh", "dir" ], C:\seti is the directory where I have the setiathome data files (like work_unit.sah). I put "dir" for the pscommand. htmlperlseti.pl executes this command and if there is output, it assumes the SETI@home client is running. Since there will be output from the dir command, htmlperlseti.pl will think the SETI@home client is running. I did this because I did not want to fuss with finding a ps command for NT. If you'd like to get this working under Windows 98, I'm told you can use RSHD/95 from http://www.denicomp.com/download.htm (the evaluation copy is functional). Specifically, I've been told that version 2.18.03 works if you set the following options in the rshd's control panel:
The following explains how to run htmlperlseti.pl on an NT box. Get perl (I got perl5.00402-bindist04-bc.zip) and install it. Get Apache (I got apache_1_3_6_win32.exe) and install it. For the sake of example, I installed Apache in C:\Program Files and installed perl in D:\perl. You need to know how to set up Apache. Here are a few hints for your http.conf file. (Note that the ScriptAlias directive or the <Directory "..."> directive might be line wrapped here but really should be on one line.) ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache/cgi-bin/" AddHandler cgi-script .pl <Directory "C:/Program Files/Apache Group/Apache/cgi-bin"> AllowOverride None Options ExecCGI </Directory> Associate .pl files with perl. In Windows NT (in My Computer) under View Options, File Types, do a New Type. Put something like Perl Scripts for Description. Associated Extensions is pl . Do a New Action. The Action is open. Perform Action is D:\perl\bin\perl.exe "%1" . Install the SETI::Stats Perl module. Make a directory called SETI in D:\perl\lib\site and copy the Stats.pm file there. Make the following changes to the htmlperlseti.pl script. Change the first line to refer to your perl: #!d:\perl\bin\perl I copied the progress bar GIFs to C:\Program Files\Apache Group\Apache\htdocs . So I have the following configuration: $BAREMPTY="/barempty.gif"; $BARFULL="/barfull.gif"; $BARLEFT="/barleft.gif"; $BARRIGHT="/barright.gif"; $BARSHADOW="/barshadow.gif"; Set $USETELNET to yes: $USETELNET="yes"; Comment out the following lines: #$LOCALHOST = `hostname`; #chomp($LOCALHOST); Uncomment the following line and add your machine name: $LOCALHOST = "macleod"; Add your machine to the %netlist hash: macleod => [ 'c:\seti', 'c:\seti\setistats_data', "rsh", "dir" ], Comment out the following lines: #$domain=`dnsdomainname`; #chomp($domain); Copy htmlperlseti.pl to your cgi-bin dir. Also, make sure the uname and cat commands, mentioned above, are installed. If you want your NT box to gather stats from other machines too (that are running rsh daemons), you can also install the free rsh (client) from Silviu Marghescu and Ilya Evseev (at http://www.csa.ru/~il/rsh/). Just make sure it is in your path (I copied it to C:\Winnt4\System32). That got it to work for me. Good luck! |
|||||||||
|
|
|
|||||||||
|
|