Roku PhotoBridge Programming: Patterns and Pitfallsfrequal.com

Built-in Web Server

The PhotoBridge includes a built-in web server installed in
/usr/local/fnord
. This web server supports CGI, the Common Gateway Interface. However, it is not enabled by default. To enable it, add this line to the end of /etc/inittab:
::respawn:/usr/local/bin/tcpserver -DRHPl 0 -u 0 -g 0 0 80 /usr/local/fnord/fnordy
This will cause it to be launched at the next reboot. You can also execute the command interactively to launch the server without rebooting.

At this point you can connect to the PhotoBridge from a web browser. If you enter the PhotoBridge's address in the URL field, you'll see a credits page.


Last modified on 23 Nov 2006 by AO

Copyright © 2024 Andrew Oliver