Difference between revisions of "Preparing NanoPI M1 Plus"

From wiki.ferrari.mo.it
Jump to navigation Jump to search
Line 41: Line 41:
  
 
Copy the eywa directory to /root .
 
Copy the eywa directory to /root .
You can delete skip the following directories:
+
You can include only the following directories and files:
 +
 
 +
webSocket/
 +
tcpSocket/
 +
REST/
 +
httpREST/
 +
dist/
 +
watchdog-eywa.sh
 +
sqlite.db
 +
server.js
 +
package.json.node
 +
labels.properties.en

Revision as of 16:11, 19 April 2019

Preparing NanoPI M1 Plus for Eywa

Step 1 - Flash card

Download nanopi-m1-plus_sd_debian-jessie_4.14_armhf_20181119.img from FriendlyElec shared folder.

Then, flash an SD card (we used Toshiba 16Gb) with balena Etcher (or equivalent).

The username/password of the system is root / fa .

Step 2 - Remove the unwanted packages

apt-get --yes --force-yes remove --auto-remove --purge network-manager x11-common x11-proto*

Before rebooting the system, you must configure /etc/network/interfaces with the following:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 10.10.10.17
netmask 255.255.255.0
gateway 10.10.10.254

NOTE: the eth0 is unconfigured by default. If you forget to configure it in the file and reboot, the board will be inaccessible by ssh.

Then, remove the unwanted directories:

cd /root
rm -rf demo/ Desktop/ Documents/ Downloads/ mjpg-streamer/ Music/ Pictures/ Public/ Templates/ Videos/ WiringNP/

Step 3 - Install node

sudo apt-get install curl software-properties-common
curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -

apt-get install nodejs

Step 4 - Install Eywa and its packages

Copy the eywa directory to /root . You can include only the following directories and files:

webSocket/
tcpSocket/
REST/
httpREST/
dist/
watchdog-eywa.sh
sqlite.db
server.js
package.json.node
labels.properties.en