Paso 2: Configurar el entorno de Edison
Instalar las bibliotecas requeridas para este proyecto a ejecutar:
De tipo prompt del Shell:
- jsupm_hmc5883l de instalación de nueva gestión pública
- MNP instalar python-shell
Instalar Python Webcam Image capture que necesita instalar Python-opencv
De Shell escriba:
- echo -e "src/gz todos http://repo.opkg.net/edison/repo/all \nsrc/gz edison http://repo.opkg.net/edison/repo/all \nsrc/gz core2-32 http://repo.opkg.net/edison/repo/all >> /etc/opkg/base-feeds.conf
- echo "fuente mraa-upm http://iotdk.intel.com/repos/1.1/intelgalactic « > /etc/opkg/mraa-upm.conf raíz opkg actualización raíz opkg instalar python-opencv raíz MNP instalar python-shell
Para instalar el servidor Web:
De Shell escriba:
- OPKG install apache2
- OPKG instalar php
PIP instalar peticiones
systemctl start apache2
- systemctl habilitar apache2
- reiniciar el sistema
- (Reiniciar caerá su ssh conexión)
Preparar el directorio Web:
Esto enumera todos los archivos en un directorio en el servidor web
Desde el Shell mensaje, escriba:
- CD /usr/share/apache2/htdocs
- Fotos de mkdir
- CD fotos
- archivo .htaccess con el contenido siguiente (esto es también en el archivo de código fuente adjunto)
- Opciones + índices