Simple web-based ui for the YURT cargo rover. This is a web-based interface for the Red Rover. Before installing on a new OBC, you should...
sudo apt-get install lighttpd --> this is the server software
sudo apt-get install python-flup --> this utility parses http requests for us
sudo groupadd lighttpd
sudo useradd -g lighttpd -d /var/www/html -s /sbin/nologin lighttpd --> this user will run the server for security purposes
sudo chown -R lighttpd:lighttpd /var/log/lighttpd
sudo chown -R lighttpd:lighttpd /var/run/lighttpd.pid
sudo chown -R lighttpd:lighttpd /var/www/red-rover-ui
sudo chmod 755 /var/www/red-rover-ui
sudo cp /usr/bin/python2.7 /usr/bin/pythonRoot
sudo chmod -R u+s /usr/bin/pythonRoot
sudo nano /etc/lighttpd/lighttpd.conf
- Add
mod_cgi
andmod_fastcgi
to the list of mods - Change server and groupname to
lighttpd
- Change the port to
8080
- Append the following lines:
fastcgi.server = (
".py" => (
"python-fcgi" => (
"socket" => "/tmp/fastcgi.python.socket",
"bin-path" => "/var/www/red-rover-ui/test.py",
"check-local" => "disable",
"max-procs" => 1)
)
)
/etc/init.d/lighttpd start