Raspberry Pi IoT Setup » History » Version 3
Spencer Sutterlin, 06/10/2014 01:45 AM
1 | 1 | Spencer Sutterlin | Raspberry Pi IoT Setup |
---|---|---|---|
2 | ====================== |
||
3 | 3 | Spencer Sutterlin | |
4 | Cross-compile: |
||
5 | |||
6 | * ndn-cxx |
||
7 | * NFD |
||
8 | |||
9 | On the Pi: |
||
10 | |||
11 | 1 | Spencer Sutterlin | ``` |
12 | nano /etc/network/interfaces # Tweak networking as desired |
||
13 | sudo reboot |
||
14 | sudo apt-get update |
||
15 | sudo apt-get install git vim |
||
16 | sudo apt-get install build-essential |
||
17 | sudo apt-get install openssl expat libpcap-dev |
||
18 | sudo apt-get install libssl-dev libsqlite3-dev libcrypto++-dev libboost-all-dev |
||
19 | mkdir ~/ndn |
||
20 | cd ~/ndn |
||
21 | git clone https://github.com/named-data/PyNDN2.git |
||
22 | git clone https://github.com/remap/ndn-pi.git |
||
23 | echo "export PYTHONPATH=$PYTHONPATH:$HOME/ndn/PyNDN2/python:$HOME/ndn/ndn-pi" >> ~/.bashrc |
||
24 | sudo vim /etc/modules # Add “ipv6” |
||
25 | # Copy/install ndn-cxx/NFD from VM to PI |
||
26 | 2 | Spencer Sutterlin | sudo visudo # Add “Defaults env_keep += “PYTHONPATH” (Don't clear PYTHONPATH for root since GPIO sensors must be run as root) |
27 | 1 | Spencer Sutterlin | wget https://bootstrap.pypa.io/get-pip.py |
28 | sudo python get-pip.py |
||
29 | rm get-pip.py |
||
30 | sudo pip install pycrypto |
||
31 | sudo pip install trollius |
||
32 | 3 | Spencer Sutterlin | ``` |
33 | |||
34 | If HDMI-CEC node: |
||
35 | ``` |
||
36 | cd ~/ndn |
||
37 | git clone https://github.com/Pulse-Eight/libcec |
||
38 | sudo apt-get install autoconf libtool pkg-config |
||
39 | sudo apt-get install liblockdev1-dev libudev-dev |
||
40 | |||
41 | ./bootstrap |
||
42 | ./configure --with-rpi-include-path="/opt/vc/include" --with-rpi-lib-path="/opt/vc/lib " --enable-rpi --enable-debug |
||
43 | make |
||
44 | sudo make install |
||
45 | sudo ldconfig |
||
46 | 1 | Spencer Sutterlin | ``` |