Project

General

Profile

Raspberry Pi IoT Setup » History » Version 4

Spencer Sutterlin, 06/10/2014 01:46 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 4 Spencer Sutterlin
36 3 Spencer Sutterlin
```
37
cd ~/ndn
38
git clone https://github.com/Pulse-Eight/libcec
39
sudo apt-get install autoconf libtool pkg-config
40
sudo apt-get install liblockdev1-dev libudev-dev
41
42
./bootstrap
43
./configure --with-rpi-include-path="/opt/vc/include" --with-rpi-lib-path="/opt/vc/lib " --enable-rpi --enable-debug
44
make
45
sudo make install
46
sudo ldconfig
47 1 Spencer Sutterlin
```