Stap 2: Edison omgeving configureren
Installeer vereiste bibliotheken voor dit project uit te voeren:
Van Shell prompt type:
- NPM installeren jsupm_hmc5883l
- NPM Installeer python-shell
Installeren van Python Webcam Fotolader die u wilt installeren van de Python-opencv
Van Shell Prompt type:
- echo -e "src/gz alle 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 "src mraa-upm http://iotdk.intel.com/repos/1.1/intelgalactic" > /etc/opkg/mraa-upm.conf root and update root and Installeer python-opencv wortel npm Installeer python-shell
Web Server installeren:
Van Shell Prompt type:
- and install apache2
- and install php
PIP installeren aanvragen
systemctl start apache2
- systemctl inschakelen apache2
- opnieuw opstarten
- (Rebooten zal dalen uw ssh verbinding)
Voorbereiden webdirectory:
Deze lijst toont alle bestanden in een map op de webserver
Van de Shell prompt type:
- cd /usr/share/apache2/htdocs
- mkdir pics
- foto cd 's
- maken van .htaccess-bestand met de volgende inhoud (dit is ook in het gekoppelde bronbestand)
- Opties + Indexes