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.

CGI Scripts

The web server contents are in /user/local/fnord/default

An example CGI script is ps.cgi. When you access the server with the path /ps.cgi, it serves up the process list.

You can implement your own CGI scripts.


Last modified on 24 Nov 2024 by AO

Copyright © 2024 Andrew Oliver