YO G!! dodododitdaadahhhh... It's da players... -=[ 40 Watt FM Broadcast Band Intermediate Power Amplifier Control ]=- Makefile Notes ~~~~~~~~~~~~~~ To compile, edit the Makefile to suit your needs. Then type 'make' and, if successful, 'make install'. Program Notes ~~~~~~~~~~~~~ * Needs to be run as root, or suid root 'chmod 4100'. * define PASSWD to whatever you want for a password. * define IPASTATUS to the status file that will hold the current IPA status. * logins/bad logins and a change of status are logged using syslog. * define BASE_ADDRESS to the address of your parallel port. Use 'dmesg' to find out if you don't know, or try: 0x3BC, 0x378, or 0x278 * Don't disconnect the cable while it's operating (duh). Command Line Arguments ~~~~~~~~~~~~~~~~~~~~~~ (no password is required) -B Set IPA to HIGH (maximum output power) -b Set IPA to MIDHIGH -m Set IPA to MID (medium output power) -l Set IPA to MIDLOW -L Set IPA to LOW (lowest output power) Comment out -DVERBOSE to stop the messages that are printed. Useful when using ipa_control in scripts. Hardware ~~~~~~~~ See ipa-reg.png or ipa-reg.ps Telnet Support ~~~~~~~~~~~~~~ To add telnet support; Append: ipa_control stream tcp nowait root /path/to/tcpd /path/to/ipa_control to your /etc/inetd.conf and 'killall -HUP inetd'. Then append: ipa_control 8001/tcp ipa_control where 8001 is the desired port number to your /etc/services. 'nc localhost 8001' to try it out. WWW Interface ~~~~~~~~~~~~~ amp.cgi Connects up to a host (running ipa_control_server.pl) and sends whatever command that was chosen. amp.main.cgi Prints out the HTML for the amplifier control page, and runs amp.cgi. ipa_control_server.pl Does the actual controlling. There is no authentication. Use access lists or firewall rules if you're scared of the script kidz. Bugs/Contact ~~~~~~~~~~~~ www.dct.com/~multiplx