ToBe | Pilot
Quick Start Guide
Components
Preparation
Hardware
|
Software
wget http://www.tognoli.fr/ToBe/Pilot/ToBe-Pilot-Src-v1.0.tgz tar xvzf ToBe-Pilot-Src-v*.tgz cd kmod make sudo make install # To allow modprobe to find this module sudo depmod sudo modprobe tobe-pilot # To load tobe-pilot.ko module automatically at boot echo "tobe-pilot" | sudo tee -a /etc/modules # To set module's parameter echo "options tobe_pilot hwrev=v2.0" | sudo tee /etc/modprobe.d/tobe.conf Pilotd provides a control interface (unix socket) to the webserver. Pilotd also provides the UART logger. Pilot is controlled via web interface. Webserver is based on Apache 2 HTTPD with PHP7 support # Install Apache HTTPD webserver and PHP sudo apt-get install apache2 apache2-utils php libapache2-mod-php #sudo apt-get install php-gd php-xml HTTPD needs to access pilot userspace tool as regular user
echo "www-data ALL=(pi) NOPASSWD: /usr/local/bin/pilot" | sudo tee -a /etc/sudoers.d/020_www-data
Note: 'pilot' command needs to be run as 'pi' user since it invokes some actions that needs 'sudo root' priviledge Do make sure /usr/local/bin/pilot is not writable by www-data |
Usage
|
By Bertrand Tognoli
2019-08-15
2019-08-15